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 /* Determine the Operating System and save the value in OSYS.
39 * We have to do this in order to be able to work around
40 * certain windows bugs.
42 * OSYS value | Operating System
43 * -----------+------------------
45 * 2001 | Windows XP(+SP1)
46 * 2002 | Windows XP SP2
47 * 2006 | Windows Vista
51 /* Let's assume we're running at least Windows 2000 */
54 If (CondRefOf(_OSI)) {
55 If (_OSI("Windows 2001")) {
59 If (_OSI("Windows 2001 SP1")) {
63 If (_OSI("Windows 2001 SP2")) {
67 If (_OSI("Windows 2001.1")) {
71 If (_OSI("Windows 2001.1 SP1")) {
75 If (_OSI("Windows 2006")) {
79 If (_OSI("Windows 2006.1")) {
83 If (_OSI("Windows 2006 SP1")) {
87 If (_OSI("Windows 2009")) {
91 If (_OSI("Windows 2012")) {