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>
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h
index ea80e3b..34cb6ea 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! */