summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-11-07 21:48:45 +0000
committerjhb <jhb@FreeBSD.org>2005-11-07 21:48:45 +0000
commitc8b7335642641bd403aeaa050cf2aa055f43306f (patch)
treef784df1ed9f84fd684450d360588361c54ae65a6 /sys/dev/acpica/acpi.c
parent0b5e9aff8c80cb17f2c5c333749007fc05c51bf1 (diff)
downloadFreeBSD-src-c8b7335642641bd403aeaa050cf2aa055f43306f.zip
FreeBSD-src-c8b7335642641bd403aeaa050cf2aa055f43306f.tar.gz
Work around at least one busted BIOS. If we get a source index in a _PRT
entry that is not zero, assume that it is really a hard-wired IRQ (commonly used for APIC routing) and not a source index. In practice, we've only ever seen source indices of 0 for legitimate non-hard-wired _PRT entries. Reviewed by: njl Tested by: Alex Lyashkov shadow at psoft dot net MFC after: 2 weeks
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index bb34549..2823f62 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -1497,13 +1497,13 @@ acpi_probe_order(ACPI_HANDLE handle, int *order)
ret = 0;
if (acpi_MatchHid(handle, "PNP0C01") || acpi_MatchHid(handle, "PNP0C02")) {
*order = 1;
- ret = 1;
+ ret = 0;
} else if (acpi_MatchHid(handle, "PNP0C09")) {
*order = 2;
- ret = 1;
+ ret = 0;
} else if (acpi_MatchHid(handle, "PNP0C0F")) {
*order = 3;
- ret = 1;
+ ret = 0;
}
return (ret);
OpenPOWER on IntegriCloud