blob: 7ffae2e6e0777100de8f5615965b622e5db1afe4 [file] [log] [blame]
York Yang9c6c7912016-03-09 11:19:51 -08001/*
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 */
16
17/* The APM port can be used for generating software SMIs */
18
19OperationRegion (APMP, SystemIO, 0xb2, 2)
20Field (APMP, ByteAcc, NoLock, Preserve)
21{
22 APMC, 8, // APM command
23 APMS, 8 // APM status
24}
25
26/* Port 80 POST */
27
28OperationRegion (POST, SystemIO, 0x80, 1)
29Field (POST, ByteAcc, Lock, Preserve)
30{
31 DBG0, 8
32}
33
34Name(\APC1, Zero) // IIO IOAPIC
35
36Name(\PICM, Zero) // IOAPIC/8259
37
38Method(_PIC, 1)
39{
40 Store(Arg0, PICM)
41}
42
43/* The _PTS method (Prepare To Sleep) is called before the OS is
44 * entering a sleep state. The sleep state number is passed in Arg0
45 */
46
47Method(_PTS,1)
48{
49}
50
51/* The _WAK method is called on system wakeup */
52
53Method(_WAK,1)
54{
55 Return(Package(){0,0})
56}