Fix Fam14 mainboard whitespace
[coreboot.git] / src / mainboard / amd / persimmon / acpi / ssdt2.asl
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  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 DefinitionBlock ("SSDT2.aml", "SSDT", 1, "AMD-FAM10", "AMDACPI", 100925440)
21 {
22         Scope (_SB)
23         {
24                 External (DADD, MethodObj)
25                 External (GHCE, MethodObj)
26                 External (GHCN, MethodObj)
27                 External (GHCL, MethodObj)
28                 External (GHCD, MethodObj)
29                 External (GNUS, MethodObj)
30                 External (GIOR, MethodObj)
31                 External (GMEM, MethodObj)
32                 External (GWBN, MethodObj)
33                 External (GBUS, MethodObj)
34
35                 External (PICF)
36
37                 External (\_SB.PCI0.LNKA, DeviceObj)
38                 External (\_SB.PCI0.LNKB, DeviceObj)
39                 External (\_SB.PCI0.LNKC, DeviceObj)
40                 External (\_SB.PCI0.LNKD, DeviceObj)
41
42                 Device (PCIX)
43                 {
44
45                 // BUS ? Second HT Chain
46                 Name (HCIN, 0xcc)  // HC2 0x01
47
48                 Name (_UID,      0xdd)  // HC 0x03
49
50                 Name (_HID, "PNP0A03")
51
52                 Method (_ADR, 0, NotSerialized) //Fake bus should be 0
53                 {
54                         Return (DADD(GHCN(HCIN), 0x00000000))
55                 }
56
57                 Method (_BBN, 0, NotSerialized)
58                 {
59                          Return (GBUS (GHCN(HCIN), GHCL(HCIN)))
60                 }
61
62                 Method (_STA, 0, NotSerialized)
63                 {
64                         Return (\_SB.GHCE(HCIN))
65                 }
66
67                 Method (_CRS, 0, NotSerialized)
68                 {
69                         Name (BUF0, ResourceTemplate () { })
70                         Store( GHCN(HCIN), Local4)
71                         Store( GHCL(HCIN), Local5)
72
73                         Concatenate (\_SB.GIOR (Local4, Local5), BUF0, Local1)
74                         Concatenate (\_SB.GMEM (Local4, Local5), Local1, Local2)
75                         Concatenate (\_SB.GWBN (Local4, Local5), Local2, Local3)
76                         Return (Local3)
77                 }
78
79                         #include "acpi/pci2_hc.asl"
80                 }
81         }
82
83 }
84