2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 /* The _PTS method (Prepare To Sleep) is called before the OS is
16 * entering a sleep state. The sleep state number is passed in Arg0
21 // Call a trap so SMI can prepare for Sleep as well.
25 /* The _WAK method is called on system wakeup */
31 // Notify PCI Express slots in case a card
32 // was inserted while a sleep state was active.
34 // Are we going to S3?
35 If (LEqual(Arg0, 3)) {
39 // Are we going to S4?
40 If (LEqual(Arg0, 4)) {
44 // TODO: Windows XP SP2 P-State restore
46 Return(Package(){0,0})