Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Intel ACPI Component Architecture
- * AML Disassembler version 20100528
- *
- * Disassembly of dsdt.aml, Sat Sep 28 11:53:40 2013
- *
- *
- * Original Table Header:
- * Signature "DSDT"
- * Length 0x000055BB (21947)
- * Revision 0x01 **** ACPI 1.0, no 64-bit math support
- * Checksum 0x9F
- * OEM ID "TOSINV"
- * OEM Table ID "TOSINV00"
- * OEM Revision 0x00000001 (1)
- * Compiler ID "MSFT"
- * Compiler Version 0x01000013 (16777235)
- */
- DefinitionBlock ("dsdt.aml", "DSDT", 1, "TOSINV", "TOSINV00", 0x00000001)
- {
- OperationRegion (PORT, SystemIO, 0x80, One)
- Field (PORT, ByteAcc, NoLock, Preserve)
- {
- P80H, 8
- }
- OperationRegion (GPIO, SystemIO, 0x0500, 0x3F)
- Field (GPIO, ByteAcc, NoLock, Preserve)
- {
- Offset (0x0F),
- , 3,
- GP27, 1,
- Offset (0x10),
- Offset (0x38),
- , 1,
- , 1,
- CPEN, 1,
- Offset (0x39)
- }
- OperationRegion (PMBA, SystemIO, 0x0400, 0x80)
- Field (PMBA, ByteAcc, NoLock, Preserve)
- {
- Offset (0x10),
- THRL, 8,
- Offset (0x28),
- , 2,
- SPST, 1,
- Offset (0x30),
- , 4,
- SSMI, 1,
- Offset (0x42),
- , 1,
- GPEC, 1
- }
- OperationRegion (RCRB, SystemMemory, 0xFED1C000, 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
- }
- OperationRegion (MBOX, SystemMemory, 0x3F63EE10, 0x000000F9)
- Field (MBOX, AnyAcc, NoLock, Preserve)
- {
- PCI1, 8,
- PCI2, 8,
- PCI3, 8,
- PCI4, 8,
- PCI5, 8,
- PCI6, 8,
- PCI7, 8,
- PCI8, 8,
- NLCK, 8,
- ZIPE, 8,
- COMA, 8,
- CAIO, 8,
- CAIP, 8,
- CAMD, 8,
- CADA, 8,
- COMB, 8,
- CBIO, 8,
- CBIP, 8,
- CBMD, 8,
- CBDA, 8,
- COMC, 8,
- CCIO, 8,
- CCIP, 8,
- CCMD, 8,
- CCDA, 8,
- COMD, 8,
- CDIO, 8,
- CDIP, 8,
- CDMD, 8,
- CDDA, 8,
- LPT1, 8,
- L1IO, 8,
- L1IP, 8,
- L1MD, 8,
- L1DA, 8,
- LPT2, 8,
- L2IO, 8,
- L2IP, 8,
- L2MD, 8,
- L2DA, 8,
- LPT3, 8,
- L3IO, 8,
- L3IP, 8,
- L3MD, 8,
- L3DA, 8,
- FDDC, 8,
- FDWP, 8,
- HGMP, 8,
- LGMP, 8,
- MIDI, 8,
- AZLA, 8,
- AUDO, 8,
- MODM, 8,
- IDEC, 8,
- PACT, 8,
- SCFG, 8,
- AIBT, 8,
- AMOD, 8,
- P0HP, 8,
- P2HP, 8,
- P0IL, 8,
- P2IL, 8,
- IDLY, 8,
- PMTP, 8,
- PMIO, 8,
- PMBM, 8,
- PMTM, 8,
- PSTP, 8,
- PSIO, 8,
- PSBM, 8,
- PSTM, 8,
- SMTP, 8,
- SMIO, 8,
- SMBM, 8,
- SMTM, 8,
- SSTP, 8,
- SSIO, 8,
- SSBM, 8,
- SSTM, 8,
- IDE0, 8,
- IDE1, 8,
- IDE2, 8,
- IDE3, 8,
- IDE4, 8,
- IDE5, 8,
- IDE6, 8,
- IDE7, 8,
- PEGS, 8,
- D2F1, 8,
- IGMT, 8,
- DTSZ, 8,
- BOTT, 8,
- TVTP, 8,
- HIUB, 8,
- LUBS, 8,
- EDCG, 8,
- SDFY, 8,
- SDTC, 8,
- SDRP, 8,
- SDCL, 8,
- SDRC, 8,
- SDRE, 8,
- FC2L, 8,
- FC3L, 8,
- FCS4, 8,
- APIM, 8,
- HPTS, 8,
- HPTA, 8,
- EMAS, 8,
- MASF, 8,
- ASFB, 8,
- MBTX, 8,
- XPRO, 8,
- IDER, 8,
- SOLE, 8,
- EYLS, 8,
- EYLH, 8,
- TPMD, 8,
- TPMO, 8,
- TPMC, 8,
- TPMM, 8,
- TPCC, 8,
- TPLC, 8,
- TPLR, 32,
- ISTC, 8,
- TRML, 8,
- TRON, 8,
- NXMD, 8,
- PCRR, 8,
- C4EN, 8,
- C43D, 8,
- EMTT, 8,
- PROH, 8,
- DFSB, 8,
- TUBM, 8,
- TSTE, 8,
- DAS3, 8,
- WKPM, 8,
- WKMD, 8,
- WKS5, 8,
- HOUR, 8,
- MINS, 8,
- SECS, 8,
- DOFM, 8,
- QKS4, 8,
- POPU, 8,
- POPD, 8,
- NXFE, 8,
- VTST, 8,
- VTFE, 8,
- S5FG, 8,
- CSTS, 8,
- ENCS, 8,
- DEC4, 8,
- HC4E, 8,
- ENC6, 8,
- CSTR, 8,
- CMPE, 8,
- DTSE, 8,
- DTSC, 8,
- QBOT, 8,
- QEBT, 8,
- PBOT, 8,
- OSYS, 16,
- PSD0, 8,
- PSD1, 8,
- D2DX, 8,
- F12M, 8,
- MLMB, 8,
- PEGF, 8,
- BTMT, 8,
- BTNP, 8,
- LNMT, 8,
- NBTO, 8,
- NOBD, 64,
- NABD, 8,
- NEBD, 8,
- NLBD, 8,
- BTTO, 64,
- DFBT, 16,
- NPOP, 16,
- LNGG, 8,
- SVPW, 16,
- POPW, 16,
- UASL, 8,
- URPW, 16,
- STUP, 8,
- DVET, 8,
- HDPW, 16,
- S3RS, 8,
- SAHP, 16,
- SHPF, 8,
- SVFG, 8,
- URFG, 8,
- VGOD, 8,
- SFOF, 8,
- KBPO, 8,
- MSPO, 8,
- PRST, 8,
- PSHM, 8,
- UBBT, 8,
- EPSC, 8,
- DSFT, 8,
- ISYS, 16,
- ENTL, 8,
- SYBE, 8,
- EVLC, 8,
- ACP3, 8,
- PTDV, 8,
- LANX, 8,
- WKOL, 8,
- CBTW, 8,
- AKWU, 8,
- USCM, 8,
- SSVP, 8,
- HDD0, 16,
- HDD1, 8,
- HDD2, 8,
- HDD3, 8,
- HDD4, 8,
- HDD5, 8,
- HDD6, 8
- }
- OperationRegion (CMS1, SystemIO, 0x72, 0x02)
- Field (CMS1, ByteAcc, NoLock, Preserve)
- {
- CMSI, 8,
- CMSD, 8
- }
- Method (CMSW, 2, NotSerialized)
- {
- Store (Arg0, CMSI)
- Store (Arg1, CMSD)
- }
- OperationRegion (IO_T, SystemIO, 0x0800, 0x10)
- Field (IO_T, ByteAcc, NoLock, Preserve)
- {
- Offset (0x02),
- Offset (0x04),
- Offset (0x06),
- Offset (0x08),
- TRP1, 8,
- Offset (0x0A),
- Offset (0x0B),
- Offset (0x0C),
- Offset (0x0D),
- Offset (0x0E),
- Offset (0x0F),
- Offset (0x10)
- }
- OperationRegion (IO_D, SystemIO, 0x0810, 0x08)
- Field (IO_D, ByteAcc, NoLock, Preserve)
- {
- TRPD, 8
- }
- OperationRegion (NVST, SystemMemory, 0x3F63EF09, 0x000000D1)
- Field (NVST, AnyAcc, Lock, Preserve)
- {
- SMIF, 8,
- PRM0, 8,
- PRM1, 8,
- BRTL, 8,
- TLST, 8,
- IGDS, 8,
- LCDA, 16,
- CSTE, 16,
- NSTE, 16,
- CADL, 16,
- PADL, 16,
- LIDS, 8,
- PWRS, 8,
- BVAL, 32,
- CMPF, 8,
- CSTF, 8,
- GTF0, 56,
- GTF2, 56,
- IDEM, 8,
- DTS1, 8,
- DTS2, 8,
- DTSF, 8,
- PPMF, 32,
- NDID, 8,
- DID1, 32,
- DID2, 32,
- DID3, 32,
- DID4, 32,
- DID5, 32,
- USBM, 32,
- Offset (0x80),
- ACPS, 8,
- CPUS, 8,
- CPUL, 8
- }
- Name (PWBS, Zero)
- Mutex (MUTS, 0x00)
- Mutex (MUTE, 0x00)
- Mutex (MUTV, 0x00)
- OperationRegion (PSMI, SystemIO, 0xB2, 0x02)
- Field (PSMI, ByteAcc, NoLock, Preserve)
- {
- APMC, 8,
- APMD, 8
- }
- Field (NVST, AnyAcc, Lock, Preserve)
- {
- Offset (0x88),
- EGST, 8,
- LCDS, 4,
- CECS, 1,
- CECP, 1,
- HDMI, 1,
- HKMD, 1,
- TSBK, 1,
- SDAT, 1,
- DCIR, 1,
- DBTN, 2,
- HKEM, 1,
- HSEM, 1,
- IECC, 1,
- FNF3, 8,
- LCMD, 8,
- SVCF, 8,
- SWB0, 32,
- SWB1, 32,
- SWB2, 32,
- SWB3, 32,
- SWB4, 32,
- SWB5, 32,
- SWB6, 32,
- SWB7, 32,
- KYB0, 32,
- KYB1, 32,
- KYB2, 32,
- KYB3, 32,
- KYB4, 32,
- KYB5, 32,
- KYB6, 32,
- KYB7, 32,
- IEC0, 8,
- IEC1, 8,
- IEC2, 8
- }
- OperationRegion (ECMB, SystemIO, 0x0600, 0x02)
- Field (ECMB, ByteAcc, Lock, Preserve)
- {
- MIDX, 8,
- MDAT, 8
- }
- IndexField (MIDX, MDAT, ByteAcc, Lock, Preserve)
- {
- Offset (0x84),
- PHKY, 8,
- Offset (0x88),
- EIDL, 8,
- Offset (0x8E),
- , 1,
- , 1,
- OSEC, 1,
- THEN, 1,
- THLV, 4,
- FKST, 1,
- Offset (0x90),
- Offset (0xA1),
- ECMD, 8,
- IND0, 8,
- IND1, 8,
- DAT0, 8,
- DAT1, 8,
- Offset (0xA7),
- , 2,
- OS07, 1,
- CRIT, 1,
- Offset (0xAA),
- EVCT, 8
- }
- Method (FLNK, 2, Serialized)
- {
- If (LEqual (IECC, Zero))
- {
- Add (IEC2, 0x03, IEC2)
- Decrement (IEC1)
- Subtract (IEC0, 0x0B, IEC0)
- Store (One, IECC)
- }
- If (LEqual (Arg0, 0xFF))
- {
- Store (Arg1, SVCF)
- }
- Else
- {
- Store (Arg1, SWB0)
- }
- Store (Arg0, LCMD)
- Store (0xFF, APMD)
- Store (0xE3, APMC)
- Return (And (SWB0, 0xFF))
- }
- Device (_SB.FWEX)
- {
- Name (_HID, "TOS1901")
- Method (FWES, 1, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- Name (FWEB, Buffer (0x20) {})
- Store (DerefOf (Index (Arg0, Zero)), Local4)
- Store (Zero, Local7)
- If (LEqual (Local4, 0x81))
- {
- Store (DerefOf (Index (Arg0, One)), Local0)
- If (LEqual (Local0, 0xFF))
- {
- Store (EVCT, Local0)
- Store (Local0, Index (FWEB, Zero))
- Release (MUTS)
- Return (FWEB)
- }
- Else
- {
- If (LEqual (Local0, 0xFE))
- {
- Store (FKST, Local0)
- Store (Local0, Index (FWEB, Zero))
- Release (MUTS)
- Return (FWEB)
- }
- Else
- {
- Store (One, Local7)
- }
- }
- }
- Store (0x20, Local0)
- Store (One, Local1)
- Store (Zero, Local3)
- While (Local0)
- {
- Store (ShiftLeft (DerefOf (Index (Arg0, Local1)), 0x18), Local2)
- Add (And (ShiftRight (Local3, 0x08), 0x00FFFFFF), Local2, Local3)
- If (LEqual (Local1, 0x04))
- {
- Store (Local3, Local5)
- Store (Local3, SWB0)
- }
- Else
- {
- If (LEqual (Local1, 0x08))
- {
- Store (Local3, SWB1)
- }
- Else
- {
- If (LEqual (Local1, 0x0C))
- {
- Store (Local3, SWB2)
- }
- Else
- {
- If (LEqual (Local1, 0x10))
- {
- Store (Local3, SWB3)
- }
- Else
- {
- If (LEqual (Local1, 0x14))
- {
- Store (Local3, SWB4)
- }
- Else
- {
- If (LEqual (Local1, 0x18))
- {
- Store (Local3, SWB5)
- }
- Else
- {
- If (LEqual (Local1, 0x1C))
- {
- Store (Local3, SWB6)
- }
- Else
- {
- If (LEqual (Local1, 0x20))
- {
- Store (Local3, SWB7)
- }
- }
- }
- }
- }
- }
- }
- }
- Decrement (Local0)
- Add (Local1, One, Local1)
- }
- If (LEqual (Local7, One))
- {
- Store (0x11, Local4)
- Store (EVCT, Local5)
- }
- FLNK (Local4, Local5)
- Store (SWB0, Local1)
- Store (Zero, Local2)
- While (LNotEqual (Local2, 0x20))
- {
- If (LEqual (Local2, 0x04))
- {
- Store (SWB1, Local1)
- }
- Else
- {
- If (LEqual (Local2, 0x08))
- {
- Store (SWB2, Local1)
- }
- Else
- {
- If (LEqual (Local2, 0x0C))
- {
- Store (SWB3, Local1)
- }
- Else
- {
- If (LEqual (Local2, 0x10))
- {
- Store (SWB4, Local1)
- }
- Else
- {
- If (LEqual (Local2, 0x14))
- {
- Store (SWB5, Local1)
- }
- Else
- {
- If (LEqual (Local2, 0x18))
- {
- Store (SWB6, Local1)
- }
- Else
- {
- If (LEqual (Local2, 0x1C))
- {
- Store (SWB7, Local1)
- }
- }
- }
- }
- }
- }
- }
- Store (Local1, Index (FWEB, Local2))
- Divide (Local1, 0x0100, Local0, Local1)
- Add (Local2, One, Local2)
- }
- Store (Zero, Local0)
- If (LNotEqual (LCMD, Zero))
- {
- Store (Zero, Local2)
- While (LNotEqual (Local2, 0x20))
- {
- Store (0xFF, Index (FWEB, Local2))
- Add (Local2, One, Local2)
- }
- }
- Store (Local0, SWB0)
- Store (Local0, SWB1)
- Store (Local0, SWB2)
- Store (Local0, SWB3)
- Store (Local0, SWB4)
- Store (Local0, SWB5)
- Store (Local0, SWB6)
- Store (Local0, SWB7)
- If (LEqual (Local7, One))
- {
- Store (EVCT, Index (FWEB, 0x1F))
- }
- Release (MUTS)
- Return (FWEB)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (LLess (OSYS, 0x07D6))
- {
- Return (0x0B)
- }
- Else
- {
- Return (Zero)
- }
- }
- }
- Method (WFNK, 1, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- FLNK (0xFF, 0x30)
- Release (MUTS)
- If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
- {
- Store (\_SB.PCI0.LPC.EC0.PWBN, Local0)
- If (LNotEqual (Local0, PWBS))
- {
- Store (PWBS, \_SB.PCI0.LPC.EC0.PWBN)
- }
- }
- If (\_SB.PCI0.LPC.EC0.BTON)
- {
- Store (Zero, \_SB.PCI0.LPC.EC0.BTRT)
- Store (One, \_SB.PCI0.LPC.EC0.BTON)
- Store (One, \_SB.PCI0.LPC.EC0.BION)
- Store (One, \_SB.PCI0.LPC.EC0.BTRT)
- }
- Notify (\_SB.BT, Zero)
- Store (One, SSMI)
- }
- Method (SFNK, 1, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
- {
- Store (\_SB.PCI0.LPC.EC0.PWBN, PWBS)
- }
- Release (MUTS)
- }
- Scope (_PR)
- {
- Processor (CPU0, 0x01, 0x00000410, 0x06) {}
- Processor (CPU1, 0x02, 0x00000410, 0x06) {}
- }
- Name (ECON, Zero)
- Name (CTYP, Zero)
- Name (DSEN, One)
- Method (_PTS, 1, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- \_SB.OSMI (0xFF)
- Release (MUTS)
- If (LEqual (Arg0, 0x03))
- {
- Store (0x53, P80H)
- }
- If (LEqual (Arg0, 0x04))
- {
- Store (0x54, P80H)
- If (LGreater (OSYS, 0x07D6))
- {
- Acquire (MUTS, 0xFFFF)
- Store (0x26, APMD)
- Store (0xC0, APMC)
- Release (MUTS)
- }
- }
- SFNK (Arg0)
- If (LEqual (Arg0, 0x05))
- {
- If (LEqual (OS07, Zero))
- {
- Acquire (MUTS, 0xFFFF)
- \_SB.OSMI (0xFE)
- Release (MUTS)
- }
- Sleep (0x1388)
- }
- Return (Zero)
- }
- Method (_WAK, 1, NotSerialized)
- {
- If (LGreater (OSYS, 0x07D6))
- {
- Store (One, OS07)
- }
- Else
- {
- Store (Zero, OS07)
- }
- Store (One, OSEC)
- If (LEqual (Arg0, 0x03))
- {
- Acquire (MUTS, 0xFFFF)
- \_SB.OSMI (0xC1)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- If (\_SB.PCI0.LPC.EC0.WKSV)
- {
- Notify (\_SB.PWRB, 0x02)
- }
- Notify (\_SB.PCI0.EXP2, Zero)
- Store (0xE3, P80H)
- }
- Notify (\_SB.BAT0, 0x81)
- If (LEqual (Arg0, 0x04))
- {
- If (\_SB.PCI0.LPC.EC0.WKSV)
- {
- Notify (\_SB.PWRB, 0x02)
- }
- Notify (\_SB.PCI0.EXP2, Zero)
- Acquire (MUTS, 0xFFFF)
- \_SB.OSMI (0xC1)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- Store (0xE4, P80H)
- }
- WFNK (Arg0)
- Return (Zero)
- }
- Name (_S0, Package (0x04)
- {
- Zero,
- Zero,
- Zero,
- Zero
- })
- Name (_S3, Package (0x04)
- {
- 0x05,
- 0x05,
- Zero,
- Zero
- })
- Name (_S4, Package (0x04)
- {
- 0x06,
- 0x06,
- Zero,
- Zero
- })
- Name (_S5, Package (0x04)
- {
- 0x07,
- 0x07,
- Zero,
- Zero
- })
- Scope (_GPE)
- {
- Method (_L02, 0, NotSerialized)
- {
- Store (Zero, GPEC)
- Notify (\_TZ.THRM, 0x80)
- }
- Method (_L03, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.UHC1, 0x02)
- }
- Method (_L04, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.UHC2, 0x02)
- }
- Method (_L05, 0, NotSerialized)
- {
- }
- Method (_L09, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.EXP1, 0x02)
- Notify (\_SB.PCI0.EXP2, 0x02)
- }
- Method (_L0B, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.P32, 0x02)
- }
- Method (_L0C, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.UHC3, 0x02)
- }
- Method (_L0D, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.ECHI, 0x02)
- }
- Method (_L0E, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.UHC4, 0x02)
- }
- Method (_L1D, 0, NotSerialized)
- {
- Notify (\_SB.PWRB, 0x02)
- }
- }
- Name (GPIC, Zero)
- Method (_PIC, 1, NotSerialized)
- {
- Store (Arg0, GPIC)
- }
- Scope (_TZ)
- {
- PowerResource (FN00, 0x00, 0x0000)
- {
- Method (_STA, 0, Serialized)
- {
- Return (One)
- }
- Method (_ON, 0, Serialized)
- {
- }
- Method (_OFF, 0, Serialized)
- {
- }
- }
- Device (FAN)
- {
- Name (_HID, EisaId ("PNP0C0B"))
- Name (_UID, Zero)
- Name (_PR0, Package (0x01)
- {
- FN00
- })
- }
- ThermalZone (THRM)
- {
- Method (_TMP, 0, Serialized)
- {
- If (\_SB.PCI0.LPC.EC0.ECOK)
- {
- Store (\_SB.PCI0.LPC.EC0.CCTV, Local0)
- Return (Add (0x0AAC, Multiply (Local0, 0x0A)))
- }
- Return (0x0BB8)
- }
- Method (_AC0, 0, Serialized)
- {
- Return (Add (0x0AAC, Multiply (TRON, 0x0A)))
- }
- Method (_PSV, 0, Serialized)
- {
- If (LLess (TRON, 0x64))
- {
- Return (0x0E44)
- }
- Else
- {
- Return (0x0ED0)
- }
- }
- Method (_CRT, 0, Serialized)
- {
- If (LLess (TRON, 0x64))
- {
- Return (0x0E44)
- }
- Else
- {
- Return (0x0ED0)
- }
- }
- Method (_SCP, 1, Serialized)
- {
- Store (Arg0, CTYP)
- }
- Name (_AL0, Package (0x01)
- {
- FAN
- })
- Method (_PSL, 0, Serialized)
- {
- If (CMPE)
- {
- Return (Package (0x02)
- {
- \_PR.CPU0,
- \_PR.CPU1
- })
- }
- Return (Package (0x01)
- {
- \_PR.CPU0
- })
- }
- Name (_TC1, 0x02)
- Name (_TC2, 0x05)
- Name (_TSP, 0x012C)
- }
- }
- Method (SCMP, 2, NotSerialized)
- {
- Name (STG1, Buffer (0x50) {})
- Name (STG2, Buffer (0x50) {})
- Store (Arg0, STG1)
- Store (Arg1, STG2)
- If (LNotEqual (SizeOf (Arg0), SizeOf (Arg1)))
- {
- Return (Zero)
- }
- Store (Zero, Local0)
- While (LLess (Local0, SizeOf (Arg0)))
- {
- If (LNotEqual (DerefOf (Index (STG1, Local0)), DerefOf (Index (
- STG2, Local0))))
- {
- Return (Zero)
- }
- Increment (Local0)
- }
- Return (One)
- }
- 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 (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
- {
- Return (0x2301)
- }
- If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
- {
- Return (0x2101)
- }
- }
- Return (0x1001)
- }
- }
- Method (SDMA, 1, Serialized)
- {
- If (LLessEqual (Arg0, 0x14))
- {
- Return (One)
- }
- If (LLessEqual (Arg0, 0x1E))
- {
- Return (0x02)
- }
- If (LLessEqual (Arg0, 0x2D))
- {
- Return (One)
- }
- If (LLessEqual (Arg0, 0x3C))
- {
- Return (0x02)
- }
- If (LLessEqual (Arg0, 0x5A))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (SETT, 3, Serialized)
- {
- If (And (Arg1, 0x02))
- {
- If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
- {
- Return (0x0B)
- }
- If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
- {
- Return (0x09)
- }
- }
- Return (0x04)
- }
- Scope (_SB)
- {
- Device (PWRB)
- {
- Name (_HID, EisaId ("PNP0C0C"))
- }
- Device (LID0)
- {
- Name (_HID, EisaId ("PNP0C0D"))
- Method (_LID, 0, NotSerialized)
- {
- If (^^PCI0.LPC.EC0.ECOK)
- {
- If (^^PCI0.LPC.EC0.LIDE)
- {
- Return (Zero)
- }
- Else
- {
- Return (One)
- }
- }
- Else
- {
- Return (One)
- }
- }
- Method (_PRW, 0, NotSerialized)
- {
- If (LGreater (OSYS, 0x07D6))
- {
- Return (Package (0x02)
- {
- One,
- 0x04
- })
- }
- Else
- {
- Return (Package (0x02)
- {
- 0x0D,
- 0x04
- })
- }
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (Arg0)
- {
- If (^^PCI0.LPC.EC0.LIDE)
- {
- Store (One, ^^PCI0.LPC.EC0.WKLD)
- }
- Else
- {
- Store (Zero, ^^PCI0.LPC.EC0.WKLD)
- }
- }
- Else
- {
- Store (Zero, ^^PCI0.LPC.EC0.WKLD)
- }
- }
- }
- Device (ADP0)
- {
- Name (_PCL, Package (0x01)
- {
- _SB
- })
- Name (_HID, "ACPI0003")
- Method (_PSR, 0, NotSerialized)
- {
- If (^^PCI0.LPC.EC0.ECOK)
- {
- Store (^^PCI0.LPC.EC0.ACST, Local0)
- If (Local0)
- {
- Return (One)
- }
- Else
- {
- Return (Zero)
- }
- }
- Else
- {
- Return (One)
- }
- }
- Method (_STA, 0, NotSerialized)
- {
- Return (0x0F)
- }
- }
- Device (BAT0)
- {
- Name (_HID, EisaId ("PNP0C0A"))
- Name (_UID, One)
- Name (_PCL, Package (0x01)
- {
- _SB
- })
- Name (BIF1, Package (0x0D)
- {
- One,
- 0x10CC,
- 0x10CC,
- One,
- 0x3A98,
- 0x01AE,
- 0x56,
- 0x2B,
- 0x2B,
- "PA3478U-1BAS/BRS",
- "0000",
- "Li-ion",
- "TOSHIBA"
- })
- Method (_STA, 0, NotSerialized)
- {
- If (^^PCI0.LPC.EC0.ECOK)
- {
- If (^^PCI0.LPC.EC0.B1EX)
- {
- Return (0x1F)
- }
- Else
- {
- Return (0x0F)
- }
- }
- Else
- {
- Return (0x0F)
- }
- }
- Name (BST1, Package (0x04)
- {
- One,
- 0x0A90,
- 0x1000,
- 0x23A0
- })
- Method (_BIF, 0, NotSerialized)
- {
- If (^^PCI0.LPC.EC0.ECOK)
- {
- Store (^^PCI0.LPC.EC0.B1VL, Local0)
- Store (^^PCI0.LPC.EC0.B1VH, Local5)
- ShiftLeft (Local5, 0x08, Local5)
- Add (Local0, Local5, Local0)
- Store (Local0, Index (BIF1, 0x04))
- Store (^^PCI0.LPC.EC0.B1FL, Local0)
- Store (^^PCI0.LPC.EC0.B1FH, Local5)
- ShiftLeft (Local5, 0x08, Local5)
- Add (Local0, Local5, Local0)
- Store (Local0, Index (BIF1, 0x02))
- Store (^^PCI0.LPC.EC0.B1DL, Local1)
- Store (^^PCI0.LPC.EC0.B1DH, Local5)
- ShiftLeft (Local5, 0x08, Local5)
- Add (Local1, Local5, Local1)
- Store (Local1, Index (BIF1, One))
- Divide (Local1, 0x0A, Local0, Local2)
- Store (Local2, Index (BIF1, 0x05))
- Divide (Local1, 0x32, Local0, Local2)
- Store (Local2, Index (BIF1, 0x06))
- Store (^^PCI0.LPC.EC0.BCEL, Local0)
- Store (^^PCI0.LPC.EC0.BCNS, Index (BIF1, 0x09))
- Store (^^PCI0.LPC.EC0.BVEN, Local0)
- If (LEqual (Local0, One))
- {
- Store ("SIMPO", Index (BIF1, 0x0C))
- }
- If (LEqual (Local0, 0x02))
- {
- Store ("SONY", Index (BIF1, 0x0C))
- }
- If (LEqual (Local0, 0x03))
- {
- Store ("SANYO", Index (BIF1, 0x0C))
- }
- If (LEqual (Local0, 0x04))
- {
- Store ("PASONIC", Index (BIF1, 0x0C))
- }
- If (LEqual (Local0, 0x52))
- {
- Store ("LG", Index (BIF1, 0x0C))
- }
- Store (^^PCI0.LPC.EC0.B1SL, Local0)
- Store (^^PCI0.LPC.EC0.B1SH, Local5)
- ShiftLeft (Local5, 0x08, Local5)
- Add (Local0, Local5, Local0)
- Store (ITOS (Local0), Local1)
- Store (Local1, Index (BIF1, 0x0A))
- }
- Else
- {
- Store (Ones, Index (BIF1, One))
- Store (Ones, Index (BIF1, 0x04))
- }
- Return (BIF1)
- }
- Method (_BST, 0, NotSerialized)
- {
- If (^^PCI0.LPC.EC0.ECOK)
- {
- Store (^^PCI0.LPC.EC0.B1CG, Local1)
- Store (^^PCI0.LPC.EC0.B1DC, Local0)
- ShiftLeft (Local1, One, Local2)
- Or (Local0, Local2, Local3)
- Store (^^PCI0.LPC.EC0.BPRH, Local2)
- Multiply (Local2, 0x0100, Local1)
- Store (^^PCI0.LPC.EC0.BPRL, Local0)
- Add (Local1, Local0, Local1)
- Store (Local1, Index (BST1, One))
- Store (^^PCI0.LPC.EC0.B1PT, Local0)
- If (CRIT)
- {
- Or (Local3, 0x04, Local3)
- }
- Else
- {
- And (Local3, 0xFFFFFFFB, Local3)
- }
- Store (Local3, Index (BST1, Zero))
- Store (DerefOf (Index (BIF1, 0x02)), Local1)
- Multiply (Local1, Local0, Local2)
- Divide (Local2, 0x64, Local3, Local2)
- Add (Local2, One, Local2)
- Store (Local2, Index (BST1, 0x02))
- Store (DerefOf (Index (BIF1, 0x04)), Local3)
- Store (Local3, Index (BST1, 0x03))
- }
- Else
- {
- Store (One, Index (BST1, Zero))
- Store (Ones, Index (BST1, One))
- Store (Ones, Index (BST1, 0x02))
- Store (Ones, Index (BST1, 0x03))
- }
- Return (BST1)
- }
- }
- Method (ITOS, 1, NotSerialized)
- {
- Store ("", Local0)
- Store (0x04, Local1)
- While (Local1)
- {
- Decrement (Local1)
- And (ShiftRight (Arg0, ShiftLeft (Local1, 0x02)), 0x0F, Local4)
- Store (DerefOf (Index (CHAR, Local4)), Local2)
- Concatenate (Local0, Local2, Local5)
- Store (Local5, Local0)
- }
- Return (Local0)
- }
- Name (CHAR, Package (0x10)
- {
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7",
- "8",
- "9",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F"
- })
- Device (BT)
- {
- Name (_HID, "TOS6205")
- Method (_STA, 0, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- Store (FLNK (0x16, 0xFE), Local2)
- Release (MUTS)
- Store (Zero, Local0)
- If (Local2)
- {
- Store (0x0F, Local0)
- }
- Return (Local0)
- }
- Method (BTST, 0, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- Store (FLNK (0x16, 0xFD), Local0)
- Release (MUTS)
- Return (Local0)
- }
- Method (AUSB, 0, NotSerialized)
- {
- }
- Method (DUSB, 0, NotSerialized)
- {
- Store (Zero, ^^PCI0.LPC.EC0.BTRT)
- Acquire (MUTS, 0xFFFF)
- FLNK (0x16, 0xFC)
- Release (MUTS)
- Sleep (0x96)
- }
- Method (BTPO, 0, NotSerialized)
- {
- Store (^^PCI0.LPC.EC0.BTST, Local2)
- If (Local2)
- {
- Store (^^PCI0.LPC.EC0.KSST, Local3)
- If (Local3)
- {
- Store (One, ^^PCI0.LPC.EC0.BTON)
- Store (One, ^^PCI0.LPC.EC0.BION)
- Acquire (MUTS, 0xFFFF)
- FLNK (0x16, 0xFA)
- Release (MUTS)
- Store (One, ^^PCI0.LPC.EC0.BTRT)
- }
- }
- }
- Method (BTPF, 0, NotSerialized)
- {
- If (^^PCI0.LPC.EC0.ECOK)
- {
- Store (^^PCI0.LPC.EC0.BTST, Local2)
- If (Local2)
- {
- Sleep (0xFA)
- }
- }
- }
- }
- OperationRegion (PSMI, SystemIO, 0xB2, 0x02)
- Field (PSMI, ByteAcc, NoLock, Preserve)
- {
- APMC, 8,
- APMD, 8
- }
- Method (GSMI, 1, NotSerialized)
- {
- Store (Arg0, APMD)
- Store (0xE4, APMC)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- }
- Method (S80H, 1, NotSerialized)
- {
- Store (Arg0, APMD)
- Store (0xE5, APMC)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- }
- Method (OSMI, 1, NotSerialized)
- {
- Store (Arg0, APMD)
- Store (0xBE, APMC)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- Stall (0xFF)
- }
- Device (PCI0)
- {
- Name (_HID, EisaId ("PNP0A08"))
- Name (_CID, EisaId ("PNP0A03"))
- Name (_ADR, Zero)
- Method (_INI, 0, NotSerialized)
- {
- If (CondRefOf (_OSI, Local0))
- {
- If (_OSI ("Linux"))
- {
- Store (0x07D8, OSYS)
- Store (One, OS07)
- }
- Else
- {
- Store (0x07D1, OSYS)
- If (_OSI ("Windows 2001 SP2"))
- {
- Store (0x07D2, OSYS)
- }
- Else
- {
- If (_OSI ("Windows 2001 SP3"))
- {
- Store (0x07D2, OSYS)
- }
- }
- If (_OSI ("Windows 2006"))
- {
- Store (0x07D6, OSYS)
- }
- If (LNotEqual (OSYS, 0x07D6))
- {
- If (_OSI ("Windows 2006 SP1"))
- {
- Store (0x07D6, OSYS)
- }
- Else
- {
- If (_OSI ("Windows 2006 SP2"))
- {
- Store (0x07D6, OSYS)
- }
- }
- }
- If (LEqual (OSYS, 0x07D6))
- {
- Acquire (MUTS, 0xFFFF)
- OSMI (0x29)
- Release (MUTS)
- }
- If (OS07)
- {
- Store (0x07D8, OSYS)
- }
- If (LLess (OSYS, 0x07D8))
- {
- Acquire (MUTS, 0xFFFF)
- OSMI (0x28)
- Release (MUTS)
- }
- Store (One, OSEC)
- }
- }
- Else
- {
- Store (0x07D0, OSYS)
- }
- }
- Method (_OSC, 4, NotSerialized)
- {
- Store (Arg2, Local0)
- Multiply (Local0, 0x04, Local1)
- Name (BUF1, Buffer (Local1) {})
- Store (Arg3, BUF1)
- Store (Zero, Local1)
- Store (Zero, Local2)
- While (Local0)
- {
- Multiply (Local1, 0x04, Local2)
- CreateDWordField (BUF1, Local2, CAPB)
- If (Arg1)
- {
- If (LEqual (Local1, Zero))
- {
- And (CAPB, 0xFFFFFFFC, CAPB)
- }
- }
- Else
- {
- }
- Increment (Local1)
- Decrement (Local0)
- }
- Return (BUF1)
- }
- 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, // Granularity
- 0x0000, // Range Minimum
- 0x00FF, // Range Maximum
- 0x0000, // Translation Offset
- 0x0100, // Length
- 0x00,, )
- DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
- 0x00000000, // Granularity
- 0x00000000, // Range Minimum
- 0x00000CF7, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00000CF8, // Length
- 0x00,, , TypeStatic)
- IO (Decode16,
- 0x0CF8, // Range Minimum
- 0x0CF8, // Range Maximum
- 0x01, // Alignment
- 0x08, // Length
- )
- DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
- 0x00000000, // Granularity
- 0x00000D00, // Range Minimum
- 0x0000FFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x0000F300, // Length
- 0x00,, , TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000A0000, // Range Minimum
- 0x000BFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00020000, // Length
- 0x00,, , AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000C0000, // Range Minimum
- 0x000C3FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y00, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000C4000, // Range Minimum
- 0x000C7FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y01, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000C8000, // Range Minimum
- 0x000CBFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y02, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000CC000, // Range Minimum
- 0x000CFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y03, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000D0000, // Range Minimum
- 0x000D3FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y04, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000D4000, // Range Minimum
- 0x000D7FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y05, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000D8000, // Range Minimum
- 0x000DBFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y06, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000DC000, // Range Minimum
- 0x000DFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y07, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000E0000, // Range Minimum
- 0x000E3FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y08, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000E4000, // Range Minimum
- 0x000E7FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y09, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000E8000, // Range Minimum
- 0x000EBFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y0A, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000EC000, // Range Minimum
- 0x000EFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y0B, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000F0000, // Range Minimum
- 0x000FFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00010000, // Length
- 0x00,, _Y0C, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x00000000, // Range Minimum
- 0xFEBFFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00000000, // Length
- 0x00,, _Y0D, AddressRangeMemory, TypeStatic)
- })
- Method (_CRS, 0, Serialized)
- {
- If (PM1L)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y00._LEN, C0LN)
- Store (Zero, C0LN)
- }
- If (LEqual (PM1L, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y00._RW, C0RW)
- Store (Zero, C0RW)
- }
- If (PM1H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y01._LEN, C4LN)
- Store (Zero, C4LN)
- }
- If (LEqual (PM1H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y01._RW, C4RW)
- Store (Zero, C4RW)
- }
- If (PM2L)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y02._LEN, C8LN)
- Store (Zero, C8LN)
- }
- If (LEqual (PM2L, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y02._RW, C8RW)
- Store (Zero, C8RW)
- }
- If (PM2H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y03._LEN, CCLN)
- Store (Zero, CCLN)
- }
- If (LEqual (PM2H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y03._RW, CCRW)
- Store (Zero, CCRW)
- }
- If (PM3L)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y04._LEN, D0LN)
- Store (Zero, D0LN)
- }
- If (LEqual (PM3L, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y04._RW, D0RW)
- Store (Zero, D0RW)
- }
- If (PM3H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y05._LEN, D4LN)
- Store (Zero, D4LN)
- }
- If (LEqual (PM3H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y05._RW, D4RW)
- Store (Zero, D4RW)
- }
- If (PM4L)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y06._LEN, D8LN)
- Store (Zero, D8LN)
- }
- If (LEqual (PM4L, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y06._RW, D8RW)
- Store (Zero, D8RW)
- }
- If (PM4H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y07._LEN, DCLN)
- Store (Zero, DCLN)
- }
- If (LEqual (PM4H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y07._RW, DCRW)
- Store (Zero, DCRW)
- }
- If (PM5L)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y08._LEN, E0LN)
- Store (Zero, E0LN)
- }
- If (LEqual (PM5L, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y08._RW, E0RW)
- Store (Zero, E0RW)
- }
- If (PM5H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y09._LEN, E4LN)
- Store (Zero, E4LN)
- }
- If (LEqual (PM5H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y09._RW, E4RW)
- Store (Zero, E4RW)
- }
- If (PM6L)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y0A._LEN, E8LN)
- Store (Zero, E8LN)
- }
- If (LEqual (PM6L, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y0A._RW, E8RW)
- Store (Zero, E8RW)
- }
- If (PM6H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y0B._LEN, ECLN)
- Store (Zero, ECLN)
- }
- If (LEqual (PM6H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y0B._RW, ECRW)
- Store (Zero, ECRW)
- }
- If (PM0H)
- {
- CreateDWordField (BUF0, \_SB.PCI0._Y0C._LEN, F0LN)
- Store (Zero, F0LN)
- }
- If (LEqual (PM0H, One))
- {
- CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, F0RW)
- Store (Zero, F0RW)
- }
- CreateDWordField (BUF0, \_SB.PCI0._Y0D._MIN, M1MN)
- CreateDWordField (BUF0, \_SB.PCI0._Y0D._MAX, M1MX)
- CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, M1LN)
- ShiftLeft (TOUD, 0x1B, M1MN)
- Add (Subtract (M1MX, M1MN), One, M1LN)
- Return (BUF0)
- }
- Method (_PRT, 0, NotSerialized)
- {
- If (LEqual (GPIC, Zero))
- {
- If (LGreater (OSYS, 0x07D6))
- {
- Return (Package (0x10)
- {
- Package (0x04)
- {
- 0x0001FFFF,
- Zero,
- ^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x0002FFFF,
- Zero,
- ^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x001BFFFF,
- Zero,
- ^LPC.LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- Zero,
- ^LPC.LNKC,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- One,
- ^LPC.LNKD,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x02,
- ^LPC.LNKA,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x03,
- ^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- Zero,
- ^LPC.LNKF,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- One,
- ^LPC.LNKG,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x02,
- ^LPC.LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x03,
- ^LPC.LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001EFFFF,
- Zero,
- ^LPC.LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x001EFFFF,
- One,
- ^LPC.LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001FFFFF,
- One,
- ^LPC.LNKA,
- Zero
- },
- Package (0x04)
- {
- 0x001FFFFF,
- 0x02,
- ^LPC.LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x001FFFFF,
- 0x03,
- ^LPC.LNKC,
- Zero
- }
- })
- }
- Else
- {
- Return (Package (0x10)
- {
- Package (0x04)
- {
- 0x0001FFFF,
- Zero,
- ^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x0002FFFF,
- Zero,
- ^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x001BFFFF,
- Zero,
- ^LPC.LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- Zero,
- ^LPC.LNKC,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- One,
- ^LPC.LNKD,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x02,
- ^LPC.LNKA,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x03,
- ^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- Zero,
- ^LPC.LNKF,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- One,
- ^LPC.LNKG,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x02,
- ^LPC.LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x03,
- ^LPC.LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001EFFFF,
- Zero,
- ^LPC.LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x001EFFFF,
- One,
- ^LPC.LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001FFFFF,
- Zero,
- ^LPC.LNKA,
- Zero
- },
- Package (0x04)
- {
- 0x001FFFFF,
- One,
- ^LPC.LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x001FFFFF,
- 0x02,
- ^LPC.LNKC,
- Zero
- }
- })
- }
- }
- Else
- {
- If (LGreater (OSYS, 0x07D6))
- {
- Return (Package (0x10)
- {
- Package (0x04)
- {
- 0x0001FFFF,
- Zero,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x0002FFFF,
- Zero,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x001BFFFF,
- Zero,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001CFFFF,
- Zero,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0x001CFFFF,
- One,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x02,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x03,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x001DFFFF,
- Zero,
- Zero,
- 0x15
- },
- Package (0x04)
- {
- 0x001DFFFF,
- One,
- Zero,
- 0x16
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x02,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x03,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001EFFFF,
- Zero,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x001EFFFF,
- One,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001FFFFF,
- One,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0x001FFFFF,
- 0x02,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x001FFFFF,
- 0x03,
- Zero,
- 0x12
- }
- })
- }
- Else
- {
- Return (Package (0x10)
- {
- Package (0x04)
- {
- 0x0001FFFF,
- Zero,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x0002FFFF,
- Zero,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x001BFFFF,
- Zero,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001CFFFF,
- Zero,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0x001CFFFF,
- One,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x02,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x03,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x001DFFFF,
- Zero,
- Zero,
- 0x15
- },
- Package (0x04)
- {
- 0x001DFFFF,
- One,
- Zero,
- 0x16
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x02,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x03,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001EFFFF,
- Zero,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x001EFFFF,
- One,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001FFFFF,
- Zero,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0x001FFFFF,
- One,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x001FFFFF,
- 0x02,
- Zero,
- 0x12
- }
- })
- }
- }
- }
- Device (P32)
- {
- Name (_ADR, 0x001E0000)
- Method (_PRW, 0, NotSerialized)
- {
- If (LEqual (WKPM, One))
- {
- Return (Package (0x02)
- {
- 0x0B,
- 0x04
- })
- }
- Else
- {
- Return (Package (0x02)
- {
- 0x0B,
- Zero
- })
- }
- }
- }
- Device (LPC)
- {
- Name (_ADR, 0x001F0000)
- OperationRegion (PRR0, PCI_Config, 0x60, 0x04)
- Field (PRR0, AnyAcc, NoLock, Preserve)
- {
- PIRA, 8,
- PIRB, 8,
- PIRC, 8,
- PIRD, 8
- }
- OperationRegion (PRR1, PCI_Config, 0x68, 0x04)
- Field (PRR1, AnyAcc, NoLock, Preserve)
- {
- PIRE, 8,
- PIRF, 8,
- PIRG, 8,
- PIRH, 8
- }
- OperationRegion (PRR2, PCI_Config, 0x80, 0x02)
- Field (PRR2, AnyAcc, NoLock, Preserve)
- {
- IODL, 8,
- IODH, 8
- }
- Device (LNKA)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, One)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRA, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRA, 0x80, PIRA)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRA, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRA, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRA)
- }
- }
- Device (LNKB)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x02)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRB, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRB, 0x80, PIRB)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRB, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRB, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRB)
- }
- }
- Device (LNKC)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x03)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRC, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRC, 0x80, PIRC)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRC, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRC, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRC)
- }
- }
- Device (LNKD)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x04)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRD, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRD, 0x80, PIRD)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRD, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRD, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRD)
- }
- }
- Device (LNKE)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x05)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRE, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRE, 0x80, PIRE)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRE, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRE, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRE)
- }
- }
- Device (LNKF)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x06)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRF, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRF, 0x80, PIRF)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRF, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRF, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRF)
- }
- }
- Device (LNKG)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x07)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRG, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRG, 0x80, PIRG)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRG, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRG, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRG)
- }
- }
- Device (LNKH)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x08)
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRH, 0x80))
- {
- Return (0x09)
- }
- Else
- {
- Return (0x0B)
- }
- }
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRH, 0x80, PIRH)
- }
- Method (_CRS, 0, NotSerialized)
- {
- Name (BUF0, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {0}
- })
- CreateWordField (BUF0, One, IRQW)
- If (And (PIRH, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Store (One, Local0)
- }
- ShiftLeft (Local0, And (PIRH, 0x0F), IRQW)
- Return (BUF0)
- }
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,7,9,10,11,12}
- })
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQW)
- FindSetRightBit (IRQW, Local0)
- If (LNotEqual (IRQW, Zero))
- {
- And (Local0, 0x7F, Local0)
- Decrement (Local0)
- }
- Else
- {
- Or (Local0, 0x80, Local0)
- }
- Store (Local0, PIRH)
- }
- }
- Device (SYSR)
- {
- Name (_HID, EisaId ("PNP0C02"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x164E, // Range Minimum
- 0x164E, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0061, // Range Minimum
- 0x0061, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0070, // Range Minimum
- 0x0070, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0080, // Range Minimum
- 0x0080, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0092, // Range Minimum
- 0x0092, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x00B2, // Range Minimum
- 0x00B2, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0063, // Range Minimum
- 0x0063, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0065, // Range Minimum
- 0x0065, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0067, // Range Minimum
- 0x0067, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0600, // Range Minimum
- 0x0600, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0800, // Range Minimum
- 0x0800, // Range Maximum
- 0x01, // Alignment
- 0x10, // Length
- )
- IO (Decode16,
- 0x0400, // Range Minimum
- 0x0400, // Range Maximum
- 0x01, // Alignment
- 0x80, // Length
- )
- IO (Decode16,
- 0x0500, // Range Minimum
- 0x0500, // Range Maximum
- 0x01, // Alignment
- 0x40, // Length
- )
- Memory32Fixed (ReadWrite,
- 0xE0000000, // Address Base
- 0x10000000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFED1C000, // Address Base
- 0x00004000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFED14000, // Address Base
- 0x00004000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFED18000, // Address Base
- 0x00001000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFED19000, // Address Base
- 0x00001000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFEC00000, // Address Base
- 0x00001000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFEE00000, // Address Base
- 0x00001000, // Address Length
- )
- })
- }
- Device (DMAC)
- {
- Name (_HID, EisaId ("PNP0200"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0000, // Range Minimum
- 0x0000, // Range Maximum
- 0x01, // Alignment
- 0x20, // Length
- )
- IO (Decode16,
- 0x0081, // Range Minimum
- 0x0081, // Range Maximum
- 0x01, // Alignment
- 0x11, // Length
- )
- IO (Decode16,
- 0x0093, // Range Minimum
- 0x0093, // Range Maximum
- 0x01, // Alignment
- 0x0D, // Length
- )
- IO (Decode16,
- 0x00C0, // Range Minimum
- 0x00C0, // Range Maximum
- 0x01, // Alignment
- 0x20, // Length
- )
- DMA (Compatibility, NotBusMaster, Transfer8_16, )
- {4}
- })
- }
- Device (RTC)
- {
- Name (_HID, EisaId ("PNP0B00"))
- Name (BUF0, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0070, // Range Minimum
- 0x0070, // Range Maximum
- 0x01, // Alignment
- 0x08, // Length
- )
- })
- Name (BUF1, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0070, // Range Minimum
- 0x0070, // Range Maximum
- 0x01, // Alignment
- 0x08, // Length
- )
- IRQNoFlags ()
- {8}
- })
- Method (_CRS, 0, Serialized)
- {
- If (LEqual (HPTS, One))
- {
- Return (BUF0)
- }
- Else
- {
- Return (BUF1)
- }
- }
- }
- Device (HPET)
- {
- Name (_HID, EisaId ("PNP0103"))
- Name (BUF0, ResourceTemplate ()
- {
- IRQNoFlags ()
- {0}
- IRQNoFlags ()
- {8}
- Memory32Fixed (ReadOnly,
- 0xFED00000, // Address Base
- 0x00000400, // Address Length
- _Y0E)
- })
- Method (_STA, 0, NotSerialized)
- {
- If (LGreaterEqual (OSYS, 0x07D1))
- {
- If (LEqual (HPTS, One))
- {
- Return (0x0F)
- }
- Else
- {
- Return (Zero)
- }
- }
- Else
- {
- If (HPTS)
- {
- Return (0x0B)
- }
- Else
- {
- Return (Zero)
- }
- }
- }
- Method (_CRS, 0, Serialized)
- {
- If (LEqual (HPTS, One))
- {
- CreateDWordField (BUF0, \_SB.PCI0.LPC.HPET._Y0E._BAS, HPT0)
- If (LEqual (HPTA, One))
- {
- Store (0xFED01000, HPT0)
- }
- If (LEqual (HPTA, 0x02))
- {
- Store (0xFED02000, HPT0)
- }
- If (LEqual (HPTA, 0x03))
- {
- Store (0xFED03000, HPT0)
- }
- }
- Return (BUF0)
- }
- }
- Device (PIC)
- {
- Name (_HID, EisaId ("PNP0000"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0020, // Range Minimum
- 0x0020, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0024, // Range Minimum
- 0x0024, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0028, // Range Minimum
- 0x0028, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x002C, // Range Minimum
- 0x002C, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0030, // Range Minimum
- 0x0030, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0034, // Range Minimum
- 0x0034, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x0038, // Range Minimum
- 0x0038, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x003C, // Range Minimum
- 0x003C, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00A0, // Range Minimum
- 0x00A0, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00A4, // Range Minimum
- 0x00A4, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00A8, // Range Minimum
- 0x00A8, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00AC, // Range Minimum
- 0x00AC, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00B0, // Range Minimum
- 0x00B0, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00B4, // Range Minimum
- 0x00B4, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00B8, // Range Minimum
- 0x00B8, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00BC, // Range Minimum
- 0x00BC, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x04D0, // Range Minimum
- 0x04D0, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IRQNoFlags ()
- {2}
- })
- }
- Device (FPU)
- {
- Name (_HID, EisaId ("PNP0C04"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x00F0, // Range Minimum
- 0x00F0, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IRQNoFlags ()
- {13}
- })
- }
- Device (TIMR)
- {
- Name (_HID, EisaId ("PNP0100"))
- Name (BUF0, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0040, // Range Minimum
- 0x0040, // Range Maximum
- 0x01, // Alignment
- 0x04, // Length
- )
- IO (Decode16,
- 0x0050, // Range Minimum
- 0x0050, // Range Maximum
- 0x10, // Alignment
- 0x04, // Length
- )
- })
- Name (BUF1, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0040, // Range Minimum
- 0x0040, // Range Maximum
- 0x01, // Alignment
- 0x04, // Length
- )
- IO (Decode16,
- 0x0050, // Range Minimum
- 0x0050, // Range Maximum
- 0x10, // Alignment
- 0x04, // Length
- )
- IRQNoFlags ()
- {0}
- })
- Method (_CRS, 0, Serialized)
- {
- If (HPTS)
- {
- Return (BUF0)
- }
- Return (BUF1)
- }
- }
- Device (FWHD)
- {
- Name (_HID, EisaId ("INT0800"))
- Name (_CRS, ResourceTemplate ()
- {
- Memory32Fixed (ReadOnly,
- 0xFF800000, // Address Base
- 0x00800000, // Address Length
- )
- })
- }
- Device (KBC)
- {
- Name (_HID, EisaId ("PNP0303"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0060, // Range Minimum
- 0x0060, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0064, // Range Minimum
- 0x0064, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IRQ (Edge, ActiveHigh, Exclusive, )
- {1}
- })
- Method (_STA, 0, NotSerialized)
- {
- Return (0x0F)
- }
- }
- Device (MOUE)
- {
- Name (_HID, EisaId ("SYN1913"))
- Name (_CID, Package (0x03)
- {
- EisaId ("SYN1900"),
- EisaId ("SYN0002"),
- EisaId ("PNP0F13")
- })
- Name (_CRS, ResourceTemplate ()
- {
- IRQ (Edge, ActiveHigh, Exclusive, )
- {12}
- })
- Method (_STA, 0, NotSerialized)
- {
- Return (0x0F)
- }
- }
- Device (EC0)
- {
- Name (_HID, EisaId ("PNP0C09"))
- Name (_GPE, 0x17)
- Name (ECOK, Zero)
- Method (_REG, 2, NotSerialized)
- {
- If (LEqual (Arg0, 0x03))
- {
- If (LEqual (Arg1, One))
- {
- Store (One, ECOK)
- Store (KSST, Local0)
- If (LGreater (OSYS, 0x07D6))
- {
- Store (One, OS07)
- }
- Else
- {
- Store (Zero, OS07)
- }
- Notify (ADP0, Zero)
- Notify (BAT0, 0x80)
- Acquire (MUTS, 0xFFFF)
- If (LLess (OSYS, 0x07D6))
- {
- Store (Zero, VKEY)
- FLNK (0x15, 0xFF)
- }
- Release (MUTS)
- Acquire (MUTS, 0xFFFF)
- OSMI (0xC1)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- }
- Else
- {
- Store (Zero, ECOK)
- }
- }
- Acquire (MUTS, 0xFFFF)
- FLNK (0x30, Zero)
- Release (MUTS)
- }
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0062, // Range Minimum
- 0x0062, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0066, // Range Minimum
- 0x0066, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- })
- OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
- Field (ERAM, ByteAcc, Lock, Preserve)
- {
- Offset (0x90),
- Offset (0x91),
- Offset (0x92),
- LIDE, 1,
- DOCK, 1,
- FNST, 1,
- ACST, 1,
- , 1,
- , 1,
- , 1,
- Offset (0x93),
- SMIE, 1,
- WLST, 1,
- BTRT, 1,
- WLIF, 1,
- KSST, 1,
- BTST, 1,
- BION, 1,
- BTON, 1,
- B1EX, 1,
- , 3,
- B1CG, 1,
- Offset (0x95),
- B1DC, 1,
- , 3,
- B1CF, 1,
- Offset (0x96),
- L1B1, 1,
- , 3,
- L1B2, 1,
- Offset (0x97),
- CPTO, 8,
- Offset (0x99),
- BL1P, 7,
- Offset (0x9A),
- BL2P, 7,
- Offset (0x9B),
- Offset (0x9C),
- CCTV, 8,
- CCLT, 8,
- CCHT, 8,
- CCST, 8,
- CFAS, 8,
- Offset (0xA2),
- WKSV, 8,
- BNDT, 8,
- B1PT, 8,
- Offset (0xA7),
- BLEC, 1,
- Offset (0xA8),
- B1RL, 8,
- B1RH, 8,
- B1FL, 8,
- B1FH, 8,
- B1DL, 8,
- B1DH, 8,
- B1VL, 8,
- B1VH, 8,
- Offset (0xB4),
- OTCD, 8,
- Offset (0xB6),
- WKLD, 1,
- WKKY, 1,
- WKLN, 1,
- PWBN, 1,
- Offset (0xB8),
- , 1,
- SWI4, 1,
- SDPF, 1,
- Offset (0xB9),
- B1SL, 8,
- B1SH, 8,
- POHV, 8,
- Offset (0xBD),
- B1PL, 8,
- B1PH, 8,
- Offset (0xC1),
- THOF, 8,
- THON, 8,
- VFON, 8,
- VFOF, 8,
- BPRL, 8,
- BPRH, 8,
- Offset (0xC8),
- BUT0, 1,
- BUT1, 1,
- BUT2, 1,
- BUT3, 1,
- BUT4, 1,
- BUT5, 1,
- , 1,
- Offset (0xC9),
- BU0W, 1,
- BU1W, 1,
- BU2W, 1,
- BU3W, 1,
- BU4W, 1,
- BU5W, 1,
- , 1,
- Offset (0xCA),
- PDSE, 8,
- VGAL, 8,
- ECTR, 8,
- Offset (0xCF),
- VGAR, 8,
- Offset (0xD1),
- VGAS, 8,
- Offset (0xD7),
- CPUT, 8,
- Offset (0xD9),
- PANT, 8,
- Offset (0xDB),
- VKEY, 1,
- , 3,
- KEMU, 1,
- HEMU, 1,
- Offset (0xDD),
- BVEN, 8,
- Offset (0xDF),
- BCEL, 8,
- BCNS, 96
- }
- Method (_Q11, 0, NotSerialized)
- {
- Store (0x11, P80H)
- Acquire (MUTS, 0xFFFF)
- OSMI (0xC2)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- Notify (\_TZ.THRM, 0x81)
- }
- Method (_Q13, 0, NotSerialized)
- {
- Store (0x13, P80H)
- Notify (ADP0, Zero)
- Notify (BAT0, 0x80)
- Notify (BAT0, 0x81)
- }
- Method (_Q14, 0, NotSerialized)
- {
- Notify (LID0, 0x80)
- }
- Method (_Q19, 0, NotSerialized)
- {
- Store (0x19, P80H)
- Notify (ADP0, Zero)
- Notify (BAT0, 0x80)
- Notify (BAT0, 0x81)
- }
- Method (_Q25, 0, NotSerialized)
- {
- If (DSEN) {}
- Else
- {
- Acquire (MUTV, 0xFFFF)
- Acquire (MUTS, 0xFFFF)
- OSMI (0x27)
- Release (MUTS)
- Notify (OVGA, 0x80)
- Sleep (0x07D0)
- Release (MUTV)
- }
- }
- Method (_Q26, 0, NotSerialized)
- {
- If (DSEN) {}
- Else
- {
- Acquire (MUTV, 0xFFFF)
- Store (0x04, NSTE)
- Notify (OVGA, 0x80)
- Sleep (0x07D0)
- Release (MUTV)
- }
- }
- Method (_Q27, 0, NotSerialized)
- {
- Notify (OVGA, 0x80)
- }
- Method (_Q28, 0, NotSerialized)
- {
- If (ECOK)
- {
- If (BTST)
- {
- If (KSST)
- {
- Store (One, BTON)
- Store (One, BION)
- Store (One, BTRT)
- }
- }
- }
- Notify (BT, Zero)
- }
- Method (_Q29, 0, NotSerialized)
- {
- If (ECOK)
- {
- If (BTST)
- {
- If (KSST)
- {
- Store (Zero, BTON)
- Store (Zero, BION)
- Store (Zero, BTRT)
- }
- }
- }
- Notify (BT, Zero)
- }
- Method (_Q31, 0, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- OSMI (0xC0)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- Notify (\_TZ.THRM, 0x81)
- }
- Method (_Q33, 0, NotSerialized)
- {
- FLNK (0xFF, 0x43)
- }
- Method (_Q36, 0, NotSerialized)
- {
- If (LGreater (OSYS, 0x07D6))
- {
- Store (0x36, P80H)
- Notify (BAT0, 0x81)
- }
- }
- Method (_Q37, 0, NotSerialized)
- {
- Store (0x37, P80H)
- Notify (BAT0, 0x80)
- If (LGreater (OSYS, 0x07D6))
- {
- Notify (BAT0, 0x83)
- }
- }
- Method (_Q59, 0, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- FLNK (0xFF, 0x41)
- If (LEqual (FNF3, One))
- {
- Sleep (0x64)
- FLNK (0xFF, 0x42)
- }
- FLNK (0x16, 0xFB)
- Release (MUTS)
- If (LEqual (FNF3, One))
- {
- _Q28 ()
- }
- }
- Method (_Q60, 0, NotSerialized)
- {
- If (LLess (OSYS, 0x07D6))
- {
- Notify (FWEX, 0x80)
- }
- Else
- {
- If (LNotEqual (EVCT, Zero))
- {
- Acquire (MUTS, 0xFFFF)
- FLNK (0x11, EVCT)
- Store (And (KYB0, 0xFF), Local0)
- Store (Zero, KYB0)
- Release (MUTS)
- }
- }
- }
- Method (_Q63, 0, NotSerialized)
- {
- Notify (^^^OVGA.LCD, 0x86)
- }
- Method (_Q64, 0, NotSerialized)
- {
- Notify (^^^OVGA.LCD, 0x87)
- }
- Method (_Q71, 0, NotSerialized)
- {
- Acquire (MUTS, 0xFFFF)
- OSMI (0xFD)
- Release (MUTS)
- }
- Method (_Q80, 0, NotSerialized)
- {
- }
- Method (_Q81, 0, NotSerialized)
- {
- }
- Method (_Q17, 0, NotSerialized)
- {
- Notify (\_PR.CPU0, 0x80)
- If (CMPE)
- {
- Sleep (0x64)
- Notify (\_PR.CPU1, 0x80)
- }
- Acquire (MUTS, 0xFFFF)
- OSMI (0xC1)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- Notify (\_TZ.THRM, 0x81)
- }
- Method (_QF9, 0, NotSerialized)
- {
- FLNK (0xFF, 0x40)
- Notify (\_PR.CPU0, 0x80)
- If (CMPE)
- {
- Sleep (0x64)
- Notify (\_PR.CPU1, 0x80)
- }
- Acquire (MUTS, 0xFFFF)
- OSMI (0xC1)
- If (THEN)
- {
- Or (0x10, THLV, THRL)
- }
- Else
- {
- Store (Zero, THRL)
- }
- Release (MUTS)
- Notify (\_TZ.THRM, 0x81)
- }
- }
- }
- Device (UHC1)
- {
- Name (_ADR, 0x001D0000)
- Name (_PRW, Package (0x02)
- {
- 0x03,
- 0x03
- })
- OperationRegion (USBR, PCI_Config, 0xC4, One)
- Field (USBR, AnyAcc, NoLock, Preserve)
- {
- URES, 8
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Zero, URES)
- }
- If (LEqual (Arg0, One))
- {
- Store (0x03, URES)
- }
- }
- }
- Device (UHC2)
- {
- Name (_ADR, 0x001D0001)
- Name (_PRW, Package (0x02)
- {
- 0x04,
- 0x03
- })
- OperationRegion (USBR, PCI_Config, 0xC4, One)
- Field (USBR, AnyAcc, NoLock, Preserve)
- {
- URES, 8
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Zero, URES)
- }
- If (LEqual (Arg0, One))
- {
- Store (0x03, URES)
- }
- }
- }
- Device (UHC3)
- {
- Name (_ADR, 0x001D0002)
- Name (_PRW, Package (0x02)
- {
- 0x0C,
- 0x03
- })
- OperationRegion (USBR, PCI_Config, 0xC4, One)
- Field (USBR, AnyAcc, NoLock, Preserve)
- {
- URES, 8
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Zero, URES)
- }
- If (LEqual (Arg0, One))
- {
- Store (0x03, URES)
- }
- }
- }
- Device (UHC4)
- {
- Name (_ADR, 0x001D0003)
- Name (_PRW, Package (0x02)
- {
- 0x0E,
- 0x03
- })
- OperationRegion (USBR, PCI_Config, 0xC4, One)
- Field (USBR, AnyAcc, NoLock, Preserve)
- {
- URES, 8
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Zero, URES)
- }
- If (LEqual (Arg0, One))
- {
- Store (0x03, URES)
- }
- }
- }
- Device (ECHI)
- {
- Name (_ADR, 0x001D0007)
- Name (_PRW, Package (0x02)
- {
- 0x0D,
- 0x03
- })
- OperationRegion (USBR, PCI_Config, 0xC4, One)
- Field (USBR, AnyAcc, NoLock, Preserve)
- {
- URES, 8
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Zero, URES)
- }
- If (LEqual (Arg0, One))
- {
- Store (0x03, URES)
- }
- }
- }
- Device (EXP1)
- {
- Name (_ADR, 0x001C0000)
- OperationRegion (P1CS, PCI_Config, 0x40, 0x0100)
- Field (P1CS, AnyAcc, NoLock, Preserve)
- {
- Offset (0x10),
- , 4,
- LKD1, 1,
- Offset (0x1A),
- ABP1, 1,
- , 2,
- PDC1, 1,
- , 2,
- PDS1, 1,
- Offset (0x20),
- RID1, 16,
- PSP1, 1,
- PPP1, 1,
- Offset (0x9C),
- , 30,
- HPCS, 1,
- PMCS, 1
- }
- Device (PXS1)
- {
- Name (_ADR, Zero)
- }
- Method (_PRW, 0, NotSerialized)
- {
- If (WKOL)
- {
- Return (Package (0x02)
- {
- 0x09,
- 0x04
- })
- }
- Return (Package (0x02)
- {
- 0x09,
- Zero
- })
- }
- Method (_PRT, 0, NotSerialized)
- {
- If (LEqual (GPIC, Zero))
- {
- Return (Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- ^^LPC.LNKA,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- ^^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- ^^LPC.LNKC,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- ^^LPC.LNKD,
- Zero
- }
- })
- }
- Else
- {
- Return (Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- Zero,
- 0x13
- }
- })
- }
- }
- }
- Device (EXP2)
- {
- Name (_ADR, 0x001C0001)
- OperationRegion (P2CS, PCI_Config, 0x40, 0x0100)
- Field (P2CS, AnyAcc, NoLock, Preserve)
- {
- Offset (0x10),
- , 4,
- LKD2, 1,
- Offset (0x1A),
- ABP2, 1,
- , 2,
- PDC2, 1,
- , 2,
- PDS2, 1,
- Offset (0x20),
- RID2, 16,
- PSP2, 1,
- PPP2, 1,
- Offset (0x9C),
- , 30,
- HPCS, 1,
- PMCS, 1
- }
- Device (PXS2)
- {
- Name (_ADR, Zero)
- }
- Name (_PRW, Package (0x02)
- {
- 0x09,
- 0x04
- })
- Method (_PRT, 0, NotSerialized)
- {
- If (LEqual (GPIC, Zero))
- {
- Return (Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- ^^LPC.LNKB,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- ^^LPC.LNKC,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- ^^LPC.LNKD,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- ^^LPC.LNKA,
- Zero
- }
- })
- }
- Else
- {
- Return (Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- Zero,
- 0x10
- }
- })
- }
- }
- }
- Device (AZAL)
- {
- Name (_ADR, 0x001B0000)
- Method (_PRW, 0, NotSerialized)
- {
- If (LEqual (WKMD, One))
- {
- Return (Package (0x02)
- {
- 0x05,
- 0x04
- })
- }
- Else
- {
- Return (Package (0x02)
- {
- 0x05,
- Zero
- })
- }
- }
- }
- Device (AUDO)
- {
- Name (_ADR, 0x001E0002)
- }
- Device (MODM)
- {
- Name (_ADR, 0x001E0003)
- Method (_PRW, 0, NotSerialized)
- {
- If (LEqual (WKMD, One))
- {
- Return (Package (0x02)
- {
- 0x05,
- 0x04
- })
- }
- Else
- {
- Return (Package (0x02)
- {
- 0x05,
- Zero
- })
- }
- }
- }
- Device (OVGA)
- {
- Name (_ADR, 0x00020000)
- OperationRegion (VNVS, SystemMemory, 0x3F5F7010, 0x00010004)
- Field (VNVS, AnyAcc, Lock, Preserve)
- {
- RSIZ, 32,
- RBUF, 524288
- }
- Method (_DOS, 1, NotSerialized)
- {
- Store (And (Arg0, 0x03), DSEN)
- }
- Method (_DOD, 0, NotSerialized)
- {
- If (LEqual (NDID, One))
- {
- Name (TMP1, Package (0x01)
- {
- Ones
- })
- Store (Or (0x00010000, DID1), Index (TMP1, Zero))
- Return (TMP1)
- }
- If (LEqual (NDID, 0x02))
- {
- Name (TMP2, Package (0x02)
- {
- Ones,
- Ones
- })
- Store (Or (0x00010000, DID1), Index (TMP2, Zero))
- Store (Or (0x00010000, DID2), Index (TMP2, One))
- Return (TMP2)
- }
- If (LEqual (NDID, 0x03))
- {
- Name (TMP3, Package (0x03)
- {
- Ones,
- Ones,
- Ones
- })
- Store (Or (0x00010000, DID1), Index (TMP3, Zero))
- Store (Or (0x00010000, DID2), Index (TMP3, One))
- Store (Or (0x00010000, DID3), Index (TMP3, 0x02))
- Return (TMP3)
- }
- If (LEqual (NDID, 0x04))
- {
- Name (TMP4, Package (0x04)
- {
- Ones,
- Ones,
- Ones,
- Ones
- })
- Store (Or (0x00010000, DID1), Index (TMP4, Zero))
- Store (Or (0x00010000, DID2), Index (TMP4, One))
- Store (Or (0x00010000, DID3), Index (TMP4, 0x02))
- Store (Or (0x00010000, DID4), Index (TMP4, 0x03))
- Return (TMP4)
- }
- Name (TMP5, Package (0x05)
- {
- Ones,
- Ones,
- Ones,
- Ones,
- Ones
- })
- Store (Or (0x00010000, DID1), Index (TMP5, Zero))
- Store (Or (0x00010000, DID2), Index (TMP5, One))
- Store (Or (0x00010000, DID3), Index (TMP5, 0x02))
- Store (Or (0x00010000, DID4), Index (TMP5, 0x03))
- Store (Or (0x00010000, DID5), Index (TMP5, 0x04))
- Return (TMP5)
- }
- Method (_ROM, 2, NotSerialized)
- {
- Store (Arg0, Local0)
- Store (Arg1, Local1)
- If (LGreater (Local1, 0x1000))
- {
- Store (0x1000, Local1)
- }
- If (LGreater (Add (Local0, Local1), RSIZ))
- {
- Store (Zero, Local0)
- }
- Multiply (Local0, 0x08, Local2)
- Multiply (Local1, 0x08, Local3)
- Name (ROM1, Buffer (RSIZ) {})
- Name (ROM2, Buffer (Local1) {})
- Store (RBUF, ROM1)
- CreateField (ROM1, Local2, Local3, TMPB)
- Store (TMPB, ROM2)
- Return (ROM2)
- }
- Device (CRT1)
- {
- Method (_ADR, 0, NotSerialized)
- {
- Return (And (0xFFFF, DID1))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (And (CSTE, One))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (And (NSTE, One))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (_DSS, 1, NotSerialized)
- {
- If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
- {
- Store (NSTE, CSTE)
- }
- }
- }
- Device (DTV1)
- {
- Method (_ADR, 0, NotSerialized)
- {
- Return (And (0xFFFF, DID2))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (And (CSTE, 0x02))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (And (NSTE, 0x02))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (_DSS, 1, NotSerialized)
- {
- If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
- {
- Store (NSTE, CSTE)
- }
- }
- }
- Device (LCD)
- {
- Method (_ADR, 0, NotSerialized)
- {
- Return (And (0xFFFF, DID3))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (And (CSTE, 0x04))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (And (NSTE, 0x04))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (_DSS, 1, NotSerialized)
- {
- If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
- {
- Store (NSTE, CSTE)
- }
- }
- Method (_BCL, 0, Serialized)
- {
- Return (Package (0x0A)
- {
- 0x06,
- 0x03,
- One,
- 0x02,
- 0x03,
- 0x04,
- 0x05,
- 0x06,
- 0x07,
- 0x08
- })
- }
- Method (_BCM, 1, Serialized)
- {
- Store (Arg0, Local0)
- Decrement (Local0)
- Acquire (MUTS, 0xFFFF)
- FLNK (0x12, Local0)
- Release (MUTS)
- }
- Method (_BQC, 0, Serialized)
- {
- Acquire (MUTS, 0xFFFF)
- Store (FLNK (0x12, 0xFF), Local1)
- Release (MUTS)
- Increment (Local1)
- Return (Local1)
- }
- }
- Device (DTV2)
- {
- Method (_ADR, 0, NotSerialized)
- {
- Return (And (0xFFFF, DID4))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (And (CSTE, 0x08))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (And (NSTE, 0x08))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (_DSS, 1, NotSerialized)
- {
- If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
- {
- Store (NSTE, CSTE)
- }
- }
- }
- Device (DFP2)
- {
- Method (_ADR, 0, NotSerialized)
- {
- Return (And (0xFFFF, DID5))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (And (CSTE, 0x10))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (And (NSTE, 0x10))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (_DSS, 1, NotSerialized)
- {
- If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
- {
- Store (NSTE, CSTE)
- }
- }
- }
- }
- Device (IDEC)
- {
- 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)
- {
- /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- /* 0010 */ 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)
- {
- /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03,
- /* 0008 */ 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)
- {
- /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03,
- /* 0008 */ 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 (PRID)
- {
- Name (_ADR, Zero)
- Method (_GTM, 0, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- Name (PBUF, Buffer (0x14)
- {
- /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- /* 0010 */ 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)
- Return (PBUF)
- }
- }
- Method (_STM, 3, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- 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, 0x0E, SYNC)
- Store (Zero, SDT0)
- And (ICR0, 0x0E, ICR0)
- And (ICR1, 0x0E, ICR1)
- And (ICR3, 0x0E, ICR3)
- And (ICR5, 0x0E, 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)
- }
- Or (ICR1, One, ICR1)
- }
- }
- If (LEqual (SizeOf (Arg2), 0x0200))
- {
- And (PRIT, 0x3F0F, PRIT)
- Store (Zero, PSIT)
- And (SYNC, 0x0D, SYNC)
- Store (Zero, SDT1)
- And (ICR0, 0x0D, ICR0)
- And (ICR1, 0x0D, ICR1)
- And (ICR3, 0x0D, ICR3)
- And (ICR5, 0x0D, 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)
- }
- Or (ICR1, 0x02, ICR1)
- }
- }
- }
- }
- Device (P_D0)
- {
- Name (_ADR, Zero)
- Method (_GTF, 0, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- Name (PIB0, Buffer (0x0E)
- {
- /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03,
- /* 0008 */ 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)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- Name (PIB1, Buffer (0x0E)
- {
- /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03,
- /* 0008 */ 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 (SECD)
- {
- Name (_ADR, One)
- Method (_GTM, 0, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- Name (SBUF, Buffer (0x14)
- {
- /* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- /* 0010 */ 0x00, 0x00, 0x00, 0x00
- })
- CreateDWordField (SBUF, Zero, PIO0)
- CreateDWordField (SBUF, 0x04, DMA0)
- CreateDWordField (SBUF, 0x08, PIO1)
- CreateDWordField (SBUF, 0x0C, DMA1)
- CreateDWordField (SBUF, 0x10, FLAG)
- Store (GETP (SECT), PIO0)
- Store (GDMA (And (SYNC, 0x04), And (ICR3, 0x04),
- And (ICR0, 0x04), SDT2, And (ICR1, 0x04)), DMA0)
- If (LEqual (DMA0, Ones))
- {
- Store (PIO0, DMA0)
- }
- If (And (SECT, 0x4000))
- {
- If (LEqual (And (SECT, 0x90), 0x80))
- {
- Store (0x0384, PIO1)
- }
- Else
- {
- Store (GETT (SSIT), PIO1)
- }
- }
- Else
- {
- Store (Ones, PIO1)
- }
- Store (GDMA (And (SYNC, 0x08), And (ICR3, 0x08),
- And (ICR0, 0x08), SDT3, And (ICR1, 0x08)), DMA1)
- If (LEqual (DMA1, Ones))
- {
- Store (PIO1, DMA1)
- }
- Store (GETF (And (SYNC, 0x04), And (SYNC, 0x08),
- SECT), FLAG)
- If (And (LEqual (PIO0, Ones), LEqual (DMA0, Ones)))
- {
- Store (0x78, PIO0)
- Store (0x14, DMA0)
- Store (0x03, FLAG)
- }
- Return (SBUF)
- }
- }
- Method (_STM, 3, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- 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 (SECT, 0x40F0, SECT)
- And (SYNC, 0x0B, SYNC)
- Store (Zero, SDT2)
- And (ICR0, 0x0B, ICR0)
- And (ICR1, 0x0B, ICR1)
- And (ICR3, 0x0B, ICR3)
- And (ICR5, 0x0B, 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 (SECT, 0x8004, SECT)
- If (LAnd (And (FLAG, 0x02), And (W490, 0x0800)))
- {
- Or (SECT, 0x02, SECT)
- }
- Or (SECT, SETP (PIO0, W530, W640), SECT)
- If (And (FLAG, One))
- {
- Or (SYNC, 0x04, SYNC)
- Store (SDMA (DMA0), SDT2)
- If (LLess (DMA0, 0x1E))
- {
- Or (ICR3, 0x04, ICR3)
- }
- If (LLess (DMA0, 0x3C))
- {
- Or (ICR0, 0x04, ICR0)
- }
- If (And (W930, 0x2000))
- {
- Or (ICR1, 0x04, ICR1)
- }
- }
- }
- If (LEqual (SizeOf (Arg2), 0x0200))
- {
- And (SECT, 0x3F0F, SECT)
- Store (Zero, SSIT)
- And (SYNC, 0x07, SYNC)
- Store (Zero, SDT3)
- And (ICR0, 0x07, ICR0)
- And (ICR1, 0x07, ICR1)
- And (ICR3, 0x07, ICR3)
- And (ICR5, 0x07, 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 (SECT, 0x8040, SECT)
- If (LAnd (And (FLAG, 0x08), And (W491, 0x0800)))
- {
- Or (SECT, 0x20, SECT)
- }
- If (And (FLAG, 0x10))
- {
- Or (SECT, 0x4000, SECT)
- If (LGreater (PIO1, 0xF0))
- {
- Or (SECT, 0x80, SECT)
- }
- Else
- {
- Or (SECT, 0x10, SECT)
- Store (SETT (PIO1, W531, W641), SSIT)
- }
- }
- If (And (FLAG, 0x04))
- {
- Or (SYNC, 0x08, SYNC)
- Store (SDMA (DMA1), SDT3)
- If (LLess (DMA1, 0x1E))
- {
- Or (ICR3, 0x08, ICR3)
- }
- If (LLess (DMA1, 0x3C))
- {
- Or (ICR0, 0x08, ICR0)
- }
- If (And (W931, 0x2000))
- {
- Or (ICR1, 0x08, ICR1)
- }
- }
- }
- }
- }
- Device (S_D0)
- {
- Name (_ADR, Zero)
- Method (_GTF, 0, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- Name (SIB0, Buffer (0x0E)
- {
- /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF, 0x03,
- /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF
- })
- CreateByteField (SIB0, One, PMD0)
- CreateByteField (SIB0, 0x08, DMD0)
- If (And (SECT, 0x02))
- {
- If (LEqual (And (SECT, 0x09), 0x08))
- {
- Store (0x08, PMD0)
- }
- Else
- {
- Store (0x0A, PMD0)
- ShiftRight (And (SECT, 0x0300), 0x08, Local0)
- ShiftRight (And (SECT, 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, 0x04))
- {
- Store (Or (SDT2, 0x40), DMD0)
- If (And (ICR1, 0x04))
- {
- If (And (ICR0, 0x04))
- {
- Add (DMD0, 0x02, DMD0)
- }
- If (And (ICR3, 0x04))
- {
- Store (0x45, DMD0)
- }
- }
- }
- Else
- {
- Or (Subtract (And (PMD0, 0x07), 0x02), 0x20, DMD0)
- }
- Return (SIB0)
- }
- }
- }
- Device (S_D1)
- {
- Name (_ADR, One)
- Method (_GTF, 0, NotSerialized)
- {
- If (LNotEqual (SCFG, 0x04))
- {
- Name (SIB1, Buffer (0x0E)
- {
- /* 0000 */ 0x03, 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF, 0x03,
- /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0xB0, 0xEF
- })
- CreateByteField (SIB1, One, PMD1)
- CreateByteField (SIB1, 0x08, DMD1)
- If (And (SECT, 0x20))
- {
- If (LEqual (And (SECT, 0x90), 0x80))
- {
- Store (0x08, PMD1)
- }
- Else
- {
- Add (And (SSIT, 0x03), ShiftRight (And (SSIT, 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, 0x08))
- {
- Store (Or (SDT3, 0x40), DMD1)
- If (And (ICR1, 0x08))
- {
- If (And (ICR0, 0x08))
- {
- Add (DMD1, 0x02, DMD1)
- }
- If (And (ICR3, 0x08))
- {
- Store (0x45, DMD1)
- }
- }
- }
- Else
- {
- Or (Subtract (And (PMD1, 0x07), 0x02), 0x20, DMD1)
- }
- Return (SIB1)
- }
- }
- }
- }
- Device (PRT0)
- {
- Name (_ADR, 0xFFFF)
- Method (_SDD, 1, NotSerialized)
- {
- If (LEqual (SCFG, 0x04))
- {
- Name (GBU0, Buffer (0x07)
- {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00
- })
- CreateByteField (GBU0, Zero, GB00)
- CreateByteField (GBU0, One, GB01)
- CreateByteField (GBU0, 0x02, GB02)
- CreateByteField (GBU0, 0x03, GB03)
- CreateByteField (GBU0, 0x04, GB04)
- CreateByteField (GBU0, 0x05, GB05)
- CreateByteField (GBU0, 0x06, GB06)
- If (LEqual (SizeOf (Arg0), 0x0200))
- {
- CreateWordField (Arg0, 0x9C, W780)
- CreateWordField (Arg0, 0x9E, W790)
- If (LAnd (W780, 0x04))
- {
- If (LEqual (And (W790, 0x04), Zero))
- {
- Store (0x10, GB00)
- Store (0x03, GB01)
- Store (0xEF, GB06)
- }
- }
- }
- Store (GBU0, GTF0)
- }
- }
- Method (_GTF, 0, NotSerialized)
- {
- If (LAnd (LEqual (SCFG, 0x04), LEqual (AIBT, Zero)))
- {
- Return (GTF0)
- }
- }
- }
- Device (PRT2)
- {
- Name (_ADR, 0x0002FFFF)
- Method (_SDD, 1, NotSerialized)
- {
- If (LEqual (SCFG, 0x04))
- {
- Name (GBU2, Buffer (0x07)
- {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0x00
- })
- CreateByteField (GBU2, Zero, GB20)
- CreateByteField (GBU2, One, GB21)
- CreateByteField (GBU2, 0x02, GB22)
- CreateByteField (GBU2, 0x03, GB23)
- CreateByteField (GBU2, 0x04, GB24)
- CreateByteField (GBU2, 0x05, GB25)
- CreateByteField (GBU2, 0x06, GB26)
- If (LEqual (SizeOf (Arg0), 0x0200))
- {
- CreateWordField (Arg0, 0x9C, W782)
- CreateWordField (Arg0, 0x9E, W792)
- If (LAnd (W782, 0x04))
- {
- If (LEqual (And (W792, 0x04), Zero))
- {
- Store (0x10, GB20)
- Store (0x03, GB21)
- Store (0xEF, GB26)
- }
- }
- }
- Store (GBU2, GTF2)
- }
- }
- Method (_GTF, 0, NotSerialized)
- {
- If (LAnd (LEqual (SCFG, 0x04), LEqual (AIBT, Zero)))
- {
- Return (GTF2)
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement