Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CreatorID=INTL CreatorRev=20.6.2322
- // FileLength=111525 FileChkSum=0x8e
- DefinitionBlock("dsdt.aml", "DSDT", 0x01, "HPQOEM", "3074 ", 0x00000001)
- {
- Name(LSTA, 0x0)
- Name(IECP, 0x0)
- Name(DECP, 0x0)
- Name(IDPM, 0x0)
- Method(\HPTS, 0x1, NotSerialized)
- {
- Store(Arg0, SLPT)
- \_SB_.ODGW(Or(0x5500, Arg0, ))
- If(LGreater(Arg0, 0x0))
- {
- Store(0x0, \_SB_.PCI0.LPCB.EC0_.HSST)
- Store(\_SB_.PCI0.RP03.PDSX, IECP)
- Store(\_SB_.PCI0.RP05.PDSX, DECP)
- Store(\APMC, IDPM)
- If(LNot(LEqual(Arg0, 0x5)))
- {
- \_SB_.PCI0.LPCB.EC0_.BTDR(0x0)
- Store(0x1, \_SB_.NFBS)
- If(LEqual(Arg0, 0x3))
- {
- Store(\_SB_.LID_._LID(), LSTA)
- }
- }
- }
- }
- Method(\HWAK, 0x1, NotSerialized)
- {
- Store(0x0, SLPT)
- \_SB_.ODGW(Or(0x5600, Arg0, ))
- If(LEqual(Arg0, 0x3))
- {
- \_SB_.SSMI(0xea80, 0x0, 0x0, 0x0, 0x0)
- }
- \_SB_.PCI0.LPCB.EC0_.ITLB()
- \_SB_.PCI0.LPCB.EC0_.RPPC()
- If(\_SB_.PCI0.LPCB.EC0_.ECRG)
- {
- Acquire(\_SB_.PCI0.LPCB.EC0_.ECMX, 0xffff)
- Store(0x1, \_SB_.PCI0.LPCB.EC0_.ACPI)
- Store(0x0, \_SB_.PCI0.LPCB.EC0_.SLPT)
- Release(\_SB_.PCI0.LPCB.EC0_.ECMX)
- }
- If(LGreater(Arg0, 0x2))
- {
- \_TZ_.RETD()
- \_TZ_.INTM(0x1)
- Store(0x1, \_SB_.NFBS)
- If(LEqual(Arg0, 0x3))
- {
- Store(0x99, SSMP)
- If(XOr(\_SB_.LID_._LID(), LSTA, ))
- {
- XOr(GIV_, 0x2000, Local0)
- Store(Local0, GIV_)
- }
- Store(IDPM, \APMC)
- \_GPE.HWWP(0x1)
- }
- If(LEqual(Arg0, 0x4))
- {
- \_SB_.WMID.WGWE(0x5, 0x0)
- }
- }
- If(LOr(LEqual(Arg0, 0x4), LEqual(\WCOS(), 0x1)))
- {
- Notify(\_SB_.SLPB, 0x2)
- }
- Store(\_SB_.PCI0.LPCB.EC0_.GACS(), Local2)
- \_SB_.PCI0.LPCB.EC0_.PWUP(0x3, 0xff)
- Store(\_SB_.PCI0.LPCB.EC0_.GBAP(), Local1)
- Store(\_SB_.PCI0.LPCB.EC0_.GACS(), Local3)
- XOr(Local2, Local3, Local3)
- If(Local3)
- {
- Notify(\_SB_.AC__, 0x80)
- PNOT()
- }
- Else
- {
- If(LEqual(Arg0, 0x4))
- {
- XOr(Local2, 0x1, \_SB_.ACST)
- }
- }
- WKET(Arg0)
- \_SB_.VWAK(Arg0)
- \_SB_.VWAK(0x1)
- Store(\_SB_.HST1.GHID(), Local0)
- \_SB_.PCI0.ACEL.ITAL()
- }
- Mutex(MUTX, 0x0)
- Method(P8XH, 0x2, Serialized)
- {
- If(LEqual(Arg0, 0x0))
- {
- \_SB_.ODBG(Arg1)
- Store(Or(And(P80D, 0xffffff00, ), Arg1, ), P80D)
- }
- If(LEqual(Arg0, 0x1))
- {
- \_SB_.ODG1(Arg1)
- Store(Or(And(P80D, 0xffff00ff, ), ShiftLeft(Arg1, 0x8, ), ), P80D)
- }
- If(LEqual(Arg0, 0x2))
- {
- Store(Or(And(P80D, 0xff00ffff, ), ShiftLeft(Arg1, 0x10, ), ), P80D)
- }
- If(LEqual(Arg0, 0x3))
- {
- Store(Or(And(P80D, 0xffffff, ), ShiftLeft(Arg1, 0x18, ), ), P80D)
- }
- }
- OperationRegion(SPRT, SystemIO, 0xb2, 0x2)
- Field(SPRT, ByteAcc, Lock, Preserve)
- {
- SSMP, 8
- }
- Method(\_PIC, 0x1, NotSerialized)
- {
- Store(Arg0, GPIC)
- }
- Method(_PTS, 0x1, NotSerialized)
- {
- HPTS(Arg0)
- If(LEqual(Arg0, 0x3))
- {
- If(LAnd(DTSE, MPEN))
- {
- TRAP(0x2, 0x1e)
- }
- }
- }
- Method(_WAK, 0x1, NotSerialized)
- {
- HWAK(Arg0)
- If(LEqual(Arg0, 0x3))
- {
- }
- If(LOr(LEqual(Arg0, 0x3), LEqual(Arg0, 0x4)))
- {
- If(LAnd(DTSE, MPEN))
- {
- TRAP(0x2, 0x14)
- }
- If(And(CFGD, 0x1000000, ))
- {
- If(LAnd(And(CFGD, 0xf0, ), LAnd(LEqual(OSYS, 0x7d1), LNot(And(PDC0, 0x10, )))))
- {
- TRAP(0x1, 0x48)
- }
- }
- If(LEqual(OSYS, 0x7d2))
- {
- If(And(CFGD, 0x1, ))
- {
- If(LGreater(\_PR_.CPU0._PPC, 0x0))
- {
- Subtract(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
- PNOT()
- Add(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
- PNOT()
- }
- Else
- {
- Add(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
- PNOT()
- Subtract(\_PR_.CPU0._PPC, 0x1, \_PR_.CPU0._PPC)
- PNOT()
- }
- }
- }
- }
- Return(Package(0x2)
- {
- 0x0,
- 0x0
- })
- }
- Method(GETB, 0x3, Serialized)
- {
- Multiply(Arg0, 0x8, Local0)
- Multiply(Arg1, 0x8, Local1)
- CreateField(Arg2, Local0, Local1, TBF3)
- Return(TBF3)
- }
- Method(PNOT, 0x0, Serialized)
- {
- If(MPEN)
- {
- If(And(PDC0, 0x8, ))
- {
- Notify(\_PR_.CPU0, 0x80)
- If(And(PDC0, 0x10, ))
- {
- Sleep(0x64)
- Notify(\_PR_.CPU0, 0x81)
- }
- }
- If(And(PDC1, 0x8, ))
- {
- Notify(\_PR_.CPU1, 0x80)
- If(And(PDC1, 0x10, ))
- {
- Sleep(0x64)
- Notify(\_PR_.CPU1, 0x81)
- }
- }
- }
- Else
- {
- Notify(\_PR_.CPU0, 0x80)
- Sleep(0x64)
- Notify(\_PR_.CPU0, 0x81)
- }
- }
- Method(TRAP, 0x2, Serialized)
- {
- Store(Arg1, SMIF)
- If(LEqual(Arg0, 0x1))
- {
- Store(0x0, TRP0)
- }
- If(LEqual(Arg0, 0x2))
- {
- Store(Arg1, DTSF)
- Store(0x0, TRPD)
- Return(DTSF)
- }
- If(LEqual(Arg0, 0x3))
- {
- Store(0x0, TRPH)
- }
- Return(SMIF)
- }
- Scope(\_SB_)
- {
- Method(_INI, 0x0, NotSerialized)
- {
- Store(0x7d0, OSYS)
- If(CondRefOf(_OSI, Local0))
- {
- If(_OSI("Windows 2001"))
- {
- Store(0x7d1, OSYS)
- }
- If(_OSI("Windows 2001 SP1"))
- {
- Store(0x7d1, OSYS)
- }
- If(_OSI("Windows 2001 SP2"))
- {
- Store(0x7d2, OSYS)
- }
- If(_OSI("Windows 2006"))
- {
- Store(0x7d6, OSYS)
- }
- If(_OSI("Linux"))
- {
- Store(0x3e8, OSYS)
- }
- If(LAnd(MPEN, LEqual(OSYS, 0x7d1)))
- {
- TRAP(0x1, 0x48)
- }
- TRAP(0x3, 0x35)
- }
- \_TZ_.BOTT()
- \_TZ_.RETD()
- }
- }
- OperationRegion(GNVS, SystemMemory, 0xbdfc3d98, 0x100)
- Field(GNVS, 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,
- THOF, 8,
- ACT1, 8,
- ACTT, 8,
- PSVT, 8,
- TC1V, 8,
- TC2V, 8,
- TSPV, 8,
- CRTT, 8,
- DTSE, 8,
- DTS1, 8,
- DTS2, 8,
- DTSF, 8,
- Offset(0x28),
- APIC, 8,
- MPEN, 8,
- PCP0, 8,
- PCP1, 8,
- PPCM, 8,
- PPMF, 32,
- , 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,
- BDSP, 8,
- PTY1, 8,
- PTY2, 8,
- PSCL, 8,
- TVF1, 8,
- TVF2, 8,
- GETM, 8,
- Offset(0x67),
- BLCS, 8,
- BRTL, 8,
- ALSE, 8,
- ALAF, 8,
- LLOW, 8,
- LHIH, 8,
- , 8,
- EMAE, 8,
- EMAP, 16,
- EMAL, 16,
- , 8,
- MEFE, 8,
- DSTS, 8,
- , 16,
- TPMP, 8,
- TPME, 8,
- Offset(0x82),
- GTF0, 56,
- GTF5, 56,
- IDEM, 8,
- GTF1, 56,
- BID_, 8,
- Offset(0xaa),
- ASLB, 32,
- IBTT, 8,
- IPAT, 8,
- ITVF, 8,
- ITVM, 8,
- IPSC, 8,
- IBLC, 8,
- IBIA, 8,
- ISSC, 8,
- I409, 8,
- I509, 8,
- I609, 8,
- I709, 8,
- IDMM, 8,
- IDMS, 8,
- IF1E, 8,
- HVCO, 8,
- NXD1, 32,
- NXD2, 32,
- NXD3, 32,
- NXD4, 32,
- NXD5, 32,
- NXD6, 32,
- NXD7, 32,
- NXD8, 32,
- GSMI, 8,
- Offset(0xeb),
- DSEN, 8,
- ECON, 8,
- GPIC, 8,
- CTYP, 8,
- L01C, 8,
- VFN0, 8,
- VFN1, 8
- }
- OperationRegion(ASMA, SystemMemory, 0xbdfc0018, 0x1060)
- Field(ASMA, AnyAcc, NoLock, Preserve)
- {
- ASMB, 33536
- }
- OperationRegion(AF10, SystemMemory, 0xbdfc2818, 0x7c4)
- Field(AF10, AnyAcc, Lock, Preserve)
- {
- STAT, 32,
- EVAL, 8,
- ASTL, 8,
- ASTG, 256,
- OWNT, 640,
- PROD, 640,
- MODL, 640,
- PTYP, 640,
- PFRQ, 640,
- MEMS, 640,
- DATE, 640,
- FAMI, 640,
- SERL, 640,
- VREV, 640,
- KBCD, 640,
- HDDS, 160,
- HDDM, 320,
- CDAT, 136,
- CSTS, 8,
- CYCL, 8,
- PBSN, 144,
- SBSN, 144,
- BSTS, 8,
- BORD, 56,
- APST, 8,
- OAPW, 3200,
- NAPW, 3200,
- SECO, 32,
- SECS, 32,
- SKUN, 128,
- SVID, 48,
- SSID, 32,
- BTFC, 160,
- WLFC, 160,
- WWFC, 160,
- PWDL, 16,
- USRN, 264,
- ROLE, 32,
- CMDV, 32,
- KBDL, 32,
- HASH, 32,
- SPSF, 8
- }
- OperationRegion(HPDF, SystemMemory, 0xbdfc6f18, 0x57)
- Field(HPDF, AnyAcc, Lock, Preserve)
- {
- SLPT, 4,
- WHOS, 4,
- SDFG, 4,
- LEGF, 1,
- KCDB, 1,
- KLDB, 1,
- TPMX, 1,
- FOAL, 1,
- AEDA, 1,
- ALSF, 1,
- WOLD, 1,
- HSED, 1,
- HDEN, 1,
- MDEN, 1,
- UWKD, 1,
- INQW, 1,
- ASFG, 7,
- WDPE, 8,
- WDSA, 8,
- WDST, 8,
- WDGN, 8,
- WDSS, 8,
- WLBN, 8,
- PRDT, 8,
- LPDP, 16,
- EAX_, 32,
- EBX_, 32,
- ECX_, 32,
- EDX_, 32,
- REFS, 32,
- SSCI, 8,
- SBFC, 8,
- THOS, 8,
- TRCN, 8,
- DCAP, 8,
- LOTR, 160,
- HITR, 160,
- WABN, 8,
- WADN, 8,
- WAFN, 8,
- DTCD, 32,
- BDCP, 8,
- PS2I, 8
- }
- OperationRegion(HPD2, SystemMemory, 0xbdecaf98, 0x7)
- Field(HPD2, AnyAcc, Lock, Preserve)
- {
- CWDS, 8,
- CWLS, 8,
- CBTS, 8,
- CWWS, 8,
- CFPS, 8,
- CMDS, 8,
- BRID, 8
- }
- OperationRegion(HPBR, SystemMemory, 0xbdfc6e98, 0x45)
- Field(HPBR, AnyAcc, Lock, Preserve)
- {
- PAID, 32,
- BRCT, 8,
- BCCT, 8,
- BMAP, 88,
- BCLV, 216,
- BRLV, 200
- }
- Scope(\_GPE)
- {
- Method(_L00, 0x0, NotSerialized)
- {
- \_TZ_.THEV()
- }
- Method(_L01, 0x0, NotSerialized)
- {
- Add(L01C, 0x1, L01C)
- \_SB_.PCI0.RP01.HPLG()
- \_SB_.PCI0.RP02.HPLG()
- \_SB_.PCI0.RP03.HPLG()
- \_SB_.PCI0.RP04.HPLG()
- \_SB_.PCI0.RP05.HPLG()
- \_SB_.PCI0.RP06.HPLG()
- }
- Method(_L02, 0x0, NotSerialized)
- {
- Store(0x0, GPEC)
- Store(SSCI, Local0)
- If(Local0)
- {
- Store(0x0, SSCI)
- If(LEqual(Local0, 0x1))
- {
- VFN4()
- }
- If(LEqual(Local0, 0x4))
- {
- \_SB_.WMID.WGWE(Local0, 0x0)
- }
- If(LEqual(Local0, 0x5))
- {
- HWWP(0x0)
- \_SB_.WMID.WGWE(Local0, 0x0)
- }
- If(LEqual(Local0, 0x7))
- {
- Acquire(\_TZ_.THER, 0xffff)
- Or(\_TZ_.THSC, 0x1, \_TZ_.THSC)
- Release(\_TZ_.THER)
- Notify(\_TZ_.DTSZ, 0x80)
- }
- If(LEqual(Local0, 0x3))
- {
- VBRE(0x87)
- }
- If(LEqual(Local0, 0x2))
- {
- VBRE(0x86)
- }
- }
- }
- Method(_L03, 0x0, NotSerialized)
- {
- Notify(\_SB_.PCI0.USB1, 0x2)
- }
- Method(_L04, 0x0, NotSerialized)
- {
- Notify(\_SB_.PCI0.USB2, 0x2)
- }
- Method(_L05, 0x0, NotSerialized)
- {
- Notify(\_SB_.PCI0.USB5, 0x2)
- }
- Method(_L09, 0x0, NotSerialized)
- {
- \_SB_.PCI0.RP01.PME_()
- \_SB_.PCI0.RP02.PME_()
- \_SB_.PCI0.RP03.PME_()
- \_SB_.PCI0.RP04.PME_()
- \_SB_.PCI0.RP05.PME_()
- \_SB_.PCI0.RP06.PME_()
- }
- Method(_L0B, 0x0, NotSerialized)
- {
- Notify(\_SB_.PCI0.PCIB, 0x2)
- }
- Method(_L0C, 0x0, NotSerialized)
- {
- Notify(\_SB_.PCI0.USB3, 0x2)
- }
- Method(_L0D, 0x0, NotSerialized)
- {
- If(\_SB_.PCI0.EHC1.PMES)
- {
- Store(0x1, \_SB_.PCI0.EHC1.PMES)
- Notify(\_SB_.PCI0.EHC1, 0x2)
- }
- If(\_SB_.PCI0.EHC2.PMES)
- {
- Store(0x1, \_SB_.PCI0.EHC2.PMES)
- Notify(\_SB_.PCI0.EHC2, 0x2)
- }
- If(\_SB_.PCI0.HDEF.PMES)
- {
- Store(0x1, \_SB_.PCI0.HDEF.PMES)
- Notify(\_SB_.PCI0.HDEF, 0x2)
- }
- Notify(\_SB_.PCI0.LANC, 0x2)
- }
- Method(_L0E, 0x0, NotSerialized)
- {
- Notify(\_SB_.PCI0.USB4, 0x2)
- }
- Method(_L18, 0x0, NotSerialized)
- {
- XOr(GIV_, 0x100, Local0)
- Store(Local0, GIV_)
- VDET()
- \_SB_.WMID.WGWE(0x1, 0x0)
- Sleep(0x3e8)
- Notify(\_SB_.PCI0.USB5, 0x0)
- Notify(\_SB_.PCI0.USB6, 0x0)
- Notify(\_SB_.PCI0.EHC2, 0x0)
- Notify(\_SB_.PCI0.SATA, 0x0)
- DKET()
- }
- Method(_L1D, 0x0, NotSerialized)
- {
- XOr(GIV_, 0x2000, Local0)
- Store(Local0, GIV_)
- Multiply(0x2000, 0x2000, Local1)
- ShiftLeft(Local1, 0x1, Local2)
- Or(Local1, Local2, Local3)
- And(\_SB_.PCI0.LPCB.GPRO, Not(Local3, ), Local0)
- Store(Local0, \_SB_.PCI0.LPCB.GPRO)
- If(\_SB_.PCI0.LPCB.EC0_.ECRG)
- {
- XOr(\_SB_.LID_._LID(), 0x1, \_SB_.PCI0.LPCB.EC0_.LIDS)
- }
- If(LNot(LLess(\WCOS(), 0x6)))
- {
- Notify(\_SB_.LID_, 0x80)
- }
- If(VLET())
- {
- If(LLess(\WCOS(), 0x6))
- {
- Notify(\_SB_.LID_, 0x80)
- }
- And(\_SB_.PCI0.LPCB.GPRO, Not(Local3, ), Local0)
- Or(Local0, Local2, \_SB_.PCI0.LPCB.GPRO)
- }
- Else
- {
- If(LLess(\WCOS(), 0x6))
- {
- Notify(\_SB_.LID_, 0x80)
- }
- }
- \_SB_.PCI0.ACEL.AJAL()
- }
- Method(HWWP, 0x1, Serialized)
- {
- If(LOr(LEqual(INQW, 0x0), LEqual(Arg0, 0x1)))
- {
- Store(0x0, Local0)
- If(And(GPL2, 0x400, ))
- {
- Store(0x1, Local0)
- }
- \_SB_.PCI0.LPCB.EC0_.HWWP(Local0)
- }
- }
- }
- Scope(\_PR_)
- {
- Processor(CPU0, 0x0, 0x410, 0x6)
- {
- }
- Processor(CPU1, 0x1, 0x410, 0x6)
- {
- }
- Processor(CPU2, 0x2, 0x410, 0x6)
- {
- }
- Processor(CPU3, 0x3, 0x410, 0x6)
- {
- }
- }
- Scope(\_TZ_)
- {
- Name(TRIP, Package(0x5)
- {
- Package(0x2)
- {
- Package(0x8)
- {
- 0xaac,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0xfa3
- },
- Package(0x8)
- {
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x14ac
- }
- },
- Package(0x2)
- {
- Package(0x9)
- {
- 0xaac,
- 0xbd8,
- 0xc28,
- 0xc6e,
- 0xcbe,
- 0xd22,
- 0xd9a,
- 0xe44,
- 0xe4e
- },
- Package(0x9)
- {
- 0xc1e,
- 0xc64,
- 0xcb4,
- 0xd18,
- 0xd90,
- 0xdf4,
- 0xec6,
- 0xee4,
- 0xfa3
- }
- },
- Package(0x2)
- {
- Package(0x9)
- {
- 0xaac,
- 0xbd8,
- 0xce6,
- 0xd2c,
- 0xd7c,
- 0xdcc,
- 0xe1c,
- 0xe76,
- 0xe80
- },
- Package(0x9)
- {
- 0xcdc,
- 0xd22,
- 0xd72,
- 0xdc2,
- 0xe12,
- 0xe6c,
- 0xec6,
- 0xee4,
- 0xfa3
- }
- },
- Package(0x2)
- {
- Package(0x3)
- {
- 0xaac,
- 0xdfe,
- 0xe08
- },
- Package(0x3)
- {
- 0xe62,
- 0xec6,
- 0xfa3
- }
- },
- Package(0x2)
- {
- Package(0x2)
- {
- 0xaac,
- 0xca0
- },
- Package(0x2)
- {
- 0xd04,
- 0xfa3
- }
- }
- })
- Name(MT10, Package(0x2)
- {
- Package(0x9)
- {
- 0xaac,
- 0xbd8,
- 0xc28,
- 0xc6e,
- 0xcbe,
- 0xd22,
- 0xd9a,
- 0xdfe,
- 0xe08
- },
- Package(0x9)
- {
- 0xc1e,
- 0xc64,
- 0xcb4,
- 0xd18,
- 0xd90,
- 0xdf4,
- 0xe94,
- 0xeb2,
- 0xfa3
- }
- })
- Name(PT90, Package(0x2)
- {
- Package(0x9)
- {
- 0xaac,
- 0xbd8,
- 0xc28,
- 0xc6e,
- 0xcbe,
- 0xd22,
- 0xd9a,
- 0xdea,
- 0xdf4
- },
- Package(0x9)
- {
- 0xc1e,
- 0xc64,
- 0xcb4,
- 0xd18,
- 0xd90,
- 0xde0,
- 0xe30,
- 0xe4e,
- 0xfa3
- }
- })
- Name(MT85, Package(0x2)
- {
- Package(0x9)
- {
- 0xaac,
- 0xbd8,
- 0xc28,
- 0xc6e,
- 0xcbe,
- 0xd22,
- 0xd86,
- 0xdd6,
- 0xde0
- },
- Package(0x9)
- {
- 0xc1e,
- 0xc64,
- 0xcb4,
- 0xd18,
- 0xd7c,
- 0xdcc,
- 0xdfe,
- 0xe1c,
- 0xfa3
- }
- })
- Name(CPFS, Package(0x7)
- {
- 0x5a,
- 0x4b,
- 0x37,
- 0x2d,
- 0x1e,
- 0x0,
- 0x0
- })
- Method(TRUP, 0x0, Serialized)
- {
- If(LEqual(PRDT, 0x1))
- {
- Store(0x0, Local0)
- }
- Else
- {
- If(LEqual(PRDT, 0x2))
- {
- Store(MT10, Index(TRIP, 0x1, ))
- }
- Else
- {
- If(LEqual(PRDT, 0x3))
- {
- Store(MT85, Index(TRIP, 0x1, ))
- }
- Else
- {
- If(LEqual(PRDT, 0x4))
- {
- Store(PT90, Index(TRIP, 0x1, ))
- }
- }
- }
- }
- }
- Method(INTM, 0x1, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- Store(0x0, Local0)
- INTS(Local0, 0x0)
- If(Arg0)
- {
- Notify(\_TZ_.CPUZ, 0x80)
- Notify(\_TZ_.SKNZ, 0x80)
- }
- }
- Else
- {
- Store(0x0, Local0)
- INTS(Local0, 0x0)
- IVTH()
- If(Arg0)
- {
- Notify(\_TZ_.CPUZ, 0x80)
- Notify(\_TZ_.GFXZ, 0x80)
- Notify(\_TZ_.SKNZ, 0x80)
- }
- }
- }
- Name(LVTH, 0x0)
- Name(LVTK, 0x0)
- Name(GFTH, 0x0)
- Method(IVTH, 0x0, Serialized)
- {
- Store(0x0, LVTH)
- Store(0x0, LVTK)
- Store(0x0, GFTH)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x40, 0x3)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x25, 0x7)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x27, 0x12)
- Subtract(\_TZ_.GFXZ._AC0(), 0xaac, Local1)
- Divide(Local1, 0xa, Local0, Local2)
- Add(Local2, 0x3, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x19, Local2)
- Subtract(\_TZ_.GFXZ._CRT(), 0xaac, Local1)
- Divide(Local1, 0xa, Local0, Local2)
- Add(Local2, 0x1, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x19, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xb, 0x7f)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xc, 0x0)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x7, 0x6f)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x13, 0x0)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x8, 0x0)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x14, 0x0)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xe, 0x88)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xd, 0x11)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xa, 0x4)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x9, 0x0)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0x21, 0xa)
- }
- PowerResource(PFN6, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x1, 0x0))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x1, 0x0)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x1, 0x0)
- }
- }
- PowerResource(PFN7, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x1, 0x1))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x1, 0x1)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x1, 0x1)
- }
- }
- PowerResource(PFN8, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x1, 0x2))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x1, 0x2)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x1, 0x2)
- }
- }
- PowerResource(PFN9, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x1, 0x3))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x1, 0x3)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x1, 0x3)
- }
- }
- PowerResource(PFNA, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x1, 0x4))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x1, 0x4)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x1, 0x4)
- }
- }
- PowerResource(PFNB, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x1, 0x5))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x1, 0x5)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x1, 0x5)
- }
- }
- PowerResource(PGF0, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(GFTH)
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- If(LAnd(LEqual(GFTH, 0x0), LEqual(LVTH, 0x0)))
- {
- If(LNot(LLess(LVTK, \_TZ_.GFXZ._AC0())))
- {
- \_SB_.SSMI(0xea74, 0x3, 0x1, 0x0, 0x0)
- Store(0x1, LVTH)
- }
- }
- Store(0x1, GFTH)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- If(LAnd(GFTH, LVTH))
- {
- If(LLess(LVTK, \_TZ_.GFXZ._AC0()))
- {
- \_SB_.SSMI(0xea74, 0x3, 0x0, 0x0, 0x0)
- Store(0x0, LVTH)
- }
- }
- Store(0x0, GFTH)
- }
- }
- Device(FAN6)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x6)
- Name(_PR0, Package(0x1)
- {
- PFN6
- })
- }
- Device(FAN7)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x7)
- Name(_PR0, Package(0x1)
- {
- PFN7
- })
- }
- Device(FAN8)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x8)
- Name(_PR0, Package(0x1)
- {
- PFN8
- })
- }
- Device(FAN9)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x9)
- Name(_PR0, Package(0x1)
- {
- PFN9
- })
- }
- Device(FANA)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0xa)
- Name(_PR0, Package(0x1)
- {
- PFNA
- })
- }
- Device(FANB)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0xb)
- Name(_PR0, Package(0x1)
- {
- PFNB
- })
- }
- Device(FANG)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0xc)
- Name(_PR0, Package(0x1)
- {
- PGF0
- })
- }
- ThermalZone(GFXZ)
- {
- Name(_AL0, Package(0x1)
- {
- FANG
- })
- Name(_AL1, Package(0x1)
- {
- FAN6
- })
- Name(_AL2, Package(0x1)
- {
- FAN7
- })
- Name(_AL3, Package(0x1)
- {
- FAN8
- })
- Name(_AL4, Package(0x1)
- {
- FAN9
- })
- Name(_AL5, Package(0x1)
- {
- FANA
- })
- Name(_AL6, Package(0x1)
- {
- FANB
- })
- Method(_AC0, 0x0, NotSerialized)
- {
- Return(GETP(0x6, 0x2))
- }
- Method(_AC1, 0x0, NotSerialized)
- {
- Return(GETP(0x5, 0x2))
- }
- Method(_AC2, 0x0, NotSerialized)
- {
- Return(GETP(0x4, 0x2))
- }
- Method(_AC3, 0x0, NotSerialized)
- {
- Return(GETP(0x3, 0x2))
- }
- Method(_AC4, 0x0, NotSerialized)
- {
- Return(GETP(0x2, 0x2))
- }
- Method(_AC5, 0x0, NotSerialized)
- {
- Return(GETP(0x1, 0x2))
- }
- Method(_AC6, 0x0, NotSerialized)
- {
- Return(GETP(0x0, 0x2))
- }
- Method(_CRT, 0x0, Serialized)
- {
- Return(GETP(0x7, 0x2))
- }
- Method(_TMP, 0x0, Serialized)
- {
- Store(\_SB_.PCI0.LPCB.SMAB(0x9b, 0x1, 0x0), Local2)
- Store(Local2, VGGT)
- Store(GTTP(0x2), Local0)
- Store(Local0, LVTK)
- If(VGST)
- {
- And(VGST, 0xff, Local2)
- And(ShiftRight(VGST, 0x8, ), 0xff, Local6)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xe, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x9a, 0xd, Local6)
- Store(0x0, VGST)
- Notify(\_TZ_.GFXZ, 0x81)
- }
- Return(Local0)
- }
- }
- Method(THEV, 0x0, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- Store(\_SB_.PCI0.LPCB.SMAB(0x19, 0x0, 0x0), Local0)
- Store(0x0, Local1)
- Store(0xe, Local3)
- Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x2, 0x0), Local0)
- If(LEqual(And(Local0, 0xff00, ), 0x0))
- {
- If(And(Local0, 0x18, ))
- {
- Or(Local1, 0x2, Local1)
- If(And(Local0, 0x8, ))
- {
- And(Local3, Not(0x2, ), Local3)
- }
- }
- If(And(Local0, 0x60, ))
- {
- Or(Local1, 0x8, Local1)
- If(And(Local0, 0x20, ))
- {
- And(Local3, Not(0x8, ), Local3)
- }
- }
- }
- Else
- {
- Store(0xe, Local1)
- }
- Acquire(THER, 0xffff)
- Or(THSC, Local1, THSC)
- And(WHTR, Not(0xe, ), Local4)
- Or(Local4, Local3, WHTR)
- Release(THER)
- If(And(Local1, 0x2, ))
- {
- Notify(CPUZ, 0x80)
- }
- If(And(Local1, 0x8, ))
- {
- Notify(SKNZ, 0x80)
- }
- }
- Else
- {
- Store(\_SB_.PCI0.LPCB.SMAB(0x19, 0x0, 0x0), Local0)
- Store(0x0, Local1)
- Store(0xe, Local3)
- Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x2, 0x0), Local0)
- Store(\_SB_.PCI0.LPCB.SMAB(0x9b, 0x2, 0x0), Local2)
- If(LEqual(And(Local0, 0xff00, ), 0x0))
- {
- If(And(Local0, 0x18, ))
- {
- Or(Local1, 0x2, Local1)
- If(And(Local0, 0x8, ))
- {
- And(Local3, Not(0x2, ), Local3)
- }
- }
- If(And(Local0, 0x60, ))
- {
- Or(Local1, 0x8, Local1)
- If(And(Local0, 0x20, ))
- {
- And(Local3, Not(0x8, ), Local3)
- }
- }
- }
- If(LEqual(And(Local2, 0xff00, ), 0x0))
- {
- If(And(Local2, 0x18, ))
- {
- Or(Local1, 0x4, Local1)
- If(And(Local2, 0x8, ))
- {
- And(Local3, Not(0x4, ), Local3)
- }
- }
- }
- If(LEqual(Local1, 0x0))
- {
- Store(0xe, Local1)
- }
- Acquire(THER, 0xffff)
- Or(THSC, Local1, THSC)
- And(WHTR, Not(0xe, ), Local4)
- Or(Local4, Local3, WHTR)
- Release(THER)
- If(And(Local1, 0x2, ))
- {
- Notify(CPUZ, 0x80)
- }
- If(And(Local1, 0x4, ))
- {
- Notify(GFXZ, 0x80)
- }
- If(And(Local1, 0x8, ))
- {
- Notify(SKNZ, 0x80)
- }
- }
- }
- Name(SCPC, 0x0)
- Name(WHTR, 0xe)
- Name(OSTH, 0x0)
- Name(LARE, Package(0x5)
- {
- })
- Name(LARP, Package(0x5)
- {
- })
- Name(CUZO, Package(0x5)
- {
- })
- Name(CUFA, Buffer(0x2)
- {
- })
- Mutex(THER, 0x0)
- Name(THSC, 0x1f)
- Name(THOS, 0x0)
- Name(MIFA, 0x14)
- Name(VGGT, 0xc3c)
- Name(VGST, 0x0)
- Method(FAST, 0x2, Serialized)
- {
- Store(ShiftLeft(0x1, Arg1, ), Local1)
- If(And(DerefOf(Index(CUFA, Arg0, )), Local1, ))
- {
- Store(0x1, Local0)
- }
- Else
- {
- Store(0x0, Local0)
- }
- Return(Local0)
- }
- Method(FOOF, 0x3, Serialized)
- {
- Store(DerefOf(Index(CUFA, Arg1, )), Local4)
- Store(Local4, Local1)
- Store(ShiftLeft(0x1, Arg2, ), Local0)
- If(LEqual(Arg0, 0x1))
- {
- Or(Local4, Local0, Local4)
- }
- Else
- {
- And(Local4, Not(Local0, ), Local4)
- }
- Store(Local4, Index(CUFA, Arg1, ))
- If(LNot(LEqual(Local1, Local4)))
- {
- Store(0x0, Local5)
- Store(0x0, Local2)
- While(LLess(Local5, 0x2))
- {
- Or(Local2, DerefOf(Index(CUFA, Local5, )), Local2)
- Increment(Local5)
- }
- Store(0x0, Local3)
- Store(0x0, Local0)
- While(LNot(LEqual(Local2, 0x0)))
- {
- If(And(Local2, 0x1, ))
- {
- Store(DerefOf(Index(CPFS, Local3, )), Local0)
- Store(0x0, Local2)
- }
- Else
- {
- Store(ShiftRight(Local2, 0x1, ), Local2)
- Add(Local3, 0x1, Local3)
- }
- }
- \_SB_.PCI0.LPCB.EC0_.KSFS(Local0)
- }
- }
- Method(GETP, 0x2, Serialized)
- {
- Store(0x1, Local0)
- Store(Arg0, Local1)
- Store(DerefOf(Index(CUZO, Arg1, )), Local3)
- If(LEqual(Local3, 0xff))
- {
- Store(0x0, Local3)
- }
- If(LLess(Arg0, Local3))
- {
- Store(0x0, Local0)
- Add(Arg0, 0x1, Local1)
- }
- Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg1), )), Local0, )), Local1, )), Local2)
- Return(Local2)
- }
- Method(ADCT, 0x2, Serialized)
- {
- If(And(Arg0, 0x80, ))
- {
- Subtract(Arg0, 0x100, Local0)
- }
- Else
- {
- Store(Arg0, Local0)
- }
- If(LEqual(Arg1, 0x1))
- {
- Add(Local0, THOS, Local2)
- }
- Else
- {
- Subtract(Local0, THOS, Local2)
- }
- If(LGreater(Local2, 0x7f))
- {
- If(LEqual(And(Local2, 0x8000, ), 0x0))
- {
- Store(0x7f, Local2)
- }
- And(Local2, 0xff, Local2)
- }
- Return(Local2)
- }
- Method(GEDT, 0x0, Serialized)
- {
- Store(TRCN, Local0)
- Store(LOTR, Local2)
- Store(HITR, Local3)
- Store(0x0, Local1)
- While(LLess(Local1, Local0))
- {
- If(Local1)
- {
- Store(DerefOf(Index(Local2, Local1, )), Local4)
- Multiply(Local4, 0xa, Local4)
- Add(Local4, 0xaac, Local4)
- Store(Local4, Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(0x0), )), 0x0, )), Local1, ))
- }
- Store(DerefOf(Index(Local3, Local1, )), Local4)
- Multiply(Local4, 0xa, Local4)
- Add(Local4, 0xaac, Local4)
- Store(Local4, Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(0x0), )), 0x1, )), Local1, ))
- Increment(Local1)
- }
- }
- Method(BOTT, 0x0, Serialized)
- {
- TRUP()
- GEDT()
- If(And(\THOS, 0x80, ))
- {
- Subtract(\THOS, 0x100, \_TZ_.THOS)
- }
- Else
- {
- Store(\THOS, \_TZ_.THOS)
- }
- }
- Method(RETD, 0x0, Serialized)
- {
- Acquire(THER, 0xffff)
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- Store(0x1b, THSC)
- Store(0xa, WHTR)
- }
- Else
- {
- Store(0x1f, THSC)
- Store(0xe, WHTR)
- }
- Store(0x0, Local0)
- While(LLess(Local0, 0x5))
- {
- Store(0x0, Index(LARE, Local0, ))
- Store(0x0, Index(LARP, Local0, ))
- Store(0xff, Index(CUZO, Local0, ))
- Increment(Local0)
- }
- Store(0x0, Local0)
- While(LLess(Local0, 0x2))
- {
- Store(0x0, Index(CUFA, Local0, ))
- Increment(Local0)
- }
- Release(THER)
- }
- Method(INTS, 0x2, Serialized)
- {
- If(Arg0)
- {
- Store(Arg0, Local2)
- }
- Else
- {
- Subtract(\_TZ_.CPUZ._AC0(), 0xaac, Local1)
- Divide(Local1, 0xa, Local0, Local2)
- Store(ADCT(Local2, 0x1), Local2)
- Add(Local2, 0x3, Local2)
- }
- \_SB_.PCI0.LPCB.SMAB(0x98, 0x19, Local2)
- If(Arg1)
- {
- Store(Arg1, Local2)
- }
- Else
- {
- Subtract(\_TZ_.SKNZ._CRT(), 0xaac, Local1)
- Divide(Local1, 0xa, Local0, Local2)
- Add(Local2, 0x1, Local2)
- }
- \_SB_.PCI0.LPCB.SMAB(0x98, 0x20, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x98, 0xa, 0x4)
- \_SB_.PCI0.LPCB.SMAB(0x98, 0x9, 0x0)
- \_SB_.PCI0.LPCB.SMAB(0x98, 0x21, 0xa)
- If(LEqual(FOAL, 0x1))
- {
- Store(0x14, MIFA)
- }
- Else
- {
- Store(0x0, MIFA)
- }
- \_SB_.PCI0.LPCB.EC0_.KFCL(0x0, MIFA)
- }
- Method(GTTP, 0x1, Serialized)
- {
- If(LLess(Arg0, 0x4))
- {
- If(LEqual(Arg0, 0x0))
- {
- Store(0x10, Local2)
- If(DTSE)
- {
- Store(DTS1, Local2)
- Store(DTS2, Local3)
- If(LGreater(Local3, Local2))
- {
- Store(Local3, Local2)
- }
- }
- }
- Else
- {
- If(LEqual(Arg0, 0x3))
- {
- Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x0, 0x0), Local2)
- }
- If(LEqual(Arg0, 0x2))
- {
- Store(VGGT, Local2)
- }
- If(LEqual(Arg0, 0x1))
- {
- Store(\_SB_.PCI0.LPCB.SMAB(0x99, 0x1, 0x0), Local2)
- If(LEqual(And(Local2, 0xff00, ), 0x0))
- {
- Store(ADCT(Local2, 0x0), Local2)
- }
- }
- If(And(Local2, 0xff00, ))
- {
- Store(0x0, Local2)
- }
- If(And(Local2, 0x80, ))
- {
- Subtract(Local2, 0x100, Local2)
- }
- }
- Multiply(Local2, 0xa, Local1)
- Add(Local1, 0xaac, Local1)
- }
- Else
- {
- Store(0xb4c, Local1)
- Acquire(\_SB_.PCI0.LPCB.EC0_.ECMX, 0xffff)
- If(\_SB_.PCI0.LPCB.EC0_.ECRG)
- {
- Store(\_SB_.PCI0.LPCB.EC0_.CBT_, Local1)
- }
- Release(\_SB_.PCI0.LPCB.EC0_.ECMX)
- }
- Store(Local1, Local2)
- Store(0x0, Local3)
- If(LLess(Local1, 0xb4c))
- {
- If(LLess(DerefOf(Index(LARE, Arg0, )), 0xb4c))
- {
- Store(0xb4c, Index(LARP, Arg0, ))
- }
- Store(DerefOf(Index(LARP, Arg0, )), Local1)
- }
- If(LEqual(Arg0, 0x0))
- {
- If(LGreater(Local2, DerefOf(Index(LARE, Arg0, ))))
- {
- Store(0x1, Local3)
- }
- }
- Store(Local2, Index(LARE, Arg0, ))
- Store(Local1, Index(LARP, Arg0, ))
- Acquire(THER, 0xffff)
- Store(ShiftLeft(0x1, Arg0, ), Local2)
- If(And(THSC, Local2, ))
- {
- If(LEqual(Arg0, 0x0))
- {
- Or(WHTR, Local3, WHTR)
- }
- If(And(WHTR, Local2, ))
- {
- Store(Match(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg0), )), 0x1, )), MGT, Local1, MTR, 0x0, 0x0), Local0)
- }
- Else
- {
- Store(Match(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg0), )), 0x0, )), MGE, Local1, MTR, 0x0, 0x0), Local0)
- Decrement(Local0)
- Or(WHTR, Local2, WHTR)
- }
- If(LOr(LNot(LEqual(Local0, DerefOf(Index(CUZO, Arg0, )))), SCPC))
- {
- Store(0x0, SCPC)
- Store(Local0, Index(CUZO, Arg0, ))
- If(LEqual(Arg0, 0x0))
- {
- Notify(\_TZ_.DTSZ, 0x81)
- }
- Else
- {
- If(LLess(Arg0, 0x4))
- {
- SETM(Local0, Arg0)
- }
- Else
- {
- Notify(\_TZ_.BATZ, 0x81)
- }
- }
- }
- And(THSC, Not(Local2, ), THSC)
- }
- Release(THER)
- Return(Local1)
- }
- Method(SETM, 0x2, Serialized)
- {
- Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg1), )), 0x1, )), Arg0, )), Local0)
- Subtract(Local0, 0xaac, Local0)
- Divide(Local0, 0xa, Local1, Local6)
- If(LAnd(LEqual(Arg1, 0x1), LLess(Local6, 0x7f)))
- {
- Store(ADCT(Local6, 0x1), Local6)
- }
- Store(DerefOf(Index(DerefOf(Index(DerefOf(Index(TRIP, CATZ(Arg1), )), 0x0, )), Arg0, )), Local0)
- If(LLess(Local0, 0xaac))
- {
- Subtract(0xaac, Local0, Local1)
- Divide(Local1, 0xa, Local3, Local2)
- Not(Local2, Local2)
- Add(Local2, 0x1, Local2)
- And(Local2, 0xff, Local2)
- }
- Else
- {
- Subtract(Local0, 0xaac, Local0)
- Divide(Local0, 0xa, Local1, Local2)
- If(LEqual(Arg1, 0x1))
- {
- Store(ADCT(Local2, 0x1), Local2)
- }
- }
- If(LEqual(Arg1, 0x1))
- {
- \_SB_.PCI0.LPCB.SMAB(0x98, 0xe, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x98, 0xd, Local6)
- Notify(\_TZ_.CPUZ, 0x81)
- }
- If(LEqual(Arg1, 0x2))
- {
- Store(Local2, VGST)
- Or(ShiftLeft(Local6, 0x8, ), VGST, VGST)
- }
- If(LEqual(Arg1, 0x3))
- {
- \_SB_.PCI0.LPCB.SMAB(0x98, 0xc, Local2)
- \_SB_.PCI0.LPCB.SMAB(0x98, 0xb, Local6)
- Notify(\_TZ_.SKNZ, 0x81)
- }
- }
- Method(CATZ, 0x1, Serialized)
- {
- Store(Arg0, Local1)
- Return(Local1)
- }
- Method(PSL_, 0x0, Serialized)
- {
- If(And(CFGD, 0x1000000, ))
- {
- Return(Package(0x2)
- {
- \_PR_.CPU0,
- \_PR_.CPU1
- })
- }
- Else
- {
- Return(Package(0x1)
- {
- \_PR_.CPU0
- })
- }
- }
- PowerResource(PFN0, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x0, 0x0))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x0, 0x0)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x0, 0x0)
- }
- }
- PowerResource(PFN1, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x0, 0x1))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x0, 0x1)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x0, 0x1)
- }
- }
- PowerResource(PFN2, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x0, 0x2))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x0, 0x2)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x0, 0x2)
- }
- }
- PowerResource(PFN3, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x0, 0x3))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x0, 0x3)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x0, 0x3)
- }
- }
- PowerResource(PFN4, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x0, 0x4))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x0, 0x4)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x0, 0x4)
- }
- }
- PowerResource(PFN5, 0x0, 0x0)
- {
- Method(_STA, 0x0, NotSerialized)
- {
- Return(FAST(0x0, 0x5))
- }
- Method(_ON_, 0x0, NotSerialized)
- {
- FOOF(0x1, 0x0, 0x5)
- }
- Method(_OFF, 0x0, NotSerialized)
- {
- FOOF(0x0, 0x0, 0x5)
- }
- }
- Device(FAN0)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x0)
- Name(_PR0, Package(0x1)
- {
- PFN0
- })
- }
- Device(FAN1)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x1)
- Name(_PR0, Package(0x1)
- {
- PFN1
- })
- }
- Device(FAN2)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x2)
- Name(_PR0, Package(0x1)
- {
- PFN2
- })
- }
- Device(FAN3)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x3)
- Name(_PR0, Package(0x1)
- {
- PFN3
- })
- }
- Device(FAN4)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x4)
- Name(_PR0, Package(0x1)
- {
- PFN4
- })
- }
- Device(FAN5)
- {
- Name(_HID, 0xb0cd041)
- Name(_UID, 0x5)
- Name(_PR0, Package(0x1)
- {
- PFN5
- })
- }
- ThermalZone(DTSZ)
- {
- Method(_CRT, 0x0, Serialized)
- {
- Return(GETP(0x6, 0x0))
- }
- Method(_TMP, 0x0, Serialized)
- {
- If(LEqual(OSTH, 0x0))
- {
- \_TZ_.INTM(0x0)
- Store(0x1, OSTH)
- }
- Return(GTTP(0x0))
- }
- }
- ThermalZone(CPUZ)
- {
- Name(_AL0, Package(0x1)
- {
- FAN0
- })
- Name(_AL1, Package(0x1)
- {
- FAN1
- })
- Name(_AL2, Package(0x1)
- {
- FAN2
- })
- Name(_AL3, Package(0x1)
- {
- FAN3
- })
- Name(_AL4, Package(0x1)
- {
- FAN4
- })
- Name(_AL5, Package(0x1)
- {
- FAN5
- })
- Method(_AC0, 0x0, NotSerialized)
- {
- Return(GETP(0x5, 0x1))
- }
- Method(_AC1, 0x0, NotSerialized)
- {
- Return(GETP(0x4, 0x1))
- }
- Method(_AC2, 0x0, NotSerialized)
- {
- Return(GETP(0x3, 0x1))
- }
- Method(_AC3, 0x0, NotSerialized)
- {
- Return(GETP(0x2, 0x1))
- }
- Method(_AC4, 0x0, NotSerialized)
- {
- Return(GETP(0x1, 0x1))
- }
- Method(_AC5, 0x0, NotSerialized)
- {
- Return(GETP(0x0, 0x1))
- }
- Method(_PSV, 0x0, NotSerialized)
- {
- Return(GETP(0x6, 0x1))
- }
- Method(_PSL, 0x0, NotSerialized)
- {
- Return(PSL_())
- }
- Name(_TSP, 0x12c)
- Name(_TC1, 0x1)
- Name(_TC2, 0x2)
- Method(_CRT, 0x0, Serialized)
- {
- Return(GETP(0x7, 0x1))
- }
- Method(_TMP, 0x0, Serialized)
- {
- Store(GTTP(0x1), Local0)
- Return(Local0)
- }
- }
- ThermalZone(SKNZ)
- {
- Method(_PSV, 0x0, NotSerialized)
- {
- Return(GETP(0x0, 0x3))
- }
- Method(_PSL, 0x0, NotSerialized)
- {
- Return(PSL_())
- }
- Name(_TSP, 0x12c)
- Name(_TC1, 0x1)
- Name(_TC2, 0x2)
- Method(_CRT, 0x0, Serialized)
- {
- Return(GETP(0x1, 0x3))
- }
- Method(_TMP, 0x0, Serialized)
- {
- Return(GTTP(0x3))
- }
- }
- ThermalZone(BATZ)
- {
- Method(_PSV, 0x0, NotSerialized)
- {
- Return(GETP(0x0, 0x4))
- }
- Method(_PSL, 0x0, NotSerialized)
- {
- Return(PSL_())
- }
- Name(_TSP, 0x12c)
- Name(_TC1, 0x1)
- Name(_TC2, 0x2)
- Method(_CRT, 0x0, Serialized)
- {
- Return(\_TZ_.CPUZ._CRT())
- }
- Method(_TMP, 0x0, Serialized)
- {
- Return(GTTP(0x4))
- }
- }
- Method(FOAA, 0x0, NotSerialized)
- {
- Store(0x0, Local0)
- }
- ThermalZone(FDTZ)
- {
- Name(_CRT, 0xef8)
- Method(_TMP, 0x0, Serialized)
- {
- Store(\_SB_.GRFS(), Local0)
- If(LGreater(Local0, 0x64))
- {
- Store(0x64, Local0)
- }
- Multiply(Local0, 0xa, Local0)
- Add(Local0, 0xaac, Local0)
- Return(Local0)
- }
- }
- }
- Name(\NIST, Package(0x10)
- {
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F"
- })
- Method(\ISTR, 0x2, NotSerialized)
- {
- Store(Arg0, Local0)
- Store("", Local7)
- Store(Arg1, Local4)
- While(LGreater(Local4, 0x0))
- {
- And(Local0, 0xf, Local1)
- Store(DerefOf(Index(\NIST, Local1, )), Local2)
- Concatenate(Local2, Local7, Local3)
- Store(Local3, Local7)
- ShiftRight(Local0, 0x4, Local0)
- Decrement(Local4)
- }
- Return(Local7)
- }
- Method(\SRCP, 0x2, NotSerialized)
- {
- Store(SizeOf(Arg0), Local7)
- If(LNot(LEqual(Local7, SizeOf(Arg1))))
- {
- Return(0x0)
- }
- Name(ST00, Buffer(Local7)
- {
- })
- Name(ST01, Buffer(Local7)
- {
- })
- Store(Arg0, ST00)
- Store(Arg1, ST01)
- Store(0x0, Local6)
- Store(0x1, Local0)
- While(LAnd(LNot(LEqual(Local6, Local7)), Local0))
- {
- Store(DerefOf(Index(ST00, Local6, )), Local2)
- Store(DerefOf(Index(ST01, Local6, )), Local3)
- Increment(Local6)
- If(LNot(LEqual(Local2, Local3)))
- {
- Store(0x0, Local0)
- }
- }
- Return(Local0)
- }
- Name(WOSI, 0xff)
- Name(OSID, Package(0x3)
- {
- "Microsoft Windows",
- "Microsoft WindowsME: Millennium Edition",
- "Microsoft Windows NT"
- })
- Method(\SRCM, 0x3, NotSerialized)
- {
- Name(ST00, Buffer(0x8c)
- {
- })
- Name(ST01, Buffer(0x8c)
- {
- })
- Store(Arg0, ST00)
- Store(Arg1, ST01)
- Store(0x0, Local6)
- Store(0x1, Local0)
- While(LAnd(LNot(LEqual(Local6, Arg2)), Local0))
- {
- Store(DerefOf(Index(ST00, Local6, )), Local2)
- Store(DerefOf(Index(ST01, Local6, )), Local3)
- Increment(Local6)
- If(LNot(LEqual(Local2, Local3)))
- {
- Store(0x0, Local0)
- }
- }
- Return(Local0)
- }
- Method(WCOS, 0x0, Serialized)
- {
- If(LEqual(WOSI, 0xff))
- {
- Store(\_OS_, Local0)
- Store(SizeOf(OSID), Local7)
- Store(0x0, Local1)
- While(LAnd(LLess(Local1, Local7), LEqual(WOSI, 0xff)))
- {
- Store(\SRCP(Local0, DerefOf(Index(OSID, Local1, ))), Local2)
- If(Local2)
- {
- Add(Local1, 0x1, WOSI)
- }
- Else
- {
- Increment(Local1)
- }
- }
- If(LEqual(WOSI, 0xff))
- {
- Store(0x0, WOSI)
- }
- If(LOr(LEqual(WOSI, 0x0), LEqual(WOSI, 0x3)))
- {
- If(CondRefOf(\_OSI, Local0))
- {
- If(\_OSI("Windows 2001"))
- {
- Store(0x4, WOSI)
- }
- If(\_OSI("Windows 2001 SP1"))
- {
- Store(0x4, WOSI)
- }
- If(\_OSI("Windows 2001 SP2"))
- {
- Store(0x5, WOSI)
- }
- If(\_OSI("Windows 2006"))
- {
- Store(0x6, WOSI)
- }
- If(\_OSI("Windows 2009"))
- {
- Store(0x7, WOSI)
- }
- }
- }
- Store(WOSI, WHOS)
- }
- Return(WOSI)
- }
- Method(UPRW, 0x2, Serialized)
- {
- Store(Package(0x2)
- {
- 0x0,
- 0x0
- }, Local0)
- Store(Arg0, Index(Local0, 0x0, ))
- If(LEqual(UWKD, 0x0))
- {
- Store(Arg1, Index(Local0, 0x1, ))
- }
- Return(Local0)
- }
- Name(EUPC, Package(0x4)
- {
- 0xff,
- 0xff,
- 0x0,
- 0x0
- })
- Name(EPLD, Buffer(0x10)
- {
- 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00
- })
- Method(CBRT, 0x2, Serialized)
- {
- Store(SizeOf(Arg0), Local6)
- Store(SizeOf(Arg1), Local7)
- If(LEqual(Local6, 0x0))
- {
- Store(Arg1, Local0)
- Return(Local0)
- }
- If(LEqual(Local7, 0x0))
- {
- Store(Arg0, Local0)
- Return(Local0)
- }
- Add(Local7, Local6, Local1)
- Subtract(Local1, 0x2, Local1)
- Store(Buffer(Local1)
- {
- }, Local0)
- Store(0x0, Local1)
- While(LLess(Local1, SizeOf(Arg0)))
- {
- Store(DerefOf(Index(Arg0, Local1, )), Index(Local0, Local1, ))
- Increment(Local1)
- }
- Subtract(Local1, 0x2, Local1)
- Store(0x0, Local2)
- While(LLess(Local2, SizeOf(Arg1)))
- {
- Store(DerefOf(Index(Arg1, Local2, )), Index(Local0, Local1, ))
- Increment(Local1)
- Increment(Local2)
- }
- Return(Local0)
- }
- Scope(\_SB_)
- {
- Mutex(MSMI, 0x0)
- Method(SSMI, 0x5, NotSerialized)
- {
- Acquire(MSMI, 0xffff)
- If(Arg4)
- {
- Acquire(\_GL_, 0xffff)
- }
- ShiftLeft(Arg0, 0x10, EAX_)
- Store(Arg1, EBX_)
- Store(Arg2, ECX_)
- Store(Arg3, EDX_)
- Store(0x0, REFS)
- \_SB_.PCI0.GSWS(Arg0)
- Store(REFS, Local0)
- If(Arg4)
- {
- Release(\_GL_)
- }
- Release(MSMI)
- Return(Local0)
- }
- }
- Scope(\_SB_)
- {
- Device(PCI0)
- {
- Name(_HPP, Package(0x4)
- {
- 0x10,
- 0x40,
- 0x0,
- 0x0
- })
- Method(_S3D, 0x0, NotSerialized)
- {
- Return(0x2)
- }
- Method(_S4D, 0x0, NotSerialized)
- {
- Return(0x2)
- }
- Name(_HID, 0x80ad041)
- Name(_CID, 0x30ad041)
- Device(MCHC)
- {
- Name(_ADR, 0x0)
- OperationRegion(HBUS, PCI_Config, 0x40, 0xc0)
- Field(HBUS, DWordAcc, NoLock, Preserve)
- {
- EPEN, 1,
- , 11,
- EPBR, 20,
- , 32,
- MHEN, 1,
- , 13,
- MHBR, 18,
- Offset(0x20),
- PXEN, 1,
- PXSZ, 2,
- , 23,
- PXBR, 6,
- , 32,
- DIEN, 1,
- , 11,
- DIBR, 20,
- , 32,
- IPEN, 1,
- , 11,
- IPBR, 20,
- Offset(0x50),
- , 4,
- PM0H, 2,
- , 2,
- PM1L, 2,
- , 2,
- PM1H, 2,
- , 2,
- PM2L, 2,
- , 2,
- PM2H, 2,
- , 2,
- PM3L, 2,
- , 2,
- PM3H, 2,
- , 2,
- PM4L, 2,
- , 2,
- PM4H, 2,
- , 2,
- PM5L, 2,
- , 2,
- PM5H, 2,
- , 2,
- PM6L, 2,
- , 2,
- PM6H, 2,
- , 2,
- , 7,
- HENA, 1,
- Offset(0x62),
- TUUD, 16,
- Offset(0x70),
- , 4,
- TLUD, 12,
- Offset(0x89),
- , 3,
- GTSE, 1,
- , 4
- }
- OperationRegion(MCHT, SystemMemory, 0xfed11000, 0xff)
- Field(MCHT, ByteAcc, NoLock, Preserve)
- {
- Offset(0x1e),
- T0IS, 16,
- Offset(0x5e),
- T1IS, 16,
- Offset(0xef),
- ESCS, 8
- }
- }
- Name(BUF0, Buffer(0x208)
- {
- 0x88, 0x0d, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x87, 0x17, 0x00, 0x01, 0x0c, 0x03, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0x0c, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0xf8, 0x0c, 0x00, 0x00, 0x47, 0x01, 0xf8, 0x0c, 0xf8, 0x0c,
- 0x01, 0x08, 0x87, 0x17, 0x00, 0x01, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0xf3, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0xff, 0xff, 0x0b, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0xff, 0x3f, 0x0c, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00,
- 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x0c, 0x00, 0xff, 0x7f,
- 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17,
- 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x00,
- 0xff, 0xbf, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0,
- 0x0c, 0x00, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
- 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x0d, 0x00, 0xff, 0x3f, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x0d, 0x00, 0xff, 0x7f, 0x0d, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0d, 0x00, 0xff, 0xbf, 0x0d, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00,
- 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0d, 0x00, 0xff, 0xff,
- 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17,
- 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00,
- 0xff, 0x3f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
- 0x0e, 0x00, 0xff, 0x7f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
- 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x80, 0x0e, 0x00, 0xff, 0xbf, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0xc0, 0x0e, 0x00, 0xff, 0xff, 0x0e, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0xff, 0xff, 0x0f, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x87, 0x17, 0x00, 0x00,
- 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, 0x17,
- 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xff, 0xff, 0xdf, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x87, 0x17, 0x00, 0x00, 0x0c, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
- 0xe0, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xef,
- 0x1f, 0x01, 0x79, 0x00
- })
- Method(_CRS, 0x0, Serialized)
- {
- If(^MCHC.PM1L)
- {
- CreateDWordField(BUF0, 0x7c, C0LN)
- Store(Zero, C0LN)
- }
- If(LEqual(^MCHC.PM1L, 0x1))
- {
- CreateBitField(BUF0, 0x358, C0RW)
- Store(Zero, C0RW)
- }
- If(^MCHC.PM1H)
- {
- CreateDWordField(BUF0, 0x96, C4LN)
- Store(Zero, C4LN)
- }
- If(LEqual(^MCHC.PM1H, 0x1))
- {
- CreateBitField(BUF0, 0x428, C4RW)
- Store(Zero, C4RW)
- }
- If(^MCHC.PM2L)
- {
- CreateDWordField(BUF0, 0xb0, C8LN)
- Store(Zero, C8LN)
- }
- If(LEqual(^MCHC.PM2L, 0x1))
- {
- CreateBitField(BUF0, 0x4f8, C8RW)
- Store(Zero, C8RW)
- }
- If(^MCHC.PM2H)
- {
- CreateDWordField(BUF0, 0xca, CCLN)
- Store(Zero, CCLN)
- }
- If(LEqual(^MCHC.PM2H, 0x1))
- {
- CreateBitField(BUF0, 0x5c8, CCRW)
- Store(Zero, CCRW)
- }
- If(^MCHC.PM3L)
- {
- CreateDWordField(BUF0, 0xe4, D0LN)
- Store(Zero, D0LN)
- }
- If(LEqual(^MCHC.PM3L, 0x1))
- {
- CreateBitField(BUF0, 0x698, D0RW)
- Store(Zero, D0RW)
- }
- If(^MCHC.PM3H)
- {
- CreateDWordField(BUF0, 0xfe, D4LN)
- Store(Zero, D4LN)
- }
- If(LEqual(^MCHC.PM3H, 0x1))
- {
- CreateBitField(BUF0, 0x768, D4RW)
- Store(Zero, D4RW)
- }
- If(^MCHC.PM4L)
- {
- CreateDWordField(BUF0, 0x118, D8LN)
- Store(Zero, D8LN)
- }
- If(LEqual(^MCHC.PM4L, 0x1))
- {
- CreateBitField(BUF0, 0x838, D8RW)
- Store(Zero, D8RW)
- }
- If(^MCHC.PM4H)
- {
- CreateDWordField(BUF0, 0x132, DCLN)
- Store(Zero, DCLN)
- }
- If(LEqual(^MCHC.PM4H, 0x1))
- {
- CreateBitField(BUF0, 0x908, DCRW)
- Store(Zero, DCRW)
- }
- If(^MCHC.PM5L)
- {
- CreateDWordField(BUF0, 0x14c, E0LN)
- Store(Zero, E0LN)
- }
- If(LEqual(^MCHC.PM5L, 0x1))
- {
- CreateBitField(BUF0, 0x9d8, E0RW)
- Store(Zero, E0RW)
- }
- If(^MCHC.PM5H)
- {
- CreateDWordField(BUF0, 0x166, E4LN)
- Store(Zero, E4LN)
- }
- If(LEqual(^MCHC.PM5H, 0x1))
- {
- CreateBitField(BUF0, 0xaa8, E4RW)
- Store(Zero, E4RW)
- }
- If(^MCHC.PM6L)
- {
- CreateDWordField(BUF0, 0x180, E8LN)
- Store(Zero, E8LN)
- }
- If(LEqual(^MCHC.PM6L, 0x1))
- {
- CreateBitField(BUF0, 0xb78, E8RW)
- Store(Zero, E8RW)
- }
- If(^MCHC.PM6H)
- {
- CreateDWordField(BUF0, 0x19a, ECLN)
- Store(Zero, ECLN)
- }
- If(LEqual(^MCHC.PM6H, 0x1))
- {
- CreateBitField(BUF0, 0xc48, ECRW)
- Store(Zero, ECRW)
- }
- If(^MCHC.PM0H)
- {
- CreateDWordField(BUF0, 0x1b4, F0LN)
- Store(Zero, F0LN)
- }
- If(LEqual(^MCHC.PM0H, 0x1))
- {
- CreateBitField(BUF0, 0xd18, F0RW)
- Store(Zero, F0RW)
- }
- CreateDWordField(BUF0, 0x1c2, M1MN)
- CreateDWordField(BUF0, 0x1c6, M1MX)
- CreateDWordField(BUF0, 0x1ce, M1LN)
- ShiftLeft(^MCHC.PXBR, 0x1a, Local0)
- ShiftLeft(^MCHC.TLUD, 0x14, M1MN)
- Subtract(Local0, 0x1, M1MX)
- Add(Subtract(Local0, M1MN, ), 0x1, M1LN)
- CreateDWordField(BUF0, 0x1dc, M2MN)
- CreateDWordField(BUF0, 0x1e0, M2MX)
- CreateDWordField(BUF0, 0x1e8, M2LN)
- ShiftRight(0x10000000, ^MCHC.PXSZ, Local1)
- Add(Local0, Local1, M2MN)
- Add(Subtract(M2MX, M2MN, ), 0x1, M2LN)
- Return(BUF0)
- }
- Device(PDRC)
- {
- Name(_HID, 0x20cd041)
- Name(_UID, 0x1)
- Name(BUF0, Buffer(0x62)
- {
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0xc0, 0xfe, 0x00, 0x10, 0x00, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x00, 0xd2, 0xfe, 0x00, 0x00, 0x02, 0x00,
- 0x86, 0x09, 0x00, 0x01, 0x00, 0x50, 0xd4, 0xfe, 0x00, 0xb0, 0x04, 0x00,
- 0x79, 0x00
- })
- Method(_CRS, 0x0, Serialized)
- {
- CreateDWordField(BUF0, 0x4, RBR0)
- ShiftLeft(\_SB_.PCI0.LPCB.RCBA, 0xe, RBR0)
- CreateDWordField(BUF0, 0x10, MBR0)
- ShiftLeft(\_SB_.PCI0.MCHC.MHBR, 0xe, MBR0)
- CreateDWordField(BUF0, 0x1c, DBR0)
- ShiftLeft(\_SB_.PCI0.MCHC.DIBR, 0xc, DBR0)
- CreateDWordField(BUF0, 0x28, EBR0)
- ShiftLeft(\_SB_.PCI0.MCHC.EPBR, 0xc, EBR0)
- CreateDWordField(BUF0, 0x34, XBR0)
- ShiftLeft(\_SB_.PCI0.MCHC.PXBR, 0x1a, XBR0)
- CreateDWordField(BUF0, 0x38, XSZ0)
- ShiftRight(0x10000000, \_SB_.PCI0.MCHC.PXSZ, XSZ0)
- Return(BUF0)
- }
- }
- Device(PEGP)
- {
- Name(_ADR, 0x10000)
- Method(_PRT, 0x0, NotSerialized)
- {
- If(GPIC)
- {
- Return(Package(0x4)
- {
- Package(0x4)
- {
- 0xffff,
- 0x0,
- 0x0,
- 0x10
- },
- Package(0x4)
- {
- 0xffff,
- 0x1,
- 0x0,
- 0x11
- },
- Package(0x4)
- {
- 0xffff,
- 0x2,
- 0x0,
- 0x12
- },
- Package(0x4)
- {
- 0xffff,
- 0x3,
- 0x0,
- 0x13
- }
- })
- }
- Else
- {
- Return(Package(0x4)
- {
- Package(0x4)
- {
- 0xffff,
- 0x0,
- \_SB_.PCI0.LPCB.LNKA,
- 0x0
- },
- Package(0x4)
- {
- 0xffff,
- 0x1,
- \_SB_.PCI0.LPCB.LNKB,
- 0x0
- },
- Package(0x4)
- {
- 0xffff,
- 0x2,
- \_SB_.PCI0.LPCB.LNKC,
- 0x0
- },
- Package(0x4)
- {
- 0xffff,
- 0x3,
- \_SB_.PCI0.LPCB.LNKD,
- 0x0
- }
- })
- }
- }
- }
- Event(\_SB_.BEVT)
- Device(GFX0)
- {
- Name(_ADR, 0x20000)
- Method(_DOS, 0x1, NotSerialized)
- {
- Store(And(Arg0, 0x7, ), DSEN)
- HDOS(Arg0)
- }
- Method(_DOD, 0x0, NotSerialized)
- {
- If(LEqual(DODC, 0x0))
- {
- Store(0x1, DODC)
- If(SCIP())
- {
- HDOD()
- Store(0x0, NDID)
- If(LNot(LEqual(DIDL, Zero)))
- {
- Store(SDDL(DID1), DID1)
- }
- If(LNot(LEqual(DDL2, Zero)))
- {
- Store(SDDL(DID2), DID2)
- }
- If(LNot(LEqual(DDL3, Zero)))
- {
- Store(SDDL(DID3), DID3)
- }
- If(LNot(LEqual(DDL4, Zero)))
- {
- Store(SDDL(DID4), DID4)
- }
- If(LNot(LEqual(DDL5, Zero)))
- {
- Store(SDDL(DID5), DID5)
- }
- }
- If(LEqual(NDID, 0x0))
- {
- Store(0x400, Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
- }
- If(LEqual(NDID, 0x1))
- {
- Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
- }
- If(LEqual(NDID, 0x2))
- {
- Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
- Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
- }
- If(LEqual(NDID, 0x3))
- {
- Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
- Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
- Store(Or(0x10000, DID3, ), Index(DerefOf(Index(DODS, NDID, )), 0x2, ))
- }
- If(LEqual(NDID, 0x4))
- {
- Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
- Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
- Store(Or(0x10000, DID3, ), Index(DerefOf(Index(DODS, NDID, )), 0x2, ))
- Store(Or(0x10000, DID4, ), Index(DerefOf(Index(DODS, NDID, )), 0x3, ))
- }
- If(LGreater(NDID, 0x4))
- {
- Store(Or(0x10000, DID1, ), Index(DerefOf(Index(DODS, NDID, )), 0x0, ))
- Store(Or(0x10000, DID2, ), Index(DerefOf(Index(DODS, NDID, )), 0x1, ))
- Store(Or(0x10000, DID3, ), Index(DerefOf(Index(DODS, NDID, )), 0x2, ))
- Store(Or(0x10000, DID4, ), Index(DerefOf(Index(DODS, NDID, )), 0x3, ))
- Store(Or(0x10000, DID5, ), Index(DerefOf(Index(DODS, NDID, )), 0x4, ))
- }
- }
- Store(NDID, Local0)
- If(LGreater(NDID, 0x5))
- {
- Store(0x0, Local0)
- }
- Return(DerefOf(Index(DODS, Local0, )))
- }
- Device(DD01)
- {
- Method(_ADR, 0x0, Serialized)
- {
- If(LEqual(DID1, 0x0))
- {
- Return(0x1)
- }
- Else
- {
- Return(And(0xffff, DID1, ))
- }
- }
- Method(_DCS, 0x0, NotSerialized)
- {
- Return(HDCS(DID1))
- }
- Method(_DGS, 0x0, NotSerialized)
- {
- Return(HDGS(DID1))
- }
- Method(_DSS, 0x1, NotSerialized)
- {
- HDSS(DID1, Arg0)
- If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
- {
- Store(NSTE, CSTE)
- }
- }
- }
- Device(DD02)
- {
- Method(_ADR, 0x0, Serialized)
- {
- If(LEqual(DID2, 0x0))
- {
- Return(0x2)
- }
- Else
- {
- Return(And(0xffff, DID2, ))
- }
- }
- Method(_DCS, 0x0, NotSerialized)
- {
- Return(HDCS(DID2))
- }
- Method(_DGS, 0x0, NotSerialized)
- {
- Return(HDGS(DID2))
- }
- Method(_DSS, 0x1, NotSerialized)
- {
- HDSS(DID2, Arg0)
- If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
- {
- Store(NSTE, CSTE)
- }
- }
- }
- Device(DD03)
- {
- Method(_ADR, 0x0, Serialized)
- {
- If(LEqual(DID3, 0x0))
- {
- Return(0x3)
- }
- Else
- {
- Return(And(0xffff, DID3, ))
- }
- }
- Method(_DCS, 0x0, NotSerialized)
- {
- If(LEqual(DID3, 0x0))
- {
- Return(0xb)
- }
- Else
- {
- Return(HDCS(DID3))
- }
- }
- Method(_DGS, 0x0, NotSerialized)
- {
- Return(HDGS(DID3))
- }
- Method(_DSS, 0x1, NotSerialized)
- {
- HDSS(DID3, Arg0)
- If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
- {
- Store(NSTE, CSTE)
- }
- }
- }
- Device(DD04)
- {
- Method(_ADR, 0x0, Serialized)
- {
- If(LEqual(DID4, 0x0))
- {
- Return(0x4)
- }
- Else
- {
- Return(And(0xffff, DID4, ))
- }
- }
- Method(_DCS, 0x0, NotSerialized)
- {
- If(LEqual(DID4, 0x0))
- {
- Return(0xb)
- }
- Else
- {
- Return(HDCS(DID4))
- }
- }
- Method(_DGS, 0x0, NotSerialized)
- {
- Return(HDGS(DID4))
- }
- Method(_DSS, 0x1, NotSerialized)
- {
- HDSS(DID4, Arg0)
- If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
- {
- Store(NSTE, CSTE)
- }
- }
- }
- Device(DD05)
- {
- Method(_ADR, 0x0, Serialized)
- {
- If(LEqual(DID5, 0x0))
- {
- Return(0x5)
- }
- Else
- {
- Return(And(0xffff, DID5, ))
- }
- }
- Method(_DCS, 0x0, NotSerialized)
- {
- If(LEqual(DID5, 0x0))
- {
- Return(0xb)
- }
- Else
- {
- Return(HDCS(DID5))
- }
- }
- Method(_DGS, 0x0, NotSerialized)
- {
- Return(HDGS(DID5))
- }
- Method(_DSS, 0x1, NotSerialized)
- {
- HDSS(DID5, Arg0)
- If(LEqual(And(Arg0, 0xc0000000, ), 0xc0000000))
- {
- Store(NSTE, CSTE)
- }
- }
- }
- Method(SDDL, 0x1, NotSerialized)
- {
- Increment(NDID)
- Store(And(Arg0, 0xf0f, ), Local0)
- Or(0x80000000, Local0, Local1)
- If(LEqual(DIDL, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL2, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL3, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL4, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL5, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL6, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL7, Local0))
- {
- Return(Local1)
- }
- If(LEqual(DDL8, Local0))
- {
- Return(Local1)
- }
- Return(0x0)
- }
- Method(CDDS, 0x1, NotSerialized)
- {
- Store(And(Arg0, 0xf0f, ), Local0)
- If(LEqual(0x0, Local0))
- {
- Return(0x1d)
- }
- If(LEqual(CADL, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL2, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL3, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL4, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL5, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL6, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL7, Local0))
- {
- Return(0x1f)
- }
- If(LEqual(CAL8, Local0))
- {
- Return(0x1f)
- }
- Return(0x1d)
- }
- Method(NDDS, 0x1, NotSerialized)
- {
- Store(And(Arg0, 0xf0f, ), Local0)
- If(LEqual(0x0, Local0))
- {
- Return(0x0)
- }
- If(LEqual(NADL, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL2, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL3, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL4, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL5, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL6, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL7, Local0))
- {
- Return(0x1)
- }
- If(LEqual(NDL8, Local0))
- {
- Return(0x1)
- }
- Return(0x0)
- }
- Scope(\_SB_.PCI0)
- {
- OperationRegion(MCHP, PCI_Config, 0x40, 0xc0)
- Field(MCHP, AnyAcc, NoLock, Preserve)
- {
- Offset(0x60),
- TASM, 10,
- , 6
- }
- }
- OperationRegion(IGDP, PCI_Config, 0x40, 0xc0)
- Field(IGDP, AnyAcc, NoLock, Preserve)
- {
- Offset(0x12),
- , 1,
- GIVD, 1,
- , 2,
- GUMA, 3,
- , 9,
- , 4,
- GMFN, 1,
- , 27,
- Offset(0xa4),
- ASLE, 8,
- , 24,
- GSSE, 1,
- GSSB, 14,
- GSES, 1,
- Offset(0xb0),
- , 12,
- CDVL, 1,
- , 3,
- , 24,
- LBPC, 8,
- Offset(0xbc),
- ASLS, 32
- }
- OperationRegion(IGDM, SystemMemory, ASLB, 0x2000)
- Field(IGDM, AnyAcc, NoLock, Preserve)
- {
- SIGN, 128,
- SIZE, 32,
- OVER, 32,
- SVER, 256,
- VVER, 128,
- GVER, 128,
- MBOX, 32,
- DMOD, 32,
- Offset(0x100),
- DRDY, 32,
- CSTS, 32,
- CEVT, 32,
- Offset(0x120),
- DIDL, 32,
- DDL2, 32,
- DDL3, 32,
- DDL4, 32,
- DDL5, 32,
- DDL6, 32,
- DDL7, 32,
- DDL8, 32,
- CPDL, 32,
- CPL2, 32,
- CPL3, 32,
- CPL4, 32,
- CPL5, 32,
- CPL6, 32,
- CPL7, 32,
- CPL8, 32,
- CADL, 32,
- CAL2, 32,
- CAL3, 32,
- CAL4, 32,
- CAL5, 32,
- CAL6, 32,
- CAL7, 32,
- CAL8, 32,
- NADL, 32,
- NDL2, 32,
- NDL3, 32,
- NDL4, 32,
- NDL5, 32,
- NDL6, 32,
- NDL7, 32,
- NDL8, 32,
- ASLP, 32,
- TIDX, 32,
- CHPD, 32,
- CLID, 32,
- CDCK, 32,
- SXSW, 32,
- EVTS, 32,
- CNOT, 32,
- NRDY, 32,
- Offset(0x200),
- SCIE, 1,
- GEFC, 4,
- GXFC, 3,
- GESF, 8,
- , 16,
- PARM, 32,
- DSLP, 32,
- Offset(0x300),
- ARDY, 32,
- ASLC, 32,
- TCHE, 32,
- ALSI, 32,
- BCLP, 32,
- PFIT, 32,
- CBLV, 32,
- BCLM, 320,
- CPFM, 32,
- EPFM, 32,
- PLUT, 592,
- PFMB, 32,
- CCDV, 32,
- PCFT, 32,
- Offset(0x400),
- GVD1, 49152,
- PHED, 32,
- BDDC, 2048
- }
- Name(DBTB, Package(0x15)
- {
- 0x0,
- 0x7,
- 0x38,
- 0x1c0,
- 0xe00,
- 0x3f,
- 0x1c7,
- 0xe07,
- 0x1f8,
- 0xe38,
- 0xfc0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x7000,
- 0x7007,
- 0x7038,
- 0x71c0,
- 0x7e00
- })
- Name(CDCT, Package(0x5)
- {
- Package(0x2)
- {
- 0xe4,
- 0x140
- },
- Package(0x2)
- {
- 0xde,
- 0x14d
- },
- Package(0x2)
- {
- 0xde,
- 0x14d
- },
- Package(0x2)
- {
- 0x0,
- 0x0
- },
- Package(0x2)
- {
- 0xde,
- 0x14d
- }
- })
- Name(SUCC, 0x1)
- Name(NVLD, 0x2)
- Name(CRIT, 0x4)
- Name(NCRT, 0x6)
- Method(GSCI, 0x0, Serialized)
- {
- Method(GBDA, 0x0, Serialized)
- {
- If(LEqual(GESF, 0x0))
- {
- Store(0x159, PARM)
- Store(Zero, GESF)
- Return(SUCC)
- }
- If(LEqual(GESF, 0x1))
- {
- Store(0x80, PARM)
- Store(Zero, GESF)
- Return(SUCC)
- }
- If(LEqual(GESF, 0x4))
- {
- Store(0x30000000, PARM)
- Store(Zero, GESF)
- Return(SUCC)
- }
- If(LEqual(GESF, 0x5))
- {
- Or(PARM, ShiftLeft(LIDS, 0x10, ), PARM)
- Add(PARM, 0x10000, PARM)
- Store(Zero, GESF)
- Return(SUCC)
- }
- If(LEqual(GESF, 0x6))
- {
- Store(Zero, PARM)
- Store(Zero, GESF)
- Return(Zero)
- }
- If(LEqual(GESF, 0x7))
- {
- Store(GIVD, PARM)
- XOr(PARM, 0x1, PARM)
- Or(PARM, ShiftLeft(GMFN, 0x1, ), PARM)
- Or(PARM, ShiftLeft(0x3, 0xb, ), PARM)
- Or(PARM, ShiftLeft(IDMS, 0x11, ), PARM)
- Or(ShiftLeft(DerefOf(Index(DerefOf(Index(CDCT, HVCO, )), CDVL, )), 0x15, ), PARM, PARM)
- Store(0x1, GESF)
- Return(SUCC)
- }
- If(LEqual(GESF, 0xa))
- {
- Store(0x0, PARM)
- Store(0x0, GESF)
- Return(Zero)
- }
- Store(Zero, GESF)
- Return(CRIT)
- }
- Method(SBCB, 0x0, Serialized)
- {
- If(LEqual(GESF, 0x0))
- {
- Store(0x0, PARM)
- Store(0x40, PARM)
- Store(Zero, GESF)
- Return(SUCC)
- }
- If(LEqual(GESF, 0x7))
- {
- If(LEqual(PARM, 0x0))
- {
- Store(CLID, Local0)
- If(And(0x80000000, Local0, ))
- {
- And(CLID, 0xf, CLID)
- GLID(CLID)
- }
- }
- Store(Zero, GESF)
- Store(Zero, PARM)
- Return(SUCC)
- }
- Store(Zero, GESF)
- Return(SUCC)
- }
- If(LEqual(GEFC, 0x4))
- {
- Store(GBDA(), GXFC)
- }
- If(LEqual(GEFC, 0x6))
- {
- Store(SBCB(), GXFC)
- }
- Store(0x0, GEFC)
- Store(0x1, SCIS)
- Store(0x0, GSSE)
- Store(0x0, SCIE)
- Return(Zero)
- }
- Method(PDRD, 0x0, NotSerialized)
- {
- If(LNot(DRDY))
- {
- Sleep(ASLP)
- }
- Return(LNot(DRDY))
- }
- Method(PSTS, 0x0, NotSerialized)
- {
- If(LGreater(CSTS, 0x2))
- {
- Sleep(ASLP)
- }
- Return(LEqual(CSTS, 0x3))
- }
- Method(GNOT, 0x2, NotSerialized)
- {
- If(PDRD())
- {
- Return(0x1)
- }
- Store(Arg0, CEVT)
- Store(0x3, CSTS)
- If(LAnd(LEqual(CHPD, 0x0), LEqual(Arg1, 0x0)))
- {
- If(LAnd(LGreater(OSYS, 0x7d0), LLess(OSYS, 0x7d6)))
- {
- Notify(\_SB_.PCI0, Arg1)
- }
- Else
- {
- Notify(\_SB_.PCI0.GFX0, Arg1)
- }
- }
- Notify(\_SB_.PCI0.GFX0, 0x80)
- If(LNot(PSTS()))
- {
- Store(0x0, CEVT)
- }
- Return(0x0)
- }
- Method(GHDS, 0x1, NotSerialized)
- {
- Store(Arg0, TIDX)
- Return(GNOT(0x1, 0x0))
- }
- Method(GLID, 0x1, NotSerialized)
- {
- Store(Arg0, CLID)
- Return(GNOT(0x2, 0x0))
- }
- Method(GDCK, 0x1, NotSerialized)
- {
- Store(Arg0, CDCK)
- Return(GNOT(0x4, 0x0))
- }
- Method(PARD, 0x0, NotSerialized)
- {
- If(LNot(ARDY))
- {
- Sleep(ASLP)
- }
- Return(LNot(ARDY))
- }
- Method(AINT, 0x2, NotSerialized)
- {
- If(LNot(And(TCHE, ShiftLeft(0x1, Arg0, ), )))
- {
- Return(0x1)
- }
- If(PARD())
- {
- Return(0x1)
- }
- If(LEqual(Arg0, 0x2))
- {
- If(CPFM)
- {
- And(CPFM, 0xf, Local0)
- And(EPFM, 0xf, Local1)
- If(LEqual(Local0, 0x1))
- {
- If(And(Local1, 0x6, ))
- {
- Store(0x6, PFIT)
- }
- Else
- {
- If(And(Local1, 0x8, ))
- {
- Store(0x8, PFIT)
- }
- Else
- {
- Store(0x1, PFIT)
- }
- }
- }
- If(LEqual(Local0, 0x6))
- {
- If(And(Local1, 0x8, ))
- {
- Store(0x8, PFIT)
- }
- Else
- {
- If(And(Local1, 0x1, ))
- {
- Store(0x1, PFIT)
- }
- Else
- {
- Store(0x6, PFIT)
- }
- }
- }
- If(LEqual(Local0, 0x8))
- {
- If(And(Local1, 0x1, ))
- {
- Store(0x1, PFIT)
- }
- Else
- {
- If(And(Local1, 0x6, ))
- {
- Store(0x6, PFIT)
- }
- Else
- {
- Store(0x8, PFIT)
- }
- }
- }
- }
- Else
- {
- XOr(PFIT, 0x7, PFIT)
- }
- Or(PFIT, 0x80000000, PFIT)
- Store(0x4, ASLC)
- }
- Else
- {
- If(LEqual(Arg0, 0x1))
- {
- Store(Arg1, BCLP)
- Or(BCLP, 0x80000000, BCLP)
- Store(0x2, ASLC)
- }
- Else
- {
- If(LEqual(Arg0, 0x0))
- {
- Store(Arg1, ALSI)
- Store(0x1, ASLC)
- }
- Else
- {
- Return(0x1)
- }
- }
- }
- Store(0x0, LBPC)
- Return(0x0)
- }
- Method(SCIP, 0x0, NotSerialized)
- {
- If(LNot(LEqual(OVER, 0x0)))
- {
- Return(LNot(GSMI))
- }
- Return(0x0)
- }
- }
- Scope(\_GPE)
- {
- Name(WOAT, 0xff)
- Method(_L06, 0x0, NotSerialized)
- {
- If(LAnd(\_SB_.PCI0.GFX0.GSSE, LNot(GSMI)))
- {
- \_SB_.PCI0.GFX0.GSCI()
- }
- Else
- {
- Store(0x1, SCIS)
- }
- }
- Method(VBRE, 0x1, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- If(And(Arg0, 0x80, ))
- {
- Notify(\_SB_.PCI0.GFX0.DD02, Arg0)
- }
- Else
- {
- If(LEqual(And(WDPE, 0x4, ), 0x0))
- {
- Store("VBRE method, use OpRegion method", Debug)
- \_SB_.PCI0.GFX0.SBRV()
- }
- }
- }
- Else
- {
- If(And(Arg0, 0x80, ))
- {
- Notify(\_SB_.PCI0.PEGP.DGFX.LCD_, Arg0)
- }
- }
- }
- Method(VFN4, 0x0, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- If(LEqual(And(WDPE, 0x3, ), 0x0))
- {
- If(And(DCAP, 0x1, ))
- {
- \_SB_.PCI0.GFX0.GHDS(0x0)
- }
- Else
- {
- CNDD(0x0)
- Notify(\_SB_.PCI0.GFX0, 0x80)
- }
- }
- }
- Else
- {
- If(LEqual(And(WDPE, 0x83, ), 0x0))
- {
- Notify(\_SB_.PCI0.PEGP.DGFX, 0x80)
- }
- }
- }
- Method(VDET, 0x0, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- \_SB_.PCI0.GFX0.GDCC(0x1)
- If(LEqual(And(WDPE, 0x3, ), 0x0))
- {
- If(And(DCAP, 0x1, ))
- {
- \_SB_.PCI0.GFX0.DKET()
- }
- Else
- {
- \_SB_.SSMI(0xea74, 0x6, 0x0, 0x0, 0x0)
- CNDD(0x0)
- Notify(\_SB_.PCI0.GFX0, 0x80)
- }
- }
- }
- Else
- {
- \_SB_.SSMI(0xea74, 0x6, 0x0, 0x0, 0x0)
- \_SB_.PCI0.PEGP.DGFX.GDCC(0x1)
- }
- }
- Method(VLET, 0x0, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- Store(0x1, Local1)
- If(LEqual(And(WDPE, 0x3, ), 0x0))
- {
- If(And(DCAP, 0x1, ))
- {
- If(\_SB_.PCI0.GFX0.GLID(\_SB_.LID_._LID()))
- {
- Or(0x80000000, \_SB_.PCI0.GFX0.CLID, \_SB_.PCI0.GFX0.CLID)
- }
- }
- Else
- {
- \_SB_.SSMI(0xea74, 0x5, 0x0, 0x0, 0x0)
- CNDD(0x1)
- Notify(\_SB_.PCI0.GFX0, 0x80)
- If(LLess(\WCOS(), 0x6))
- {
- Store(0x0, Local1)
- }
- }
- }
- }
- Else
- {
- Store(0x1, Local1)
- If(LLess(\WCOS(), 0x6))
- {
- \_SB_.SSMI(0xea74, 0x5, 0x0, 0x0, 0x0)
- }
- }
- Return(Local1)
- }
- Method(CNDD, 0x1, NotSerialized)
- {
- If(LOr(Arg0, LNot(LEqual(WDST, WOAT))))
- {
- Store(WDST, WOAT)
- If(LNot(LLess(\WCOS(), 0x4)))
- {
- Notify(\_SB_.PCI0, 0x0)
- }
- Else
- {
- Notify(\_SB_.PCI0.GFX0, 0x0)
- }
- Sleep(0x2ee)
- }
- }
- Method(VPUP, 0x2, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- Store(0x1, Local0)
- }
- Else
- {
- Or(ShiftLeft(Arg1, 0x8, ), Arg0, Local0)
- \_SB_.SSMI(0xea74, 0x7, Local0, 0x0, 0x0)
- }
- }
- }
- Scope(\_SB_)
- {
- Method(VSDD, 0x1, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- If(LEqual(And(WDPE, 0x3, ), 0x0))
- {
- If(LNot(LEqual(Arg0, WDSA)))
- {
- Store(Arg0, WDGN)
- If(And(DCAP, 0x1, ))
- {
- \_SB_.PCI0.GFX0.SNXS()
- }
- Else
- {
- \_GPE.CNDD(0x0)
- Notify(\_SB_.PCI0.GFX0, 0x80)
- }
- }
- }
- }
- Else
- {
- If(LEqual(And(WDPE, 0x83, ), 0x0))
- {
- If(LNot(LEqual(Arg0, WDSA)))
- {
- Store(Arg0, WDGN)
- Notify(\_SB_.PCI0.PEGP.DGFX, 0x80)
- }
- }
- Else
- {
- If(And(WDPE, 0x80, ))
- {
- And(Arg0, WDST, WDSS)
- \_SB_.SSMI(0xea74, 0x1, 0x0, 0x0, 0x0)
- }
- }
- }
- }
- Method(VGDD, 0x1, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- If(And(DCAP, 0x1, ))
- {
- \_SB_.PCI0.GFX0.RFHS()
- }
- Else
- {
- If(Arg0)
- {
- \_SB_.SSMI(0xea74, 0x2, 0x0, 0x0, 0x0)
- }
- }
- }
- Else
- {
- If(Arg0)
- {
- \_SB_.SSMI(0xea74, 0x2, 0x0, 0x0, 0x0)
- }
- }
- Return(WDST)
- }
- Method(VWAK, 0x1, Serialized)
- {
- If(LEqual(\_SB_.PCI0.GFX0.GIVD, 0x0))
- {
- If(LEqual(Arg0, 0x4))
- {
- \_SB_.PCI0.GFX0.GLID(\_SB_.LID_._LID())
- \_SB_.PCI0.GFX0.DKET()
- }
- If(LNot(LLess(Arg0, 0x3)))
- {
- Store(BRID, Local1)
- Store(BRLV, Local2)
- Store(BMAP, Local3)
- If(LEqual(BRCT, 0xb))
- {
- Store(DerefOf(Index(Local3, Local1, )), Local1)
- }
- Store(DerefOf(Index(Local2, Local1, )), Local0)
- Or(Local0, 0x80000000, \_SB_.PCI0.GFX0.BCLP)
- }
- }
- Else
- {
- Store(0x0, Local0)
- }
- }
- }
- Scope(GFX0)
- {
- Name(DODC, 0x0)
- Name(HPDD, Package(0x5)
- {
- 0x400,
- 0x100,
- 0x200,
- 0x300,
- 0x301
- })
- Name(UIGN, 0x1)
- Name(DODS, Package(0x6)
- {
- Package(0x1)
- {
- 0xffffffff
- },
- Package(0x1)
- {
- 0xffffffff
- },
- Package(0x2)
- {
- 0xffffffff,
- 0xffffffff
- },
- Package(0x3)
- {
- 0xffffffff,
- 0xffffffff,
- 0xffffffff
- },
- Package(0x4)
- {
- 0xffffffff,
- 0xffffffff,
- 0xffffffff,
- 0xffffffff
- },
- Package(0x5)
- {
- 0xffffffff,
- 0xffffffff,
- 0xffffffff,
- 0xffffffff,
- 0xffffffff
- }
- })
- Name(BRWA, 0x0)
- Name(UBCL, Buffer(0x28)
- {
- 0x00, 0x80, 0x00, 0xe4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00
- })
- Method(_INI, 0x0, NotSerialized)
- {
- If(LEqual(BRWA, 0x0))
- {
- If(LGreater(\WCOS(), 0x6))
- {
- Store(BRLV, Local5)
- Store(DerefOf(Index(Local5, 0x0, )), Local2)
- Store(Local2, Index(UBCL, 0x0, ))
- Store(DerefOf(Index(Local5, 0x18, )), Local2)
- Store(Local2, Index(UBCL, 0x2, ))
- Store(UBCL, \_SB_.PCI0.GFX0.BCLM)
- Store(0x1, BRWA)
- }
- }
- GLID(\_SB_.LID_._LID())
- DKET()
- Store(0x0, WDSA)
- Store(0x0, WDST)
- Store(0x0, WDGN)
- }
- Method(HDOS, 0x1, NotSerialized)
- {
- And(WDPE, 0xf8, Local0)
- And(WDPE, 0x87, Local1)
- Or(Local0, Arg0, WDPE)
- If(CondRefOf(^PDOS, Local2))
- {
- ^PDOS(Arg0, Local1)
- }
- }
- Method(HDOD, 0x0, NotSerialized)
- {
- Store(0x1, Local1)
- If(And(TCHE, 0x2, ))
- {
- Store(0x3, Local1)
- }
- Or(DCAP, Local1, DCAP)
- }
- Method(HDCS, 0x1, Serialized)
- {
- Store(THPM(Arg0), Local0)
- If(SCIP())
- {
- If(PDDS(Arg0))
- {
- Or(WDST, Local0, WDST)
- }
- Else
- {
- And(WDST, Not(Local0, ), WDST)
- }
- Store(CDDS(Arg0), Local3)
- If(LEqual(Local3, 0x1f))
- {
- Or(WDSA, Local0, WDSA)
- }
- Else
- {
- And(WDSA, Not(Local0, ), WDSA)
- }
- }
- Else
- {
- Store(0x1d, Local3)
- If(And(WDSA, Local0, ))
- {
- Store(0x1f, Local3)
- }
- }
- Return(Local3)
- }
- Method(HDGS, 0x1, Serialized)
- {
- Store(THPM(Arg0), Local0)
- If(LAnd(SCIP(), UIGN))
- {
- Store(NDDS(Arg0), Local2)
- If(Local2)
- {
- Or(WDGN, Local0, WDGN)
- }
- Else
- {
- And(WDGN, Not(Local0, ), WDGN)
- }
- }
- Else
- {
- Store(0x0, Local2)
- If(And(WDGN, Local0, ))
- {
- Store(0x1, Local2)
- }
- }
- Return(Local2)
- }
- Method(HDSS, 0x2, Serialized)
- {
- Store(THPM(Arg0), Local0)
- If(And(Arg1, 0x1, ))
- {
- Or(WDSS, Local0, WDSS)
- }
- Else
- {
- And(WDSS, Not(Local0, ), WDSS)
- }
- If(LEqual(And(Arg1, 0xc0000000, ), 0xc0000000))
- {
- Store(WDSS, WDSA)
- }
- }
- Method(PDDS, 0x1, NotSerialized)
- {
- Store(And(Arg0, 0xf0f, ), Local0)
- If(LEqual(0x0, Local0))
- {
- Return(0x0)
- }
- If(LEqual(CPDL, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL2, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL3, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL4, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL5, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL6, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL7, Local0))
- {
- Return(0x1)
- }
- If(LEqual(CPL8, Local0))
- {
- Return(0x1)
- }
- Return(0x0)
- }
- Method(THPM, 0x1, NotSerialized)
- {
- And(Arg0, 0xf0f, Local0)
- Store(Match(HPDD, MEQ, Local0, MTR, 0x0, 0x0), Local1)
- If(LEqual(Local1, Ones))
- {
- Store(0x0, Local2)
- }
- Else
- {
- ShiftLeft(0x1, Local1, Local2)
- }
- Return(Local2)
- }
- Method(RFHS, 0x0, Serialized)
- {
- If(And(DID1, 0xf00, ))
- {
- ^DD01._DCS()
- ^DD01._DGS()
- }
- If(And(DID2, 0xf00, ))
- {
- ^DD02._DCS()
- ^DD02._DGS()
- }
- If(And(DID3, 0xf00, ))
- {
- ^DD03._DCS()
- ^DD03._DGS()
- }
- If(And(DID4, 0xf00, ))
- {
- ^DD04._DCS()
- ^DD04._DGS()
- }
- If(And(DID5, 0xf00, ))
- {
- ^DD05._DCS()
- ^DD05._DGS()
- }
- }
- Method(SNXS, 0x0, Serialized)
- {
- Store(0x0, UIGN)
- GHDS(0x0)
- Sleep(0x1f4)
- Store(0x1, UIGN)
- }
- Method(SBRV, 0x0, Serialized)
- {
- Store("Set Brightness", Debug)
- If(LEqual(And(DCAP, 0x2, ), 0x0))
- {
- If(And(TCHE, 0x2, ))
- {
- Store("TCHE set", Debug)
- Or(DCAP, 0x2, DCAP)
- }
- }
- And(DCAP, 0x2, Local3)
- If(Local3)
- {
- Store("OpRegion take control of Brightness", Debug)
- Store(BRID, Local0)
- Subtract(BRCT, 0x1, Local4)
- If(LGreater(BRID, Local4))
- {
- Store(Local4, Local0)
- }
- If(LLess(BRID, 0x0))
- {
- Store(0x0, Local0)
- }
- Store(BRLV, Local2)
- Store(BMAP, Local5)
- Store("Brightness Data", Debug)
- Store(Local2, Debug)
- If(LEqual(BRCT, 0xb))
- {
- Store(DerefOf(Index(Local5, Local0, )), Local0)
- }
- Store(DerefOf(Index(Local2, Local0, )), Local1)
- Store(Local1, Debug)
- AINT(0x1, Local1)
- }
- Return(Local3)
- }
- Scope(DD02)
- {
- Name(BCLI, 0x0)
- Name(BCLS, Package(0x3)
- {
- Package(0xd)
- {
- },
- Package(0x17)
- {
- },
- Package(0x1b)
- {
- }
- })
- Name(BCLC, 0x0)
- Method(_BCL, 0x0, Serialized)
- {
- If(LEqual(BCLC, 0x0))
- {
- If(LGreater(\WCOS(), 0x6))
- {
- Store(BCCT, BRCT)
- }
- Store(0x0, Local7)
- If(LNot(LLess(BRCT, 0x15)))
- {
- Store(0x1, BCLI)
- Store(0x1, Local7)
- If(LEqual(BRCT, 0x19))
- {
- Store(0x2, BCLI)
- }
- }
- Store(0x0, Local1)
- If(And(DCAP, 0x10, ))
- {
- Store(BRLV, Local0)
- Store(0x0, Local5)
- Store(BMAP, Local4)
- While(LLess(Local1, BRCT))
- {
- If(Local7)
- {
- Store(Local1, Local3)
- }
- Else
- {
- Store(DerefOf(Index(Local4, Local1, )), Local3)
- }
- Store(DerefOf(Index(Local0, Local3, )), Local2)
- Multiply(Local2, 0x64, Local3)
- Divide(Add(Local3, 0x7f, ), 0xff, Local6, Local2)
- Store(Local2, Index(DerefOf(Index(BCLS, BCLI, )), Add(Local1, 0x2, ), ))
- If(LGreater(Local2, Local5))
- {
- Store(Local2, Local5)
- }
- Increment(Local1)
- }
- ShiftRight(BRCT, 0x1, Local3)
- Store(DerefOf(Index(DerefOf(Index(BCLS, BCLI, )), Local3, )), Index(DerefOf(Index(BCLS, BCLI, )), 0x1, ))
- Store(Local5, Index(DerefOf(Index(BCLS, BCLI, )), 0x0, ))
- }
- Else
- {
- Store(BCLV, Local4)
- Store(BMAP, Local0)
- While(LLess(Local1, Add(BRCT, 0x2, )))
- {
- If(LOr(Local7, LLess(Local1, 0x2)))
- {
- Store(Local1, Local3)
- }
- Else
- {
- Store(DerefOf(Index(Local0, Subtract(Local1, 0x2, ), )), Local3)
- Add(Local3, 0x2, Local3)
- }
- Store(DerefOf(Index(Local4, Local3, )), Local2)
- Store(Local2, Index(DerefOf(Index(BCLS, BCLI, )), Local1, ))
- Increment(Local1)
- }
- }
- Store(0x1, BCLC)
- }
- Return(DerefOf(Index(BCLS, BCLI, )))
- }
- Name(BRIG, 0x64)
- Method(_BCM, 0x1, Serialized)
- {
- Store(0x0, Local0)
- If(LGreater(\WCOS(), 0x5))
- {
- Or(WDPE, 0x40, WDPE)
- Store(0x1, Local0)
- }
- Store(Arg0, BRIG)
- Store(Match(DerefOf(Index(BCLS, BCLI, )), MGE, Arg0, MTR, 0x0, 0x2), Local1)
- If(LEqual(Local1, Ones))
- {
- Subtract(SizeOf(), DerefOf(Index(BCLS, BCLI, )), )
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement