1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* The _PTS method (Prepare To Sleep) is called before the OS is
4 * entering a sleep state. The sleep state number is passed in Arg0
9 \_SB.PCI0.LPCB.EC.MUTE(1)
10 \_SB.PCI0.LPCB.EC.USBP(0)
11 \_SB.PCI0.LPCB.EC.RADI(0)
14 /* The _WAK method is called on system wakeup */
18 /* ME may not be up yet. */
22 /* Wake the HKEY to init BT/WWAN */
23 \_SB.PCI0.LPCB.EC.HKEY.WAKE (Arg0)
25 /* Not implemented. */
26 Return(Package(){0,0})
33 /* This method is placed on the top level, so we can make sure it's the
34 * first executed _INI method.
38 /* The DTS data in NVS is probably not up to date.
39 * Update temperature values and make sure AP thermal
40 * interrupts can happen
43 /* TRAP(71) */ /* TODO */
45 /* Determine the Operating System and save the value in OSYS.
46 * We have to do this in order to be able to work around
47 * certain windows bugs.
49 * OSYS value | Operating System
50 * -----------+------------------
52 * 2001 | Windows XP(+SP1)
53 * 2002 | Windows XP SP2
54 * 2006 | Windows Vista
58 /* Let's assume we're running at least Windows 2000 */
61 If (CondRefOf(_OSI)) {
62 If (_OSI("Windows 2001")) {
66 If (_OSI("Windows 2001 SP1")) {
70 If (_OSI("Windows 2001 SP2")) {
74 If (_OSI("Windows 2001.1")) {
78 If (_OSI("Windows 2001.1 SP1")) {
82 If (_OSI("Windows 2006")) {
86 If (_OSI("Windows 2006.1")) {
90 If (_OSI("Windows 2006 SP1")) {
94 If (_OSI("Windows 2009")) {
98 If (_OSI("Windows 2012")) {