diff options
author | msmith <msmith@FreeBSD.org> | 2001-10-04 23:21:09 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-10-04 23:21:09 +0000 |
commit | dd61fc83a8fa795fbde75480309025c81d0c9996 (patch) | |
tree | 85be3d6fbcf38c8e26282b7e510c007dc779e400 /sys/dev/acpica/acpi_pcib_acpi.c | |
parent | 06d963bb08c512a0712a3f80ccac98bc31a9bc22 (diff) | |
download | FreeBSD-src-dd61fc83a8fa795fbde75480309025c81d0c9996.zip FreeBSD-src-dd61fc83a8fa795fbde75480309025c81d0c9996.tar.gz |
Update usage of AcpiEnableEvent to reflect a new argument.
Fix acpi_DeviceIsPresent to check for valid _STA data and to check
the "present" and "functioning" bits.
Use acpi_DeviceIsPresent in acpi_pcib rather than rolling our own
(also broken) version.
Diffstat (limited to 'sys/dev/acpica/acpi_pcib_acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index 2bf055e..c79714f 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -375,10 +375,9 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) prt->Source, devinfo.HardwareId); goto out; } - /* should be 'present' and 'functioning' */ - if ((devinfo.CurrentStatus & 0x09) != 0x09) { - device_printf(sc->ap_dev, "PCI interrupt link device %s unavailable (CurrentStatus 0x%x)\n", - prt->Source, devinfo.CurrentStatus); + if (!acpi_DeviceIsPresent(sc->ap_dev)) { + device_printf(sc->ap_dev, "PCI interrupt link device %s not present\n", + prt->Source); goto out; } |