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.
17 /* These come from the dynamically created CPU SSDT */
21 /* The APM port can be used for generating software SMIs */
23 OperationRegion (APMP, SystemIO, 0xb2, 2)
24 Field (APMP, ByteAcc, NoLock, Preserve)
26 APMC, 8, /* APM command */
27 APMS, 8 /* APM status */
31 Method(TRAP, 1, Serialized)
33 Store (Arg0, SMIF) /* SMI Function */
34 Store (0, TRP0) /* Generate trap */
35 Return (SMIF) /* Return value of SMI handler */
38 /* The _PIC method is called by the OS to choose between interrupt
39 * routing via the i8259 interrupt controller or the APIC.
41 * _PIC is called with a parameter of 0 for i8259 configuration and
42 * with a parameter of 1 for Local Apic/IOAPIC configuration.
47 /* Remember the OS' IRQ routing choice. */
51 /* The _PTS method (Prepare To Sleep) is called before the OS is
52 * entering a sleep state. The sleep state number is passed in Arg0
59 /* The _WAK method is called on system wakeup */
63 /* Not implemented. */
64 Return(Package(){0,0})
71 /* This method is placed on the top level, so we can make sure it's the
72 * first executed _INI method.
76 /* The DTS data in NVS is probably not up to date.
77 * Update temperature values and make sure AP thermal
78 * interrupts can happen
81 /* TRAP(71) */ /* TODO */
83 /* Determine the Operating System and save the value in OSYS.
84 * We have to do this in order to be able to work around
85 * certain windows bugs.
87 * OSYS value | Operating System
88 * -----------+------------------
90 * 2001 | Windows XP(+SP1)
91 * 2002 | Windows XP SP2
92 * 2006 | Windows Vista
96 /* Let's assume we're running at least Windows 2000 */
99 If (CondRefOf(_OSI, Local0)) {
100 If (_OSI("Windows 2001")) {
104 If (_OSI("Windows 2001 SP1")) {
108 If (_OSI("Windows 2001 SP2")) {
112 If (_OSI("Windows 2001.1")) {
116 If (_OSI("Windows 2001.1 SP1")) {
120 If (_OSI("Windows 2006")) {
124 If (_OSI("Windows 2006.1")) {
128 If (_OSI("Windows 2006 SP1")) {
132 If (_OSI("Windows 2009")) {
136 If (_OSI("Windows 2012")) {