summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_ec.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-10-04 23:21:09 +0000
committermsmith <msmith@FreeBSD.org>2001-10-04 23:21:09 +0000
commitdd61fc83a8fa795fbde75480309025c81d0c9996 (patch)
tree85be3d6fbcf38c8e26282b7e510c007dc779e400 /sys/dev/acpica/acpi_ec.c
parent06d963bb08c512a0712a3f80ccac98bc31a9bc22 (diff)
downloadFreeBSD-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_ec.c')
-rw-r--r--sys/dev/acpica/acpi_ec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 5a870a4..54eb519 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -482,9 +482,9 @@ EcGpeQueryHandler(void *Context)
}
}
/* I know I request Level trigger cleanup */
- if(AcpiClearEvent(sc->ec_gpebit,ACPI_EVENT_GPE) != AE_OK)
+ if(AcpiClearEvent(sc->ec_gpebit, ACPI_EVENT_GPE) != AE_OK)
printf("EcGpeQueryHandler:ClearEvent Failed\n");
- if(AcpiEnableEvent(sc->ec_gpebit,ACPI_EVENT_GPE) != AE_OK)
+ if(AcpiEnableEvent(sc->ec_gpebit, ACPI_EVENT_GPE, 0) != AE_OK)
printf("EcGpeQueryHandler:EnableEvent Failed\n");
return_VOID;
}
@@ -741,7 +741,7 @@ EcTransaction(struct acpi_ec_softc *sc, EC_REQUEST *EcRequest)
if (AcpiClearEvent(sc->ec_gpebit, ACPI_EVENT_GPE) != AE_OK)
device_printf(sc->ec_dev, "EcRequest: Unable to clear the EC GPE.\n");
- if (AcpiEnableEvent(sc->ec_gpebit, ACPI_EVENT_GPE) != AE_OK)
+ if (AcpiEnableEvent(sc->ec_gpebit, ACPI_EVENT_GPE, 0) != AE_OK)
device_printf(sc->ec_dev, "EcRequest: Unable to re-enable the EC GPE.\n");
return(Status);
OpenPOWER on IntegriCloud