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.dat, Wed Sep 3 13:45:58 2014
- *
- *
- * Original Table Header:
- * Signature "DSDT"
- * Length 0x0000638E (25486)
- * Revision 0x01 **** ACPI 1.0, no 64-bit math support
- * Checksum 0xF7
- * OEM ID "LENOVO"
- * OEM Table ID "CB-01"
- * OEM Revision 0x06040000 (100925440)
- * Compiler ID "INTL"
- * Compiler Version 0x20100528 (537920808)
- */
- DefinitionBlock ("dsdt.aml", "DSDT", 1, "LENOVO", "CB-01", 0x06040000)
- {
- External (PDC1)
- External (PDC0)
- External (LNKE)
- External (LNKF)
- External (LNKB)
- External (LNKG)
- External (LNKA)
- External (LNKC)
- External (LNKH)
- External (LNKD)
- Name (FMBL, One)
- Name (FDTP, 0x02)
- OperationRegion (PRT0, SystemIO, 0x80, 0x04)
- Field (PRT0, DWordAcc, Lock, Preserve)
- {
- P80H, 32
- }
- OperationRegion (IO_T, SystemIO, 0x0800, 0x10)
- Field (IO_T, ByteAcc, NoLock, Preserve)
- {
- Offset (0x08),
- TRP0, 8
- }
- OperationRegion (GNVS, SystemMemory, 0x7F5E0C7C, 0x0200)
- 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,
- LINX, 8,
- Offset (0x14),
- ACTT, 8,
- PSVT, 8,
- TC1V, 8,
- TC2V, 8,
- TSPV, 8,
- CRTT, 8,
- DTSE, 8,
- DTS1, 8,
- DTS2, 8,
- Offset (0x1E),
- BNUM, 8,
- B0SC, 8,
- B1SC, 8,
- B2SC, 8,
- B0SS, 8,
- B1SS, 8,
- B2SS, 8,
- Offset (0x28),
- APIC, 8,
- MPEN, 8,
- Offset (0x2B),
- PPCM, 8,
- PCP0, 8,
- PCP1, 8,
- Offset (0x32),
- NATP, 8,
- CMAP, 8,
- CMBP, 8,
- LPTP, 8,
- FDCP, 8,
- CMCP, 8,
- CIRP, 8,
- WPCE, 8,
- Offset (0x3C),
- IGDS, 8,
- TLST, 8,
- CADL, 8,
- PADL, 8,
- CSTE, 16,
- NSTE, 16,
- SSTE, 16,
- NDID, 8,
- DID1, 32,
- DID2, 32,
- DID3, 32,
- DID4, 32,
- DID5, 32,
- Offset (0x67),
- BLCS, 8,
- BRTL, 8,
- ALSE, 8,
- ALAF, 8,
- LLOW, 8,
- LHIH, 8,
- Offset (0x6E),
- EMAE, 8,
- EMAP, 16,
- EMAL, 16,
- Offset (0x74),
- MEFE, 8,
- Offset (0x78),
- TPMP, 8,
- TPME, 8,
- Offset (0x82),
- GTF0, 56,
- GTF2, 56,
- IDEM, 8,
- Offset (0xA0),
- F0DA, 8,
- F0DB, 8,
- F0DC, 8,
- F0DD, 8,
- F0DE, 8,
- F0DF, 8,
- F0E0, 8,
- F0E1, 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,
- PAVP, 8,
- Offset (0xE1),
- OSCC, 8,
- NEXP, 8,
- Offset (0xEB),
- DSEN, 8,
- ECON, 8,
- GPIC, 8,
- CTYP, 8,
- L01C, 8,
- VFN0, 8,
- VFN1, 8,
- Offset (0xF8),
- DB00, 8,
- DB01, 8,
- DB02, 8,
- DB03, 8,
- DB04, 8,
- DB05, 8,
- DB06, 8,
- DB07, 8,
- NVGA, 32,
- NVHA, 32,
- AMDA, 32,
- DID6, 32,
- DID7, 32,
- DID8, 32,
- Offset (0x15B),
- ACST, 8,
- BTST, 8,
- PFLV, 8
- }
- 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
- }
- OperationRegion (GPIO, SystemIO, 0x1180, 0x80)
- Field (GPIO, ByteAcc, NoLock, Preserve)
- {
- Offset (0x0C),
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- Offset (0x0D),
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- Offset (0x0E),
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- GO22, 1,
- Offset (0x0F),
- GO24, 1,
- , 1,
- GO26, 1,
- , 1,
- , 1,
- , 1,
- , 1,
- Offset (0x10),
- Offset (0x38),
- , 1,
- , 1,
- , 1,
- , 1,
- GO36, 1,
- , 1,
- , 1,
- Offset (0x39),
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- Offset (0x3A),
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- Offset (0x3B),
- , 1,
- , 1,
- , 1,
- , 1,
- , 1
- }
- Scope (_GPE)
- {
- Method (_L02, 0, NotSerialized)
- {
- Notify (\_TZ.TZ01, 0x80)
- Store (Zero, \_SB.PCI0.LPCB.GPEC)
- }
- Method (_L03, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB1, 0x02)
- }
- Method (_L04, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB2, 0x02)
- }
- Method (_L06, 0, NotSerialized)
- {
- If (\_SB.PCI0.GFX0.GSSE)
- {
- \_SB.PCI0.GFX0.GSCI ()
- }
- Else
- {
- Store (One, \_SB.PCI0.LPCB.SCIS)
- }
- }
- Method (_L09, 0, NotSerialized)
- {
- If (\_SB.PCI0.EXP1.PSP1)
- {
- Store (One, \_SB.PCI0.EXP1.PSP1)
- Store (One, \_SB.PCI0.EXP1.PMCS)
- Notify (\_SB.PCI0.EXP1, 0x02)
- }
- If (\_SB.PCI0.EXP2.PSP2)
- {
- Store (One, \_SB.PCI0.EXP2.PSP2)
- Store (One, \_SB.PCI0.EXP2.PMCS)
- Notify (\_SB.PCI0.EXP2, 0x02)
- }
- If (\_SB.PCI0.EXP3.PSP3)
- {
- Store (One, \_SB.PCI0.EXP3.PSP3)
- Store (One, \_SB.PCI0.EXP3.PMCS)
- Notify (\_SB.PCI0.EXP3, 0x02)
- }
- If (\_SB.PCI0.EXP4.PSP4)
- {
- Store (One, \_SB.PCI0.EXP4.PSP4)
- Store (One, \_SB.PCI0.EXP4.PMCS)
- Notify (\_SB.PCI0.EXP4, 0x02)
- }
- }
- Method (_L0B, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.PCIB, 0x02)
- }
- Method (_L0C, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB3, 0x02)
- }
- Method (_L0D, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.EUSB, 0x02)
- }
- Method (_L0E, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB4, 0x02)
- }
- }
- Scope (_PR)
- {
- Processor (CPU0, 0x00, 0x00001010, 0x06) {}
- Processor (CPU1, 0x01, 0x00001010, 0x06) {}
- }
- Scope (_SB)
- {
- OperationRegion (TCG1, SystemMemory, 0x7F5E0C75, 0x07)
- Field (TCG1, AnyAcc, NoLock, Preserve)
- {
- PPRQ, 8,
- PPLO, 8,
- PPRP, 8,
- PPOR, 8,
- TPRS, 8,
- TPMV, 8,
- MOR, 8
- }
- OperationRegion (SMI0, SystemIO, 0xFE00, 0x02)
- Field (SMI0, AnyAcc, NoLock, Preserve)
- {
- SMIC, 8
- }
- OperationRegion (SMI1, SystemMemory, 0x7F5E2EBD, 0x90)
- Field (SMI1, AnyAcc, NoLock, Preserve)
- {
- BCMD, 8,
- DID, 32,
- INFO, 1024
- }
- Field (SMI1, AnyAcc, NoLock, Preserve)
- {
- AccessAs (ByteAcc, 0x00),
- Offset (0x05),
- INF, 8
- }
- Name (PR00, Package (0x0B)
- {
- Package (0x04)
- {
- 0x001FFFFF,
- One,
- LNKD,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- Zero,
- LNKH,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- One,
- LNKD,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x02,
- LNKC,
- Zero
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x03,
- LNKA,
- Zero
- },
- Package (0x04)
- {
- 0x001BFFFF,
- Zero,
- LNKG,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- Zero,
- LNKA,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- One,
- LNKB,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x02,
- LNKC,
- Zero
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x03,
- LNKD,
- Zero
- },
- Package (0x04)
- {
- 0x0002FFFF,
- Zero,
- LNKA,
- Zero
- }
- })
- Name (AR00, Package (0x0B)
- {
- Package (0x04)
- {
- 0x001FFFFF,
- One,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0x001DFFFF,
- Zero,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0x001DFFFF,
- One,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x02,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0x001DFFFF,
- 0x03,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0x001BFFFF,
- Zero,
- Zero,
- 0x16
- },
- Package (0x04)
- {
- 0x001CFFFF,
- Zero,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0x001CFFFF,
- One,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x02,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0x001CFFFF,
- 0x03,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0x0002FFFF,
- Zero,
- Zero,
- 0x10
- }
- })
- Name (PR04, Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- LNKA,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- LNKB,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- LNKC,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- LNKD,
- Zero
- }
- })
- Name (AR04, 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
- }
- })
- Name (PR05, Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- LNKB,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- LNKC,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- LNKD,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- LNKA,
- Zero
- }
- })
- Name (AR05, 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
- }
- })
- Name (PR06, Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- LNKC,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- LNKD,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- LNKA,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- LNKB,
- Zero
- }
- })
- Name (AR06, Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- Zero,
- 0x12
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- Zero,
- 0x11
- }
- })
- Name (PR07, Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- LNKD,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- LNKA,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- LNKB,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- LNKC,
- Zero
- }
- })
- Name (AR07, Package (0x04)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- Zero,
- 0x13
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- Zero,
- 0x10
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- Zero,
- 0x11
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- Zero,
- 0x12
- }
- })
- Name (PR01, Package (0x05)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- LNKF,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- LNKG,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- LNKH,
- Zero
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- LNKE,
- Zero
- },
- Package (0x04)
- {
- 0x0008FFFF,
- Zero,
- LNKE,
- Zero
- }
- })
- Name (AR01, Package (0x05)
- {
- Package (0x04)
- {
- 0xFFFF,
- Zero,
- Zero,
- 0x15
- },
- Package (0x04)
- {
- 0xFFFF,
- One,
- Zero,
- 0x16
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x02,
- Zero,
- 0x17
- },
- Package (0x04)
- {
- 0xFFFF,
- 0x03,
- Zero,
- 0x14
- },
- Package (0x04)
- {
- 0x0008FFFF,
- Zero,
- Zero,
- 0x14
- }
- })
- Device (PCI0)
- {
- OperationRegion (MPCE, PCI_Config, 0x48, 0x04)
- Field (MPCE, DWordAcc, NoLock, Preserve)
- {
- PEXE, 1,
- LENG, 2,
- , 25,
- EXBA, 4
- }
- Method (_INI, 0, NotSerialized)
- {
- If (DTSE)
- {
- TRAP (0x47)
- }
- Store (Zero, PEXE)
- OSHT ()
- If (CondRefOf (_OSI, Local0))
- {
- Store (0x07D1, OSYS)
- }
- Else
- {
- If (LEqual (SizeOf (_OS), 0x14))
- {
- Store (0x07D0, OSYS)
- }
- Else
- {
- If (LEqual (SizeOf (_OS), 0x27))
- {
- Store (0x07CF, OSYS)
- }
- Else
- {
- Store (0x07CE, OSYS)
- }
- }
- }
- P8XH (Zero, 0x0806)
- }
- Name (_HID, EisaId ("PNP0A08"))
- Name (_CID, EisaId ("PNP0A03"))
- Name (_ADR, Zero)
- 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 (Arg2)
- {
- And (CAPB, 0xFFFFFFFC, CAPB)
- Or (CAPB, Zero, CAPB)
- }
- Else
- {
- }
- Increment (Local1)
- Decrement (Local0)
- }
- Return (BUF1)
- }
- OperationRegion (REGS, PCI_Config, 0x40, 0xC0)
- Field (REGS, ByteAcc, NoLock, Preserve)
- {
- Offset (0x50),
- PAM0, 8,
- PAM1, 8,
- PAM2, 8,
- PAM3, 8,
- PAM4, 8,
- PAM5, 8,
- PAM6, 8,
- , 7,
- HEN, 1,
- Offset (0x60),
- TASM, 10,
- Offset (0x62),
- Offset (0x70),
- Z000, 16
- }
- Name (RSRC, ResourceTemplate ()
- {
- WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
- 0x0000, // Granularity
- 0x0000, // Range Minimum
- 0x003F, // Range Maximum
- 0x0000, // Translation Offset
- 0x0040, // Length
- 0x00,, )
- IO (Decode16,
- 0x0CF8, // Range Minimum
- 0x0CF8, // Range Maximum
- 0x01, // Alignment
- 0x08, // Length
- )
- DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
- 0x00000000, // Granularity
- 0x00000000, // Range Minimum
- 0x00000CF7, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00000CF8, // 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,, _Y01, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000C4000, // Range Minimum
- 0x000C7FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y02, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000C8000, // Range Minimum
- 0x000CBFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y03, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000CC000, // Range Minimum
- 0x000CFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y04, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000D0000, // Range Minimum
- 0x000D3FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y05, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000D4000, // Range Minimum
- 0x000D7FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y06, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000D8000, // Range Minimum
- 0x000DBFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y07, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000DC000, // Range Minimum
- 0x000DFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y08, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000E0000, // Range Minimum
- 0x000E3FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y09, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000E4000, // Range Minimum
- 0x000E7FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y0A, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000E8000, // Range Minimum
- 0x000EBFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y0B, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000EC000, // Range Minimum
- 0x000EFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00004000, // Length
- 0x00,, _Y0C, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x000F0000, // Range Minimum
- 0x000FFFFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00010000, // Length
- 0x00,, _Y0D, AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x00000000, // Range Minimum
- 0x00000000, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00000001, // Length
- 0x00,, _Y00, AddressRangeMemory, TypeStatic)
- DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
- 0x00000000, // Granularity
- 0x00000D00, // Range Minimum
- 0x0000FDFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x0000F100, // Length
- 0x00,, , TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0x00000000, // Range Minimum
- 0x00000000, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00000001, // Length
- 0x00,, , AddressRangeMemory, TypeStatic)
- DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
- 0x00000000, // Granularity
- 0xFED40000, // Range Minimum
- 0xFED44FFF, // Range Maximum
- 0x00000000, // Translation Offset
- 0x00005000, // Length
- ,, _Y0E, AddressRangeMemory, TypeStatic)
- })
- Method (_CRS, 0, Serialized)
- {
- Store (Zero, Local1)
- CreateDWordField (RSRC, \_SB.PCI0._Y00._MIN, BTMN)
- CreateDWordField (RSRC, \_SB.PCI0._Y00._MAX, BTMX)
- CreateDWordField (RSRC, \_SB.PCI0._Y00._LEN, BTLN)
- ShiftLeft (And (Z000, 0xFFF0), 0x10, BTMN)
- Subtract (0xF8000000, BTMN, BTLN)
- Subtract (Add (BTMN, BTLN), One, BTMX)
- CreateBitField (RSRC, \_SB.PCI0._Y01._RW, C0RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y01._LEN, C0LN)
- Store (One, C0RW)
- If (LEqual (And (PAM1, 0x03), One))
- {
- Store (Zero, C0RW)
- }
- Store (Zero, C0LN)
- If (LNot (And (PAM1, 0x03)))
- {
- Store (0x4000, C0LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y02._RW, C4RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y02._LEN, C4LN)
- Store (One, C4RW)
- If (LEqual (And (PAM1, 0x30), 0x10))
- {
- Store (Zero, C4RW)
- }
- Store (Zero, C4LN)
- If (LNot (And (PAM1, 0x30)))
- {
- Store (0x4000, C4LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y03._RW, C8RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y03._LEN, C8LN)
- Store (One, C8RW)
- If (LEqual (And (PAM2, 0x03), One))
- {
- Store (Zero, C8RW)
- }
- Store (Zero, C8LN)
- If (LNot (And (PAM2, 0x03)))
- {
- Store (0x4000, C8LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y04._RW, CCRW)
- CreateDWordField (RSRC, \_SB.PCI0._Y04._LEN, CCLN)
- Store (One, CCRW)
- If (LEqual (And (PAM2, 0x30), 0x10))
- {
- Store (Zero, CCRW)
- }
- Store (Zero, CCLN)
- If (LNot (And (PAM2, 0x30)))
- {
- Store (0x4000, CCLN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y05._RW, D0RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y05._LEN, D0LN)
- Store (One, D0RW)
- If (LEqual (And (PAM3, 0x03), One))
- {
- Store (Zero, D0RW)
- }
- Store (Zero, D0LN)
- If (LNot (And (PAM3, 0x03)))
- {
- Store (0x4000, D0LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y06._RW, D4RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y06._LEN, D4LN)
- Store (One, D4RW)
- If (LEqual (And (PAM3, 0x30), 0x10))
- {
- Store (Zero, D4RW)
- }
- Store (Zero, D4LN)
- If (LNot (And (PAM3, 0x30)))
- {
- Store (0x4000, D4LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y07._RW, D8RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y07._LEN, D8LN)
- Store (One, D8RW)
- If (LEqual (And (PAM4, 0x03), One))
- {
- Store (Zero, D8RW)
- }
- Store (Zero, D8LN)
- If (LNot (And (PAM4, 0x03)))
- {
- Store (0x4000, D8LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y08._RW, DCRW)
- CreateDWordField (RSRC, \_SB.PCI0._Y08._LEN, DCLN)
- Store (One, DCRW)
- If (LEqual (And (PAM4, 0x30), 0x10))
- {
- Store (Zero, DCRW)
- }
- Store (Zero, DCLN)
- If (LNot (And (PAM4, 0x30)))
- {
- Store (0x4000, DCLN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y09._RW, E0RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y09._LEN, E0LN)
- Store (One, E0RW)
- If (LEqual (And (PAM5, 0x03), One))
- {
- Store (Zero, E0RW)
- }
- Store (Zero, E0LN)
- If (LNot (And (PAM5, 0x03)))
- {
- Store (0x4000, E0LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y0A._RW, E4RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y0A._LEN, E4LN)
- Store (One, E4RW)
- If (LEqual (And (PAM5, 0x30), 0x10))
- {
- Store (Zero, E4RW)
- }
- Store (Zero, E4LN)
- If (LNot (And (PAM5, 0x30)))
- {
- Store (0x4000, E4LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y0B._RW, E8RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y0B._LEN, E8LN)
- Store (One, E8RW)
- If (LEqual (And (PAM6, 0x03), One))
- {
- Store (Zero, E8RW)
- }
- Store (Zero, E8LN)
- If (LNot (And (PAM6, 0x03)))
- {
- Store (0x4000, E8LN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y0C._RW, ECRW)
- CreateDWordField (RSRC, \_SB.PCI0._Y0C._LEN, ECLN)
- Store (One, ECRW)
- If (LEqual (And (PAM6, 0x30), 0x10))
- {
- Store (Zero, ECRW)
- }
- Store (Zero, ECLN)
- If (LNot (And (PAM6, 0x30)))
- {
- Store (0x4000, ECLN)
- }
- CreateBitField (RSRC, \_SB.PCI0._Y0D._RW, F0RW)
- CreateDWordField (RSRC, \_SB.PCI0._Y0D._LEN, F0LN)
- Store (One, F0RW)
- If (LEqual (And (PAM0, 0x30), 0x10))
- {
- Store (Zero, F0RW)
- }
- Store (Zero, F0LN)
- If (LNot (And (PAM0, 0x30)))
- {
- Store (0x00010000, F0LN)
- }
- If (TPMP)
- {
- CreateDWordField (RSRC, \_SB.PCI0._Y0E._LEN, TPML)
- Store (0x5000, TPML)
- }
- Return (RSRC)
- }
- Method (_S3D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Method (_S4D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Method (_PRT, 0, NotSerialized)
- {
- If (PICF)
- {
- Return (AR00)
- }
- Return (PR00)
- }
- Device (GFX0)
- {
- Name (_ADR, 0x00020000)
- OperationRegion (PWM, PCI_Config, 0xF4, One)
- Field (PWM, ByteAcc, Lock, Preserve)
- {
- LBB, 8
- }
- Method (_DOS, 1, NotSerialized)
- {
- Store (And (Arg0, 0x07), DSEN)
- }
- Method (_DOD, 0, NotSerialized)
- {
- If (QSEN)
- {
- Return (Package (0x02)
- {
- 0x80000410,
- 0x80000100
- })
- }
- If (LEqual (NDID, One))
- {
- Name (TMP1, Package (One)
- {
- 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)
- }
- If (LGreater (NDID, 0x04))
- {
- 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)
- }
- Return (Package (One)
- {
- 0x0400
- })
- }
- Device (DD01)
- {
- Method (_ADR, 0, Serialized)
- {
- If (QSEN)
- {
- Return (0x0100)
- }
- Return (And (0xFFFF, DID1))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (QSEN)
- {
- Return (0x1F)
- }
- Return (GDCS (DID1, 0x0100))
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (QSEN)
- {
- Return (One)
- }
- Return (GDNS (DID1))
- }
- Method (_DSS, 1, NotSerialized)
- {
- }
- }
- Device (DD02)
- {
- Method (_ADR, 0, Serialized)
- {
- Return (And (0xFFFF, DID2))
- }
- Method (_DCS, 0, NotSerialized)
- {
- Return (GDCS (DID2, 0x0200))
- }
- Method (_DGS, 0, NotSerialized)
- {
- Return (GDNS (DID2))
- }
- Method (_DSS, 1, NotSerialized)
- {
- }
- }
- Device (DD03)
- {
- Method (_ADR, 0, Serialized)
- {
- Return (And (0xFFFF, DID3))
- }
- Method (_DCS, 0, NotSerialized)
- {
- Return (GDCS (DID3, 0x0400))
- }
- Method (_DGS, 0, NotSerialized)
- {
- Return (GDNS (DID3))
- }
- Method (_DSS, 1, NotSerialized)
- {
- }
- }
- Device (DD04)
- {
- Method (_ADR, 0, Serialized)
- {
- If (QSEN)
- {
- Return (0x0410)
- }
- Return (And (0xFFFF, DID4))
- }
- Method (_DCS, 0, NotSerialized)
- {
- If (QSEN)
- {
- Return (0x1F)
- }
- Return (GDCS (DID4, 0x0800))
- }
- Method (_DGS, 0, NotSerialized)
- {
- If (QSEN)
- {
- Return (One)
- }
- Return (GDNS (DID4))
- }
- Method (_DSS, 1, NotSerialized)
- {
- }
- Method (_BCL, 0, NotSerialized)
- {
- Return (IBCL)
- }
- Method (_BCM, 1, NotSerialized)
- {
- IBCM (Arg0)
- }
- Method (_BQC, 0, NotSerialized)
- {
- If (QSEN)
- {
- Return (EBRL)
- }
- Return (BRTL)
- }
- }
- Device (DD05)
- {
- Method (_ADR, 0, Serialized)
- {
- Return (And (0xFFFF, DID5))
- }
- Method (_DCS, 0, NotSerialized)
- {
- Return (GDCS (DID5, 0x8000))
- }
- Method (_DGS, 0, NotSerialized)
- {
- Return (GDNS (DID5))
- }
- Method (_DSS, 1, NotSerialized)
- {
- }
- }
- Method (BRTN, 1, Serialized)
- {
- If (LEqual (And (DID1, 0x0F00), 0x0400))
- {
- Notify (DD01, Arg0)
- }
- If (LEqual (And (DID2, 0x0F00), 0x0400))
- {
- Notify (DD02, Arg0)
- }
- If (LEqual (And (DID3, 0x0F00), 0x0400))
- {
- Notify (DD03, Arg0)
- }
- If (LEqual (And (DID4, 0x0F00), 0x0400))
- {
- Notify (DD04, Arg0)
- }
- If (LEqual (And (DID5, 0x0F00), 0x0400))
- {
- Notify (DD05, Arg0)
- }
- }
- OperationRegion (IGDP, PCI_Config, Zero, 0x0100)
- Field (IGDP, AnyAcc, NoLock, Preserve)
- {
- Offset (0x02),
- , 4,
- MOBL, 3,
- Offset (0x04),
- Offset (0x52),
- , 1,
- GIVD, 1,
- , 2,
- GUMA, 3,
- Offset (0x54),
- , 4,
- GMFN, 1,
- Offset (0x58),
- Offset (0xE4),
- ASLE, 8,
- Offset (0xE8),
- GSSE, 1,
- GSSB, 14,
- GSES, 1,
- Offset (0xF0),
- , 12,
- CDVL, 1,
- Offset (0xF2),
- Offset (0xF5),
- LBPC, 8,
- Offset (0xFC),
- 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, 256,
- CPDL, 256,
- CAD1, 32,
- CAD2, 32,
- CAD3, 32,
- CAD4, 32,
- CAD5, 32,
- CAD6, 32,
- CAD7, 32,
- CAD8, 32,
- NAD1, 32,
- NAD2, 32,
- NAD3, 32,
- NAD4, 32,
- NAD5, 32,
- NAD6, 32,
- NAD7, 32,
- NAD8, 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,
- Offset (0x204),
- 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)
- {
- Zero,
- 0x07,
- 0x38,
- 0x01C0,
- 0x0E00,
- 0x3F,
- 0x01C7,
- 0x0E07,
- 0x01F8,
- 0x0E38,
- 0x0FC0,
- Zero,
- Zero,
- Zero,
- Zero,
- Zero,
- 0x7000,
- 0x7007,
- 0x7038,
- 0x71C0,
- 0x7E00
- })
- Name (CDCT, Package (0x05)
- {
- Package (0x02)
- {
- 0xE4,
- 0x0140
- },
- Package (0x02)
- {
- 0xDE,
- 0x014D
- },
- Package (0x02)
- {
- 0xDE,
- 0x014D
- },
- Package (0x02)
- {
- Zero,
- Zero
- },
- Package (0x02)
- {
- 0xDE,
- 0x014D
- }
- })
- Name (SUCC, One)
- Name (CRIT, 0x04)
- Method (GSCI, 0, Serialized)
- {
- Method (GBDA, 0, Serialized)
- {
- If (LEqual (GESF, Zero))
- {
- Store (0x0279, PARM)
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, One))
- {
- Store (0x0240, PARM)
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x04))
- {
- And (PARM, 0xEFFF0000, PARM)
- And (PARM, ShiftLeft (DerefOf (Index (DBTB, IBTT)), 0x10),
- PARM)
- Or (IBTT, PARM, PARM)
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x05))
- {
- Store (IPSC, PARM)
- Or (PARM, ShiftLeft (IPAT, 0x08), PARM)
- Add (PARM, 0x0100, PARM)
- Or (PARM, ShiftLeft (LIDS, 0x10), PARM)
- Add (PARM, 0x00010000, PARM)
- Or (PARM, ShiftLeft (IBLC, 0x12), PARM)
- Or (PARM, ShiftLeft (IBIA, 0x14), PARM)
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x06))
- {
- Store (ITVF, PARM)
- Or (PARM, ShiftLeft (ITVM, 0x04), PARM)
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x07))
- {
- Store (GIVD, PARM)
- XOr (PARM, One, PARM)
- Or (PARM, ShiftLeft (GMFN, One), PARM)
- Or (PARM, 0x1000, PARM)
- If (LEqual (IDMM, Zero))
- {
- Or (PARM, ShiftLeft (IDMS, 0x0D), PARM)
- }
- If (LOr (LEqual (IDMM, One), LEqual (IDMM, 0x03)))
- {
- Or (PARM, ShiftLeft (IDMS, 0x11), PARM)
- }
- Or (ShiftLeft (DerefOf (Index (DerefOf (Index (CDCT, HVCO)), CDVL
- )), 0x15), PARM, PARM)
- Store (One, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x0A))
- {
- Store (Zero, PARM)
- If (ISSC)
- {
- Or (PARM, 0x03, PARM)
- }
- Store (Zero, GESF)
- Return (SUCC)
- }
- Store (Zero, GESF)
- Return (CRIT)
- }
- Method (SBCB, 0, Serialized)
- {
- If (LEqual (GESF, Zero))
- {
- Store (Zero, PARM)
- If (LEqual (PFLV, FMBL))
- {
- Store (0x000F87FD, PARM)
- }
- If (LEqual (PFLV, FDTP))
- {
- Store (0x000F87BD, PARM)
- }
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, One))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x03))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x04))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x05))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x06))
- {
- Store (And (PARM, 0x0F), ITVF)
- Store (ShiftRight (And (PARM, 0xF0), 0x04), ITVM)
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x07))
- {
- If (LEqual (PARM, Zero))
- {
- Store (CLID, Local0)
- If (And (0x80000000, Local0))
- {
- And (CLID, 0x0F, CLID)
- GLID (CLID)
- }
- }
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x08))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x09))
- {
- And (PARM, 0xFF, IBTT)
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x0A))
- {
- And (PARM, 0xFF, IPSC)
- If (And (ShiftRight (PARM, 0x08), 0xFF))
- {
- And (ShiftRight (PARM, 0x08), 0xFF, IPAT)
- Decrement (IPAT)
- }
- And (ShiftRight (PARM, 0x12), 0x03, IBLC)
- And (ShiftRight (PARM, 0x14), 0x07, IBIA)
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x0B))
- {
- And (ShiftRight (PARM, One), One, IF1E)
- And (ShiftRight (PARM, 0x0D), 0xFF, IDMS)
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x10))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x11))
- {
- Store (ShiftLeft (LIDS, 0x08), PARM)
- Add (PARM, 0x0100, PARM)
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x12))
- {
- If (And (PARM, One))
- {
- If (LEqual (ShiftRight (PARM, One), One))
- {
- Store (One, ISSC)
- }
- Else
- {
- Store (Zero, GESF)
- Return (CRIT)
- }
- }
- Else
- {
- Store (Zero, ISSC)
- }
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x13))
- {
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- If (LEqual (GESF, 0x14))
- {
- And (PARM, 0x0F, PAVP)
- Store (Zero, GESF)
- Store (Zero, PARM)
- Return (SUCC)
- }
- Store (Zero, GESF)
- Return (SUCC)
- }
- If (LEqual (GEFC, 0x04))
- {
- Store (GBDA (), GXFC)
- }
- If (LEqual (GEFC, 0x06))
- {
- Store (SBCB (), GXFC)
- }
- Store (Zero, GEFC)
- Store (One, ^^LPCB.SCIS)
- Store (Zero, GSSE)
- Store (Zero, SCIE)
- Return (Zero)
- }
- Method (GDCS, 2, NotSerialized)
- {
- If (CAD1)
- {
- If (LEqual (CAD1, And (Arg0, 0xFFFF)))
- {
- Return (0x1F)
- }
- If (LEqual (CAD2, And (Arg0, 0xFFFF)))
- {
- Return (0x1F)
- }
- If (LEqual (CAD3, And (Arg0, 0xFFFF)))
- {
- Return (0x1F)
- }
- If (LEqual (CAD4, And (Arg0, 0xFFFF)))
- {
- Return (0x1F)
- }
- If (LEqual (CAD5, And (Arg0, 0xFFFF)))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- Else
- {
- If (And (CSTE, Arg1))
- {
- Return (0x1F)
- }
- Return (0x1D)
- }
- }
- Method (GDNS, 1, NotSerialized)
- {
- If (LEqual (NAD1, And (Arg0, 0xFFFF)))
- {
- Return (One)
- }
- If (LEqual (NAD2, And (Arg0, 0xFFFF)))
- {
- Return (One)
- }
- If (LEqual (NAD3, And (Arg0, 0xFFFF)))
- {
- Return (One)
- }
- If (LEqual (NAD4, And (Arg0, 0xFFFF)))
- {
- Return (One)
- }
- If (LEqual (NAD5, And (Arg0, 0xFFFF)))
- {
- Return (One)
- }
- Return (Zero)
- }
- Method (PDRD, 0, NotSerialized)
- {
- If (LNot (DRDY))
- {
- Sleep (ASLP)
- }
- Return (LNot (DRDY))
- }
- Method (GNOT, 2, NotSerialized)
- {
- If (PDRD ())
- {
- Return (One)
- }
- Store (Arg0, CEVT)
- Store (0x03, CSTS)
- If (LAnd (LEqual (CHPD, Zero), LEqual (Arg1, Zero)))
- {
- If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
- {
- Notify (PCI0, Arg1)
- }
- Else
- {
- Notify (GFX0, Arg1)
- }
- }
- Notify (GFX0, 0x80)
- Return (Zero)
- }
- Method (GHDS, 1, NotSerialized)
- {
- Store (Arg0, TIDX)
- Return (GNOT (One, Zero))
- }
- Method (GLID, 1, NotSerialized)
- {
- Store (Arg0, CLID)
- Return (GNOT (0x02, Zero))
- }
- Method (PARD, 0, NotSerialized)
- {
- If (LNot (ARDY))
- {
- Sleep (ASLP)
- }
- Return (LNot (ARDY))
- }
- Method (AINT, 2, NotSerialized)
- {
- If (LNot (And (TCHE, ShiftLeft (One, Arg0))))
- {
- Return (One)
- }
- If (PARD ())
- {
- Return (One)
- }
- If (LEqual (Arg0, 0x02))
- {
- If (CPFM)
- {
- And (CPFM, 0x0F, Local0)
- And (EPFM, 0x0F, Local1)
- If (LEqual (Local0, One))
- {
- If (And (Local1, 0x06))
- {
- Store (0x06, PFIT)
- }
- Else
- {
- If (And (Local1, 0x08))
- {
- Store (0x08, PFIT)
- }
- Else
- {
- Store (One, PFIT)
- }
- }
- }
- If (LEqual (Local0, 0x06))
- {
- If (And (Local1, 0x08))
- {
- Store (0x08, PFIT)
- }
- Else
- {
- If (And (Local1, One))
- {
- Store (One, PFIT)
- }
- Else
- {
- Store (0x06, PFIT)
- }
- }
- }
- If (LEqual (Local0, 0x08))
- {
- If (And (Local1, One))
- {
- Store (One, PFIT)
- }
- Else
- {
- If (And (Local1, 0x06))
- {
- Store (0x06, PFIT)
- }
- Else
- {
- Store (0x08, PFIT)
- }
- }
- }
- }
- Else
- {
- XOr (PFIT, 0x07, PFIT)
- }
- Or (PFIT, 0x80000000, PFIT)
- Store (0x04, ASLC)
- }
- Else
- {
- If (LEqual (Arg0, One))
- {
- Store (Arg1, BCLP)
- Or (BCLP, 0x80000000, BCLP)
- Store (0x02, ASLC)
- }
- Else
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Arg1, ALSI)
- Store (One, ASLC)
- }
- Else
- {
- Return (One)
- }
- }
- }
- Store (Zero, LBPC)
- Return (Zero)
- }
- }
- Device (EXP1)
- {
- Name (_ADR, 0x001C0000)
- OperationRegion (P1CS, PCI_Config, 0x40, 0x0100)
- Field (P1CS, AnyAcc, NoLock, WriteAsZeros)
- {
- Offset (0x1A),
- ABP1, 1,
- , 2,
- PDC1, 1,
- , 2,
- PDS1, 1,
- Offset (0x20),
- Offset (0x22),
- PSP1, 1,
- Offset (0x9C),
- , 30,
- HPCS, 1,
- PMCS, 1
- }
- Device (PXS1)
- {
- Name (_ADR, Zero)
- OperationRegion (X1CS, PCI_Config, Zero, 0x0100)
- Field (X1CS, AnyAcc, NoLock, WriteAsZeros)
- {
- X1DV, 32
- }
- Method (_RMV, 0, NotSerialized)
- {
- Return (Zero)
- }
- }
- Name (_PRW, Package (0x02)
- {
- 0x09,
- 0x04
- })
- Method (_PRT, 0, NotSerialized)
- {
- If (PICF)
- {
- Return (AR04)
- }
- Return (PR04)
- }
- }
- Device (EXP2)
- {
- Name (_ADR, 0x001C0001)
- OperationRegion (P2CS, PCI_Config, 0x40, 0x0100)
- Field (P2CS, AnyAcc, NoLock, WriteAsZeros)
- {
- Offset (0x1A),
- ABP2, 1,
- , 2,
- PDC2, 1,
- , 2,
- PDS2, 1,
- Offset (0x20),
- Offset (0x22),
- PSP2, 1,
- Offset (0x9C),
- , 30,
- HPCS, 1,
- PMCS, 1
- }
- Device (PXS2)
- {
- Name (_ADR, Zero)
- OperationRegion (X2CS, PCI_Config, Zero, 0x0100)
- Field (X2CS, AnyAcc, NoLock, WriteAsZeros)
- {
- X2DV, 32
- }
- Method (_RMV, 0, NotSerialized)
- {
- Return (Zero)
- }
- }
- Name (_PRW, Package (0x02)
- {
- 0x09,
- 0x04
- })
- Method (_PRT, 0, NotSerialized)
- {
- If (PICF)
- {
- Return (AR05)
- }
- Return (PR05)
- }
- }
- Device (EXP3)
- {
- Name (_ADR, 0x001C0002)
- OperationRegion (P3CS, PCI_Config, 0x40, 0x0100)
- Field (P3CS, AnyAcc, NoLock, WriteAsZeros)
- {
- Offset (0x1A),
- ABP3, 1,
- , 2,
- PDC3, 1,
- , 2,
- PDS3, 1,
- Offset (0x20),
- Offset (0x22),
- PSP3, 1,
- Offset (0x9C),
- , 30,
- HPCS, 1,
- PMCS, 1
- }
- Device (PXS3)
- {
- Name (_ADR, Zero)
- OperationRegion (X3CS, PCI_Config, Zero, 0x0100)
- Field (X3CS, AnyAcc, NoLock, WriteAsZeros)
- {
- X3DV, 32
- }
- Method (_RMV, 0, NotSerialized)
- {
- Return (Zero)
- }
- }
- Name (_PRW, Package (0x02)
- {
- 0x09,
- 0x04
- })
- Method (_PRT, 0, NotSerialized)
- {
- If (PICF)
- {
- Return (AR06)
- }
- Return (PR06)
- }
- }
- Device (EXP4)
- {
- Name (_ADR, 0x001C0003)
- OperationRegion (P4CS, PCI_Config, 0x40, 0x0100)
- Field (P4CS, AnyAcc, NoLock, WriteAsZeros)
- {
- Offset (0x1A),
- ABP4, 1,
- , 2,
- PDC4, 1,
- , 2,
- PDS4, 1,
- Offset (0x20),
- Offset (0x22),
- PSP4, 1,
- Offset (0x9C),
- , 30,
- HPCS, 1,
- PMCS, 1
- }
- Device (PXS4)
- {
- Name (_ADR, Zero)
- OperationRegion (X4CS, PCI_Config, Zero, 0x0100)
- Field (X4CS, AnyAcc, NoLock, WriteAsZeros)
- {
- X4DV, 32
- }
- Method (_RMV, 0, NotSerialized)
- {
- Return (Zero)
- }
- }
- Name (_PRW, Package (0x02)
- {
- 0x09,
- 0x04
- })
- Method (_PRT, 0, NotSerialized)
- {
- If (PICF)
- {
- Return (AR07)
- }
- Return (PR07)
- }
- }
- Device (PCIB)
- {
- Name (_ADR, 0x001E0000)
- Name (_PRW, Package (0x02)
- {
- 0x0B,
- 0x03
- })
- Method (_PRT, 0, NotSerialized)
- {
- If (PICF)
- {
- Return (AR01)
- }
- Return (PR01)
- }
- }
- Device (LPCB)
- {
- Name (_ADR, 0x001F0000)
- OperationRegion (TCOI, SystemIO, 0x1060, 0x08)
- Field (TCOI, WordAcc, NoLock, Preserve)
- {
- Offset (0x04),
- , 9,
- SCIS, 1,
- Offset (0x06)
- }
- OperationRegion (LPC0, PCI_Config, 0x40, 0xC0)
- Field (LPC0, AnyAcc, NoLock, Preserve)
- {
- Offset (0x40),
- IOD0, 8,
- IOD1, 8,
- Offset (0xB0),
- RAEN, 1,
- , 13,
- RCBA, 18
- }
- Device (MBRD)
- {
- Name (_HID, EisaId ("PNP0C02"))
- Name (_UID, 0x1F)
- Name (RSRC, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0010, // Range Minimum
- 0x0010, // Range Maximum
- 0x01, // Alignment
- 0x10, // 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,
- 0x0072, // Range Minimum
- 0x0072, // Range Maximum
- 0x01, // Alignment
- 0x06, // Length
- )
- IO (Decode16,
- 0x0080, // Range Minimum
- 0x0080, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0090, // Range Minimum
- 0x0090, // Range Maximum
- 0x01, // Alignment
- 0x10, // 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
- 0x06, // 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,
- 0x0800, // Range Minimum
- 0x0800, // Range Maximum
- 0x01, // Alignment
- 0x10, // Length
- )
- IO (Decode16,
- 0x1000, // Range Minimum
- 0x1000, // Range Maximum
- 0x01, // Alignment
- 0x80, // Length
- _Y0F)
- IO (Decode16,
- 0x1180, // Range Minimum
- 0x1180, // Range Maximum
- 0x01, // Alignment
- 0x40, // Length
- _Y10)
- IO (Decode16,
- 0x002E, // Range Minimum
- 0x002E, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x04D0, // Range Minimum
- 0x04D0, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0xFE00, // Range Minimum
- 0xFE00, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0068, // Range Minimum
- 0x0068, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x006C, // Range Minimum
- 0x006C, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0700, // Range Minimum
- 0x0700, // Range Maximum
- 0x01, // Alignment
- 0x10, // Length
- )
- IO (Decode16,
- 0x164E, // Range Minimum
- 0x164E, // Range Maximum
- 0x01, // Alignment
- 0xFF, // Length
- )
- Memory32Fixed (ReadWrite,
- 0xE0000000, // Address Base
- 0x10000000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFED14000, // Address Base
- 0x00004000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xF8000000, // Address Base
- 0x04000000, // Address Length
- )
- Memory32Fixed (ReadWrite,
- 0xFEF00000, // Address Base
- 0x00100000, // Address Length
- )
- })
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, \_SB.PCI0.LPCB.MBRD._Y0F._MIN, PMMN)
- CreateWordField (RSRC, \_SB.PCI0.LPCB.MBRD._Y0F._MAX, PMMX)
- And (PMBA, 0xFF80, PMMN)
- Store (PMMN, PMMX)
- CreateWordField (RSRC, \_SB.PCI0.LPCB.MBRD._Y10._MIN, GPMN)
- CreateWordField (RSRC, \_SB.PCI0.LPCB.MBRD._Y10._MAX, GPMX)
- And (GPBA, 0xFF80, GPMN)
- Store (GPMN, GPMX)
- Return (RSRC)
- }
- }
- Device (DMAC)
- {
- Name (_HID, EisaId ("PNP0200"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0000, // Range Minimum
- 0x0000, // Range Maximum
- 0x01, // Alignment
- 0x10, // Length
- )
- IO (Decode16,
- 0x0081, // Range Minimum
- 0x0081, // Range Maximum
- 0x01, // Alignment
- 0x0F, // Length
- )
- IO (Decode16,
- 0x00C0, // Range Minimum
- 0x00C0, // Range Maximum
- 0x01, // Alignment
- 0x20, // Length
- )
- DMA (Compatibility, NotBusMaster, Transfer16, )
- {4}
- })
- }
- Device (MATH)
- {
- Name (_HID, EisaId ("PNP0C04"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x00F0, // Range Minimum
- 0x00F0, // Range Maximum
- 0x01, // Alignment
- 0x0F, // Length
- )
- IRQ (Edge, ActiveHigh, Exclusive, )
- {13}
- })
- }
- Device (PIC)
- {
- Name (_HID, EisaId ("PNP0000"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0020, // Range Minimum
- 0x0020, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IO (Decode16,
- 0x00A0, // Range Minimum
- 0x00A0, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IRQ (Edge, ActiveHigh, Exclusive, )
- {2}
- })
- }
- Device (HPET)
- {
- Name (_HID, EisaId ("PNP0103"))
- Name (BUF0, ResourceTemplate ()
- {
- Memory32Fixed (ReadOnly,
- 0xFED00000, // Address Base
- 0x00000400, // Address Length
- _Y11)
- })
- Method (_STA, 0, NotSerialized)
- {
- If (HPAE)
- {
- Store (0x0F, Local1)
- }
- Else
- {
- Store (Zero, Local1)
- }
- Return (Local1)
- }
- Method (_CRS, 0, Serialized)
- {
- If (HPAE)
- {
- CreateDWordField (BUF0, \_SB.PCI0.LPCB.HPET._Y11._BAS, HPT0)
- If (LEqual (HPAS, One))
- {
- Store (0xFED01000, HPT0)
- }
- If (LEqual (HPAS, 0x02))
- {
- Store (0xFED02000, HPT0)
- }
- If (LEqual (HPAS, 0x03))
- {
- Store (0xFED03000, HPT0)
- }
- }
- Return (BUF0)
- }
- }
- Device (RTC)
- {
- Name (_HID, EisaId ("PNP0B00"))
- Name (BUF0, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0070, // Range Minimum
- 0x0070, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- })
- Name (BUF1, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0070, // Range Minimum
- 0x0070, // Range Maximum
- 0x01, // Alignment
- 0x02, // Length
- )
- IRQNoFlags ()
- {8}
- })
- Method (_CRS, 0, Serialized)
- {
- If (And (MTSE, 0x00020000))
- {
- Return (BUF0)
- }
- Return (BUF1)
- }
- }
- Device (SPKR)
- {
- Name (_HID, EisaId ("PNP0800"))
- Name (_CRS, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0061, // Range Minimum
- 0x0061, // Range Maximum
- 0x01, // Alignment
- 0x01, // Length
- )
- })
- }
- 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 (And (MTSE, 0x00020000))
- {
- Return (BUF0)
- }
- Return (BUF1)
- }
- }
- OperationRegion (MMTO, PCI_Config, 0xD0, 0x04)
- Field (MMTO, DWordAcc, NoLock, Preserve)
- {
- MTSE, 32
- }
- Device (KBC0)
- {
- 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}
- })
- }
- Device (PS2M)
- {
- Name (_HID, EisaId ("SYN1037"))
- Name (_CID, Package (0x03)
- {
- EisaId ("SYN1000"),
- EisaId ("SYN0002"),
- EisaId ("PNP0F13")
- })
- Name (_CRS, ResourceTemplate ()
- {
- IRQ (Edge, ActiveHigh, Exclusive, )
- {12}
- })
- }
- Device (LNKA)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, One)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRA, 0x80, PIRA)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRA, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Store (RSRC, Debug)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- Store (Arg0, Debug)
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRA, 0x70), PIRA)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRA, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKB)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x02)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRB, 0x80, PIRB)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRB, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRB, 0x70), PIRB)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRB, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKC)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x03)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRC, 0x80, PIRC)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRC, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRC, 0x70), PIRC)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRC, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKD)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x04)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRD, 0x80, PIRD)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRD, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRD, 0x70), PIRD)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRD, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKE)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x05)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRE, 0x80, PIRE)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRE, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Store (RSRC, Debug)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- Store (Arg0, Debug)
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRE, 0x70), PIRE)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRE, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKF)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x06)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRF, 0x80, PIRF)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRF, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Store (RSRC, Debug)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- Store (Arg0, Debug)
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRF, 0x70), PIRF)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRF, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKG)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x07)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRG, 0x80, PIRG)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRG, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Store (RSRC, Debug)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- Store (Arg0, Debug)
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRG, 0x70), PIRG)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRG, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- Device (LNKH)
- {
- Name (_HID, EisaId ("PNP0C0F"))
- Name (_UID, 0x08)
- Name (_PRS, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {3,4,5,6,7,10,11,12,14,15}
- })
- Name (RSRC, ResourceTemplate ()
- {
- IRQ (Level, ActiveLow, Shared, )
- {}
- })
- Method (_DIS, 0, NotSerialized)
- {
- Or (PIRH, 0x80, PIRH)
- }
- Method (_CRS, 0, NotSerialized)
- {
- CreateWordField (RSRC, One, IRQ0)
- And (PIRH, 0x0F, Local0)
- ShiftLeft (One, Local0, IRQ0)
- Store (RSRC, Debug)
- Return (RSRC)
- }
- Method (_SRS, 1, NotSerialized)
- {
- Store (Arg0, Debug)
- CreateWordField (Arg0, One, IRQ0)
- FindSetRightBit (IRQ0, Local0)
- Decrement (Local0)
- Or (Local0, And (PIRH, 0x70), PIRH)
- }
- Method (_STA, 0, NotSerialized)
- {
- If (And (PIRH, 0x80))
- {
- Return (0x09)
- }
- Return (0x0B)
- }
- }
- OperationRegion (GPOX, SystemIO, 0x1180, 0x30)
- Field (GPOX, DWordAcc, NoLock, Preserve)
- {
- Offset (0x07),
- , 3,
- IO27, 1,
- Offset (0x0F),
- , 3,
- LV27, 1,
- Offset (0x1B),
- , 3,
- BL27, 1
- }
- OperationRegion (PIRX, PCI_Config, 0x60, 0x04)
- Field (PIRX, DWordAcc, Lock, Preserve)
- {
- AccessAs (ByteAcc, 0x00),
- PIRA, 8,
- PIRB, 8,
- PIRC, 8,
- PIRD, 8
- }
- OperationRegion (PIRY, PCI_Config, 0x68, 0x04)
- Field (PIRY, DWordAcc, Lock, Preserve)
- {
- AccessAs (ByteAcc, 0x00),
- PIRE, 8,
- PIRF, 8,
- PIRG, 8,
- PIRH, 8
- }
- OperationRegion (ELR0, PCI_Config, 0xA0, 0x14)
- Field (ELR0, DWordAcc, Lock, Preserve)
- {
- , 9,
- PBLV, 1,
- Offset (0x10),
- , 1,
- ELSS, 1,
- , 1,
- ELST, 1,
- ELPB, 1,
- Offset (0x11),
- , 1,
- ELLO, 1,
- ELGN, 2,
- ELYL, 2,
- ELBE, 1,
- ELIE, 1,
- ELSN, 1,
- ELOC, 1,
- Offset (0x13),
- ELSO, 1
- }
- OperationRegion (ROUT, SystemIO, 0xB8, 0x04)
- Field (ROUT, DWordAcc, Lock, Preserve)
- {
- AccessAs (ByteAcc, 0x00),
- GPI0, 2,
- GPI1, 2,
- GPI2, 2,
- GPI3, 2,
- GPI4, 2,
- GPI5, 2,
- GPI6, 2,
- GPI7, 2,
- GPI8, 2,
- GPI9, 2,
- GP10, 2,
- GP11, 2,
- GP12, 2,
- GP13, 2,
- GP14, 2,
- GP15, 2
- }
- OperationRegion (PMIO, SystemIO, 0x1000, 0x60)
- Field (PMIO, ByteAcc, NoLock, Preserve)
- {
- Offset (0x28),
- , 2,
- SPST, 1,
- Offset (0x42),
- , 1,
- GPEC, 1
- }
- OperationRegion (REGS, PCI_Config, 0x40, 0x10)
- Field (REGS, DWordAcc, Lock, Preserve)
- {
- PMBA, 16,
- Offset (0x08),
- GPBA, 16
- }
- Device (FWH)
- {
- Name (_HID, EisaId ("INT0800"))
- Name (_CRS, ResourceTemplate ()
- {
- Memory32Fixed (ReadOnly,
- 0xFF800000, // Address Base
- 0x00800000, // Address Length
- )
- })
- }
- }
- Method (GETP, 1, NotSerialized)
- {
- Noop
- 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 (GETD, 4, NotSerialized)
- {
- Noop
- If (Arg0)
- {
- If (Arg1)
- {
- Return (0x14)
- }
- If (Arg2)
- {
- Return (Multiply (Subtract (0x04, Arg3), 0x0F))
- }
- Return (Multiply (Subtract (0x04, Arg3), 0x1E))
- }
- Return (Ones)
- }
- Method (GETT, 1, NotSerialized)
- {
- Noop
- Return (Multiply (0x1E, Subtract (0x09, Add (And (ShiftRight (Arg0, 0x02
- ), 0x03), And (Arg0, 0x03)))))
- }
- Method (GETF, 3, NotSerialized)
- {
- Noop
- 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, NotSerialized)
- {
- Noop
- If (LGreaterEqual (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 (SETD, 1, NotSerialized)
- {
- Noop
- 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, NotSerialized)
- {
- Noop
- 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)
- }
- Device (IDE1)
- {
- Name (_ADR, 0x001F0002)
- OperationRegion (IDEP, PCI_Config, 0x10, 0x02)
- Field (IDEP, ByteAcc, NoLock, Preserve)
- {
- PCMD, 16
- }
- OperationRegion (IDES, PCI_Config, 0x18, 0x02)
- Field (IDES, ByteAcc, NoLock, Preserve)
- {
- SCMD, 16
- }
- OperationRegion (IDEC, PCI_Config, 0x40, 0x18)
- Field (IDEC, DWordAcc, NoLock, Preserve)
- {
- PRIT, 16,
- SECT, 16,
- PSIT, 4,
- SSIT, 4,
- Offset (0x08),
- SDMA, 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
- }
- OperationRegion (IDE1, PCI_Config, 0x90, 0x03)
- Field (IDE1, ByteAcc, NoLock, Preserve)
- {
- MAP, 8,
- Offset (0x02),
- PCS, 8
- }
- OperationRegion (PBIO, SystemIO, 0x18E7, 0x08)
- Field (PBIO, ByteAcc, NoLock, Preserve)
- {
- Offset (0x07),
- , 7,
- PBSY, 1
- }
- OperationRegion (SBIO, SystemIO, 0x18E7, 0x08)
- Field (SBIO, ByteAcc, NoLock, Preserve)
- {
- Offset (0x07),
- , 7,
- SBSY, 1
- }
- Method (BSSP, 1, NotSerialized)
- {
- If (LEqual (One, SPNF))
- {
- Store (And (0x50, PCS), Local0)
- Store (And (0xA0, PCS), Local1)
- Store (Zero, Local2)
- Store (Zero, Local3)
- If (Arg0)
- {
- If (LEqual (0x80, Local1))
- {
- While (LAnd (SBSY, LGreater (0x4B, Local3)))
- {
- Sleep (0x64)
- Increment (Local3)
- }
- }
- }
- Else
- {
- If (LEqual (0x40, Local0))
- {
- While (LAnd (PBSY, LGreater (0x4B, Local2)))
- {
- Sleep (0x64)
- Increment (Local2)
- }
- }
- }
- Store (Zero, SPNF)
- }
- }
- Device (PRID)
- {
- Name (_ADR, Zero)
- Method (_GTM, 0, NotSerialized)
- {
- Noop
- 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 (GETD (And (SDMA, One), And (ICR3, One),
- And (ICR0, One), SDT0), 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 (GETD (And (SDMA, 0x02), And (ICR3, 0x02),
- And (ICR0, 0x02), SDT1), DMA1)
- If (LEqual (DMA1, Ones))
- {
- Store (PIO1, DMA1)
- }
- Store (GETF (And (SDMA, One), And (SDMA, 0x02),
- PRIT), FLAG)
- Return (PBUF)
- }
- Method (_STM, 3, NotSerialized)
- {
- Noop
- CreateDWordField (Arg0, Zero, PIO0)
- CreateDWordField (Arg0, 0x04, DMA0)
- CreateDWordField (Arg0, 0x08, PIO1)
- CreateDWordField (Arg0, 0x0C, DMA1)
- CreateDWordField (Arg0, 0x10, FLAG)
- Store (0x04, ICR2)
- If (LEqual (SizeOf (Arg1), 0x0200))
- {
- And (PRIT, 0x4CF0, PRIT)
- And (SDMA, 0x0E, SDMA)
- 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, 0x80, W640)
- CreateWordField (Arg1, 0xB0, W880)
- 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 (SDMA, One, SDMA)
- Store (SETD (DMA0), SDT0)
- If (And (W880, 0x20))
- {
- Or (ICR1, One, ICR1)
- Or (ICR5, One, ICR5)
- }
- If (And (W880, 0x10))
- {
- Or (ICR1, One, ICR1)
- }
- If (LLess (DMA0, 0x1E))
- {
- Or (ICR3, One, ICR3)
- }
- If (LLess (DMA0, 0x3C))
- {
- Or (ICR0, One, ICR0)
- }
- }
- }
- If (LEqual (SizeOf (Arg2), 0x0200))
- {
- And (PRIT, 0x3F0F, PRIT)
- Store (Zero, PSIT)
- And (SDMA, 0x0D, SDMA)
- 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, 0x80, W641)
- CreateWordField (Arg2, 0xB0, W881)
- 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 (SDMA, 0x02, SDMA)
- Store (SETD (DMA1), SDT1)
- If (And (W881, 0x20))
- {
- Or (ICR1, 0x02, ICR1)
- Or (ICR5, 0x02, ICR5)
- }
- If (And (W881, 0x10))
- {
- Or (ICR1, 0x02, ICR1)
- }
- If (LLess (DMA0, 0x1E))
- {
- Or (ICR3, 0x02, ICR3)
- }
- If (LLess (DMA0, 0x3C))
- {
- Or (ICR0, 0x02, ICR0)
- }
- }
- }
- }
- Method (_PS0, 0, NotSerialized)
- {
- BSSP (Zero)
- }
- Method (_PS3, 0, NotSerialized)
- {
- }
- Device (P_D0)
- {
- Name (_ADR, Zero)
- Method (_GTF, 0, NotSerialized)
- {
- Noop
- 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 (SDMA, One))
- {
- Store (Or (SDT0, 0x40), DMD0)
- 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)
- {
- Noop
- 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 (SDMA, 0x02))
- {
- Store (Or (SDT1, 0x40), DMD1)
- 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)
- {
- Noop
- 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 (GETD (And (SDMA, 0x04), And (ICR3, 0x04),
- And (ICR0, 0x04), SDT2), 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 (GETD (And (SDMA, 0x08), And (ICR3, 0x08),
- And (ICR0, 0x08), SDT3), DMA1)
- If (LEqual (DMA1, Ones))
- {
- Store (PIO1, DMA1)
- }
- Store (GETF (And (SDMA, 0x04), And (SDMA, 0x08),
- SECT), FLAG)
- Return (SBUF)
- }
- Method (_STM, 3, NotSerialized)
- {
- Noop
- CreateDWordField (Arg0, Zero, PIO0)
- CreateDWordField (Arg0, 0x04, DMA0)
- CreateDWordField (Arg0, 0x08, PIO1)
- CreateDWordField (Arg0, 0x0C, DMA1)
- CreateDWordField (Arg0, 0x10, FLAG)
- Store (0x04, ICR2)
- If (LEqual (SizeOf (Arg1), 0x0200))
- {
- And (SECT, 0x4CF0, SECT)
- And (SDMA, 0x0B, SDMA)
- 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, 0x80, W640)
- CreateWordField (Arg1, 0xB0, W880)
- 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 (SDMA, 0x04, SDMA)
- Store (SETD (DMA0), SDT2)
- If (And (W880, 0x20))
- {
- Or (ICR1, 0x04, ICR1)
- Or (ICR5, 0x04, ICR5)
- }
- If (And (W880, 0x10))
- {
- Or (ICR1, 0x04, ICR1)
- }
- If (LLess (DMA0, 0x1E))
- {
- Or (ICR3, 0x04, ICR3)
- }
- If (LLess (DMA0, 0x3C))
- {
- Or (ICR0, 0x04, ICR0)
- }
- }
- }
- If (LEqual (SizeOf (Arg2), 0x0200))
- {
- And (SECT, 0x3F0F, SECT)
- Store (Zero, SSIT)
- And (SDMA, 0x07, SDMA)
- 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, 0x80, W641)
- CreateWordField (Arg2, 0xB0, W881)
- 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 (SDMA, 0x08, SDMA)
- Store (SETD (DMA1), SDT3)
- If (And (W881, 0x20))
- {
- Or (ICR1, 0x08, ICR1)
- Or (ICR5, 0x08, ICR5)
- }
- If (And (W881, 0x10))
- {
- Or (ICR1, 0x08, ICR1)
- }
- If (LLess (DMA0, 0x1E))
- {
- Or (ICR3, 0x08, ICR3)
- }
- If (LLess (DMA0, 0x3C))
- {
- Or (ICR0, 0x08, ICR0)
- }
- }
- }
- }
- Method (_PS0, 0, NotSerialized)
- {
- BSSP (One)
- }
- Method (_PS3, 0, NotSerialized)
- {
- }
- Device (S_D0)
- {
- Name (_ADR, Zero)
- Method (_GTF, 0, NotSerialized)
- {
- Noop
- 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 (SDMA, 0x04))
- {
- Store (Or (SDT2, 0x40), DMD0)
- 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)
- {
- Noop
- 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 (SDMA, 0x02))
- {
- Store (Or (SDT3, 0x40), DMD1)
- 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 (SMBS)
- {
- Name (_ADR, 0x001F0003)
- }
- Device (PWRB)
- {
- Name (_HID, EisaId ("PNP0C0C"))
- }
- Device (USB1)
- {
- Name (_ADR, 0x001D0000)
- OperationRegion (USBO, PCI_Config, 0xC4, 0x04)
- Field (USBO, DWordAcc, Lock, Preserve)
- {
- RSEN, 2
- }
- Name (_PRW, Package (0x02)
- {
- 0x03,
- 0x03
- })
- Method (_PSW, 1, NotSerialized)
- {
- If (Arg0)
- {
- Store (0x03, RSEN)
- }
- Else
- {
- Store (Zero, RSEN)
- }
- }
- Method (_S3D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Method (_S4D, 0, NotSerialized)
- {
- Return (0x02)
- }
- }
- Device (USB2)
- {
- Name (_ADR, 0x001D0001)
- OperationRegion (USBO, PCI_Config, 0xC4, 0x04)
- Field (USBO, DWordAcc, Lock, Preserve)
- {
- RSEN, 2
- }
- Method (_S3D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Method (_S4D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Device (HUB0)
- {
- Name (_ADR, Zero)
- Device (UBTH)
- {
- Name (_ADR, One)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- Device (UBBT)
- {
- Name (_ADR, 0x02)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- }
- }
- Device (USB3)
- {
- Name (_ADR, 0x001D0002)
- OperationRegion (USBO, PCI_Config, 0xC4, 0x04)
- Field (USBO, DWordAcc, Lock, Preserve)
- {
- RSEN, 2
- }
- Method (_S3D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Method (_S4D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Device (HUB0)
- {
- Name (_ADR, Zero)
- Device (UBTH)
- {
- Name (_ADR, One)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- Device (UBBT)
- {
- Name (_ADR, 0x02)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- }
- }
- Device (USB4)
- {
- Name (_ADR, 0x001D0003)
- OperationRegion (USBO, PCI_Config, 0xC4, 0x04)
- Field (USBO, DWordAcc, Lock, Preserve)
- {
- RSEN, 2
- }
- Name (_PRW, Package (0x02)
- {
- 0x0E,
- 0x03
- })
- Method (_PSW, 1, NotSerialized)
- {
- If (Arg0)
- {
- Store (0x03, RSEN)
- }
- Else
- {
- Store (Zero, RSEN)
- }
- }
- Method (_S3D, 0, NotSerialized)
- {
- Return (0x02)
- }
- Method (_S4D, 0, NotSerialized)
- {
- Return (0x02)
- }
- }
- Device (EUSB)
- {
- Name (_ADR, 0x001D0007)
- Name (_S3D, 0x02)
- Name (_S4D, 0x02)
- Name (_PRW, Package (0x02)
- {
- 0x0D,
- 0x03
- })
- OperationRegion (USBO, PCI_Config, 0xC4, 0x04)
- Field (USBO, DWordAcc, Lock, Preserve)
- {
- RSEN, 2
- }
- Method (_PSW, 1, NotSerialized)
- {
- If (Arg0)
- {
- Store (0x03, RSEN)
- }
- Else
- {
- Store (Zero, RSEN)
- }
- }
- Device (HUB7)
- {
- Name (_ADR, Zero)
- Device (PRT1)
- {
- Name (_ADR, One)
- }
- Device (PRT2)
- {
- Name (_ADR, 0x02)
- }
- Device (PRT3)
- {
- Name (_ADR, 0x03)
- }
- Device (PRT4)
- {
- Name (_ADR, 0x04)
- }
- Device (PRT5)
- {
- Name (_ADR, 0x05)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- Device (PRT6)
- {
- Name (_ADR, 0x06)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- Device (PRT7)
- {
- Name (_ADR, 0x07)
- }
- Device (PRT8)
- {
- Name (_ADR, 0x08)
- Name (_UPC, Package (0x04)
- {
- Zero,
- 0xFF,
- Zero,
- Zero
- })
- }
- }
- }
- }
- }
- Scope (_SI)
- {
- Method (_SST, 1, NotSerialized)
- {
- Store (Zero, \_SB.PCI0.LPCB.EC0.PFLG)
- If (LEqual (Arg0, One))
- {
- \_SB.PCI0.BLST (\_SB.PCI0.BLGT ())
- }
- If (LEqual (Arg0, 0x03))
- {
- If (LEqual (OSYS, 0x07CE))
- {
- Or (Arg0, 0x80, \_SB.BCMD)
- Store (Zero, \_SB.SMIC)
- }
- If (LEqual (OSYS, 0x07CF))
- {
- Or (Arg0, 0x80, \_SB.BCMD)
- Store (Zero, \_SB.SMIC)
- }
- Else
- {
- }
- }
- If (LEqual (Arg0, 0x04))
- {
- Store (One, \_SB.PCI0.LPCB.EC0.PFLG)
- Store (One, \_SB.INS4)
- }
- }
- }
- Method (P8XH, 2, Serialized)
- {
- If (LEqual (Arg0, Zero))
- {
- Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)
- }
- If (LEqual (Arg0, One))
- {
- Store (Or (And (P80D, 0xFFFF00FF), ShiftLeft (Arg1, 0x08)
- ), P80D)
- }
- If (LEqual (Arg0, 0x02))
- {
- Store (Or (And (P80D, 0xFF00FFFF), ShiftLeft (Arg1, 0x10)
- ), P80D)
- }
- If (LEqual (Arg0, 0x03))
- {
- Store (Or (And (P80D, 0x00FFFFFF), ShiftLeft (Arg1, 0x18)
- ), P80D)
- }
- Store (P80D, P80H)
- }
- Method (TRAP, 1, Serialized)
- {
- Store (Arg0, SMIF)
- Store (Zero, TRP0)
- Return (SMIF)
- }
- Name (TPAS, 0x5F)
- Name (TPC, 0x64)
- Scope (_TZ)
- {
- ThermalZone (TZ01)
- {
- Method (_CRT, 0, Serialized)
- {
- Return (Add (0x0AAC, Multiply (TPC, 0x0A)))
- }
- Method (_SCP, 1, Serialized)
- {
- Store (Arg0, CTYP)
- }
- Mutex (MUTT, 0x00)
- Method (_TMP, 0, Serialized)
- {
- If (ECON)
- {
- Acquire (MUTT, 0xFFFF)
- If (DTSE)
- {
- If (LGreaterEqual (DTS1, DTS2))
- {
- Store (DTS1, Local0)
- }
- Else
- {
- Store (DTS2, Local0)
- }
- Store (Local0, \_SB.PCI0.LPCB.EC0.RG5B)
- }
- Else
- {
- Store (\_SB.PCI0.LPCB.EC0.RTMP, Local0)
- If (Or (LLess (Local0, 0x23), LGreater (Local0, 0x6E)))
- {
- Store (0x23, Local0)
- }
- }
- Store ("Current temp is: ", Debug)
- Store (Local0, Debug)
- Store (\_SB.PCI0.LPCB.EC0.RTMP, Local1)
- Release (MUTT)
- Return (Add (0x0AAC, Multiply (Local0, 0x0A)))
- }
- Else
- {
- Store ("Get EC Temp failed!!", Debug)
- Return (0x0BB8)
- }
- Return (0x0BB8)
- }
- Method (_PSL, 0, Serialized)
- {
- If (MPEN)
- {
- Return (Package (0x02)
- {
- \_PR.CPU0,
- \_PR.CPU1
- })
- }
- Return (Package (One)
- {
- \_PR.CPU0
- })
- }
- Method (_PSV, 0, Serialized)
- {
- Return (Add (0x0AAC, Multiply (TPAS, 0x0A)))
- }
- Method (_TC1, 0, Serialized)
- {
- Return (0x02)
- }
- Method (_TC2, 0, Serialized)
- {
- Return (0x03)
- }
- Method (_TSP, 0, Serialized)
- {
- Return (0x64)
- }
- }
- }
- Name (_S0, Package (0x02)
- {
- Zero,
- Zero
- })
- Name (_S3, Package (0x02)
- {
- 0x05,
- 0x05
- })
- Name (_S4, Package (0x02)
- {
- 0x06,
- 0x06
- })
- Name (_S5, Package (0x02)
- {
- 0x07,
- 0x07
- })
- Name (PICF, Zero)
- Name (SPNF, Zero)
- Method (_PIC, 1, NotSerialized)
- {
- Store (Arg0, PICF)
- }
- Method (_PTS, 1, NotSerialized)
- {
- Store (Arg0, P80H)
- \_SB.PCI0.LPCB.EC0.DSSV ()
- }
- Method (_WAK, 1, NotSerialized)
- {
- Store (Zero, \_SB.PCI0.PEXE)
- Store (One, \_SB.PCI0.LPCB.EC0.BLIS)
- Store (One, \_SB.PCI0.BLEN)
- If (LEqual (Arg0, 0x03))
- {
- Store (One, SPNF)
- TRAP (0x46)
- P8XH (Zero, 0x03)
- }
- If (LEqual (Arg0, 0x04))
- {
- \_SB.OSHT ()
- If (DTSE)
- {
- TRAP (0x47)
- }
- Notify (\_TZ.TZ01, 0x80)
- P8XH (Zero, 0x04)
- Store (Zero, \_SB.INS4)
- Store (Zero, \_SB.S4CT)
- }
- If (LEqual (OSYS, 0x07CE))
- {
- Notify (\_SB.PCI0.PWRB, 0x02)
- }
- \_SB.PCI0.LPCB.EC0.DSLD ()
- \_SB.PCI0.LPCB.EC0.DSGO ()
- Return (Zero)
- }
- Scope (_SB)
- {
- Name (OSTB, Ones)
- OperationRegion (OSTY, SystemMemory, 0x7F5E2EBC, One)
- Field (OSTY, AnyAcc, NoLock, Preserve)
- {
- TPOS, 8
- }
- Method (OSTP, 0, NotSerialized)
- {
- If (LEqual (OSTB, Ones))
- {
- If (CondRefOf (\_OSI, Local0))
- {
- If (_OSI ("Windows 2001.1"))
- {
- Store (0x20, OSTB)
- Store (0x20, TPOS)
- }
- Else
- {
- If (_OSI ("Windows 2001 SP1"))
- {
- Store (0x10, OSTB)
- Store (0x10, TPOS)
- }
- Else
- {
- If (_OSI ("Windows 2001"))
- {
- Store (0x08, OSTB)
- Store (0x08, TPOS)
- }
- Else
- {
- Store (Zero, OSTB)
- Store (Zero, TPOS)
- }
- }
- }
- }
- Else
- {
- If (CondRefOf (\_OS, Local0))
- {
- If (SEQL (_OS, "Microsoft Windows"))
- {
- Store (One, OSTB)
- Store (One, TPOS)
- }
- Else
- {
- If (SEQL (_OS, "Microsoft WindowsME: Millennium Edition"))
- {
- Store (0x02, OSTB)
- Store (0x02, TPOS)
- }
- Else
- {
- If (SEQL (_OS, "Microsoft Windows NT"))
- {
- Store (0x04, OSTB)
- Store (0x04, TPOS)
- }
- Else
- {
- Store (Zero, OSTB)
- Store (Zero, TPOS)
- }
- }
- }
- }
- Else
- {
- Store (Zero, OSTB)
- Store (Zero, TPOS)
- }
- }
- }
- Return (OSTB)
- }
- Method (OSHT, 0, NotSerialized)
- {
- OSTP ()
- }
- Method (SEQL, 2, Serialized)
- {
- Store (SizeOf (Arg0), Local0)
- Store (SizeOf (Arg1), Local1)
- If (LNotEqual (Local0, Local1))
- {
- Return (Zero)
- }
- Name (BUF0, Buffer (Local0) {})
- Store (Arg0, BUF0)
- Name (BUF1, Buffer (Local0) {})
- Store (Arg1, BUF1)
- Store (Zero, Local2)
- While (LLess (Local2, Local0))
- {
- Store (DerefOf (Index (BUF0, Local2)), Local3)
- Store (DerefOf (Index (BUF1, Local2)), Local4)
- If (LNotEqual (Local3, Local4))
- {
- Return (Zero)
- }
- Increment (Local2)
- }
- Return (One)
- }
- }
- Name (_PSC, Zero)
- Method (_PS0, 0, NotSerialized)
- {
- Store (_PSC, Local0)
- Store (Zero, _PSC)
- If (LEqual (Local0, 0x03))
- {
- Store (One, \_SB.INF)
- While (\_SB.INF)
- {
- If (LAnd (LEqual (\_SB.INF, One), LGreaterEqual (\_SB.OSTB, 0x04)))
- {
- Sleep (0x01F4)
- }
- }
- }
- }
- Method (_PS3, 0, NotSerialized)
- {
- Store (0x03, _PSC)
- }
- Scope (_SB.PCI0.LPCB)
- {
- Device (EC0)
- {
- Name (_HID, EisaId ("PNP0C09"))
- Name (_UID, One)
- Name (_GPE, 0x19)
- Method (_CRS, 0, NotSerialized)
- {
- Name (BFFR, ResourceTemplate ()
- {
- IO (Decode16,
- 0x0062, // Range Minimum
- 0x0062, // Range Maximum
- 0x00, // Alignment
- 0x01, // Length
- )
- IO (Decode16,
- 0x0066, // Range Minimum
- 0x0066, // Range Maximum
- 0x00, // Alignment
- 0x01, // Length
- )
- })
- Return (BFFR)
- }
- OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
- Field (ERAM, ByteAcc, Lock, Preserve)
- {
- Offset (0x04),
- CMCM, 8,
- CMD1, 8,
- CMD2, 8,
- CMD3, 8,
- Offset (0x18),
- SMPR, 8,
- SMST, 8,
- SMAD, 8,
- SMCM, 8,
- SMD0, 256,
- BCNT, 8,
- SMAA, 8,
- BATD, 16,
- SW2S, 1,
- Offset (0x41),
- , 4,
- CFAN, 1,
- PFN2, 1,
- FVIS, 1,
- PFLG, 1,
- Offset (0x43),
- TMSS, 2,
- , 2,
- BANK, 4,
- Offset (0x45),
- VFAN, 1,
- Offset (0x46),
- RL01, 1,
- RD01, 1,
- RF01, 1,
- RP01, 1,
- RB01, 1,
- RC01, 1,
- , 1,
- R701, 1,
- R801, 1,
- RM01, 1,
- RI01, 1,
- , 1,
- , 1,
- , 1,
- RA01, 1,
- RR01, 1,
- XALM, 1,
- YALM, 1,
- ZALM, 1,
- APLN, 1,
- ALHN, 1,
- PHR1, 1,
- PHR2, 1,
- Offset (0x49),
- GSVX, 16,
- GSVY, 16,
- GSVZ, 16,
- TBMD, 1,
- TBTR, 1,
- NOTR, 1,
- Offset (0x50),
- Offset (0x52),
- PBSS, 1,
- ACIO, 1,
- NOVO, 1,
- LDS0, 1,
- , 1,
- , 1,
- , 1,
- Offset (0x53),
- , 1,
- Offset (0x54),
- SCIM, 8,
- Offset (0x57),
- RG57, 8,
- RTMP, 8,
- RG59, 8,
- RG5A, 8,
- RG5B, 8,
- LOCP, 1,
- Offset (0x5D),
- THTB, 8,
- VGAD, 1,
- TJCP, 2,
- MODT, 1,
- Offset (0x5F),
- CFN2, 1,
- SFN2, 1,
- TPNT, 1,
- , 2,
- LNON, 1,
- Offset (0x66),
- BLVL, 8,
- WLSE, 1,
- BTDE, 1,
- CCDE, 1,
- WWAE, 1,
- , 1,
- , 1,
- , 1,
- KBMF, 1,
- Offset (0x6A),
- BATS, 16,
- BATC, 1,
- Offset (0x71),
- MBTS, 1,
- MBTF, 1,
- Offset (0x72),
- MBTC, 1,
- , 2,
- MBNH, 1,
- Offset (0x77),
- BA1C, 8,
- Offset (0x7E),
- BA1T, 8,
- Offset (0x81),
- SBTS, 1,
- SBTF, 1,
- Offset (0x82),
- SBTC, 1,
- Offset (0x87),
- BA2C, 8,
- Offset (0x96),
- CFS0, 8,
- CFS1, 9,
- Offset (0xA0),
- POD0, 8,
- POD1, 8,
- Offset (0xB9),
- SEBT, 8,
- Offset (0xBB),
- SLB0, 8,
- SLB1, 8,
- SLB2, 8,
- Offset (0xBF),
- GSWS, 1,
- RFSS, 1,
- WRFS, 1,
- BTSS, 1,
- CCDS, 1,
- BLIS, 1,
- G3RS, 1,
- TPDS, 1,
- Offset (0xC1),
- MCUR, 16,
- MBRM, 16,
- MBVG, 16,
- Offset (0xC8),
- ACUR, 16,
- ABRM, 16,
- ABVG, 16,
- Offset (0xCF),
- DLYC, 8,
- EBPL, 1,
- Offset (0xD2),
- , 6,
- APWR, 1,
- DLYE, 1,
- Offset (0xD6),
- DBPL, 8,
- Offset (0xDB),
- ANYK, 1,
- , 1,
- , 1,
- , 1,
- WLID, 1,
- Offset (0xDF),
- WLNS, 1,
- Offset (0xE0),
- B1FC, 16,
- B2FC, 16,
- Offset (0xE7),
- GQKS, 7,
- Offset (0xEB),
- LOMD, 1,
- CBDE, 1,
- Offset (0xED),
- SPL0, 1,
- SPL1, 1,
- SPL2, 1,
- SPL3, 1,
- ADT0, 1,
- Offset (0xF5),
- , 7,
- ODD0, 1,
- , 3,
- ODD1, 2,
- Offset (0xFA),
- STCC, 16,
- SPCC, 16
- }
- Field (ERAM, ByteAcc, Lock, Preserve)
- {
- Offset (0x48),
- GSTA, 8
- }
- Name (BATO, Zero)
- Name (BATN, Zero)
- Name (BATF, 0xC0)
- Method (_REG, 2, NotSerialized)
- {
- If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
- {
- Store (One, ECON)
- UPBR ()
- Store (One, BLIS)
- DSLD ()
- DSGO ()
- If (LOr (_OSI ("Windows 2006"), _OSI ("Windows 2009"))) {}
- Else
- {
- }
- Store (0x0A, POD1)
- }
- }
- Method (_Q20, 0, NotSerialized)
- {
- If (And (SMST, 0x40))
- {
- Store (SMAA, Local0)
- If (LEqual (Local0, 0x14))
- {
- SELE ()
- If (And (0x40, BATF))
- {
- Notify (BAT1, 0x81)
- }
- If (And (0x02, BATF))
- {
- Notify (ACAD, Zero)
- PNOT ()
- }
- Notify (BAT1, 0x80)
- Store (BATD, BATO)
- And (SMST, 0xBF, SMST)
- }
- }
- }
- Method (SELE, 0, NotSerialized)
- {
- Store (BATD, BATN)
- Store (Zero, BATF)
- If (And (0xC0, BATN))
- {
- Or (BATF, One, BATF)
- }
- If (And (0x0300, BATN))
- {
- Or (BATF, 0x04, BATF)
- }
- And (BATN, One, Local0)
- And (BATO, One, Local1)
- If (Local0)
- {
- Or (BATF, 0x0100, BATF)
- }
- Else
- {
- And (BATF, 0xFEFF, BATF)
- }
- If (Not (LEqual (Local0, Local1)))
- {
- Or (BATF, 0x40, BATF)
- }
- And (BATN, 0xC0, Local0)
- And (BATO, 0xC0, Local1)
- If (Not (LEqual (Local0, Local1)))
- {
- Or (BATF, 0x02, BATF)
- }
- If (And (One, BATF))
- {
- If (And (0x04, BATF))
- {
- If (And (BATN, 0x10))
- {
- Or (BATF, 0x10, BATF)
- }
- }
- }
- }
- Method (_Q80, 0, NotSerialized)
- {
- Store ("_Q80 : Temperature Up", Debug)
- Notify (\_TZ.TZ01, 0x80)
- }
- Method (_Q81, 0, NotSerialized)
- {
- Store ("_Q81 : Temperature Down", Debug)
- Notify (\_TZ.TZ01, 0x80)
- }
- Method (DSGO, 0, NotSerialized)
- {
- If (CCDE)
- {
- Store (CCDS, GO24)
- }
- If (GSWS)
- {
- If (LAnd (WLSE, WLEN))
- {
- Store (WRFS, GO26)
- }
- Else
- {
- Store (Zero, GO26)
- }
- If (BTDE)
- {
- Store (BTSS, GO36)
- }
- If (WWAE)
- {
- Store (G3RS, GO22)
- }
- }
- Else
- {
- Store (Zero, GO26)
- Store (Zero, GO36)
- Store (Zero, GO22)
- }
- }
- Method (DSSV, 0, NotSerialized)
- {
- Store (WRFS, FL07)
- Store (BTSS, FL10)
- Store (CCDS, FL06)
- Store (G3RS, FL17)
- }
- Method (DSLD, 0, NotSerialized)
- {
- Store (FL07, WRFS)
- Store (FL10, BTSS)
- Store (FL06, CCDS)
- Store (FL17, G3RS)
- }
- Method (_Q8F, 0, NotSerialized)
- {
- Store ("_Q8F : Hot Key Event", Debug)
- Store (0x8F, P80H)
- DSGO ()
- DSSV ()
- Store ("_Q8F : Hot Key Event Finished", Debug)
- }
- Method (_Q90, 0, NotSerialized)
- {
- Store (0x90, P80H)
- If (LOr (_OSI ("Windows 2006"), _OSI ("Windows 2009")))
- {
- ^^^GFX0.BRTN (0x86)
- }
- Else
- {
- Store (BLGT (), Local0)
- If (LLess (Local0, 0x0A))
- {
- Increment (Local0)
- BLST (Local0)
- }
- }
- Store (One, VBRI)
- Notify (VPC0, 0x80)
- }
- Method (_Q91, 0, NotSerialized)
- {
- Store (0x91, P80H)
- If (LOr (_OSI ("Windows 2006"), _OSI ("Windows 2009")))
- {
- ^^^GFX0.BRTN (0x87)
- }
- Else
- {
- Store (BLGT (), Local0)
- If (LGreater (Local0, Zero))
- {
- Decrement (Local0)
- BLST (Local0)
- }
- }
- Store (One, VBRI)
- Notify (VPC0, 0x80)
- }
- Method (_Q26, 0, NotSerialized)
- {
- Store (0x26, P80H)
- }
- Method (_Q27, 0, NotSerialized)
- {
- Store (0x27, P80H)
- }
- Method (_Q92, 0, NotSerialized)
- {
- Store ("_Q92 : Switch Display Event", Debug)
- Store (0x92, P80H)
- If (LOr (_OSI ("Windows 2006"), _OSI ("Windows 2009")))
- {
- If (LEqual (^VPC0.VPC, Zero))
- {
- ^^^GFX0.GHDS (Zero)
- }
- }
- Else
- {
- ^^^GFX0.GHDS (Zero)
- }
- Store ("_Q92 : End of Switch Display Event", Debug)
- }
- Method (_Q94, 0, NotSerialized)
- {
- Store (0x94, P80H)
- BLSW (BLIS)
- }
- Method (_QE0, 0, NotSerialized)
- {
- Store ("_QE0 : LID Switch Event", Debug)
- Store (0xE0, P80H)
- Store (LDS0, Local0)
- XOr (Local0, One, Local0)
- Store (Local0, LIDS)
- Store (Local0, BLIS)
- BLSW (Local0)
- Notify (LID, 0x80)
- Store ("_QE0 : End of LID Switch Event", Debug)
- }
- Method (_QE2, 0, NotSerialized)
- {
- Store (0xE2, P80H)
- Notify (SLPB, 0x80)
- }
- Method (_QEF, 0, NotSerialized)
- {
- Store (0xEF, P80H)
- ^^^^WMI2.CMD2 (0x2D, One, One)
- }
- Method (_QF1, 0, NotSerialized)
- {
- Store (0xF1, P80H)
- ^^^^WMI2.CMD2 (0x2C, One, One)
- }
- Method (_Q95, 0, NotSerialized)
- {
- Store (0x95, P80H)
- ^^^^WMI2.CMD3 (0x86)
- }
- Method (_Q98, 0, NotSerialized)
- {
- Store (0x98, P80H)
- ^^^^WMI2.CMD3 (0x90)
- }
- Field (ERAM, ByteAcc, NoLock, Preserve)
- {
- Offset (0x1C),
- SMW0, 16
- }
- Field (ERAM, ByteAcc, NoLock, Preserve)
- {
- Offset (0x1C),
- SMB0, 8
- }
- Field (ERAM, ByteAcc, NoLock, Preserve)
- {
- Offset (0x1C),
- FLD0, 64
- }
- Field (ERAM, ByteAcc, NoLock, Preserve)
- {
- Offset (0x1C),
- FLD1, 128
- }
- Field (ERAM, ByteAcc, NoLock, Preserve)
- {
- Offset (0x1C),
- FLD2, 192
- }
- Field (ERAM, ByteAcc, NoLock, Preserve)
- {
- Offset (0x1C),
- FLD3, 256
- }
- Mutex (MUT0, 0x00)
- Method (SMRD, 4, NotSerialized)
- {
- If (LNot (ECON))
- {
- Return (0xFF)
- }
- If (LNotEqual (Arg0, 0x07))
- {
- If (LNotEqual (Arg0, 0x09))
- {
- If (LNotEqual (Arg0, 0x0B))
- {
- Return (0x19)
- }
- }
- }
- Acquire (MUT0, 0xFFFF)
- Store (0x04, Local0)
- While (LGreater (Local0, One))
- {
- And (SMST, 0x40, SMST)
- Store (Arg2, SMCM)
- Store (Arg1, SMAD)
- Store (Arg0, SMPR)
- Store (Zero, Local3)
- While (LNot (And (SMST, 0xBF, Local1)))
- {
- Sleep (0x02)
- Increment (Local3)
- If (LEqual (Local3, 0x32))
- {
- And (SMST, 0x40, SMST)
- Store (Arg2, SMCM)
- Store (Arg1, SMAD)
- Store (Arg0, SMPR)
- Store (Zero, Local3)
- }
- }
- If (LEqual (Local1, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Decrement (Local0)
- }
- }
- If (Local0)
- {
- Store (And (Local1, 0x1F), Local0)
- }
- Else
- {
- If (LEqual (Arg0, 0x07))
- {
- Store (SMB0, Arg3)
- }
- If (LEqual (Arg0, 0x09))
- {
- Store (SMW0, Arg3)
- }
- If (LEqual (Arg0, 0x0B))
- {
- Store (BCNT, Local3)
- ShiftRight (0x0100, 0x03, Local2)
- If (LGreater (Local3, Local2))
- {
- Store (Local2, Local3)
- }
- If (LLess (Local3, 0x11))
- {
- Store (FLD1, Local2)
- }
- Else
- {
- If (LLess (Local3, 0x19))
- {
- Store (FLD2, Local2)
- }
- Else
- {
- Store (FLD3, Local2)
- }
- }
- Increment (Local3)
- Store (Buffer (Local3) {}, Local4)
- Decrement (Local3)
- Store (Zero, Local5)
- While (LGreater (Local3, Local5))
- {
- GBFE (Local2, Local5, RefOf (Local6))
- PBFE (Local4, Local5, Local6)
- Increment (Local5)
- }
- PBFE (Local4, Local5, Zero)
- Store (Local4, Arg3)
- }
- }
- Release (MUT0)
- Return (Local0)
- }
- Method (SMWR, 4, NotSerialized)
- {
- If (LNot (ECON))
- {
- Return (0xFF)
- }
- If (LNotEqual (Arg0, 0x06))
- {
- If (LNotEqual (Arg0, 0x08))
- {
- If (LNotEqual (Arg0, 0x0A))
- {
- Return (0x19)
- }
- }
- }
- Acquire (MUT0, 0xFFFF)
- Store (0x04, Local0)
- While (LGreater (Local0, One))
- {
- If (LEqual (Arg0, 0x06))
- {
- Store (Arg3, SMB0)
- }
- If (LEqual (Arg0, 0x08))
- {
- Store (Arg3, SMW0)
- }
- If (LEqual (Arg0, 0x0A))
- {
- Store (Arg3, SMD0)
- }
- And (SMST, 0x40, SMST)
- Store (Arg2, SMCM)
- Store (Arg1, SMAD)
- Store (Arg0, SMPR)
- Store (Zero, Local3)
- While (LNot (And (SMST, 0xBF, Local1)))
- {
- Sleep (0x02)
- Increment (Local3)
- If (LEqual (Local3, 0x32))
- {
- And (SMST, 0x40, SMST)
- Store (Arg2, SMCM)
- Store (Arg1, SMAD)
- Store (Arg0, SMPR)
- Store (Zero, Local3)
- }
- }
- If (LEqual (Local1, 0x80))
- {
- Store (Zero, Local0)
- }
- Else
- {
- Decrement (Local0)
- }
- }
- If (Local0)
- {
- Store (And (Local1, 0x1F), Local0)
- }
- Release (MUT0)
- Return (Local0)
- }
- }
- }
- Scope (_SB.PCI0)
- {
- Name (EBRL, 0x64)
- Name (PNLS, Buffer (0x0B)
- {
- /* 0000 */ 0x04, 0x1D, 0x36, 0x4F, 0x68, 0x81, 0x9A, 0xB3,
- /* 0008 */ 0xCC, 0xE5, 0xFF
- })
- Name (PLT1, Buffer (0x16)
- {
- /* 0000 */ 0x04, 0x1D, 0x36, 0x4F, 0x68, 0x81, 0x9A, 0xB3,
- /* 0008 */ 0xCC, 0xE5, 0xFF, 0x03, 0x1F, 0x3B, 0x54, 0x6C,
- /* 0010 */ 0x85, 0x9D, 0xB6, 0xCE, 0xE7, 0xFF
- })
- Name (IBCL, Package (0x0D)
- {
- 0x64,
- 0x23,
- 0x05,
- 0x0F,
- 0x19,
- 0x23,
- 0x2D,
- 0x37,
- 0x41,
- 0x4B,
- 0x55,
- 0x5F,
- 0x64
- })
- Method (IBCM, 1, NotSerialized)
- {
- If (LOr (_OSI ("Windows 2006"), _OSI ("Windows 2009")))
- {
- Store (Arg0, EBRL)
- Store (Zero, Local0)
- While (LLess (Local0, 0x0A))
- {
- If (LLessEqual (EBRL, DerefOf (Index (IBCL, Add (Local0, 0x02
- )))))
- {
- Break
- }
- Increment (Local0)
- }
- BLST (Local0)
- }
- }
- Method (UPBR, 0, NotSerialized)
- {
- Store (PLID, Local0)
- Multiply (Local0, 0x0B, Local1)
- If (LGreaterEqual (Local1, SizeOf (PLT1)))
- {
- Store (Zero, Local1)
- }
- Store (DerefOf (Index (PLT1, Add (Local1, Zero))), Index (
- PNLS, Zero))
- Store (DerefOf (Index (PLT1, Add (Local1, One))), Index (
- PNLS, One))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x02))), Index (
- PNLS, 0x02))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x03))), Index (
- PNLS, 0x03))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x04))), Index (
- PNLS, 0x04))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x05))), Index (
- PNLS, 0x05))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x06))), Index (
- PNLS, 0x06))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x07))), Index (
- PNLS, 0x07))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x08))), Index (
- PNLS, 0x08))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x09))), Index (
- PNLS, 0x09))
- Store (DerefOf (Index (PLT1, Add (Local1, 0x0A))), Index (
- PNLS, 0x0A))
- }
- Name (BLLV, 0x0A)
- Name (BLEN, One)
- Method (BLST, 1, Serialized)
- {
- Store (Arg0, BLLV)
- UPBL ()
- Store (BLLV, BRNS)
- Store (BLLV, ^LPCB.EC0.BLVL)
- }
- Method (BLGT, 0, NotSerialized)
- {
- Return (BLLV)
- }
- Method (BLSW, 1, Serialized)
- {
- If (Arg0)
- {
- Store (One, Local0)
- }
- Else
- {
- Store (Zero, Local0)
- }
- Store (Local0, BLEN)
- UPBL ()
- }
- Method (WPWM, 1, NotSerialized)
- {
- Store (Arg0, Local0)
- If (QSEN)
- {
- Store (Local0, ^GFX0.LBB)
- }
- Else
- {
- ^GFX0.AINT (One, Local0)
- }
- }
- Method (UPBL, 0, NotSerialized)
- {
- If (LGreater (BLLV, 0x0A))
- {
- Store (0x0A, BLLV)
- }
- If (BLEN)
- {
- WPWM (DerefOf (Index (PNLS, BLLV)))
- }
- Else
- {
- WPWM (Zero)
- }
- }
- }
- Scope (_SB)
- {
- Device (LID)
- {
- Name (_HID, EisaId ("PNP0C0D"))
- Method (_LID, 0, NotSerialized)
- {
- If (ECON)
- {
- If (^^PCI0.LPCB.EC0.LDS0)
- {
- Store (Zero, LIDS)
- Return (Zero)
- }
- Else
- {
- Store (One, LIDS)
- Return (One)
- }
- }
- Else
- {
- Store (One, LIDS)
- Return (One)
- }
- }
- }
- }
- Scope (_SB.PCI0.LPCB.EC0)
- {
- Field (ERAM, ByteAcc, Lock, Preserve)
- {
- Offset (0xF2),
- VCMD, 8,
- VDAT, 8,
- VSTA, 8
- }
- Field (ERAM, ByteAcc, Lock, Preserve)
- {
- Offset (0xF4),
- VOKY, 1,
- VGEN, 1,
- VINV, 1,
- VNOV, 1,
- VBRI, 1,
- VTPD, 1,
- VDSP, 1,
- VCAM, 1,
- VODE, 1,
- VARF, 1,
- VUSD, 1,
- VDSR, 1,
- VSEQ, 1,
- VPRF, 1,
- VGCP, 1,
- VODD, 1
- }
- Device (VPC0)
- {
- Name (_HID, "VPC2004")
- Name (_UID, Zero)
- Name (VPC, Zero)
- Method (_STA, 0, NotSerialized)
- {
- Return (0x0F)
- }
- }
- Method (_Q41, 0, NotSerialized)
- {
- Store (0x41, P80H)
- Notify (VPC0, 0x80)
- }
- Name (VQ00, Zero)
- Method (_Q42, 0, NotSerialized)
- {
- Store (0x42, P80H)
- Store (BLVL, VQ00)
- If (LNotEqual (BRNS, VQ00))
- {
- If (LOr (_OSI ("Windows 2006"), _OSI ("Windows 2009"))) {}
- Else
- {
- If (LEqual (VQ00, Zero))
- {
- BLST (VQ00)
- Increment (VQ00)
- Store (VQ00, BRNS)
- }
- Else
- {
- BLST (VQ00)
- Decrement (VQ00)
- Store (VQ00, BRNS)
- }
- }
- _Q41 ()
- }
- }
- }
- Scope (_SB)
- {
- Method (POSW, 1, NotSerialized)
- {
- If (And (Arg0, 0x8000))
- {
- If (LEqual (Arg0, 0xFFFF))
- {
- Return (Ones)
- }
- Else
- {
- Not (Arg0, Local0)
- Increment (Local0)
- And (Local0, 0xFFFF, Local0)
- Return (Local0)
- }
- }
- Else
- {
- Return (Arg0)
- }
- }
- Method (GBFE, 3, NotSerialized)
- {
- CreateByteField (Arg0, Arg1, TIDX)
- Store (TIDX, Arg2)
- }
- Method (PBFE, 3, NotSerialized)
- {
- CreateByteField (Arg0, Arg1, TIDX)
- Store (Arg2, TIDX)
- }
- Device (BAT1)
- {
- Name (_HID, EisaId ("PNP0C0A"))
- Name (_UID, One)
- Name (_PCL, Package (0x01)
- {
- _SB
- })
- Name (PBIF, Package (0x0D)
- {
- One,
- Ones,
- Ones,
- One,
- Ones,
- 0xFA,
- 0x64,
- 0x0A,
- 0x19,
- "BAT1",
- " ",
- " ",
- " "
- })
- Name (PBST, Package (0x04)
- {
- Zero,
- Ones,
- Ones,
- 0x2710
- })
- Name (B1ST, 0x0F)
- Method (_STA, 0, NotSerialized)
- {
- If (ECON)
- {
- If (^^PCI0.LPCB.EC0.MBTS)
- {
- Store (0x1F, B1ST)
- }
- Else
- {
- Store (0x0F, B1ST)
- }
- }
- Else
- {
- Store (0x0F, B1ST)
- }
- Return (B1ST)
- }
- Method (_BIF, 0, NotSerialized)
- {
- If (ECON)
- {
- If (^^PCI0.LPCB.EC0.MBTS)
- {
- UPBI ()
- }
- Else
- {
- IVBI ()
- }
- }
- Else
- {
- IVBI ()
- }
- Return (PBIF)
- }
- Method (_BST, 0, NotSerialized)
- {
- If (ECON)
- {
- If (^^PCI0.LPCB.EC0.MBTS)
- {
- UPBS ()
- }
- Else
- {
- IVBS ()
- }
- }
- Else
- {
- IVBS ()
- }
- Return (PBST)
- }
- Method (UPBI, 0, NotSerialized)
- {
- Store (^^PCI0.LPCB.EC0.B1FC, Index (PBIF, 0x02))
- Store (0x1FFF, Local2)
- ^^PCI0.LPCB.EC0.SMWR (0x08, 0x14, One, Local2)
- ^^PCI0.LPCB.EC0.SMRD (0x09, 0x14, One, RefOf (Local3))
- ^^PCI0.LPCB.EC0.SMRD (0x09, 0x16, 0x18, RefOf (Local1))
- Store (0x07, P80H)
- Store (Local1, Index (PBIF, One))
- Store (Divide (Local1, 0x0A, ), Index (PBIF, 0x05))
- Store (Divide (Multiply (Local1, 0x03), 0x64, ), Index (
- PBIF, 0x06))
- If (LNot (^^PCI0.LPCB.EC0.SMRD (0x09, 0x16, 0x19, RefOf (Local1))))
- {
- Store (Local1, Index (PBIF, 0x04))
- }
- If (LNot (^^PCI0.LPCB.EC0.SMRD (0x0B, 0x16, 0x21, RefOf (Local6))))
- {
- Store (Local6, Index (PBIF, 0x09))
- }
- If (LNot (^^PCI0.LPCB.EC0.SMRD (0x0B, 0x16, 0x20, RefOf (Local6))))
- {
- Store (Local6, Index (PBIF, 0x0C))
- }
- Store ("LION", Index (PBIF, 0x0B))
- Store (One, Index (PBIF, Zero))
- }
- Method (UPBS, 0, NotSerialized)
- {
- Store (^^PCI0.LPCB.EC0.MCUR, Local5)
- Store (POSW (Local5), Index (PBST, One))
- Store (^^PCI0.LPCB.EC0.MBRM, Index (PBST, 0x02))
- Store (^^PCI0.LPCB.EC0.MBVG, Index (PBST, 0x03))
- If (LNotEqual (Local5, Zero))
- {
- Store (0xB1, P80H)
- If (^^PCI0.LPCB.EC0.MBTC)
- {
- Store (0x02, Index (PBST, Zero))
- }
- Else
- {
- Store (One, Index (PBST, Zero))
- }
- }
- Else
- {
- Store (Zero, Index (PBST, Zero))
- }
- }
- Method (IVBI, 0, NotSerialized)
- {
- Store (Ones, Index (PBIF, One))
- Store (Ones, Index (PBIF, 0x02))
- Store (Ones, Index (PBIF, 0x04))
- Store ("Bad", Index (PBIF, 0x09))
- Store (" ", Index (PBIF, 0x0A))
- Store ("Bad", Index (PBIF, 0x0B))
- Store ("Bad", Index (PBIF, 0x0C))
- }
- Method (IVBS, 0, NotSerialized)
- {
- Store (Zero, Index (PBST, Zero))
- Store (Ones, Index (PBST, One))
- Store (Ones, Index (PBST, 0x02))
- Store (0x2710, Index (PBST, 0x03))
- }
- }
- }
- Scope (_SB)
- {
- Device (ACAD)
- {
- Name (_HID, "ACPI0003")
- Name (_PCL, Package (0x01)
- {
- _SB
- })
- Mutex (MUTA, 0x00)
- Name (ACWT, Zero)
- Method (_PSR, 0, NotSerialized)
- {
- Acquire (MUTA, 0xFFFF)
- Store (ACST, ACWT)
- If (ECON)
- {
- Store (^^PCI0.LPCB.EC0.SW2S, ACST)
- Store (^^PCI0.LPCB.EC0.SW2S, PWRS)
- }
- If (LNotEqual (ACWT, ACST))
- {
- PNOT ()
- }
- Release (MUTA)
- Return (ACST)
- }
- }
- }
- Scope (_SB)
- {
- OperationRegion (EXCO, SystemIO, 0x72, 0x02)
- Field (EXCO, ByteAcc, NoLock, Preserve)
- {
- INDX, 8,
- DATA, 8
- }
- IndexField (INDX, DATA, ByteAcc, NoLock, Preserve)
- {
- Offset (0x80),
- , 1,
- , 1,
- , 2,
- BRNS, 4,
- Offset (0xA0),
- , 3,
- , 1,
- , 1,
- ACST, 1,
- FL06, 1,
- FL07, 1,
- FL10, 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- , 1,
- FL17, 1,
- , 2,
- , 2,
- , 2,
- Offset (0xA3),
- FL30, 2,
- QSEN, 1,
- Offset (0xA4),
- Offset (0xA5),
- Offset (0xA6),
- Offset (0xA7),
- Offset (0xA8),
- Offset (0xA9),
- Offset (0xAB),
- Offset (0xAC),
- Offset (0xAD),
- Offset (0xB1),
- Offset (0xD5),
- PLID, 8,
- Offset (0xEE),
- INS4, 1,
- Offset (0xEF),
- S4CT, 8,
- Offset (0xF2),
- , 2,
- , 1,
- Offset (0xF5),
- , 4,
- , 1,
- Offset (0xFC),
- , 1,
- , 1,
- , 1,
- Offset (0xFE),
- , 1,
- , 1,
- WLEN, 1,
- , 1,
- Offset (0xFF),
- Offset (0x100)
- }
- }
- Scope (_SB)
- {
- Device (PWRB)
- {
- Name (_HID, EisaId ("PNP0C0C"))
- }
- Device (SLPB)
- {
- Name (_HID, EisaId ("PNP0C0E"))
- }
- }
- Scope (_SB)
- {
- Device (WMI2)
- {
- Name (_HID, "PNP0C14")
- Name (_UID, Zero)
- Name (CMBF, Buffer (0x03)
- {
- 0x00, 0x00, 0x00
- })
- Name (BUF1, Buffer (0x40)
- {
- /* 0000 */ 0x01, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0xFF, 0xFF,
- /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0010 */ 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF,
- /* 0018 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0020 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0028 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0030 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0038 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
- })
- Name (BUF2, Buffer (0x40)
- {
- /* 0000 */ 0x02, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0008 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0018 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0020 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0028 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0030 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
- /* 0038 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
- })
- CreateByteField (CMBF, Zero, EVID)
- CreateByteField (CMBF, One, ACID)
- CreateByteField (CMBF, 0x02, DA01)
- CreateByteField (BUF1, One, EID1)
- CreateByteField (BUF1, 0x02, ERQ0)
- CreateByteField (BUF1, 0x04, SKEY)
- CreateByteField (BUF1, 0x17, TBMD)
- CreateByteField (BUF1, 0x18, RTAG)
- CreateBitField (BUF1, 0x10, AP00)
- CreateBitField (BUF1, 0x11, AP01)
- CreateBitField (BUF1, 0x12, AP02)
- CreateBitField (BUF1, 0x13, AP03)
- CreateBitField (BUF1, 0x14, AP04)
- CreateBitField (BUF1, 0x15, AP05)
- CreateBitField (BUF1, 0x16, AP06)
- CreateBitField (BUF1, 0x17, AP07)
- CreateByteField (BUF2, One, EID2)
- CreateByteField (BUF2, 0x08, BIV0)
- CreateByteField (BUF2, 0x09, BIV1)
- CreateByteField (BUF2, 0x0A, BIV2)
- CreateByteField (BUF2, 0x0B, BIV3)
- CreateByteField (BUF2, 0x0C, BIV4)
- CreateByteField (BUF2, 0x0D, BIV5)
- CreateByteField (BUF2, 0x0E, BIV6)
- CreateByteField (BUF2, 0x0F, BIV7)
- CreateByteField (BUF2, 0x10, WMIV)
- CreateByteField (BUF2, 0x18, BRMX)
- Method (_INI, 0, NotSerialized)
- {
- Store (F0DA, BIV0)
- Store (F0DB, BIV1)
- Store (F0DC, BIV2)
- Store (F0DD, BIV3)
- Store (F0DE, BIV4)
- Store (F0DF, BIV5)
- Store (F0E0, BIV6)
- Store (F0E1, BIV7)
- Store (0x12, WMIV)
- Store (0x0A, BRMX)
- }
- Name (_WDG, Buffer (0x3C)
- {
- /* 0000 */ 0x20, 0x0F, 0xBC, 0xAB, 0xA1, 0x8E, 0xD1, 0x11,
- /* 0008 */ 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10, 0x00, 0x00,
- /* 0010 */ 0x80, 0x00, 0x01, 0x08, 0x40, 0x0F, 0xBC, 0xAB,
- /* 0018 */ 0xA1, 0x8E, 0xD1, 0x11, 0x00, 0xA0, 0xC9, 0x06,
- /* 0020 */ 0x29, 0x10, 0x00, 0x00, 0x49, 0x4F, 0x01, 0x01,
- /* 0028 */ 0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11,
- /* 0030 */ 0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10,
- /* 0038 */ 0x41, 0x45, 0x01, 0x00
- })
- Method (_WED, 1, NotSerialized)
- {
- Return (UWED (EVID, ACID, DA01))
- }
- Method (CMD2, 3, NotSerialized)
- {
- CMD0 (Arg0, Arg1, Arg2, Zero, Zero)
- }
- Method (CMD3, 1, NotSerialized)
- {
- CMD0 (0x19, One, One, One, Arg0)
- }
- Mutex (MCD0, 0x00)
- Method (CMD0, 5, Serialized)
- {
- If (LAnd (ERQ0, LEqual (Arg2, One)))
- {
- Store (Arg0, EVID)
- Store (Arg1, ACID)
- Store (Arg4, DA01)
- Notify (WMI2, 0x80)
- }
- Else
- {
- Acquire (MCD0, 0xFFFF)
- UWED (Arg0, Arg1, Arg4)
- Release (MCD0)
- }
- }
- Method (UWED, 3, NotSerialized)
- {
- While (One)
- {
- Name (T_0, Zero)
- Store (Arg0, T_0)
- If (LEqual (T_0, One))
- {
- Store (Arg0, EID1)
- Store (^^PCI0.LPCB.EC0.GSTA, RTAG)
- Store (^^PCI0.LPCB.EC0.TBMD, TBMD)
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x02))
- {
- Store (Arg0, EID2)
- Return (BUF2)
- }
- Else
- {
- If (LEqual (T_0, 0x08))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP00)
- }
- Else
- {
- Store (Zero, AP00)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x09))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP01)
- }
- Else
- {
- Store (Zero, AP01)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x0A))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP02)
- }
- Else
- {
- Store (Zero, AP02)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x0B))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP03)
- }
- Else
- {
- Store (Zero, AP03)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x0C))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP04)
- }
- Else
- {
- Store (Zero, AP04)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x0D))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP05)
- Store (One, ^^PCI0.LPCB.EC0.APLN)
- }
- Else
- {
- Store (Zero, AP05)
- Store (Zero, ^^PCI0.LPCB.EC0.APLN)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x0E))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP06)
- }
- Else
- {
- Store (Zero, AP06)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x0F))
- {
- Store (Arg0, EID1)
- If (Arg2)
- {
- Store (One, AP07)
- }
- Else
- {
- Store (Zero, AP07)
- }
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x19))
- {
- Store (Arg0, EID1)
- Store (Arg2, SKEY)
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x2C))
- {
- Store (Arg0, EID1)
- Store (^^PCI0.LPCB.EC0.TBMD, TBMD)
- Return (BUF1)
- }
- Else
- {
- If (LEqual (T_0, 0x2D))
- {
- Store (Arg0, EID1)
- While (One)
- {
- Name (T_1, Zero)
- Store (Arg1, T_1)
- If (LEqual (T_1, One))
- {
- Store (^^PCI0.LPCB.EC0.GSTA, RTAG)
- }
- Else
- {
- If (LEqual (T_1, 0x03)) {}
- }
- Break
- }
- Return (BUF1)
- }
- Else
- {
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- Break
- }
- Return (Zero)
- }
- }
- }
- Scope (_SB)
- {
- }
- Method (PNOT, 0, Serialized)
- {
- If (MPEN)
- {
- If (And (PDC0, 0x08))
- {
- Notify (\_PR.CPU0, 0x80)
- If (And (PDC0, 0x10))
- {
- Sleep (0x64)
- Notify (\_PR.CPU0, 0x81)
- }
- }
- If (And (PDC1, 0x08))
- {
- 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)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement