diff options
author | jhb <jhb@FreeBSD.org> | 2004-06-10 20:43:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-06-10 20:43:04 +0000 |
commit | ee8370535ac25ea43768796f941bbd8397f8a266 (patch) | |
tree | e3435e9d7547071cdb705b09df404cbed8b70d50 /sys/i386 | |
parent | f7c8770debc1cb4e4c0aa95cd3a49dbf7072d704 (diff) | |
download | FreeBSD-src-ee8370535ac25ea43768796f941bbd8397f8a266.zip FreeBSD-src-ee8370535ac25ea43768796f941bbd8397f8a266.tar.gz |
- Use the correct devclass name ("acpi" vs "ACPI") to detect if acpi0 is
present and thus that the PnPBIOS probe should be skipped instead of
having ACPI zero out the PnPBIOStable pointer.
- Make the PnPBIOStable pointer static to i386/i386/bios.c now that that is
the only place it is used.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/acpica/acpi_machdep.c | 6 | ||||
-rw-r--r-- | sys/i386/i386/bios.c | 5 | ||||
-rw-r--r-- | sys/i386/include/pc/bios.h | 1 |
3 files changed, 3 insertions, 9 deletions
diff --git a/sys/i386/acpica/acpi_machdep.c b/sys/i386/acpica/acpi_machdep.c index 90720b2..79ba3cf 100644 --- a/sys/i386/acpica/acpi_machdep.c +++ b/sys/i386/acpica/acpi_machdep.c @@ -306,12 +306,6 @@ acpi_machdep_init(device_t dev) acpi_dev = dev; sc = device_get_softc(acpi_dev); - /* - * XXX: Prevent the PnP BIOS code from interfering with - * our own scan of ISA devices. - */ - PnPBIOStable = NULL; - acpi_capm_init(sc); acpi_install_wakeup_handler(sc); diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c index 65f79da..5109e4d 100644 --- a/sys/i386/i386/bios.c +++ b/sys/i386/i386/bios.c @@ -59,7 +59,8 @@ __FBSDID("$FreeBSD$"); /* exported lookup results */ struct bios32_SDentry PCIbios; -struct PnPBIOS_table *PnPBIOStable; + +static struct PnPBIOS_table *PnPBIOStable; static u_int bios32_SDCI; @@ -555,7 +556,7 @@ pnpbios_identify(driver_t *driver, device_t parent) return; /* ACPI already active */ - if (devclass_get_softc(devclass_find("ACPI"), 0) != NULL) + if (devclass_get_softc(devclass_find("acpi"), 0) != NULL) return; /* get count of PnP devices */ diff --git a/sys/i386/include/pc/bios.h b/sys/i386/include/pc/bios.h index b8d3991..c7362a9 100644 --- a/sys/i386/include/pc/bios.h +++ b/sys/i386/include/pc/bios.h @@ -93,7 +93,6 @@ struct PnPBIOS_table * Exported lookup results */ extern struct bios32_SDentry PCIbios; -extern struct PnPBIOS_table *PnPBIOStable; struct segment_info { u_int base; |