tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / amd / south_station / acpi / mainboard.asl
blob57a414e17838694fe38cd48d2a19018241c91b81
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2011 Advanced Micro Devices, Inc.
5  *
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.
9  *
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.
14  */
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 */
33 Scope(\_SB) {
34         Method(OSFL, 0){
36                 if(LNotEqual(OSVR, Ones)) {Return(OSVR)}        /* OS version was already detected */
38                 if(CondRefOf(\_OSI,Local1))
39                 {
40                         Store(1, OSVR)                                  /* Assume some form of XP */
41                         if (\_OSI("Windows 2006"))              /* Vista */
42                         {
43                                 Store(2, OSVR)
44                         }
45                 } else {
46                         If(WCMP(\_OS,"Linux")) {
47                                 Store(3, OSVR)                          /* Linux */
48                         } Else {
49                                 Store(4, OSVR)                          /* Gotta be WinCE */
50                         }
51                 }
52                 Return(OSVR)
53         }
56 Scope(\_SI) {
57         Method(_SST, 1) {
58                 /* DBGO("\\_SI\\_SST\n") */
59                 /* DBGO("   New Indicator state: ") */
60                 /* DBGO(Arg0) */
61                 /* DBGO("\n") */
62         }
63 } /* End Scope SI */