tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / soc / intel / baytrail / acpi / platform.asl
blob2bd43a74b68ed07ec0b2c4a400fc117e62a55bf5
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2009 coresystems GmbH
5  * Copyright (C) 2012 Google Inc.
6  *
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.
10  *
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.
15  */
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
23         APMS, 8         // APM status
26 /* Port 80 POST */
28 OperationRegion (POST, SystemIO, 0x80, 1)
29 Field (POST, ByteAcc, Lock, Preserve)
31         DBG0, 8
34 /* SMI I/O Trap */
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.
44  *
45  * _PIC is called with a parameter of 0 for i8259 configuration and
46  * with a parameter of 1 for Local Apic/IOAPIC configuration.
47  */
49 Method(_PIC, 1)
51         // Remember the OS' IRQ routing choice.
52         Store(Arg0, PICM)
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
57  */
59 Method(_PTS,1)
63 /* The _WAK method is called on system wakeup */
65 Method(_WAK,1)
67         Return(Package(){0,0})
70 Method (_SWS)
72         /* Index into PM1 for device that caused wake */
73         Return (\PM1I)