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 External(\_SB.APTS, MethodObj)
24 External(\_SB.AWAK, MethodObj)
27 /* DBGO("\\_PTS\n") */
28 /* DBGO("From S0 to S") */
32 /* Clear wake status structure. */
37 } /* End Method(\_PTS) */
40 * \_WAK System Wake method
43 * Arg0=The value of the sleeping state S1=1, S2=2
46 * Return package of 2 DWords
48 * 0x00000000 wake succeeded
49 * 0x00000001 Wake was signaled but failed due to lack of power
50 * 0x00000002 Wake was signaled but failed due to thermal condition
51 * Dword 2 - Power Supply state
52 * if non-zero the effective S-state the power supply entered
55 /* DBGO("\\_WAK\n") */
58 /* DBGO(" to S0\n") */
60 /* clear USB wake up signal */
66 } /* End Method(\_WAK) */