Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/bhnd.c
Show First 20 Lines • Show All 919 Lines • ▼ Show 20 Lines | |||||
bhnd_generic_print_child(device_t dev, device_t child) | bhnd_generic_print_child(device_t dev, device_t child) | ||||
{ | { | ||||
struct resource_list *rl; | struct resource_list *rl; | ||||
int retval = 0; | int retval = 0; | ||||
retval += bus_print_child_header(dev, child); | retval += bus_print_child_header(dev, child); | ||||
rl = BUS_GET_RESOURCE_LIST(dev, child); | rl = BUS_GET_RESOURCE_LIST(dev, child); | ||||
if (rl != NULL) { | if (rl != NULL) { | ||||
retval += resource_list_print_type(rl, "mem", SYS_RES_MEMORY, | retval += resource_list_print_type(rl, "mem", SYS_RES_MEMORY, | ||||
"%#jx"); | "%#jx"); | ||||
retval += resource_list_print_type(rl, "irq", SYS_RES_IRQ, | |||||
"%#jd"); | |||||
} | } | ||||
retval += printf(" at core %u", bhnd_get_core_index(child)); | retval += printf(" at core %u", bhnd_get_core_index(child)); | ||||
retval += bus_print_child_domain(dev, child); | retval += bus_print_child_domain(dev, child); | ||||
retval += bus_print_child_footer(dev, child); | retval += bus_print_child_footer(dev, child); | ||||
return (retval); | return (retval); | ||||
Show All 30 Lines | bhnd_generic_probe_nomatch(device_t dev, device_t child) | ||||
if (!report) | if (!report) | ||||
return; | return; | ||||
/* Print the non-matched device info */ | /* Print the non-matched device info */ | ||||
device_printf(dev, "<%s %s>", bhnd_get_vendor_name(child), | device_printf(dev, "<%s %s>", bhnd_get_vendor_name(child), | ||||
bhnd_get_device_name(child)); | bhnd_get_device_name(child)); | ||||
rl = BUS_GET_RESOURCE_LIST(dev, child); | rl = BUS_GET_RESOURCE_LIST(dev, child); | ||||
if (rl != NULL) | if (rl != NULL) { | ||||
resource_list_print_type(rl, "mem", SYS_RES_MEMORY, "%#jx"); | resource_list_print_type(rl, "mem", SYS_RES_MEMORY, "%#jx"); | ||||
resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%#jd"); | |||||
} | |||||
printf(" at core %u (no driver attached)\n", | printf(" at core %u (no driver attached)\n", | ||||
bhnd_get_core_index(child)); | bhnd_get_core_index(child)); | ||||
} | } | ||||
/** | /** | ||||
* Default implementation of BUS_CHILD_PNPINFO_STR(). | * Default implementation of BUS_CHILD_PNPINFO_STR(). | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |