1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Wake status package */
4 Name(WKST,Package(){0, 0})
7 * \_PTS - Prepare to Sleep method
10 * Arg0=The value of the sleeping state S1=1, S2=2, etc
15 * The _PTS control method is executed at the beginning of the sleep process
16 * for S1-S5. The sleeping value is passed to the _PTS control method. This
17 * control method may be executed a relatively long time before entering the
18 * sleep state and the OS may abort the operation without notification to
19 * the ACPI driver. This method cannot modify the configuration or power
20 * state of any device in the system.
23 /* DBGO("\\_PTS\n") */
24 /* DBGO("From S0 to S") */
28 /* Clear wake status structure. */
33 } /* End Method(\_PTS) */
36 * \_WAK System Wake method
39 * Arg0=The value of the sleeping state S1=1, S2=2
42 * Return package of 2 DWords
44 * 0x00000000 wake succeeded
45 * 0x00000001 Wake was signaled but failed due to lack of power
46 * 0x00000002 Wake was signaled but failed due to thermal condition
47 * Dword 2 - Power Supply state
48 * if non-zero the effective S-state the power supply entered
51 /* DBGO("\\_WAK\n") */
54 /* DBGO(" to S0\n") */
57 } /* End Method(\_WAK) */