diff options
author | msmith <msmith@FreeBSD.org> | 2001-07-07 10:12:06 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-07-07 10:12:06 +0000 |
commit | 40dd7c8688692ffceb11e8d085ef73074604e5b5 (patch) | |
tree | 61314587fecf378efd4a6b83cc110c3c57be2639 /sys/dev/acpica | |
parent | de06014a318c640a8b4a0d735f30c05067255c35 (diff) | |
download | FreeBSD-src-40dd7c8688692ffceb11e8d085ef73074604e5b5.zip FreeBSD-src-40dd7c8688692ffceb11e8d085ef73074604e5b5.tar.gz |
Oops, have to use AcpiSetCurrentResources, not invoke the _SRS method
directly.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi_pcib.c | 5 | ||||
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c index ffb5556..5bed3c3 100644 --- a/sys/dev/acpica/acpi_pcib.c +++ b/sys/dev/acpica/acpi_pcib.c @@ -285,7 +285,6 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) ACPI_BUFFER crsbuf, prsbuf; ACPI_RESOURCE *crsres, *prsres; ACPI_DEVICE_INFO devinfo; - ACPI_OBJECT_LIST objectlist; ACPI_STATUS status; u_int8_t *prtp; device_t *devlist; @@ -476,9 +475,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) printf("\n"); crsres->Data.Irq.Interrupts[0] = prsres->Data.Irq.Interrupts[0]; crsres->Data.Irq.NumberOfInterrupts = 1; - objectlist.Count = 1; - objectlist.Pointer = (ACPI_OBJECT *)crsres; - if (ACPI_FAILURE(status = AcpiEvaluateObject(lnkdev, "_SRS", &objectlist, NULL))) { + if (ACPI_FAILURE(status = AcpiSetCurrentResources(lnkdev, &crsbuf))) { device_printf(sc->ap_dev, "couldn't route interrupt %d via %s - %s\n", prsres->Data.Irq.Interrupts[0], acpi_name(lnkdev), acpi_strerror(status)); goto out; diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index ffb5556..5bed3c3 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -285,7 +285,6 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) ACPI_BUFFER crsbuf, prsbuf; ACPI_RESOURCE *crsres, *prsres; ACPI_DEVICE_INFO devinfo; - ACPI_OBJECT_LIST objectlist; ACPI_STATUS status; u_int8_t *prtp; device_t *devlist; @@ -476,9 +475,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin) printf("\n"); crsres->Data.Irq.Interrupts[0] = prsres->Data.Irq.Interrupts[0]; crsres->Data.Irq.NumberOfInterrupts = 1; - objectlist.Count = 1; - objectlist.Pointer = (ACPI_OBJECT *)crsres; - if (ACPI_FAILURE(status = AcpiEvaluateObject(lnkdev, "_SRS", &objectlist, NULL))) { + if (ACPI_FAILURE(status = AcpiSetCurrentResources(lnkdev, &crsbuf))) { device_printf(sc->ap_dev, "couldn't route interrupt %d via %s - %s\n", prsres->Data.Irq.Interrupts[0], acpi_name(lnkdev), acpi_strerror(status)); goto out; |