diff options
author | jhb <jhb@FreeBSD.org> | 2016-04-20 20:55:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-04-20 20:55:58 +0000 |
commit | 11a5d8cc2127f8b70265561192e9e9691bf2f6ca (patch) | |
tree | 1935298b1cf4577c1f63960b13d9e14294411ba8 /sys/dev/acpica/acpivar.h | |
parent | 499f728f9200eaa479527b7af379aabb3d5bf86d (diff) | |
download | FreeBSD-src-11a5d8cc2127f8b70265561192e9e9691bf2f6ca.zip FreeBSD-src-11a5d8cc2127f8b70265561192e9e9691bf2f6ca.tar.gz |
Add a wrapper for evaluating _OSC methods.
This wrapper does not translate errors in the first word to ACPI
error status returns. Use this wrapper in the acpi_cpu(4) driver in
place of the existing _OSC code. While here, fix a bug where the wrong
count of words was passed when invoking _OSC.
Reviewed by: jkim
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6022
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index 3ee7ab3..034f6df 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -335,6 +335,8 @@ ACPI_STATUS acpi_FindIndexedResource(ACPI_BUFFER *buf, int index, ACPI_RESOURCE **resp); ACPI_STATUS acpi_AppendBufferResource(ACPI_BUFFER *buf, ACPI_RESOURCE *res); +ACPI_STATUS acpi_EvaluateOSC(ACPI_HANDLE handle, uint8_t *uuid, + int revision, int count, uint32_t *caps, bool query); ACPI_STATUS acpi_OverrideInterruptLevel(UINT32 InterruptNumber); ACPI_STATUS acpi_SetIntrModel(int model); int acpi_ReqSleepState(struct acpi_softc *sc, int state); |