1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 OperationRegion (TMEM, PCI_Config, 0x00, 0x0100)
4 Field (TMEM, ByteAcc, NoLock, Preserve)
17 Name (MTBL, Package (0x10)
36 Name (ERNG, Package (0x0D)
52 Name (PAMB, Buffer (0x07){})
56 Name (_HID, EisaId ("PNP0003") /* IO-APIC Interrupt Controller */)
57 Name (_CRS, ResourceTemplate ()
59 Memory32Fixed (ReadOnly, 0xFEC00000, 0x00100000)
65 Name (_ADR, 0x001F0000)
66 Name (_DDN, "LPC Bus Device")
70 Name (_HID, EisaId ("PNP0200") /* PC-class DMA Controller */)
71 Name (_CRS, ResourceTemplate ()
74 0x0000, // Range Minimum
75 0x0000, // Range Maximum
80 0x0081, // Range Minimum
81 0x0081, // Range Maximum
86 0x0087, // Range Minimum
87 0x0087, // Range Maximum
92 0x0089, // Range Minimum
93 0x0089, // Range Maximum
98 0x008F, // Range Minimum
99 0x008F, // Range Maximum
104 0x00C0, // Range Minimum
105 0x00C0, // Range Maximum
109 DMA (Compatibility, NotBusMaster, Transfer8, )
116 Name (_HID, EisaId ("PNP0B00") /* AT Real-Time Clock */)
117 Name (_CRS, ResourceTemplate ()
120 0x0070, // Range Minimum
121 0x0070, // Range Maximum
126 0x0072, // Range Minimum
127 0x0072, // Range Maximum
132 0x0074, // Range Minimum
133 0x0074, // Range Maximum
144 Name (_HID, EisaId ("PNP0000") /* 8259-compatible Programmable Interrupt Controller */)
145 Name (_CRS, ResourceTemplate ()
148 0x0020, // Range Minimum
149 0x0020, // Range Maximum
154 0x00A0, // Range Minimum
155 0x00A0, // Range Maximum
160 0x04D0, // Range Minimum
161 0x04D0, // Range Maximum
170 Name (_HID, EisaId ("PNP0C04") /* x87-compatible Floating Point Processing Unit */)
171 Name (_CRS, ResourceTemplate ()
174 0x00F0, // Range Minimum
175 0x00F0, // Range Maximum
186 Name (_HID, EisaId ("PNP0100"))
187 Name (_CRS, ResourceTemplate ()
190 0x0040, // Range Minimum
191 0x0040, // Range Maximum
196 0x0050, // Range Minimum
197 0x0050, // Range Maximum
208 Name (_HID, EisaId ("PNP0800"))
209 Name (_CRS, ResourceTemplate ()
212 0x0061, // Range Minimum
213 0x0061, // Range Maximum
222 Name (_HID, EisaId ("PNP0C02"))
223 Name (_CRS, ResourceTemplate ()
226 0x0500, // Range Minimum
227 0x0500, // Range Maximum
232 0x0400, // Range Minimum
233 0x0400, // Range Maximum
238 0x0010, // Range Minimum
239 0x0010, // Range Maximum
244 0x0080, // Range Minimum
245 0x0080, // Range Maximum
250 0x0084, // Range Minimum
251 0x0084, // Range Maximum
256 0x0088, // Range Minimum
257 0x0088, // Range Maximum
262 0x008C, // Range Minimum
263 0x008C, // Range Maximum
268 0x0090, // Range Minimum
269 0x0090, // Range Maximum
274 0x0600, // Range Minimum
275 0x0600, // Range Maximum
280 0x0CA0, // Range Minimum
281 0x0CA0, // Range Maximum
286 0x0CA4, // Range Minimum
287 0x0CA4, // Range Maximum
291 Memory32Fixed (ReadOnly,
292 0xFF000000, // Address Base
293 0x01000000, // Address Length
300 Name (_HID, EisaId ("PNP0103") /* HPET System Timer */)
301 Method (_STA, 0, NotSerialized) // _STA: Status
306 Name (CRS0, ResourceTemplate ()
308 Memory32Fixed (ReadWrite,
309 0xFED00000, // Address Base
310 0x00000400, // Address Length
313 Name (CRS1, ResourceTemplate ()
315 Memory32Fixed (ReadWrite,
316 0xFED01000, // Address Base
317 0x00000400, // Address Length
320 Name (CRS2, ResourceTemplate ()
322 Memory32Fixed (ReadWrite,
323 0xFED02000, // Address Base
324 0x00000400, // Address Length
327 Name (CRS3, ResourceTemplate ()
329 Memory32Fixed (ReadWrite,
330 0xFED03000, // Address Base
331 0x00000400, // Address Length
334 Method (_CRS, 0, Serialized)
336 Return (CRS0) /* \_SB_.PC00.HPET.CRS0 */
343 Name (_ADR, 0x001F0003)
344 OperationRegion (HDAR, PCI_Config, 0x00, 0x0100)
345 Field (HDAR, WordAcc, NoLock, Preserve)
350 Name (_S0W, 0x03) // _S0W: S0 Device Wake State
351 Method (_DSW, 3, NotSerialized) // _DSW: Device Sleep Wake
358 OperationRegion (PMIO, SystemIO, ACPI_BASE_ADDRESS, 0xFF)
359 Field (PMIO, ByteAcc, NoLock, Preserve) {
360 Offset(0x34), /* 0x34, SMI/SCI STS*/
362 SGCS, 1, /* SWGPE STS BIT */
364 Offset(0x40), /* 0x40, SMI/SCI_EN*/
366 SGPC, 1, /* SWGPE CTRL BIT */
368 Offset(0x6C), /* 0x6C, General Purpose Event 0 Status [127:96] */
370 SGPS, 1, /* SWGPE STATUS */
372 Offset(0x7C), /* 0x7C, General Purpose Event 0 Enable [127:96] */
374 SGPE, 1 /* SWGPE ENABLE */
378 Name (_HID, EisaId ("PNP0C33"))
380 Name (_DDN, "RAS Error Device Controller")
381 Printf ("Initialized RAS Device PNP0C33")
384 Printf ("SWGPE Method _L62")
385 SGPC = 0 // clear SWGPE enable
386 SGPS = 1 // clear SWGPE Status
392 #include "pch_rp.asl"