summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2020-04-13 10:17:15 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-04-15 14:05:28 +0000
commit6d2a51eb850e7d86da0f7c3269cae606a68cbd78 (patch)
tree1da7edd97267f1140b7250c03311fa7bdcf07895 /src/arch/x86
parent63be06008d439cba7cb113df20faf23ed76e4b79 (diff)
downloadcoreboot-6d2a51eb850e7d86da0f7c3269cae606a68cbd78.tar.xz
cpu/x86/acpi: Add assignments to ACPI_Sn enums
Explicitly assign numerical values to the enumerated sleep state values. BUG=b:153854742 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Change-Id: I1de2e7f65a2dc3f8a9a1c5fd83d164871a4a2b96 Reviewed-on: https://review.coreboot.org/c/coreboot/+/40338 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/include/arch/acpi.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/arch/x86/include/arch/acpi.h b/src/arch/x86/include/arch/acpi.h
index 0ed89d1b12..fc250d7da0 100644
--- a/src/arch/x86/include/arch/acpi.h
+++ b/src/arch/x86/include/arch/acpi.h
@@ -979,13 +979,14 @@ void acpi_resume(void *wake_vec);
void mainboard_suspend_resume(void);
void *acpi_find_wakeup_vector(void);
+/* ACPI_Sn assignments are defined to always equal the sleep state numbers */
enum {
- ACPI_S0,
- ACPI_S1,
- ACPI_S2,
- ACPI_S3,
- ACPI_S4,
- ACPI_S5,
+ ACPI_S0 = 0,
+ ACPI_S1 = 1,
+ ACPI_S2 = 2,
+ ACPI_S3 = 3,
+ ACPI_S4 = 4,
+ ACPI_S5 = 5,
};
#if CONFIG(ACPI_INTEL_HARDWARE_SLEEP_VALUES) \