Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/x86/nexus.c
Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | |||||
nexus_print_child(device_t bus, device_t child) | nexus_print_child(device_t bus, device_t child) | ||||
{ | { | ||||
int retval = 0; | int retval = 0; | ||||
retval += bus_print_child_header(bus, child); | retval += bus_print_child_header(bus, child); | ||||
retval += nexus_print_all_resources(child); | retval += nexus_print_all_resources(child); | ||||
if (device_get_flags(child)) | if (device_get_flags(child)) | ||||
retval += printf(" flags %#x", device_get_flags(child)); | retval += printf(" flags %#x", device_get_flags(child)); | ||||
retval += printf(" on motherboard\n"); /* XXX "motherboard", ick */ | retval += printf("\n"); | ||||
return (retval); | return (retval); | ||||
} | } | ||||
static device_t | static device_t | ||||
nexus_add_child(device_t bus, u_int order, const char *name, int unit) | nexus_add_child(device_t bus, u_int order, const char *name, int unit) | ||||
{ | { | ||||
device_t child; | device_t child; | ||||
▲ Show 20 Lines • Show All 588 Lines • Show Last 20 Lines |