2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 /* These come from the dynamically created CPU SSDT */
26 /* The APM port can be used for generating software SMIs */
28 OperationRegion (APMP, SystemIO, 0xb2, 2)
29 Field (APMP, ByteAcc, NoLock, Preserve)
31 APMC, 8, /* APM command */
32 APMS, 8 /* APM status */
36 Method(TRAP, 1, Serialized)
38 Store (Arg0, SMIF) /* SMI Function */
39 Store (0, TRP0) /* Generate trap */
40 Return (SMIF) /* Return value of SMI handler */
43 /* The _PIC method is called by the OS to choose between interrupt
44 * routing via the i8259 interrupt controller or the APIC.
46 * _PIC is called with a parameter of 0 for i8259 configuration and
47 * with a parameter of 1 for Local Apic/IOAPIC configuration.
52 /* Remember the OS' IRQ routing choice. */
56 /* The _PTS method (Prepare To Sleep) is called before the OS is
57 * entering a sleep state. The sleep state number is passed in Arg0
64 /* The _WAK method is called on system wakeup */
68 /* Not implemented. */
69 Return(Package(){0,0})
76 /* This method is placed on the top level, so we can make sure it's the
77 * first executed _INI method.
81 /* The DTS data in NVS is probably not up to date.
82 * Update temperature values and make sure AP thermal
83 * interrupts can happen
86 /* TRAP(71) */ /* TODO */
88 /* Determine the Operating System and save the value in OSYS.
89 * We have to do this in order to be able to work around
90 * certain windows bugs.
92 * OSYS value | Operating System
93 * -----------+------------------
95 * 2001 | Windows XP(+SP1)
96 * 2002 | Windows XP SP2
97 * 2006 | Windows Vista
101 /* Let's assume we're running at least Windows 2000 */
104 If (CondRefOf(_OSI, Local0)) {
105 If (_OSI("Windows 2001")) {
109 If (_OSI("Windows 2001 SP1")) {
113 If (_OSI("Windows 2001 SP2")) {
117 If (_OSI("Windows 2001.1")) {
121 If (_OSI("Windows 2001.1 SP1")) {
125 If (_OSI("Windows 2006")) {
129 If (_OSI("Windows 2006.1")) {
133 If (_OSI("Windows 2006 SP1")) {
137 If (_OSI("Windows 2009")) {
141 If (_OSI("Windows 2012")) {