Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/pci/sbbc.c
Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | sbbc_pci_attach(device_t dev) | ||||
struct timespec ts; | struct timespec ts; | ||||
device_t child; | device_t child; | ||||
bus_space_tag_t bst; | bus_space_tag_t bst; | ||||
bus_space_handle_t bsh; | bus_space_handle_t bsh; | ||||
phandle_t node; | phandle_t node; | ||||
int error, rid; | int error, rid; | ||||
uint32_t val; | uint32_t val; | ||||
/* Nothing to to if we're not the chosen one. */ | /* Nothing to do if we're not the chosen one. */ | ||||
if ((node = OF_finddevice("/chosen")) == -1) { | if ((node = OF_finddevice("/chosen")) == -1) { | ||||
device_printf(dev, "failed to find /chosen\n"); | device_printf(dev, "failed to find /chosen\n"); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
if (OF_getprop(node, "iosram", &node, sizeof(node)) == -1) { | if (OF_getprop(node, "iosram", &node, sizeof(node)) == -1) { | ||||
device_printf(dev, "failed to get iosram\n"); | device_printf(dev, "failed to get iosram\n"); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 775 Lines • Show Last 20 Lines |