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 // Call a trap so SMI can prepare for Sleep as well.
13 /* The _WAK method is called on system wakeup */
19 // Notify PCI Express slots in case a card
20 // was inserted while a sleep state was active.
22 // Are we going to S3?
27 // Are we going to S4?
32 // TODO: Windows XP SP2 P-State restore
34 // TODO: Return Arg0 as second value if S-Arg0 was entered
37 Return(Package(){0,0})
44 /* This method is placed on the top level, so we can make sure it's the
45 * first executed _INI method.
49 /* The DTS data in NVS is probably not up to date.
50 * Update temperature values and make sure AP thermal
51 * interrupts can happen
58 /* SMM power state and C4-on-C3 settings need to be updated */