2 // This file is part of the coreboot project.
4 // Copyright (C) 2007 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.
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
19 DefinitionBlock ("DSDT.aml", "DSDT", 1, "AMD-FAM10", "AMDACPI", 100925440)
24 // Processor (CPU0, 0x00, 0x0000C010, 0x06) {}
25 // Processor (CPU1, 0x01, 0x00000000, 0x00) {}
26 // Processor (CPU2, 0x02, 0x00000000, 0x00) {}
27 // Processor (CPU3, 0x03, 0x00000000, 0x00) {}
30 Method (FWSO, 0, NotSerialized) { }
32 Name (_S0, Package (0x04) { 0x00, 0x00, 0x00, 0x00 })
33 Name (_S1, Package (0x04) { 0x01, 0x01, 0x01, 0x01 })
34 Name (_S3, Package (0x04) { 0x05, 0x05, 0x05, 0x05 })
35 Name (_S5, Package (0x04) { 0x07, 0x07, 0x07, 0x07 })
55 Name (_HID, EisaId ("PNP0A03"))
56 Name (_ADR, 0x00000000)
59 Name (HCIN, 0x00) // HC1
61 Method (_BBN, 0, NotSerialized)
63 Return (GBUS (GHCN(HCIN), GHCL(HCIN)))
66 Method (_CRS, 0, NotSerialized)
68 Name (BUF0, ResourceTemplate ()
70 IO (Decode16, 0x0CF8, 0x0CF8, 0x01, 0x08) //CF8-CFFh
71 IO (Decode16, 0xC000, 0xC000, 0x01, 0x80) //8000h
72 IO (Decode16, 0xC080, 0xC080, 0x01, 0x80) //8080h
74 WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
75 0x0000, // Address Space Granularity
76 0x8100, // Address Range Minimum
77 0xFFFF, // Address Range Maximum
78 0x0000, // Address Translation Offset
80 , TypeStatic) //8100h-FFFFh
82 DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
83 0x00000000, // Address Space Granularity
84 0x000C0000, // Address Range Minimum
85 0x00000000, // Address Range Maximum
86 0x00000000, // Address Translation Offset
88 , AddressRangeMemory, TypeStatic) //Video BIOS A0000h-C7FFFh
90 Memory32Fixed (ReadWrite, 0x000D8000, 0x00004000)//USB HC D8000-DBFFF
92 WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
93 0x0000, // Address Space Granularity
94 0x0000, // Address Range Minimum
95 0x03AF, // Address Range Maximum
96 0x0000, // Address Translation Offset
98 , TypeStatic) //0-CF7h
100 WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
101 0x0000, // Address Space Granularity
102 0x03E0, // Address Range Minimum
103 0x0CF7, // Address Range Maximum
104 0x0000, // Address Translation Offset
106 , TypeStatic) //0-CF7h
109 CreateDWordField (BUF0, 0x3E, VLEN)
110 CreateDWordField (BUF0, 0x36, VMAX)
111 CreateDWordField (BUF0, 0x32, VMIN)
112 ShiftLeft (VGA1, 0x09, Local0)
113 Add (VMIN, Local0, VMAX)
116 Concatenate (\_SB.GMEM (0x00, \_SB.PCI0.SBLK), BUF0, Local1)
117 Concatenate (\_SB.GIOR (0x00, \_SB.PCI0.SBLK), Local1, Local2)
118 Concatenate (\_SB.GWBN (0x00, \_SB.PCI0.SBLK), Local2, Local3)
122 Include ("pci0_hc.asl")
127 Name (_HID, "PNP0A03")
128 Name (_ADR, 0x00000000)
130 Method (_STA, 0, NotSerialized)
132 Return (\_SB.PCI0.CBST)
134 Method (_BBN, 0, NotSerialized)
136 Return (\_SB.PCI0.CBB) // 0 or 0xff
142 Name (_HID, "PNP0A03")
143 Name (_ADR, 0x00000000)
145 Method (_STA, 0, NotSerialized)
147 Return (\_SB.PCI0.CBS2)
149 Method (_BBN, 0, NotSerialized)
151 Return (\_SB.PCI0.CBB2)// 0xfe
158 Method (_L08, 0, NotSerialized)
160 Notify (\_SB.PCI0, 0x02) //PME# Wakeup
163 Method (_L0F, 0, NotSerialized)
165 Notify (\_SB.PCI0.TP2P.USB0, 0x02) //USB Wakeup
168 Method (_L22, 0, NotSerialized) // GPIO18 (LID) - Pogo 0 Bridge B
170 Notify (\_SB.PCI0.PG0B, 0x02)
173 Method (_L29, 0, NotSerialized) // GPIO25 (Suspend) - Pogo 0 Bridge A
175 Notify (\_SB.PCI0.PG0A, 0x02)
179 Method (_PTS, 1, NotSerialized)
181 Or (Arg0, 0xF0, Local0)
185 // Method (_WAK, 1, NotSerialized)
187 // Or (Arg0, 0xE0, Local0)
188 // Store (Local0, DBG1)
191 Name (PICF, 0x00) //Flag Variable for PIC vs. I/O APIC Mode
192 Method (_PIC, 1, NotSerialized) //PIC Flag and Interface Method
197 OperationRegion (DEBG, SystemIO, 0x80, 0x01)
198 Field (DEBG, ByteAcc, Lock, Preserve)
203 OperationRegion (EXTM, SystemMemory, 0x000FF83C, 0x04)
204 Field (EXTM, WordAcc, Lock, Preserve)
209 OperationRegion (VGAM, SystemMemory, 0x000C0002, 0x01)
210 Field (VGAM, ByteAcc, Lock, Preserve)
215 OperationRegion (GRAM, SystemMemory, 0x0400, 0x0100)
216 Field (GRAM, ByteAcc, Lock, Preserve)
222 OperationRegion (GSTS, SystemIO, 0xC028, 0x02)
223 Field (GSTS, ByteAcc, NoLock, Preserve)
229 OperationRegion (Z007, SystemIO, 0x21, 0x01)
230 Field (Z007, ByteAcc, NoLock, Preserve)
235 OperationRegion (Z009, SystemIO, 0xA1, 0x01)
236 Field (Z009, ByteAcc, NoLock, Preserve)
241 Include ("amdfam10_util.asl")