1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
4 #if CONFIG(HAVE_ACPI_RESUME)
10 If (CONFIG(ACPI_S1_NOT_SUPPORTED)) {
14 If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
18 External (\OSFG, IntObj)
19 If (CondRefOf(\OSFG)) {
23 /* Supported sleep states: */
24 Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */
27 Name(\_S1, Package () {0x01, 0x01, 0x00, 0x00} ) /* (S1) - sleeping w/CPU context */
30 Name(\_S2, Package () {0x02, 0x02, 0x00, 0x00} ) /* (S2) - "light" Suspend to RAM */
33 Name(\_S3, Package () {0x03, 0x03, 0x00, 0x00} ) /* (S3) - Suspend to RAM */
36 Name(\_S4, Package () {0x04, 0x04, 0x00, 0x00} ) /* (S4) - Suspend to Disk */
39 Name(\_S5, Package () {0x05, 0x05, 0x00, 0x00} ) /* (S5) - Soft Off */