Fix Fam14 mainboard whitespace
[coreboot.git] / src / mainboard / amd / persimmon / acpi / ssdt5.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
21 DefinitionBlock ("SSDT5.aml", "SSDT", 1, "AMD-FAM10", "AMDACPI", 100925440)
22 {
23         Scope (_SB)
24         {
25         External (DADD, MethodObj)
26         External (GHCE, MethodObj)
27         External (GHCN, MethodObj)
28         External (GHCL, MethodObj)
29         External (GHCD, MethodObj)
30         External (GNUS, MethodObj)
31         External (GIOR, MethodObj)
32         External (GMEM, MethodObj)
33         External (GWBN, MethodObj)
34         External (GBUS, MethodObj)
35
36         External (PICF)
37
38         External (\_SB.PCI0.LNKA, DeviceObj)
39         External (\_SB.PCI0.LNKB, DeviceObj)
40         External (\_SB.PCI0.LNKC, DeviceObj)
41         External (\_SB.PCI0.LNKD, DeviceObj)
42
43                 Device (PCIX)
44                 {
45
46                         // BUS ? Second HT Chain
47                         Name (HCIN, 0xcc)  // HC2 0x01
48
49                         Name (_UID,      0xdd)  // HC 0x03
50
51                         Name (_HID, "PNP0A03")
52
53                         Method (_ADR, 0, NotSerialized) //Fake bus should be 0
54                         {
55                                 Return (DADD(GHCN(HCIN), 0x00000000))
56                         }
57
58                         Method (_BBN, 0, NotSerialized)
59                         {
60                                 Return (GBUS (GHCN(HCIN), GHCL(HCIN)))
61                         }
62
63                         Method (_STA, 0, NotSerialized)
64                         {
65                                 Return (\_SB.GHCE(HCIN))
66                         }
67
68                         Method (_CRS, 0, NotSerialized)
69                         {
70                                 Name (BUF0, ResourceTemplate () { })
71                                 Store( GHCN(HCIN), Local4)
72                                 Store( GHCL(HCIN), Local5)
73
74                                 Concatenate (\_SB.GIOR (Local4, Local5), BUF0, Local1)
75                                 Concatenate (\_SB.GMEM (Local4, Local5), Local1, Local2)
76                                 Concatenate (\_SB.GWBN (Local4, Local5), Local2, Local3)
77                                 Return (Local3)
78                         }
79
80                         #include "acpi/pci5_hc.asl"
81                 }
82         }
83
84 }
85