/* * Intel ACPI Component Architecture * AML Disassembler version 20050513 * * Disassembly of dsdt.asl, Wed Oct 12 02:20:14 2005 */ DefinitionBlock ("DSDT.aml", "DSDT", 1, "FIC ", "AT11 ", 100925440) { OperationRegion (PRT0, SystemIO, 0x80, One) Field (PRT0, ByteAcc, Lock, Preserve) { PO80, 8 } OperationRegion (IO_T, SystemIO, 0x0800, 0x10) Field (IO_T, ByteAcc, NoLock, Preserve) { Offset (0x02), Offset (0x04), Offset (0x06), Offset (0x08), TRP0, 8, Offset (0x0A), Offset (0x0B), Offset (0x0C), Offset (0x0D), Offset (0x0E), Offset (0x0F), Offset (0x10) } OperationRegion (GPIO, SystemIO, 0x1180, 0x3C) Field (GPIO, ByteAcc, NoLock, Preserve) { GU00, 8, GU01, 8, GU02, 8, GU03, 8, GIO0, 8, GIO1, 8, GIO2, 8, GIO3, 8, Offset (0x0C), GL00, 8, GL01, 8, , 5, GP21, 1, , 1, GP23, 1, GP24, 1, GP25, 1, , 2, GP28, 1, Offset (0x10), Offset (0x18), GB00, 8, GB01, 8, GB02, 8, GB03, 8, Offset (0x2C), GIV0, 8, GIV1, 8, GIV2, 8, GIV3, 8, GU04, 8, GU05, 8, GU06, 8, GU07, 8, GIO4, 8, GIO5, 8, GIO6, 8, GIO7, 8, , 1, GP33, 1, Offset (0x39), GL05, 8, GL06, 8, GL07, 8 } OperationRegion (MNVS, SystemMemory, 0x7F6EBE4C, 0x0100) Field (MNVS, AnyAcc, Lock, Preserve) { OSYS, 16, SMIF, 8, PRM0, 8, PRM1, 8, SCIF, 8, PRM2, 8, PRM3, 8, LCKF, 8, PRM4, 8, PRM5, 8, P80D, 32, LIDS, 8, PWRS, 8, DBGS, 8, Offset (0x14), ACTT, 8, PSVT, 8, TC1V, 8, TC2V, 8, TSPV, 8, CRTT, 8, Offset (0x1E), BNUM, 8, B0SC, 8, B1SC, 8, B2SC, 8, B0SS, 8, B1SS, 8, B2SS, 8, Offset (0x28), APIC, 8, CPUL, 8, CPUH, 8, GV3E, 8, HTTE, 8, WTHT, 8, Offset (0x32), NATP, 8, CMAP, 8, CMBP, 8, LPTP, 8, FDCP, 8, CMCP, 8, CIRP, 8, Offset (0x3C), IGDS, 8, TLST, 8, CADL, 8, PADL, 8, CSTE, 16, NSTE, 16, SSTE, 16, NDID, 8, DID1, 32, DID2, 32, DID3, 32, DID4, 32, DID5, 32, Offset (0x67), BLCS, 8, BRTL, 8, ALSE, 8, ALAF, 8, LLOW, 8, LHIH, 8, Offset (0x6E), EMAE, 8, EMAP, 16, EMAL, 16, Offset (0x78), D400, 8, Offset (0x82), GTF0, 56, GTF2, 56, IDEM, 8 } OperationRegion (RCRB, SystemMemory, 0xF0008000, 0x4000) Field (RCRB, DWordAcc, Lock, Preserve) { Offset (0x1000), Offset (0x3000), Offset (0x3404), HPAS, 2, , 5, HPAE, 1, Offset (0x3418), , 1, PATD, 1, SATD, 1, SMBD, 1, AZAD, 1, A97D, 1, Offset (0x341A), RP1D, 1, RP2D, 1, RP3D, 1, RP4D, 1 } Mutex (MUTX, 0x00) Name (_S0, Package (0x03) { Zero, Zero, Zero }) Name (_S3, Package (0x03) { 0x05, 0x05, Zero }) Name (_S4, Package (0x03) { 0x06, 0x06, Zero }) Name (_S5, Package (0x03) { 0x07, 0x07, Zero }) Scope (_PR) { Processor (CPU0, 0x00, 0x00001010, 0x06) {} } Name (FWSO, "FWSO") Name (DSEN, One) Name (ECON, Zero) Name (GPIC, Zero) Name (CTYP, Zero) Name (L01C, Zero) Name (L01W, One) Method (_PIC, 1, NotSerialized) { Store (Arg0, GPIC) } Method (_PTS, 1, NotSerialized) { If (LEqual (Arg0, 0x03)) { Store (0x60, SMIF) Store (Zero, TRP0) And (\_SB.PCI0.LPCB.PMRD (0xFD), One, Local3) If (Local3) {} Else { And (\_SB.PCI0.LPCB.PMRD (0xB8), 0xFE, Local1) \_SB.PCI0.LPCB.PMWT (0xB8, Local1) } Store (0x03, PO80) } Store (0x66, SMIF) Store (Zero, TRP0) } Method (_WAK, 1, NotSerialized) { Store (One, \_TZ.THRM.THIN) If (LEqual (Arg0, 0x03)) { Store (0x61, SMIF) Store (Zero, TRP0) And (\_SB.PCI0.LPCB.PMRD (0xFD), One, Local3) If (Local3) { \_SB.PCI0.LPCB.PMWT (0xFD, Zero) } Else { Or (\_SB.PCI0.LPCB.PMRD (0xB8), One, Local1) \_SB.PCI0.LPCB.PMWT (0xB8, Local1) \_SB.PCI0.LPCB.PMWT (0xFD, Zero) } } If (LEqual (Arg0, 0x04)) { Notify (\_SB.PWRB, 0x02) } Store (0x65, SMIF) Store (Zero, TRP0) \_TZ.THRM.TCHK () Store (Zero, PO80) } Scope (_GPE) { Mutex (GLCK, 0x00) Method (_L03, 0, NotSerialized) { Notify (\_SB.PCI0.USB1, 0x02) } Method (_L04, 0, NotSerialized) { Notify (\_SB.PCI0.USB2, 0x02) } Method (_L05, 0, NotSerialized) { Notify (\_SB.PCI0, 0x02) Notify (\_SB.PWRB, 0x02) } Method (_L08, 0, NotSerialized) { Acquire (GLCK, 0xFFFF) Store (\_SB.PCI0.LPCB.PMRD (0xA8), Local0) Store (\_SB.PCI0.LPCB.PMRD (0xA9), Local1) Store (\_SB.PCI0.LPCB.PMRD (0xAA), Local2) If (And (Local0, 0x40, Local3)) { And (\_SB.PCI0.LPCB.PMRD (0xA8), 0xBF, Local7) \_SB.PCI0.LPCB.PMWT (0xA8, Local7) } If (And (Local0, One, Local3)) { Store (One, \_SB.LID.LIDF) Notify (\_SB.LID, 0x80) Store (\_SB.PCI0.LPCB.PMRD (0xB8), Local4) Store (\_SB.PCI0.LPCB.PMRD (0xB7), Local5) And (Local4, 0xFE, Local4) \_SB.PCI0.LPCB.PMWT (0xB8, Local4) If (And (\_SB.PCI0.LPCB.PMRD (0xB5), One)) { Store (\_SB.PCI0.LPCB.PMRD (0xB7), Local7) And (Local7, 0xFE, Local7) \_SB.PCI0.LPCB.PMWT (0xB7, Local7) \_SB.PCI0.LPCB.PMWT (0xFD, Zero) Store (One, \_SB.LID.LIDF) } Else { Store (\_SB.PCI0.LPCB.PMRD (0xB7), Local7) Or (Local7, One, Local7) \_SB.PCI0.LPCB.PMWT (0xB7, Local7) \_SB.PCI0.LPCB.PMWT (0xFD, One) Store (Zero, \_SB.LID.LIDF) } Store (\_SB.PCI0.LPCB.PMRD (0xA8), Local6) And (Local6, 0xFE, Local6) \_SB.PCI0.LPCB.PMWT (0xA8, Local6) Or (Local4, One, Local4) \_SB.PCI0.LPCB.PMWT (0xB8, Local4) Notify (\_SB.LID, 0x80) } And (\_SB.PCI0.LPCB.PMRD (0xAC), 0xEF, Local7) \_SB.PCI0.LPCB.PMWT (0xAC, Local7) Release (GLCK) } Method (_L0B, 0, NotSerialized) { Notify (\_SB.PCI0, 0x02) Notify (\_SB.PWRB, 0x02) } Method (_L0C, 0, NotSerialized) { Notify (\_SB.PCI0.USB3, 0x02) } Method (_L0D, 0, NotSerialized) { Notify (\_SB.PCI0.USB7, 0x02) } Method (_L0E, 0, NotSerialized) { Notify (\_SB.PCI0.USB4, 0x02) } Method (_L18, 0, NotSerialized) { \_SB.PCI0.LPCB.PMWT (0xF0, Zero) Store (0x62, SMIF) Store (Zero, TRP0) If (LEqual (\_SB.PCI0.LPCB.PMRD (0xF0), 0xF3)) { \_SB.PCI0.LPCB.PMWT (0xF0, Zero) Store (One, TLST) HKDS (0x0A) } } Method (_L1C, 0, NotSerialized) { Acquire (GLCK, 0xFFFF) Store (\_SB.PCI0.LPCB.PMRD (0xAB), Local0) Store (\_SB.PCI0.LPCB.PMRD (0xAF), Local4) And (Local4, 0x04, Local7) If (LNot (LEqual (Local7, Zero))) { \_SB.PCI0.LPCB.PMMW (0x043F, 0xAA) \_SB.PCI0.LPCB.PMMW (0x01E8, Zero) Store (One, \_TZ.THRM.TERR) } If (LNot (LLess (Local4, One))) { \_TZ.THRM.TCHK () } If (And (Local0, One, Local3)) { Store (0x63, SMIF) Store (Zero, TRP0) Notify (\_SB.ACAD, 0x80) And (\_SB.PCI0.LPCB.PMRD (0xAB), 0xFE, Local2) \_SB.PCI0.LPCB.PMWT (0xAB, Local2) } If (And (Local0, 0x02, Local3)) { Notify (\_SB.ACAD, 0x80) Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local1) Store (\_SB.PCI0.LPCB.PMRD (0xF1), Local4) If (LNot (LEqual (And (Local1, One, Local3), And (Local4, One, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x81) } If (LNot (LEqual (And (Local1, 0x02, Local3), And (Local4, 0x02, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } If (LNot (LEqual (And (Local1, 0x04, Local3), And (Local4, 0x04, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } If (LNot (LEqual (And (Local1, 0x08, Local3), And (Local4, 0x08, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } If (LNot (LEqual (And (Local1, 0x10, Local3), And (Local4, 0x10, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } If (LNot (LEqual (And (Local1, 0x20, Local3), And (Local4, 0x20, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } If (LNot (LEqual (And (Local1, 0x40, Local3), And (Local4, 0x40, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } If (LNot (LEqual (And (Local1, 0x80, Local3), And (Local4, 0x80, Local5)))) { Store (\_SB.PCI0.LPCB.PMRD (0xA1), Local6) \_SB.PCI0.LPCB.PMWT (0xF1, Local6) Notify (\_SB.BAT0, 0x80) } And (\_SB.PCI0.LPCB.PMRD (0xAB), 0xFD, Local2) \_SB.PCI0.LPCB.PMWT (0xAB, Local2) } Release (GLCK) } } Method (GETB, 3, Serialized) { Multiply (Arg0, 0x08, Local0) Multiply (Arg1, 0x08, Local1) CreateField (Arg2, Local0, Local1, TBF3) Return (TBF3) } Method (HKDS, 1, Serialized) { If (LEqual (Zero, DSEN)) { Store (Arg0, SMIF) Store (Zero, TRP0) If (LEqual (SMIF, Zero)) { If (LNot (LEqual (CADL, PADL))) { Store (CADL, PADL) If (LEqual (OSYS, 0x07D1)) { Notify (\_SB.PCI0, Zero) } Else { Notify (\_SB.PCI0.GFX0, Zero) } Sleep (0x02EE) } Notify (\_SB.PCI0.GFX0, 0x80) } } If (LEqual (One, DSEN)) { Store (Increment (Arg0), SMIF) Store (Zero, TRP0) If (LEqual (SMIF, Zero)) { Notify (\_SB.PCI0.GFX0, 0x81) } } } Scope (_TZ) { Mutex (TZ0, 0x00) PowerResource (FN10, 0x00, 0x0000) { Method (_ON, 0, NotSerialized) { Or (\_SB.PCI0.LPCB.PMRD (0xFA), 0x03, Local0) \_SB.PCI0.LPCB.PMWT (0xFA, Local0) Store (0x64, SMIF) Store (Zero, TRP0) Store (0xF0, PO80) } Method (_OFF, 0, NotSerialized) { Store (\_SB.PCI0.LPCB.PMRD (0xFA), Local0) And (Local0, 0xFFFFFFFD, Local0) \_SB.PCI0.LPCB.PMWT (0xFA, Local0) } Method (_STA, 0, NotSerialized) { And (\_SB.PCI0.LPCB.PMRD (0xFA), 0x02, Local7) ShiftRight (Local7, One, Local7) Return (Local7) } } PowerResource (FN11, 0x00, 0x0000) { Method (_ON, 0, NotSerialized) { Or (\_SB.PCI0.LPCB.PMRD (0xFA), One, Local0) \_SB.PCI0.LPCB.PMWT (0xFA, Local0) Store (0x64, SMIF) Store (Zero, TRP0) Store (0xF2, PO80) } Method (_OFF, 0, NotSerialized) { Store (\_SB.PCI0.LPCB.PMRD (0xFA), Local0) And (Local0, 0xFFFFFFFC, Local0) \_SB.PCI0.LPCB.PMWT (0xFA, Local0) Store (0x64, SMIF) Store (Zero, TRP0) Store (0xF3, PO80) } Method (_STA, 0, NotSerialized) { And (\_SB.PCI0.LPCB.PMRD (0xFA), One, Local7) ShiftRight (Local7, Zero, Local7) Return (Local7) } } Device (FN1) { Name (_HID, EisaId ("PNP0C0B")) Name (_UID, One) Name (_PR0, Package (0x01) { FN10 }) } Device (FN2) { Name (_HID, EisaId ("PNP0C0B")) Name (_UID, 0x02) Name (_PR0, Package (0x01) { FN11 }) } ThermalZone (THRM) { Name (INIT, Zero) Name (MODE, Zero) Name (THRO, Zero) Name (HILM, Package (0x04) { 0x37, 0x46, 0x62, 0x69 }) Name (LOLM, Package (0x04) { Zero, 0x2D, 0x3C, 0x55 }) Name (TERR, Zero) Name (TMPP, Zero) Method (_CRT, 0, NotSerialized) { Store (DerefOf (Index (HILM, 0x03)), Local0) Add (Local0, 0x0111, Local0) Multiply (Local0, 0x0A, Local0) Return (Local0) } Method (_PSV, 0, NotSerialized) { Store (DerefOf (Index (LOLM, 0x03)), Local0) Add (Local0, 0x0112, Local0) Multiply (Local0, 0x0A, Local0) Return (Local0) } Name (_PSL, Package (0x01) { \_PR.CPU0 }) Method (_AC0, 0, NotSerialized) { If (SPDF) { Add (DerefOf (Index (HILM, 0x02)), DerefOf (Index (LOLM, 0x03)), Local1) } Else { Add (DerefOf (Index (HILM, One)), DerefOf (Index (LOLM, 0x02)), Local1) } Multiply (Local1, 0x0A, Local1) Store (Divide (Local1, 0x02, ), Local0) Add (Local0, 0x0AAA, Local0) Return (Local0) } Name (_AL0, Package (0x01) { FN1 }) Method (_AC1, 0, NotSerialized) { If (SPDF) { Add (DerefOf (Index (HILM, One)), DerefOf (Index (LOLM, 0x02)), Local1) } Else { Add (DerefOf (Index (HILM, Zero)), DerefOf (Index (LOLM, One)), Local1) } Multiply (Local1, 0x0A, Local1) Store (Divide (Local1, 0x02, ), Local0) Add (Local0, 0x0AAA, Local0) Return (Local0) } Name (_AL1, Package (0x01) { FN2 }) Method (_SCP, 1, NotSerialized) { If (INIT) { Store (Arg0, MODE) } Else { XOr (\_SB.ACAD.ACFG, One, MODE) Store (One, INIT) } TCHK () Notify (THRM, 0x81) } Method (_TMP, 0, NotSerialized) { If (THIN) { TCHK () } If (TERR) { Store (Zero, TERR) Store (DerefOf (Index (LOLM, 0x03)), Local0) Add (Local0, 0x0112, Local0) Multiply (Local0, 0x0A, Local0) Return (Local0) } Else { Store (\_SB.PCI0.LPCB.PMRD (0xE7), Local0) If (LLess (Local0, 0x03)) { \_SB.PCI0.LPCB.PMMW (0x043F, 0xAA) \_SB.PCI0.LPCB.PMMW (0x01E8, Zero) Return (0x0B72) } Multiply (Local0, 0x0A, Local0) Add (Local0, 0x0AAA, Local0) If (LGreater (Local0, 0x127A)) { Return (0x0B72) } Return (Local0) } } Name (_TC1, 0x03) Name (_TC2, One) Name (_TSP, 0x96) Name (THIN, One) Name (SPDF, Zero) Name (SKEY, Zero) Method (TCHK, 0, NotSerialized) { Acquire (TZ0, 0xFFFF) Store (\_SB.PCI0.LPCB.PMRD (0xFF), Local0) And (Local0, One, SPDF) And (Local0, 0x02, SKEY) And (Local0, 0xFD, Local0) \_SB.PCI0.LPCB.PMWT (0xFF, Local0) If (THIN) { Store (Zero, THIN) } Store (\_SB.PCI0.LPCB.PMRD (0xAF), Local7) And (Local7, 0x04, Local7) If (LNot (LEqual (Local7, Zero))) { \_SB.PCI0.LPCB.PMMW (0x043F, 0xAA) \_SB.PCI0.LPCB.PMMW (0x01E8, Zero) Store (One, TERR) } Else { Store (\_SB.PCI0.LPCB.PMRD (0xE7), Local1) If (LGreater (Local1, 0xC8)) { Store (0x14, Local1) } Store (Zero, Local3) While (LLess (Local3, 0x04)) { Store (DerefOf (Index (LOLM, Local3)), Local5) Store (DerefOf (Index (HILM, Local3)), Local6) If (LGreater (Local1, Local5)) { If (LLess (Local1, Local6)) { \_SB.PCI0.LPCB.PMWT (0xE4, Local6) \_SB.PCI0.LPCB.PMWT (0xE5, Local5) Add (Local3, 0x05, Local3) } } Increment (Local3) } } And (\_SB.PCI0.LPCB.PMRD (0xAD), 0xFE, Local5) \_SB.PCI0.LPCB.PMWT (0xAD, Local5) And (\_SB.PCI0.LPCB.PMRD (0xAF), 0xF8, Local5) \_SB.PCI0.LPCB.PMWT (0xAF, Local5) If (SKEY) { Notify (THRM, 0x81) } Notify (THRM, 0x80) Release (TZ0) } } } Method (GETP, 1, Serialized) { If (LEqual (And (Arg0, 0x09), Zero)) { Return (Ones) } If (LEqual (And (Arg0, 0x09), 0x08)) { Return (0x0384) } ShiftRight (And (Arg0, 0x0300), 0x08, Local0) ShiftRight (And (Arg0, 0x3000), 0x0C, Local1) Return (Multiply (0x1E, Subtract (0x09, Add (Local0, Local1)))) } Method (GDMA, 5, Serialized) { If (Arg0) { If (LAnd (Arg1, Arg4)) { Return (0x14) } If (LAnd (Arg2, Arg4)) { Return (Multiply (Subtract (0x04, Arg3), 0x0F)) } Return (Multiply (Subtract (0x04, Arg3), 0x1E)) } Return (Ones) } Method (GETT, 1, Serialized) { Return (Multiply (0x1E, Subtract (0x09, Add (And (ShiftRight (Arg0, 0x02), 0x03), And (Arg0, 0x03))))) } Method (GETF, 3, Serialized) { Name (TMPF, Zero) If (Arg0) { Or (TMPF, One, TMPF) } If (And (Arg2, 0x02)) { Or (TMPF, 0x02, TMPF) } If (Arg1) { Or (TMPF, 0x04, TMPF) } If (And (Arg2, 0x20)) { Or (TMPF, 0x08, TMPF) } If (And (Arg2, 0x4000)) { Or (TMPF, 0x10, TMPF) } Return (TMPF) } Method (SETP, 3, Serialized) { If (LGreater (Arg0, 0xF0)) { Return (0x08) } Else { If (And (Arg1, 0x02)) { If (LAnd (LNot (LGreater (Arg0, 0x78)), And (Arg2, 0x02))) { Return (0x2301) } If (LAnd (LNot (LGreater (Arg0, 0xB4)), And (Arg2, One))) { Return (0x2101) } } Return (0x1001) } } Method (SDMA, 1, Serialized) { If (LNot (LGreater (Arg0, 0x14))) { Return (One) } If (LNot (LGreater (Arg0, 0x1E))) { Return (0x02) } If (LNot (LGreater (Arg0, 0x2D))) { Return (One) } If (LNot (LGreater (Arg0, 0x3C))) { Return (0x02) } If (LNot (LGreater (Arg0, 0x5A))) { Return (One) } Return (Zero) } Method (SETT, 3, Serialized) { If (And (Arg1, 0x02)) { If (LAnd (LNot (LGreater (Arg0, 0x78)), And (Arg2, 0x02))) { Return (0x0B) } If (LAnd (LNot (LGreater (Arg0, 0xB4)), And (Arg2, One))) { Return (0x09) } } Return (0x04) } Scope (_SB) { Mutex (PSMX, 0x00) Device (ACAD) { Name (_HID, "ACPI0003") Name (ACFG, Zero) Name (_PCL, Package (0x01) { _SB }) Method (_PSR, 0, NotSerialized) { Acquire (PSMX, 0xFFFF) And (^^PCI0.LPCB.PMRD (0xA0), One, Local0) Store (Local0, ACFG) Store (Local0, PWRS) Release (PSMX) Return (ACFG) } Method (_STA, 0, NotSerialized) { Return (0x0F) } } Device (BAT0) { Name (_HID, EisaId ("PNP0C0A")) Name (_UID, One) Method (_STA, 0, NotSerialized) { Acquire (PSMX, 0xFFFF) And (^^PCI0.LPCB.PMRD (0xA1), One, Local0) Store (Local0, FSTA) Release (PSMX) If (LEqual (Local0, Zero)) { Return (0x0F) } Else { Return (0x1F) } } Method (_BIF, 0, NotSerialized) { And (^^PCI0.LPCB.PMRD (0xA1), One, Local0) If (Local0) { UPBI () } Else { IVBI () IVBS () } Store (Zero, FBIF) Return (PBIF) } Method (_BST, 0, NotSerialized) { UPBS () Return (PBST) } Method (IVBI, 0, NotSerialized) { Store (Ones, Index (PBIF, One)) Store (Ones, Index (PBIF, 0x02)) Store (Ones, Index (PBIF, 0x04)) Store ("Bad", Index (PBIF, 0x09)) Store ("Bad", Index (PBIF, 0x0A)) Store ("Bad", Index (PBIF, 0x0B)) Store ("Bad", Index (PBIF, 0x0C)) Store (One, FBIF) } Method (IVBS, 0, NotSerialized) { Store (Zero, Index (PBST, Zero)) Store (Ones, Index (PBST, One)) Store (Ones, Index (PBST, 0x02)) Store (Ones, Index (PBST, 0x03)) Store (One, FSTA) } Method (UPBI, 0, NotSerialized) { Acquire (PSMX, 0xFFFF) Store (^^PCI0.LPCB.PMRD (Zero), Local0) Store (^^PCI0.LPCB.PMRD (One), Local1) Multiply (Local1, 0x0100, Local2) Or (Local0, Local2, Local3) Store (Local3, Index (PBIF, Zero)) Store (^^PCI0.LPCB.PMRD (0x02), Local0) Store (^^PCI0.LPCB.PMRD (0x03), Local1) Store (^^PCI0.LPCB.PMRD (0x49), Local2) Multiply (Local1, 0x0100, Local3) Multiply (Local2, 0x00010000, Local4) Or (Local3, Local0, Local5) Or (Local4, Local5, Local6) Store (Local6, Index (PBIF, One)) Store (^^PCI0.LPCB.PMRD (0x04), Local0) Store (^^PCI0.LPCB.PMRD (0x05), Local1) Store (^^PCI0.LPCB.PMRD (0x4A), Local2) Multiply (Local1, 0x0100, Local3) Multiply (Local2, 0x00010000, Local4) Or (Local3, Local0, Local5) Or (Local4, Local5, Local6) Store (Local6, Index (PBIF, 0x02)) Store (^^PCI0.LPCB.PMRD (0x06), Local0) Store (^^PCI0.LPCB.PMRD (0x07), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBIF, 0x03)) Store (^^PCI0.LPCB.PMRD (0x08), Local0) Store (^^PCI0.LPCB.PMRD (0x09), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBIF, 0x04)) Store (^^PCI0.LPCB.PMRD (0x0A), Local0) Store (^^PCI0.LPCB.PMRD (0x0B), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBIF, 0x05)) Store (^^PCI0.LPCB.PMRD (0x0C), Local0) Store (^^PCI0.LPCB.PMRD (0x0D), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBIF, 0x06)) Store (^^PCI0.LPCB.PMRD (0x0E), Local0) Store (^^PCI0.LPCB.PMRD (0x0F), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBIF, 0x07)) Store (^^PCI0.LPCB.PMRD (0x10), Local0) Store (^^PCI0.LPCB.PMRD (0x11), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBIF, 0x08)) If (LEqual (^^PCI0.LPCB.PMRD (0x16), Zero)) { Store ("PC-VP-WP50/OP-570-76502", Index (PBIF, 0x09)) Store ("", Index (PBIF, 0x0A)) Store ("NiMH", Index (PBIF, 0x0B)) } Else { Store ("52SA3/SCSH", Index (PBIF, 0x09)) Store ("", Index (PBIF, 0x0A)) Store ("Lion", Index (PBIF, 0x0B)) } Store ("FIC ", Index (PBIF, 0x0C)) Release (PSMX) Return (PBIF) } Method (UPBS, 0, NotSerialized) { Acquire (PSMX, 0xFFFF) Store (^^PCI0.LPCB.PMRD (0x1A), Local0) Store (^^PCI0.LPCB.PMRD (0x1B), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBST, Zero)) Store (^^PCI0.LPCB.PMRD (0x1C), Local0) Store (^^PCI0.LPCB.PMRD (0x1D), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBST, One)) Store (^^PCI0.LPCB.PMRD (0x1E), Local0) Store (^^PCI0.LPCB.PMRD (0x1F), Local1) Store (^^PCI0.LPCB.PMRD (0x4B), Local2) Multiply (Local1, 0x0100, Local3) Multiply (Local2, 0x00010000, Local4) Or (Local3, Local0, Local5) Or (Local4, Local5, Local6) Store (Local6, Index (PBST, 0x02)) Store (^^PCI0.LPCB.PMRD (0x20), Local0) Store (^^PCI0.LPCB.PMRD (0x21), Local1) Multiply (Local1, 0x0100, Local2) Or (Local2, Local0, Local3) Store (Local3, Index (PBST, 0x03)) Release (PSMX) Return (PBST) } Method (_BTP, 1, NotSerialized) { Acquire (PSMX, 0xFFFF) Store (^^PCI0.LPCB.PMRD (0xB2), Local0) And (Local0, 0x7F, Local0) ^^PCI0.LPCB.PMWT (0xB2, Local0) Store (Arg0, Local0) Store (Local0, Local6) And (Local0, 0xFF, Local1) ^^PCI0.LPCB.PMWT (0x22, Local1) Store (Local6, Local0) And (Local0, 0xFF00, Local1) ShiftRight (Local1, 0x08, Local2) ^^PCI0.LPCB.PMWT (0x23, Local2) Store (Local6, Local0) And (Local0, 0x00FF0000, Local1) ShiftRight (Local1, 0x10, Local2) ^^PCI0.LPCB.PMWT (0x4C, Local2) Store (^^PCI0.LPCB.PMRD (0xF1), Local3) If (And (Local3, 0x80, Local3)) { Store (^^PCI0.LPCB.PMRD (0xA1), Local4) ^^PCI0.LPCB.PMWT (0xF1, Local4) } Store (^^PCI0.LPCB.PMRD (0xB2), Local0) Or (Local0, 0x80, Local0) ^^PCI0.LPCB.PMWT (0xB2, Local0) Release (PSMX) } Name (_PCL, Package (0x01) { _SB }) Name (FBIF, One) Name (FSTA, One) Name (GGFG, Zero) Name (PBIF, Package (0x0D) { One, 0x78, 0x64, One, 0x2580, 0x05, 0x05, One, One, "???", "???", "???", "???" }) Name (PBST, Package (0x04) { One, 0x78, 0x64, 0x2580 }) Name (PSTA, 0x1F) } Device (LID) { Name (_HID, EisaId ("PNP0C0D")) Name (LIDF, One) Method (_LID, 0, NotSerialized) { Return (LIDF) } Name (_PRW, Package (0x02) { 0x08, 0x03 }) } Device (PWRB) { Name (_HID, EisaId ("PNP0C0C")) Method (_STA, 0, NotSerialized) { Return (0x0B) } } Device (PCI0) { Method (_INI, 0, NotSerialized) { If (CondRefOf (_OSI, Local0)) { Store (0x07D1, OSYS) } Else { Store (0x07D0, OSYS) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } Name (_HID, EisaId ("PNP0A08")) Name (_CID, 0x030AD041) Name (_ADR, Zero) Name (_BBN, Zero) OperationRegion (HBUS, PCI_Config, 0x40, 0xC0) Field (HBUS, DWordAcc, NoLock, Preserve) { Offset (0x50), , 4, PM0H, 2, Offset (0x51), PM1L, 2, , 2, PM1H, 2, Offset (0x52), PM2L, 2, , 2, PM2H, 2, Offset (0x53), PM3L, 2, , 2, PM3H, 2, Offset (0x54), PM4L, 2, , 2, PM4H, 2, Offset (0x55), PM5L, 2, , 2, PM5H, 2, Offset (0x56), PM6L, 2, , 2, PM6H, 2, Offset (0x57), , 7, HENA, 1, Offset (0x5C), , 3, TOUD, 5 } Name (BUF0, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0x0000, // Address Space Granularity 0x0000, // Address Range Minimum 0x00FF, // Address Range Maximum 0x0000, // Address Translation Offset 0x0100,,,) DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Address Space Granularity 0x00000000, // Address Range Minimum 0x00000CF7, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00000CF8,,, , TypeStatic) IO (Decode16, 0x0CF8, 0x0CF8, 0x01, 0x08) DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Address Space Granularity 0x00000D00, // Address Range Minimum 0x0000FFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x0000F300,,, , TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000A0000, // Address Range Minimum 0x000BFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00020000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000C0000, // Address Range Minimum 0x000C3FFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000C4000, // Address Range Minimum 0x000C7FFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000C8000, // Address Range Minimum 0x000CBFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000CC000, // Address Range Minimum 0x000CFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000D0000, // Address Range Minimum 0x000D3FFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000D4000, // Address Range Minimum 0x000D7FFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000D8000, // Address Range Minimum 0x000DBFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000DC000, // Address Range Minimum 0x000DFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000E0000, // Address Range Minimum 0x000E3FFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000E4000, // Address Range Minimum 0x000E7FFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000E8000, // Address Range Minimum 0x000EBFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000EC000, // Address Range Minimum 0x000EFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00004000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000F0000, // Address Range Minimum 0x000FFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00010000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x00000000, // Address Range Minimum 0xFEBFFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00000000,,, , AddressRangeMemory, TypeStatic) }) Method (_CRS, 0, Serialized) { If (PM1L) { CreateDWordField (BUF0, 0x80, C0LN) Store (Zero, C0LN) } If (LEqual (PM1L, One)) { CreateBitField (BUF0, 0x0378, C0RW) Store (Zero, C0RW) } If (PM1H) { CreateDWordField (BUF0, 0x9B, C4LN) Store (Zero, C4LN) } If (LEqual (PM1H, One)) { CreateBitField (BUF0, 0x0450, C4RW) Store (Zero, C4RW) } If (PM2L) { CreateDWordField (BUF0, 0xB6, C8LN) Store (Zero, C8LN) } If (LEqual (PM2L, One)) { CreateBitField (BUF0, 0x0528, C8RW) Store (Zero, C8RW) } If (PM2H) { CreateDWordField (BUF0, 0xD1, CCLN) Store (Zero, CCLN) } If (LEqual (PM2H, One)) { CreateBitField (BUF0, 0x0600, CCRW) Store (Zero, CCRW) } If (PM3L) { CreateDWordField (BUF0, 0xEC, D0LN) Store (Zero, D0LN) } If (LEqual (PM3L, One)) { CreateBitField (BUF0, 0x06D8, D0RW) Store (Zero, D0RW) } If (PM3H) { CreateDWordField (BUF0, 0x0107, D4LN) Store (Zero, D4LN) } If (LEqual (PM3H, One)) { CreateBitField (BUF0, 0x07B0, D4RW) Store (Zero, D4RW) } If (PM4L) { CreateDWordField (BUF0, 0x0122, D8LN) Store (Zero, D8LN) } If (LEqual (PM4L, One)) { CreateBitField (BUF0, 0x0888, D8RW) Store (Zero, D8RW) } If (PM4H) { CreateDWordField (BUF0, 0x013D, DCLN) Store (Zero, DCLN) } If (LEqual (PM4H, One)) { CreateBitField (BUF0, 0x0960, DCRW) Store (Zero, DCRW) } If (PM5L) { CreateDWordField (BUF0, 0x0158, E0LN) Store (Zero, E0LN) } If (LEqual (PM5L, One)) { CreateBitField (BUF0, 0x0A38, E0RW) Store (Zero, E0RW) } If (PM5H) { CreateDWordField (BUF0, 0x0173, E4LN) Store (Zero, E4LN) } If (LEqual (PM5H, One)) { CreateBitField (BUF0, 0x0B10, E4RW) Store (Zero, E4RW) } If (PM6L) { CreateDWordField (BUF0, 0x018E, E8LN) Store (Zero, E8LN) } If (LEqual (PM6L, One)) { CreateBitField (BUF0, 0x0BE8, E8RW) Store (Zero, E8RW) } If (PM6H) { CreateDWordField (BUF0, 0x01A9, ECLN) Store (Zero, ECLN) } If (LEqual (PM6H, One)) { CreateBitField (BUF0, 0x0CC0, ECRW) Store (Zero, ECRW) } If (PM0H) { CreateDWordField (BUF0, 0x01C4, F0LN) Store (Zero, F0LN) } If (LEqual (PM0H, One)) { CreateBitField (BUF0, 0x0D98, F0RW) Store (Zero, F0RW) } CreateDWordField (BUF0, 0x01D3, M1MN) CreateDWordField (BUF0, 0x01D7, M1MX) CreateDWordField (BUF0, 0x01DF, M1LN) ShiftLeft (TOUD, 0x1B, M1MN) Add (Subtract (M1MX, M1MN), One, M1LN) Return (BUF0) } Method (_PRT, 0, NotSerialized) { Return (Package (0x0A) { Package (0x04) { 0x0002FFFF, Zero, ^LPCB.LNKA, Zero }, Package (0x04) { 0x001CFFFF, Zero, ^LPCB.LNKB, Zero }, Package (0x04) { 0x001DFFFF, Zero, ^LPCB.LNKH, Zero }, Package (0x04) { 0x001DFFFF, One, ^LPCB.LNKD, Zero }, Package (0x04) { 0x001DFFFF, 0x02, ^LPCB.LNKC, Zero }, Package (0x04) { 0x001DFFFF, 0x03, ^LPCB.LNKA, Zero }, Package (0x04) { 0x001EFFFF, Zero, ^LPCB.LNKB, Zero }, Package (0x04) { 0x001EFFFF, One, ^LPCB.LNKE, Zero }, Package (0x04) { 0x001FFFFF, Zero, ^LPCB.LNKC, Zero }, Package (0x04) { 0x001FFFFF, One, ^LPCB.LNKD, Zero } }) } Device (PDRC) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, One) Name (_CRS, ResourceTemplate () { Memory32Fixed (ReadWrite, 0xE0000000, 0x10000000) Memory32Fixed (ReadWrite, 0xF0000000, 0x00004000) Memory32Fixed (ReadWrite, 0xF0004000, 0x00001000) Memory32Fixed (ReadWrite, 0xF0005000, 0x00001000) Memory32Fixed (ReadWrite, 0xF0008000, 0x00004000) Memory32Fixed (ReadWrite, 0xFED20000, 0x00070000) }) } Device (GFX0) { Name (_ADR, 0x00020000) OperationRegion (VNVS, SystemMemory, 0x7F6EBF4C, 0x00010000) Field (VNVS, AnyAcc, Lock, Preserve) { VBF1, 262144, VBF2, 262144 } Method (_DOS, 1, NotSerialized) { Store (And (Arg0, 0x03), DSEN) } Method (_DOD, 0, NotSerialized) { Return (Package (0x05) { 0x00010100, 0x00010200, 0x00010300, 0x00010400, 0x00010500 }) } Method (_ROM, 2, NotSerialized) { If (LNot (LLess (Arg0, 0x8000))) { Return (GETB (Subtract (Arg0, 0x8000), Arg1, VBF2)) } If (LGreater (Add (Arg0, Arg1), 0x8000)) { Subtract (0x8000, Arg0, Local0) Subtract (Arg1, Local0, Local1) Store (GETB (Arg0, Local0, VBF1), Local3) Store (GETB (Zero, Local1, VBF2), Local4) Concatenate (Local3, Local4, Local5) Return (Local5) } Return (GETB (Arg0, Arg1, VBF1)) } Device (CRT1) { Name (_ADR, 0x0100) Method (_DCS, 0, NotSerialized) { Store (One, SMIF) Store (Zero, TRP0) If (And (CSTE, 0x0101)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0101)) { Return (One) } Return (Zero) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (DTV1) { Name (_ADR, 0x0200) Method (_DCS, 0, NotSerialized) { Store (One, SMIF) Store (Zero, TRP0) If (And (CSTE, 0x0202)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0202)) { Return (One) } Return (Zero) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (DFP1) { Name (_ADR, 0x0300) Method (_DCS, 0, NotSerialized) { Store (One, SMIF) Store (Zero, TRP0) If (And (CSTE, 0x0404)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0404)) { Return (One) } Return (Zero) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (LFP1) { Name (_ADR, 0x0400) Method (_DCS, 0, NotSerialized) { Store (One, SMIF) Store (Zero, TRP0) If (And (CSTE, 0x0808)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x0808)) { Return (One) } Return (Zero) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } Device (DTV2) { Name (_ADR, 0x0500) Method (_DCS, 0, NotSerialized) { Store (One, SMIF) Store (Zero, TRP0) If (And (CSTE, 0x1010)) { Return (0x1F) } Return (0x1D) } Method (_DGS, 0, NotSerialized) { If (And (NSTE, 0x1010)) { Return (One) } Return (Zero) } Method (_DSS, 1, NotSerialized) { If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) { Store (NSTE, CSTE) } } } } Device (USB1) { Name (_ADR, 0x001D0000) OperationRegion (U1CS, PCI_Config, 0xC4, 0x04) Field (U1CS, DWordAcc, NoLock, Preserve) { U1EN, 2 } Name (_PRW, Package (0x02) { 0x03, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U1EN) } Else { Store (Zero, U1EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB2) { Name (_ADR, 0x001D0001) OperationRegion (U2CS, PCI_Config, 0xC4, 0x04) Field (U2CS, DWordAcc, NoLock, Preserve) { U2EN, 2 } Name (_PRW, Package (0x02) { 0x04, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U2EN) } Else { Store (Zero, U2EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB3) { Name (_ADR, 0x001D0002) OperationRegion (U2CS, PCI_Config, 0xC4, 0x04) Field (U2CS, DWordAcc, NoLock, Preserve) { U3EN, 2 } Name (_PRW, Package (0x02) { 0x0C, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U3EN) } Else { Store (Zero, U3EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB4) { Name (_ADR, 0x001D0003) OperationRegion (U4CS, PCI_Config, 0xC4, 0x04) Field (U4CS, DWordAcc, NoLock, Preserve) { U4EN, 2 } Name (_PRW, Package (0x02) { 0x0E, 0x03 }) Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U4EN) } Else { Store (Zero, U4EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } } Device (USB7) { Name (_ADR, 0x001D0007) Name (_PRW, Package (0x02) { 0x0D, 0x03 }) } Device (PCIB) { Name (_ADR, 0x001E0000) Device (LANC) { Name (_ADR, 0x00090000) Name (_PRW, Package (0x02) { 0x0B, 0x03 }) } Device (MPCI) { Name (_ADR, 0x00010000) OperationRegion (MCFG, PCI_Config, Zero, 0xFF) Field (MCFG, DWordAcc, NoLock, Preserve) { MDID, 32 } Method (_STA, 0, NotSerialized) { If (LEqual (MDID, Ones)) { Return (Zero) } Else { Return (0x0F) } } } Device (CABS) { Name (_ADR, 0x00070000) } Device (OHCI) { Name (_ADR, 0x00070002) Method (_STA, 0, NotSerialized) { Return (0x0F) } } Method (_PRT, 0, NotSerialized) { Return (Package (0x06) { Package (0x04) { 0x0001FFFF, Zero, ^^LPCB.LNKC, Zero }, Package (0x04) { 0x0001FFFF, One, ^^LPCB.LNKB, Zero }, Package (0x04) { 0x0007FFFF, Zero, ^^LPCB.LNKA, Zero }, Package (0x04) { 0x0007FFFF, One, ^^LPCB.LNKB, Zero }, Package (0x04) { 0x0007FFFF, 0x02, ^^LPCB.LNKC, Zero }, Package (0x04) { 0x0009FFFF, Zero, ^^LPCB.LNKC, Zero } }) } } Device (AUD0) { Name (_ADR, 0x001E0002) } Device (MODM) { Name (_ADR, 0x001E0003) Name (_PRW, Package (0x02) { 0x05, 0x04 }) } Device (LPCB) { Name (_ADR, 0x001F0000) OperationRegion (LPC0, PCI_Config, 0x40, 0xC0) Field (LPC0, AnyAcc, NoLock, Preserve) { Offset (0x20), PARC, 8, PBRC, 8, PCRC, 8, PDRC, 8, Offset (0x28), PERC, 8, PFRC, 8, PGRC, 8, PHRC, 8, Offset (0x40), IOD0, 8, IOD1, 8 } OperationRegion (PMIF, SystemIO, 0x68, 0x08) Field (PMIF, ByteAcc, NoLock, Preserve) { PMUD, 8, Offset (0x04), PMUC, 8, Offset (0x08) } Mutex (ELCK, 0x00) Method (WIBF, 0, NotSerialized) { Store (0x0009FFFF, Local6) Noop Noop Store (PMUC, Local2) And (Local2, 0x22, Local2) If (And (Local2, 0x20, Local3)) { Return (One) } And (Local2, 0x02, Local2) While (LAnd (LNot (LEqual (Local2, Zero)), LNot (LEqual (Local6, Zero)))) { Noop Noop Store (PMUC, Local2) Decrement (Local6) If (And (Local2, 0x20, Local3)) { Return (One) } And (Local2, 0x02, Local2) } Return (Zero) } Method (WOBF, 0, NotSerialized) { Store (0x009FFFFF, Local6) Noop Noop Store (PMUC, Local3) And (Local3, 0x21, Local3) If (And (Local3, 0x20, Local2)) { Return (One) } While (LAnd (LEqual (Local3, Zero), LNot (LEqual (Local6, Zero)))) { Noop Noop Store (PMUC, Local3) And (Local3, 0x21, Local3) If (And (Local3, 0x20, Local2)) { Return (One) } Decrement (Local6) } Return (Zero) } Method (RCMD, 2, NotSerialized) { Store (Arg0, Local0) Store (Arg1, Local1) Store (Local0, PMUC) If (WIBF ()) { Return (One) } Store (Local1, PMUD) If (WOBF ()) { Return (One) } Return (Zero) } Method (WCMD, 2, NotSerialized) { Store (Arg0, Local0) Store (Arg1, Local1) Store (Local0, PMUC) If (WIBF ()) { Return (One) } Store (Local1, PMUD) If (WIBF ()) { Return (One) } Return (Zero) } Method (PMRD, 1, NotSerialized) { Acquire (ELCK, 0xFFFF) Store (Zero, EDFG) Store (0x14, RECT) While (LAnd (LEqual (EDFG, Zero), LNot (LEqual (RECT, Zero)))) { Store (Arg0, Local0) Store (0x03E8, Local6) Store (PMUC, Local1) And (Local1, 0x13, Local1) While (LAnd (LNot (LEqual (Local1, Zero)), LNot (LEqual (Local6, Zero)))) { Sleep (One) Store (PMUC, Local1) And (Local1, 0x13, Local1) If (And (Local1, One, Local2)) { Store (PMUD, Local3) } Decrement (Local6) } While (RCMD (0x80, Local0)) { Noop Noop Store (PMUC, Local5) If (And (Local5, One, Local2)) { Store (PMUD, Local5) } } Store (0x07D0, Local6) Store (PMUC, Local1) And (Local1, 0x10, Local1) While (LAnd (LNot (LEqual (Local1, Zero)), LNot (LEqual (Local6, Zero)))) { Noop Noop Store (PMUC, Local1) And (Local1, 0x10, Local1) Decrement (Local6) } Store (PMUC, Local1) And (Local1, 0x20, Local1) If (LEqual (Local1, Zero)) { Store (One, EDFG) } Decrement (RECT) } Store (PMUD, Local4) Release (ELCK) Return (Local4) } Method (PMWT, 2, NotSerialized) { Acquire (ELCK, 0xFFFF) Store (Zero, EDFG) Store (0x14, RECT) While (LAnd (LEqual (EDFG, Zero), LNot (LEqual (RECT, Zero)))) { Store (Arg0, Local0) Store (0x03E8, Local6) Store (PMUC, Local1) And (Local1, 0x13, Local1) While (LAnd (LNot (LEqual (Local1, Zero)), LNot (LEqual (Local6, Zero)))) { Sleep (One) Store (PMUC, Local1) And (Local1, 0x13, Local1) Decrement (Local6) } While (WCMD (0x81, Local0)) { Noop Noop Store (PMUC, Local5) If (And (Local5, One, Local2)) { Store (PMUD, Local5) } } Store (Arg1, PMUD) Store (0x07D0, Local6) Store (PMUC, Local1) And (Local1, 0x12, Local1) While (LAnd (LNot (LEqual (Local1, Zero)), LNot (LEqual (Local6, Zero)))) { Store (Zero, ED) Noop Noop Store (Zero, ED) Store (PMUC, Local1) And (Local1, 0x12, Local1) Decrement (Local6) } Store (PMUC, Local1) And (Local1, 0x20, Local1) If (LEqual (Local1, Zero)) { Store (One, EDFG) } Decrement (RECT) } Release (ELCK) } Method (PMMW, 2, NotSerialized) { Store (Arg0, Local0) Store (Arg1, Local1) And (Local0, 0xFF, Local2) And (Local0, 0xFF00, Local3) ShiftRight (Local3, 0x08, Local3) Add (Local2, Local3, Local4) Add (Local4, 0xC1, Local4) Add (Local4, Local1, Local7) And (Local7, 0xFF, Local7) PMWR (0x043F, Local7) PMWR (Local0, Local1) } Method (PMWR, 2, NotSerialized) { Acquire (ELCK, 0xFFFF) Store (Zero, EDFG) Store (0x14, RECT) While (LAnd (LEqual (EDFG, Zero), LNot (LEqual (RECT, Zero)))) { Store (0x03E8, Local6) Store (PMUC, Local1) And (Local1, 0x13, Local1) While (LAnd (LNot (LEqual (Local1, Zero)), LNot (LEqual (Local6, Zero)))) { Sleep (One) Store (PMUC, Local1) And (Local1, 0x13, Local1) Decrement (Local6) } Store (Arg0, Local0) While (WCM2 (0xC1, Local0)) { Store (Zero, ED) Noop Noop Store (Zero, ED) Store (PMUC, Local5) If (And (Local5, One, Local2)) { Store (PMUD, Local5) } } Store (Arg1, PMUD) Store (0x07D0, Local6) Store (PMUC, Local1) And (Local1, 0x12, Local1) While (LAnd (LNot (LEqual (Local1, Zero)), LNot (LEqual (Local6, Zero)))) { Store (Zero, ED) Noop Noop Store (Zero, ED) Store (PMUC, Local1) And (Local1, 0x12, Local1) Decrement (Local6) } Store (PMUC, Local1) And (Local1, 0x20, Local1) If (LEqual (Local1, Zero)) { Store (One, EDFG) } Decrement (RECT) } Release (ELCK) } Method (WCM2, 2, NotSerialized) { Store (Arg0, Local0) Store (Arg1, Local1) Store (Arg1, Local2) And (Local1, 0xFF, Local1) And (Local2, 0xFF00, Local2) ShiftRight (Local2, 0x08, Local2) Store (Local0, PMUC) If (WIBF ()) { Return (One) } Store (Local2, PMUD) If (WIBF ()) { Return (One) } Store (Local1, PMUD) If (WIBF ()) { Return (One) } Return (Zero) } Name (EDFG, Zero) Name (RECT, Zero) OperationRegion (DELY, SystemIO, 0xED, One) Field (DELY, ByteAcc, NoLock, Preserve) { ED, 8 } Method (SMST, 0, NotSerialized) { Store (0x10, Local6) Store (PMRD (0x70), Local0) While (LAnd (LNot (LEqual (Local0, Zero)), LNot (LEqual (Local6, Zero)))) { Store (PMRD (0x70), Local0) Decrement (Local6) } Store (0x10, Local6) Store (PMRD (0x71), Local1) While (LAnd (LNot (LEqual (Local1, 0x80)), LNot (LEqual (Local6, Zero)))) { Sleep (0x05) Store (PMRD (0x71), Local1) Decrement (Local6) } } Method (SMWT, 3, NotSerialized) { Acquire (ELCK, 0xFFFF) Store (0x06, Local6) Store (Arg0, Local0) Store (Arg1, Local1) Store (Arg2, Local2) While (LNot (LEqual (Local6, Zero))) { PMWT (0x71, Zero) PMWT (0x72, Local0) PMWT (0x73, Local1) PMWT (0x74, Local2) PMWT (0x70, 0x06) SMST () Decrement (Local6) } Release (ELCK) } Method (SMWD, 4, NotSerialized) { Acquire (ELCK, 0xFFFF) Store (0x06, Local6) Store (Arg0, Local0) Store (Arg1, Local1) Store (Arg2, Local2) Store (Arg3, Local3) While (LNot (LEqual (Local6, Zero))) { PMWT (0x71, Zero) PMWT (0x72, Local0) PMWT (0x73, Local1) PMWT (0x74, Local2) PMWT (0x75, Local3) PMWT (0x70, 0x08) SMST () Decrement (Local6) } Release (ELCK) } Device (LNKA) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, One) Method (_DIS, 0, Serialized) { Store (0x80, PARC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {5,7,11} }) Method (_CRS, 0, Serialized) { Name (RTLA, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (RTLA, One, IRQ0) Store (Zero, IRQ0) ShiftLeft (One, And (PARC, 0x0F), IRQ0) Return (RTLA) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, One, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PARC) } Method (_STA, 0, Serialized) { If (And (PARC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKB) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x02) Method (_DIS, 0, Serialized) { Store (0x80, PBRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,10} }) Method (_CRS, 0, Serialized) { Name (RTLB, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (RTLB, One, IRQ0) Store (Zero, IRQ0) ShiftLeft (One, And (PBRC, 0x0F), IRQ0) Return (RTLB) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, One, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PBRC) } Method (_STA, 0, Serialized) { If (And (PBRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKC) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x03) Method (_DIS, 0, Serialized) { Store (0x80, PCRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,10} }) Method (_CRS, 0, Serialized) { Name (RTLC, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (RTLC, One, IRQ0) Store (Zero, IRQ0) ShiftLeft (One, And (PCRC, 0x0F), IRQ0) Return (RTLC) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, One, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PCRC) } Method (_STA, 0, Serialized) { If (And (PCRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKD) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x04) Method (_DIS, 0, Serialized) { Store (0x80, PDRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {5,7,11} }) Method (_CRS, 0, Serialized) { Name (RTLD, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (RTLD, One, IRQ0) Store (Zero, IRQ0) ShiftLeft (One, And (PDRC, 0x0F), IRQ0) Return (RTLD) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, One, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PDRC) } Method (_STA, 0, Serialized) { If (And (PDRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKE) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x05) Method (_DIS, 0, Serialized) { Store (0x80, PERC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {5,7,11} }) Method (_CRS, 0, Serialized) { Name (RTLE, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (RTLE, One, IRQ0) Store (Zero, IRQ0) ShiftLeft (One, And (PERC, 0x0F), IRQ0) Return (RTLE) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, One, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PERC) } Method (_STA, 0, Serialized) { If (And (PERC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (LNKH) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x08) Method (_DIS, 0, Serialized) { Store (0x80, PHRC) } Name (_PRS, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,10} }) Method (_CRS, 0, Serialized) { Name (RTLH, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (RTLH, One, IRQ0) Store (Zero, IRQ0) ShiftLeft (One, And (PHRC, 0x0F), IRQ0) Return (RTLH) } Method (_SRS, 1, Serialized) { CreateWordField (Arg0, One, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Store (Local0, PHRC) } Method (_STA, 0, Serialized) { If (And (PHRC, 0x80)) { Return (0x09) } Else { Return (0x0B) } } } Device (DMAC) { Name (_HID, EisaId ("PNP0200")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x20) IO (Decode16, 0x0081, 0x0081, 0x01, 0x11) IO (Decode16, 0x0093, 0x0093, 0x01, 0x0D) IO (Decode16, 0x00C0, 0x00C0, 0x01, 0x20) DMA (Compatibility, NotBusMaster, Transfer8_16) {4} }) } Device (FWHD) { Name (_HID, EisaId ("INT0800")) Name (_CRS, ResourceTemplate () { Memory32Fixed (ReadOnly, 0xFF000000, 0x01000000) }) } Device (IPIC) { Name (_HID, EisaId ("PNP0000")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0020, 0x0020, 0x01, 0x02) IO (Decode16, 0x0024, 0x0024, 0x01, 0x02) IO (Decode16, 0x0028, 0x0028, 0x01, 0x02) IO (Decode16, 0x002C, 0x002C, 0x01, 0x02) IO (Decode16, 0x0030, 0x0030, 0x01, 0x02) IO (Decode16, 0x0034, 0x0034, 0x01, 0x02) IO (Decode16, 0x0038, 0x0038, 0x01, 0x02) IO (Decode16, 0x003C, 0x003C, 0x01, 0x02) IO (Decode16, 0x00A0, 0x00A0, 0x01, 0x02) IO (Decode16, 0x00A4, 0x00A4, 0x01, 0x02) IO (Decode16, 0x00A8, 0x00A8, 0x01, 0x02) IO (Decode16, 0x00AC, 0x00AC, 0x01, 0x02) IO (Decode16, 0x00B0, 0x00B0, 0x01, 0x02) IO (Decode16, 0x00B4, 0x00B4, 0x01, 0x02) IO (Decode16, 0x00B8, 0x00B8, 0x01, 0x02) IO (Decode16, 0x00BC, 0x00BC, 0x01, 0x02) IO (Decode16, 0x04D0, 0x04D0, 0x01, 0x02) IRQNoFlags () {2} }) } Device (MATH) { Name (_HID, EisaId ("PNP0C04")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x00F0, 0x00F0, 0x01, 0x01) IRQNoFlags () {13} }) } Device (LDRC) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x02) Name (BUF0, ResourceTemplate () { IO (Decode16, 0x002E, 0x002E, 0x01, 0x02) IO (Decode16, 0x004E, 0x004E, 0x01, 0x02) IO (Decode16, 0x0061, 0x0061, 0x01, 0x01) IO (Decode16, 0x0063, 0x0063, 0x01, 0x01) IO (Decode16, 0x0065, 0x0065, 0x01, 0x01) IO (Decode16, 0x0067, 0x0067, 0x01, 0x01) IO (Decode16, 0x0068, 0x0068, 0x01, 0x08) IO (Decode16, 0x0070, 0x0070, 0x01, 0x01) IO (Decode16, 0x0080, 0x0080, 0x01, 0x01) IO (Decode16, 0x0092, 0x0092, 0x01, 0x01) IO (Decode16, 0x00B2, 0x00B2, 0x01, 0x02) IO (Decode16, 0x0800, 0x0800, 0x01, 0x10) IO (Decode16, 0x1000, 0x1000, 0x01, 0x80) IO (Decode16, 0x1180, 0x1180, 0x01, 0x40) IO (Decode16, 0x1640, 0x1640, 0x01, 0x10) IO (Decode16, 0x0062, 0x0062, 0x01, 0x01) IO (Decode16, 0x0066, 0x0066, 0x01, 0x01) }) Method (_CRS, 0, Serialized) { Return (BUF0) } } Device (RTC) { Name (_HID, EisaId ("PNP0B00")) Name (BUF0, ResourceTemplate () { IO (Decode16, 0x0070, 0x0070, 0x01, 0x08) }) Name (BUF1, ResourceTemplate () { IO (Decode16, 0x0070, 0x0070, 0x01, 0x08) IRQNoFlags () {8} }) Method (_CRS, 0, Serialized) { If (HPAE) { Return (BUF0) } Return (BUF1) } } Device (TIMR) { Name (_HID, EisaId ("PNP0100")) Name (BUF0, ResourceTemplate () { IO (Decode16, 0x0040, 0x0040, 0x01, 0x04) IO (Decode16, 0x0050, 0x0050, 0x10, 0x04) }) Name (BUF1, ResourceTemplate () { IO (Decode16, 0x0040, 0x0040, 0x01, 0x04) IO (Decode16, 0x0050, 0x0050, 0x10, 0x04) IRQNoFlags () {0} }) Method (_CRS, 0, Serialized) { If (HPAE) { Return (BUF0) } Return (BUF1) } } Device (PS2K) { Name (_HID, EisaId ("PNP0303")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0060, 0x0060, 0x01, 0x01) IO (Decode16, 0x0064, 0x0064, 0x01, 0x01) IRQ (Edge, ActiveHigh, Exclusive) {1} }) } Device (PS2M) { Name (_HID, EisaId ("PNP0F13")) Name (_CRS, ResourceTemplate () { IRQ (Edge, ActiveHigh, Exclusive) {12} }) Method (_STA, 0, NotSerialized) { And (PMRD (0xFC), One, Local0) If (Local0) { Return (0x0F) } Else { Return (Zero) } } } } Device (PATA) { Name (_ADR, 0x001F0001) OperationRegion (PACS, PCI_Config, 0x40, 0xC0) Field (PACS, DWordAcc, NoLock, Preserve) { PRIT, 16, Offset (0x04), PSIT, 4, Offset (0x08), SYNC, 4, Offset (0x0A), SDT0, 2, , 2, SDT1, 2, Offset (0x14), ICR0, 4, ICR1, 4, ICR2, 4, ICR3, 4, ICR4, 4, ICR5, 4 } Device (PRID) { Name (_ADR, Zero) Method (_GTM, 0, NotSerialized) { Name (PBUF, Buffer (0x14) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }) CreateDWordField (PBUF, Zero, PIO0) CreateDWordField (PBUF, 0x04, DMA0) CreateDWordField (PBUF, 0x08, PIO1) CreateDWordField (PBUF, 0x0C, DMA1) CreateDWordField (PBUF, 0x10, FLAG) Store (GETP (PRIT), PIO0) Store (GDMA (And (SYNC, One), And (ICR3, One), And (ICR0, One), SDT0, And (ICR1, One)), DMA0) If (LEqual (DMA0, Ones)) { Store (PIO0, DMA0) } If (And (PRIT, 0x4000)) { If (LEqual (And (PRIT, 0x90), 0x80)) { Store (0x0384, PIO1) } Else { Store (GETT (PSIT), PIO1) } } Else { Store (Ones, PIO1) } Store (GDMA (And (SYNC, 0x02), And (ICR3, 0x02), And (ICR0, 0x02), SDT1, And (ICR1, 0x02)), DMA1) If (LEqual (DMA1, Ones)) { Store (PIO1, DMA1) } Store (GETF (And (SYNC, One), And (SYNC, 0x02), PRIT), FLAG) If (And (LEqual (PIO0, Ones), LEqual (DMA0, Ones))) { Store (0x78, PIO0) Store (0x14, DMA0) Store (0x03, FLAG) } Return (PBUF) } Method (_STM, 3, NotSerialized) { CreateDWordField (Arg0, Zero, PIO0) CreateDWordField (Arg0, 0x04, DMA0) CreateDWordField (Arg0, 0x08, PIO1) CreateDWordField (Arg0, 0x0C, DMA1) CreateDWordField (Arg0, 0x10, FLAG) If (LEqual (SizeOf (Arg1), 0x0200)) { And (PRIT, 0x40F0, PRIT) And (SYNC, 0x02, SYNC) Store (Zero, SDT0) And (ICR0, 0x02, ICR0) And (ICR1, 0x02, ICR1) And (ICR3, 0x02, ICR3) And (ICR5, 0x02, ICR5) CreateWordField (Arg1, 0x62, W490) CreateWordField (Arg1, 0x6A, W530) CreateWordField (Arg1, 0x7E, W630) CreateWordField (Arg1, 0x80, W640) CreateWordField (Arg1, 0xB0, W880) CreateWordField (Arg1, 0xBA, W930) Or (PRIT, 0x8004, PRIT) If (LAnd (And (FLAG, 0x02), And (W490, 0x0800))) { Or (PRIT, 0x02, PRIT) } Or (PRIT, SETP (PIO0, W530, W640), PRIT) If (And (FLAG, One)) { Or (SYNC, One, SYNC) Store (SDMA (DMA0), SDT0) If (LLess (DMA0, 0x1E)) { Or (ICR3, One, ICR3) } If (LLess (DMA0, 0x3C)) { Or (ICR0, One, ICR0) } If (And (W930, 0x2000)) { Or (ICR1, One, ICR1) } } } If (LEqual (SizeOf (Arg2), 0x0200)) { And (PRIT, 0x3F0F, PRIT) Store (Zero, PSIT) And (SYNC, One, SYNC) Store (Zero, SDT1) And (ICR0, One, ICR0) And (ICR1, One, ICR1) And (ICR3, One, ICR3) And (ICR5, One, ICR5) CreateWordField (Arg2, 0x62, W491) CreateWordField (Arg2, 0x6A, W531) CreateWordField (Arg2, 0x7E, W631) CreateWordField (Arg2, 0x80, W641) CreateWordField (Arg2, 0xB0, W881) CreateWordField (Arg2, 0xBA, W931) Or (PRIT, 0x8040, PRIT) If (LAnd (And (FLAG, 0x08), And (W491, 0x0800))) { Or (PRIT, 0x20, PRIT) } If (And (FLAG, 0x10)) { Or (PRIT, 0x4000, PRIT) If (LGreater (PIO1, 0xF0)) { Or (PRIT, 0x80, PRIT) } Else { Or (PRIT, 0x10, PRIT) Store (SETT (PIO1, W531, W641), PSIT) } } If (And (FLAG, 0x04)) { Or (SYNC, 0x02, SYNC) Store (SDMA (DMA1), SDT1) If (LLess (DMA1, 0x1E)) { Or (ICR3, 0x02, ICR3) } If (LLess (DMA1, 0x3C)) { Or (ICR0, 0x02, ICR0) } If (And (W931, 0x2000)) { Or (ICR1, 0x02, ICR1) } } } } Device (P_D0) { Name (_ADR, Zero) Method (_GTF, 0, NotSerialized) { Name (PIB0, Buffer (0x0E) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }) CreateByteField (PIB0, One, PMD0) CreateByteField (PIB0, 0x08, DMD0) If (And (PRIT, 0x02)) { If (LEqual (And (PRIT, 0x09), 0x08)) { Store (0x08, PMD0) } Else { Store (0x0A, PMD0) ShiftRight (And (PRIT, 0x0300), 0x08, Local0) ShiftRight (And (PRIT, 0x3000), 0x0C, Local1) Add (Local0, Local1, Local2) If (LEqual (0x03, Local2)) { Store (0x0B, PMD0) } If (LEqual (0x05, Local2)) { Store (0x0C, PMD0) } } } Else { Store (One, PMD0) } If (And (SYNC, One)) { Store (Or (SDT0, 0x40), DMD0) If (And (ICR1, One)) { If (And (ICR0, One)) { Add (DMD0, 0x02, DMD0) } If (And (ICR3, One)) { Store (0x45, DMD0) } } } Else { Or (Subtract (And (PMD0, 0x07), 0x02), 0x20, DMD0) } Return (PIB0) } } Device (P_D1) { Name (_ADR, One) Method (_GTF, 0, NotSerialized) { Name (PIB1, Buffer (0x0E) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF }) CreateByteField (PIB1, One, PMD1) CreateByteField (PIB1, 0x08, DMD1) If (And (PRIT, 0x20)) { If (LEqual (And (PRIT, 0x90), 0x80)) { Store (0x08, PMD1) } Else { Add (And (PSIT, 0x03), ShiftRight (And (PSIT, 0x0C), 0x02), Local0) If (LEqual (0x05, Local0)) { Store (0x0C, PMD1) } Else { If (LEqual (0x03, Local0)) { Store (0x0B, PMD1) } Else { Store (0x0A, PMD1) } } } } Else { Store (One, PMD1) } If (And (SYNC, 0x02)) { Store (Or (SDT1, 0x40), DMD1) If (And (ICR1, 0x02)) { If (And (ICR0, 0x02)) { Add (DMD1, 0x02, DMD1) } If (And (ICR3, 0x02)) { Store (0x45, DMD1) } } } Else { Or (Subtract (And (PMD1, 0x07), 0x02), 0x20, DMD1) } Return (PIB1) } } } } Device (SATA) { Name (_ADR, 0x001F0002) OperationRegion (SACS, PCI_Config, 0x40, 0xC0) Field (SACS, DWordAcc, NoLock, Preserve) { PRIT, 16, SECT, 16, PSIT, 4, SSIT, 4, Offset (0x08), SYNC, 4, Offset (0x0A), SDT0, 2, , 2, SDT1, 2, Offset (0x0B), SDT2, 2, , 2, SDT3, 2, Offset (0x14), ICR0, 4, ICR1, 4, ICR2, 4, ICR3, 4, ICR4, 4, ICR5, 4, Offset (0x50), MAPV, 2 } } Device (SBUS) { Name (_ADR, 0x001F0003) } } } }