2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2014 Google Inc.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 /* The APM port can be used for generating software SMIs */
19 OperationRegion (APMP, SystemIO, 0xb2, 2)
20 Field (APMP, ByteAcc, NoLock, Preserve)
22 APMC, 8, // APM command
28 OperationRegion (POST, SystemIO, 0x80, 1)
29 Field (POST, ByteAcc, Lock, Preserve)
35 Method(TRAP, 1, Serialized)
37 Store (Arg0, SMIF) // SMI Function
38 Store (0, TRP0) // Generate trap
39 Return (SMIF) // Return value of SMI handler
42 /* The _PIC method is called by the OS to choose between interrupt
43 * routing via the i8259 interrupt controller or the APIC.
45 * _PIC is called with a parameter of 0 for i8259 configuration and
46 * with a parameter of 1 for Local Apic/IOAPIC configuration.
51 // Remember the OS' IRQ routing choice.
55 /* The _PTS method (Prepare To Sleep) is called before the OS is
56 * entering a sleep state. The sleep state number is passed in Arg0
63 /* The _WAK method is called on system wakeup */
67 /* Initialize thermal defaults */
70 Return(Package(){0,0})