diff options
| author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-05 02:16:49 +0000 |
|---|---|---|
| committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-05 02:16:49 +0000 |
| commit | 5e0ca5771b922d60031b92efedcb6111f88d0299 (patch) | |
| tree | 06387d9b458d25f9116655228580166cbbf74ba2 /sys/dev | |
| parent | 9063802340bc558f05dd177e178f16a131883327 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 3 | ||||
| -rw-r--r-- | sys/dev/acpica/acpi_pcib_pci.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index d809723da97e..0f70905bef6f 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -115,6 +115,9 @@ acpi_pcib_acpi_probe(device_t dev) !acpi_disabled("pci") && acpi_MatchHid(dev, "PNP0A03")) { + if (!pci_cfgregopen()) + return(ENXIO); + /* * Set device description */ diff --git a/sys/dev/acpica/acpi_pcib_pci.c b/sys/dev/acpica/acpi_pcib_pci.c index ae565bb69b6a..5909e65d8d4d 100644 --- a/sys/dev/acpica/acpi_pcib_pci.c +++ b/sys/dev/acpica/acpi_pcib_pci.c @@ -115,6 +115,9 @@ acpi_pcib_pci_probe(device_t dev) return (ENXIO); if (acpi_get_handle(dev) == NULL) return (ENXIO); + if (!pci_cfgregopen()) + return (ENXIO); + device_set_desc(dev, "ACPI PCI-PCI bridge"); return (-1000); } |
