2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
17 If (CONFIG(HAVE_ACPI_RESUME)) {
20 If (CONFIG(DISABLE_ACPI_HIBERNATE)) {
21 Store(And(SSFG, 0xF7), SSFG)
24 /* Supported sleep states: */
25 Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */
27 If (And(SSFG, 0x01)) {
28 Name(\_S1, Package () {0x01, 0x01, 0x00, 0x00} ) /* (S1) - sleeping w/CPU context */
30 If (And(SSFG, 0x02)) {
31 Name(\_S2, Package () {0x02, 0x02, 0x00, 0x00} ) /* (S2) - "light" Suspend to RAM */
33 If (And(SSFG, 0x04)) {
34 Name(\_S3, Package () {0x03, 0x03, 0x00, 0x00} ) /* (S3) - Suspend to RAM */
36 If (And(SSFG, 0x08)) {
37 Name(\_S4, Package () {0x04, 0x04, 0x00, 0x00} ) /* (S4) - Suspend to Disk */
40 Name(\_S5, Package () {0x05, 0x05, 0x00, 0x00} ) /* (S5) - Soft Off */