2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 Advanced Micro Devices, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 /* Data to be patched by the BIOS during POST */
17 /* FIXME the patching is not done yet! */
18 /* Memory related values */
19 Name(LOMH, 0x0) /* Start of unused memory in C0000-E0000 range */
20 Name(PBAD, 0x0) /* Address of BIOS area (If TOM2 != 0, Addr >> 16) */
21 Name(PBLN, 0x0) /* Length of BIOS area */
23 Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS) /* Base address of PCIe config space */
24 Name(HPBA, 0xFED00000) /* Base address of HPET table */
26 Name(SSFG, 0x0D) /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */
28 /* Some global data */
29 Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
30 Name(OSV, Ones) /* Assume nothing */
31 Name(PMOD, One) /* Assume APIC */
36 if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */
38 if(CondRefOf(\_OSI,Local1))
40 Store(1, OSVR) /* Assume some form of XP */
41 if (\_OSI("Windows 2006")) /* Vista */
46 If(WCMP(\_OS,"Linux")) {
47 Store(3, OSVR) /* Linux */
49 Store(4, OSVR) /* Gotta be WinCE */
58 /* DBGO("\\_SI\\_SST\n") */
59 /* DBGO(" New Indicator state: ") */