2 * Minimalist ACPI DSDT table for EPIA-N / NL
3 * Basic description of some hardware resources to allow
4 * interrupt assignments to be done. This is expected to be included
5 * into _SB.PCI0 namespace
6 * (C) Copyright 2009 Jon Harrison <jon.harrison@blueyonder.co.uk>
11 /* Basic description of the VT8237R LPC Interface
12 * PCI Configuration Space
17 Name (_ADR, 0x00110000)
18 OperationRegion (USBC, PCI_Config, 0x50, 0x02)
21 Field (\_SB.PCI0.VT8R.USBC, ByteAcc, NoLock, Preserve)
27 OperationRegion (VTSB, PCI_Config, 0x00, 0xE8)
30 Field (\_SB.PCI0.VT8R.VTSB, ByteAcc, NoLock, Preserve)
81 /* Basic Description of Serial ATA Interface */
84 Name (_ADR, 0x000F0000)
85 Method (_STA, 0, NotSerialized)
87 If (LNotEqual (\_SB.PCI0.SATA.VID, 0x1106))
93 If (LEqual (\_SB.PCI0.SATA.CMDR, 0x00))
104 OperationRegion (SAPR, PCI_Config, 0x00, 0xC2)
105 Field (SAPR, ByteAcc, NoLock, Preserve)
118 /* Basic Description of Parallel ATA Interface */
119 /* An some initialisation of the interface */
122 Name (_ADR, 0x000F0001)
124 Method (_STA, 0, NotSerialized)
126 If (LNotEqual (\_SB.PCI0.PATA.VID, 0x1106))
133 /* Check if the Interface is Enabled */
134 If (LEqual (\_SB.PCI0.PATA.CMDR, 0x00))
145 /* ACPI Spec says to check that regions are accessible */
146 /* before trying to access them */
147 Method (_REG, 2, NotSerialized)
149 /* Arg0 = Operating Region (0x02 == PCI_Config) */
150 If (LEqual (Arg0, 0x02))
152 /* Arg1 = Handler Connection Mode (0x01 == Connect) */
157 #include "pata_methods.asl"
160 OperationRegion (PAPR, PCI_Config, 0x00, 0xC2)
161 Field (PAPR, ByteAcc, NoLock, Preserve)
197 Method (_STA, 0, NotSerialized)
199 If (LNotEqual (\_SB.PCI0.PATA.EPCH, 0x01))
212 Method (_GTF, 0, NotSerialized)
214 Return (GTF (0x00, PMUE, PMUT, PMPT))
221 Method (_GTF, 0, NotSerialized)
223 Return (GTF (0x01, PSUE, PSUT, PSPT))
231 Method (_STA, 0, NotSerialized)
233 If (LNotEqual (ATFL, 0x02))
235 If (LEqual (\_SB.PCI0.SATA.EPHY, 0x01))
241 If (LNotEqual (\_SB.PCI0.PATA.ESCH, 0x01))
253 If (LEqual (ATFL, 0x02))
255 If (LNotEqual (\_SB.PCI0.PATA.ESCH, 0x01))
274 Method (_GTF, 0, NotSerialized)
276 Return (GTF (0x02, SMUE, SMUT, SMPT))
283 Method (_GTF, 0, NotSerialized)
285 Return (GTF (0x03, SSUE, SSUT, SSPT))
289 } // End of PATA Device
292 /* Implement Basic USB Presence detect and */
293 /* Power Management Event mask */
296 Name (_ADR, 0x00100000)
297 Name (_PRW, Package (0x02)
303 OperationRegion (U2F0, PCI_Config, 0x00, 0xC2)
304 Field (U2F0, ByteAcc, NoLock, Preserve)
315 Method (_STA, 0, NotSerialized)
317 If (LNotEqual (\_SB.PCI0.USB0.VID, 0x1106))
323 If (LEqual (\_SB.PCI0.USB0.CMDR, 0x00))
337 Name (_ADR, 0x00100001)
338 Name (_PRW, Package (0x02)
344 OperationRegion (U2F1, PCI_Config, 0x00, 0xC2)
345 Field (U2F1, ByteAcc, NoLock, Preserve)
356 Method (_STA, 0, NotSerialized)
358 If (LNotEqual (\_SB.PCI0.USB1.VID, 0x1106))
364 If (LEqual (\_SB.PCI0.USB1.CMDR, 0x00))
378 Name (_ADR, 0x00100002)
379 Name (_PRW, Package (0x02)
385 OperationRegion (U2F2, PCI_Config, 0x00, 0xC2)
386 Field (U2F2, ByteAcc, NoLock, Preserve)
397 Method (_STA, 0, NotSerialized)
399 If (LNotEqual (\_SB.PCI0.USB2.VID, 0x1106))
405 If (LEqual (\_SB.PCI0.USB2.CMDR, 0x00))
419 Name (_ADR, 0x00100003)
420 Name (_PRW, Package (0x02)
426 OperationRegion (U2F3, PCI_Config, 0x00, 0xC2)
427 Field (U2F3, ByteAcc, NoLock, Preserve)
438 Method (_STA, 0, NotSerialized)
440 If (LNotEqual (\_SB.PCI0.USB3.VID, 0x1106))
446 If (LEqual (\_SB.PCI0.USB3.CMDR, 0x00))
460 Name (_ADR, 0x00100004)
461 Name (_PRW, Package (0x02)
467 OperationRegion (U2F4, PCI_Config, 0x00, 0xC2)
468 Field (U2F4, ByteAcc, NoLock, Preserve)
479 Method (_STA, 0, NotSerialized)
481 If (LNotEqual (\_SB.PCI0.USB4.VID, 0x1106))
487 If (LEqual (\_SB.PCI0.USB4.CMDR, 0x00))
499 /* Basic Definition of Ethernet Interface */
502 Name (_ADR, 0x00120000)
503 Name (_PRW, Package (0x02)
509 OperationRegion (NIC0, PCI_Config, 0x00, 0xC2)
510 Field (NIC0, ByteAcc, NoLock, Preserve)
519 Method (_STA, 0, NotSerialized)
521 If (LNotEqual (\_SB.PCI0.NIC0.VID, 0x1106))
527 If (LEqual (\_SB.PCI0.NIC0.CMDR, 0x00))
539 /* Very Basic Definition of Sound Controller */
542 Name (_ADR, 0x00110005)
543 Name (_PRW, Package (0x02)