summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2020-05-27 12:26:41 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-06-02 07:16:41 +0000
commit4247ba362876db21507cdad9a681248e29771afe (patch)
tree804ba32bc6a62e566c1338000662ccbc295409ad /src
parent924fe94075b9559d8f6469413cf61589c49538da (diff)
acpi: Add definitions for device sleep states
The ACPI device sleep states are different from system sleep states and many places hardcode to specific values that are difficult to decode without referring to the spec. Change-Id: If5e732725b775742fd2a9fd0df697e312aa7bf20 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41791 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/acpi/acpi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h
index ea80e3ba75..34cb6ea4ff 100644
--- a/src/include/acpi/acpi.h
+++ b/src/include/acpi/acpi.h
@@ -31,6 +31,14 @@
#define SLP_TYP_S5 5
#endif
+/* ACPI Device Sleep States */
+#define ACPI_DEVICE_SLEEP_D0 0
+#define ACPI_DEVICE_SLEEP_D1 1
+#define ACPI_DEVICE_SLEEP_D2 2
+#define ACPI_DEVICE_SLEEP_D3 3
+#define ACPI_DEVICE_SLEEP_D3_HOT ACPI_DEVICE_SLEEP_D3
+#define ACPI_DEVICE_SLEEP_D3_COLD 4
+
#define ACPI_TABLE_CREATOR "COREBOOT" /* Must be exactly 8 bytes long! */
#define OEM_ID "COREv4" /* Must be exactly 6 bytes long! */