Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/atkbdc/atkbdc_subr.c
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | atkbdc_print_child(device_t bus, device_t dev) | ||||
kbdcdev = (atkbdc_device_t *)device_get_ivars(dev); | kbdcdev = (atkbdc_device_t *)device_get_ivars(dev); | ||||
retval += bus_print_child_header(bus, dev); | retval += bus_print_child_header(bus, dev); | ||||
flags = device_get_flags(dev); | flags = device_get_flags(dev); | ||||
if (flags != 0) | if (flags != 0) | ||||
retval += printf(" flags 0x%x", flags); | retval += printf(" flags 0x%x", flags); | ||||
irq = bus_get_resource_start(dev, SYS_RES_IRQ, kbdcdev->rid); | irq = bus_get_resource_start(dev, SYS_RES_IRQ, kbdcdev->rid); | ||||
if (irq != 0) | if (irq != 0) | ||||
retval += printf(" irq %ld", irq); | retval += printf(" irq %jd", irq); | ||||
retval += bus_print_child_footer(bus, dev); | retval += bus_print_child_footer(bus, dev); | ||||
return (retval); | return (retval); | ||||
} | } | ||||
int | int | ||||
atkbdc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val) | atkbdc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |