Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/acpica/acpi_pcib_acpi.c
Show First 20 Lines • Show All 531 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
/* If this is bus 0 on segment 0, note that it has been seen already. */ | /* If this is bus 0 on segment 0, note that it has been seen already. */ | ||||
if (sc->ap_segment == 0 && sc->ap_bus == 0) | if (sc->ap_segment == 0 && sc->ap_bus == 0) | ||||
bus0_seen = 1; | bus0_seen = 1; | ||||
acpi_pcib_fetch_prt(dev, &sc->ap_prt); | acpi_pcib_fetch_prt(dev, &sc->ap_prt); | ||||
bus_generic_probe(dev); | |||||
if (device_add_child(dev, "pci", -1) == NULL) { | if (device_add_child(dev, "pci", -1) == NULL) { | ||||
device_printf(device_get_parent(dev), "couldn't attach pci bus\n"); | device_printf(device_get_parent(dev), "couldn't attach pci bus\n"); | ||||
#if defined(NEW_PCIB) && defined(PCI_RES_BUS) | #if defined(NEW_PCIB) && defined(PCI_RES_BUS) | ||||
pcib_host_res_free(dev, &sc->ap_host_res); | pcib_host_res_free(dev, &sc->ap_host_res); | ||||
#endif | #endif | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
return (bus_generic_attach(dev)); | return (bus_generic_attach(dev)); | ||||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |