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
11 /* The _WAK method is called on system wakeup */
15 /* Not implemented. */
16 Return(Package(){0,0})
23 /* This method is placed on the top level, so we can make sure it's the
24 * first executed _INI method.
28 /* Determine the Operating System and save the value in OSYS.
29 * We have to do this in order to be able to work around
30 * certain windows bugs.
32 * OSYS value | Operating System
33 * -----------+------------------
35 * 2001 | Windows XP(+SP1)
36 * 2002 | Windows XP SP2
37 * 2006 | Windows Vista
41 /* Let's assume we're running at least Windows 2000 */
44 If (CondRefOf(_OSI)) {
45 If (_OSI("Windows 2001")) {
49 If (_OSI("Windows 2001 SP1")) {
53 If (_OSI("Windows 2001 SP2")) {
57 If (_OSI("Windows 2001.1")) {
61 If (_OSI("Windows 2001.1 SP1")) {
65 If (_OSI("Windows 2006")) {
69 If (_OSI("Windows 2006.1")) {
73 If (_OSI("Windows 2006 SP1")) {
77 If (_OSI("Windows 2009")) {
81 If (_OSI("Windows 2012")) {