From 4247ba362876db21507cdad9a681248e29771afe Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 27 May 2020 12:26:41 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41791 Reviewed-by: Furquan Shaikh Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/include/acpi/acpi.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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! */ -- cgit v1.2.3