Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/pci/pci_bus.c
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | #ifdef __HAVE_PIR | ||||
* our method of routing interrupts if we have one. | * our method of routing interrupts if we have one. | ||||
*/ | */ | ||||
if (pci_pir_probe(bus, 0)) { | if (pci_pir_probe(bus, 0)) { | ||||
pir = BUS_ADD_CHILD(device_get_parent(dev), 0, "pir", 0); | pir = BUS_ADD_CHILD(device_get_parent(dev), 0, "pir", 0); | ||||
if (pir != NULL) | if (pir != NULL) | ||||
device_probe_and_attach(pir); | device_probe_and_attach(pir); | ||||
} | } | ||||
#endif | #endif | ||||
device_add_child(dev, "pci", bus); | device_add_child(dev, "pci", -1); | ||||
return bus_generic_attach(dev); | return bus_generic_attach(dev); | ||||
} | } | ||||
int | int | ||||
legacy_pcib_read_ivar(device_t dev, device_t child, int which, | legacy_pcib_read_ivar(device_t dev, device_t child, int which, | ||||
uintptr_t *result) | uintptr_t *result) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines |