Created
January 10, 2016 12:02
-
-
Save anonymous/3bf6cd4990988dc67352 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Intel ACPI Component Architecture | |
* AML Disassembler version 20100331 | |
* | |
* Disassembly of iASLKpAjKi.aml, Sun Jan 10 21:01:45 2016 | |
* | |
* | |
* Original Table Header: | |
* Signature "DSDT" | |
* Length 0x0001022B (66091) | |
* Revision 0x01 **** ACPI 1.0, no 64-bit math support | |
* Checksum 0x6E | |
* OEM ID "_ASUS_" | |
* OEM Table ID "Notebook" | |
* OEM Revision 0x00000000 (0) | |
* Compiler ID "INTL" | |
* Compiler Version 0x20100331 (537920305) | |
*/ | |
DefinitionBlock ("iASLKpAjKi.aml", "DSDT", 1, "_ASUS_", "Notebook", 0x00000000) | |
{ | |
External (PDC7) | |
External (PDC6) | |
External (PDC5) | |
External (PDC4) | |
External (PDC3) | |
External (PDC2) | |
External (PDC1) | |
External (PDC0) | |
External (HNOT, MethodObj) // 1 Arguments | |
Name (SS1, One) | |
Name (SS2, Zero) | |
Name (SS3, One) | |
Name (SS4, One) | |
Name (IOST, 0x4400) | |
Name (TOPM, 0xBFFFFFFF) | |
Name (ROMS, 0xFFE00000) | |
Name (MG1B, Zero) | |
Name (MG1L, Zero) | |
Name (MG2B, 0xC0000000) | |
Name (MG2L, 0x2450C000) | |
Name (MCHB, 0xFED10000) | |
Name (MCHL, 0x4000) | |
Name (EGPB, 0xFED19000) | |
Name (EGPL, 0x1000) | |
Name (DMIB, 0xFED18000) | |
Name (DMIL, 0x1000) | |
Name (IFPB, 0xFED14000) | |
Name (IFPL, 0x1000) | |
Name (PEBS, 0xE0000000) | |
Name (PELN, 0x04000000) | |
Name (TTTB, 0xFED20000) | |
Name (TTTL, 0x00020000) | |
Name (SMBS, 0xEFA0) | |
Name (SMBL, 0x10) | |
Name (PBLK, 0x0410) | |
Name (PMBS, 0x0400) | |
Name (PMLN, 0x80) | |
Name (LVL2, 0x0414) | |
Name (LVL3, 0x0415) | |
Name (LVL4, 0x0416) | |
Name (SMIP, 0xB2) | |
Name (GPBS, 0x0500) | |
Name (GPLN, 0x80) | |
Name (APCB, 0xFEC00000) | |
Name (APCL, 0x1000) | |
Name (PM30, 0x0430) | |
Name (SRCB, 0xFED1C000) | |
Name (SRCL, 0x4000) | |
Name (SUSW, 0xFF) | |
Name (HPTB, 0xFED00000) | |
Name (HPTC, 0xFED1F404) | |
Name (ACPH, 0xDE) | |
Name (ASSB, Zero) | |
Name (AOTB, Zero) | |
Name (AAXB, Zero) | |
Name (PEHP, Zero) | |
Name (SHPC, One) | |
Name (PEPM, Zero) | |
Name (PEER, Zero) | |
Name (PECS, Zero) | |
Name (ITKE, Zero) | |
Name (DSSP, Zero) | |
Name (FHPP, One) | |
Name (FMBL, One) | |
Name (FDTP, 0x02) | |
Name (FUPS, 0x03) | |
Name (BSH, Zero) | |
Name (BEL, One) | |
Name (BEH, 0x02) | |
Name (BRH, 0x03) | |
Name (BTF, 0x04) | |
Name (BHC, 0x05) | |
Name (BYB, 0x06) | |
Name (BPH, 0x07) | |
Name (BSHS, 0x08) | |
Name (BELS, 0x09) | |
Name (BRHS, 0x0A) | |
Name (BTFS, 0x0B) | |
Name (BEHS, 0x0C) | |
Name (BPHS, 0x0D) | |
Name (BTL, 0x10) | |
Name (BSR, 0x14) | |
Name (BSC, 0x1B) | |
Name (BCC, 0x1C) | |
Name (BOF, 0x20) | |
Name (BEF, 0x21) | |
Name (BLLE, 0x22) | |
Name (BLLC, 0x23) | |
Name (BLCA, 0x24) | |
Name (BLLS, 0x25) | |
Name (BLLP, 0x26) | |
Name (BLLD, 0x27) | |
Name (BHBE, 0x30) | |
Name (BHBC, 0x31) | |
Name (BHBN, 0x32) | |
Name (BHBM, 0x33) | |
Name (TRTP, One) | |
Name (WDTE, One) | |
Name (TRTD, 0x02) | |
Name (TRTI, 0x03) | |
Name (GCDD, One) | |
Name (DSTA, 0x0A) | |
Name (DSLO, 0x0C) | |
Name (DSLC, 0x0E) | |
Name (PITS, 0x10) | |
Name (SBCS, 0x12) | |
Name (SALS, 0x13) | |
Name (LSSS, 0x2A) | |
Name (SOOT, 0x35) | |
Name (PDBR, 0x4D) | |
Name (MBEC, Zero) | |
Name (MBLF, 0x0A) | |
OperationRegion (GNVS, SystemMemory, 0xB2F9BE18, 0x01A8) | |
Field (GNVS, AnyAcc, Lock, Preserve) | |
{ | |
OSYS, 16, | |
SMIF, 8, | |
PRM0, 8, | |
PRM1, 8, | |
SCIF, 8, | |
PRM2, 8, | |
PRM3, 8, | |
LCKF, 8, | |
PRM4, 8, | |
PRM5, 8, | |
P80D, 32, | |
LIDS, 8, | |
PWRS, 8, | |
DBGS, 8, | |
THOF, 8, | |
ACT1, 8, | |
ACTT, 8, | |
PSVT, 8, | |
TC1V, 8, | |
TC2V, 8, | |
TSPV, 8, | |
CRTT, 8, | |
DTSE, 8, | |
DTS1, 8, | |
DTS2, 8, | |
DTSF, 8, | |
Offset (0x25), | |
REVN, 8, | |
Offset (0x28), | |
APIC, 8, | |
TCNT, 8, | |
PCP0, 8, | |
PCP1, 8, | |
PPCM, 8, | |
PPMF, 32, | |
C67L, 8, | |
NATP, 8, | |
CMAP, 8, | |
CMBP, 8, | |
LPTP, 8, | |
FDCP, 8, | |
CMCP, 8, | |
CIRP, 8, | |
SMSC, 8, | |
W381, 8, | |
SMC1, 8, | |
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, | |
KSV0, 32, | |
KSV1, 8, | |
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, | |
DSTS, 8, | |
Offset (0x78), | |
TPMP, 8, | |
TPME, 8, | |
MORD, 8, | |
TCGP, 8, | |
PPRP, 32, | |
PPRQ, 8, | |
LPPR, 8, | |
GTF0, 56, | |
GTF2, 56, | |
IDEM, 8, | |
GTF1, 56, | |
BID, 8, | |
Offset (0xAA), | |
ASLB, 32, | |
IBTT, 8, | |
IPAT, 8, | |
ITVF, 8, | |
ITVM, 8, | |
IPSC, 8, | |
IBLC, 8, | |
IBIA, 8, | |
ISSC, 8, | |
I409, 8, | |
I509, 8, | |
I609, 8, | |
I709, 8, | |
IPCF, 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, | |
SBV1, 8, | |
SBV2, 8, | |
Offset (0xEB), | |
DSEN, 8, | |
ECON, 8, | |
GPIC, 8, | |
CTYP, 8, | |
L01C, 8, | |
VFN0, 8, | |
VFN1, 8, | |
VFN2, 8, | |
VFN3, 8, | |
VFN4, 8, | |
Offset (0x100), | |
NVGA, 32, | |
NVHA, 32, | |
AMDA, 32, | |
DID6, 32, | |
DID7, 32, | |
DID8, 32, | |
EBAS, 32, | |
CPSP, 32, | |
EECP, 32, | |
EVCP, 32, | |
XBAS, 32, | |
OBS1, 32, | |
OBS2, 32, | |
OBS3, 32, | |
OBS4, 32, | |
OBS5, 32, | |
OBS6, 32, | |
OBS7, 32, | |
OBS8, 32, | |
Offset (0x157), | |
ATMC, 8, | |
PTMC, 8, | |
ATRA, 8, | |
PTRA, 8, | |
PNHM, 32, | |
TBAB, 32, | |
TBAH, 32, | |
RTIP, 8, | |
TSOD, 8, | |
ATPC, 8, | |
PTPC, 8, | |
PFLV, 8, | |
BREV, 8, | |
SGMD, 8, | |
SGFL, 8, | |
PWOK, 8, | |
HLRS, 8, | |
DSEL, 8, | |
ESEL, 8, | |
PSEL, 8, | |
PWEN, 8, | |
PRST, 8, | |
MXD1, 32, | |
MXD2, 32, | |
MXD3, 32, | |
MXD4, 32, | |
MXD5, 32, | |
MXD6, 32, | |
MXD7, 32, | |
MXD8, 32, | |
GBAS, 16, | |
Offset (0x19D), | |
ALFP, 8, | |
IMON, 8, | |
PDTS, 8, | |
PKGA, 8, | |
PAMT, 8, | |
AC0F, 8, | |
AC1F, 8, | |
DTS3, 8, | |
DTS4, 8, | |
RSV2, 8, | |
RSV3, 8 | |
} | |
Scope (_SB) | |
{ | |
Name (PR00, Package (0x24) | |
{ | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
One, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x03, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
Zero, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
One, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
0x02, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
0x03, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
One, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
0x03, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x03, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001BFFFF, | |
Zero, | |
LNKG, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0018FFFF, | |
Zero, | |
LNKE, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0019FFFF, | |
Zero, | |
LNKE, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
One, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
0x03, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
Zero, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
One, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
Zero, | |
LNKH, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
One, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
0x02, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
0x03, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
One, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
0x03, | |
LNKD, | |
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 (0x24) | |
{ | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
One, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x03, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
Zero, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
One, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
0x02, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0x0006FFFF, | |
0x03, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
One, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0004FFFF, | |
0x03, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x03, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x001BFFFF, | |
Zero, | |
Zero, | |
0x16 | |
}, | |
Package (0x04) | |
{ | |
0x0018FFFF, | |
Zero, | |
Zero, | |
0x14 | |
}, | |
Package (0x04) | |
{ | |
0x0019FFFF, | |
Zero, | |
Zero, | |
0x14 | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
One, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0016FFFF, | |
0x03, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
Zero, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
One, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
Zero, | |
Zero, | |
0x17 | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
One, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
0x02, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
0x03, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
One, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x001AFFFF, | |
0x03, | |
Zero, | |
0x13 | |
}, | |
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 (PR02, 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 (AR02, 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 (PR0A, 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 (AR0A, 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 (PR0B, 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 (AR0B, 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 (PR0C, 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 (AR0C, 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 (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 (PR08, 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 (AR08, 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 (PR09, 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 (AR09, 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 (PR0E, 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 (AR0E, 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 (PR0F, 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 (AR0F, 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 (0x14) | |
{ | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
Zero, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
One, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
0x02, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
0x03, | |
LNKG, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
Zero, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
One, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
0x02, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
0x03, | |
LNKA, | |
Zero | |
}, | |
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) | |
{ | |
0x0001FFFF, | |
Zero, | |
LNKG, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
One, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x02, | |
LNKE, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x03, | |
LNKH, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
Zero, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
One, | |
LNKE, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
0x02, | |
LNKG, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
0x03, | |
LNKF, | |
Zero | |
} | |
}) | |
Name (AR01, Package (0x14) | |
{ | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
Zero, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
One, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
0x02, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
0x03, | |
Zero, | |
0x16 | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
Zero, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
One, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
0x02, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
0x03, | |
Zero, | |
0x10 | |
}, | |
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) | |
{ | |
0x0001FFFF, | |
Zero, | |
Zero, | |
0x16 | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
One, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x02, | |
Zero, | |
0x14 | |
}, | |
Package (0x04) | |
{ | |
0x0001FFFF, | |
0x03, | |
Zero, | |
0x17 | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
Zero, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
One, | |
Zero, | |
0x14 | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
0x02, | |
Zero, | |
0x16 | |
}, | |
Package (0x04) | |
{ | |
0x0005FFFF, | |
0x03, | |
Zero, | |
0x15 | |
} | |
}) | |
Name (PRSA, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{3,4,5,6,7,10,11,12} | |
}) | |
Name (PRSB, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{3,4,5,6,7,10,12} | |
}) | |
Alias (PRSB, PRSC) | |
Alias (PRSB, PRSD) | |
Alias (PRSB, PRSE) | |
Alias (PRSB, PRSF) | |
Alias (PRSB, PRSG) | |
Alias (PRSB, PRSH) | |
Device (PCI0) | |
{ | |
Name (_HID, EisaId ("PNP0A08")) | |
Name (_CID, EisaId ("PNP0A03")) | |
Name (_ADR, Zero) | |
Method (^BN00, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
Method (_BBN, 0, NotSerialized) | |
{ | |
Return (BN00 ()) | |
} | |
Name (_UID, Zero) | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR00 ()) | |
} | |
Return (PR00 ()) | |
} | |
OperationRegion (HBUS, PCI_Config, Zero, 0x0100) | |
Field (HBUS, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x40), | |
EPEN, 1, | |
, 11, | |
EPBR, 20, | |
Offset (0x48), | |
MHEN, 1, | |
, 14, | |
MHBR, 17, | |
Offset (0x50), | |
GCLK, 1, | |
Offset (0x54), | |
D0EN, 1, | |
Offset (0x60), | |
PXEN, 1, | |
PXSZ, 2, | |
, 23, | |
PXBR, 6, | |
Offset (0x68), | |
DIEN, 1, | |
, 11, | |
DIBR, 20, | |
Offset (0x70), | |
, 20, | |
MEBR, 12, | |
Offset (0x80), | |
, 4, | |
PM0H, 2, | |
Offset (0x81), | |
PM1L, 2, | |
, 2, | |
PM1H, 2, | |
Offset (0x82), | |
PM2L, 2, | |
, 2, | |
PM2H, 2, | |
Offset (0x83), | |
PM3L, 2, | |
, 2, | |
PM3H, 2, | |
Offset (0x84), | |
PM4L, 2, | |
, 2, | |
PM4H, 2, | |
Offset (0x85), | |
PM5L, 2, | |
, 2, | |
PM5H, 2, | |
Offset (0x86), | |
PM6L, 2, | |
, 2, | |
PM6H, 2, | |
Offset (0x87), | |
Offset (0xA8), | |
, 20, | |
TUUD, 19, | |
Offset (0xBC), | |
, 20, | |
TLUD, 12, | |
Offset (0xC8), | |
, 7, | |
HTSE, 1 | |
} | |
OperationRegion (MCHT, SystemMemory, 0xFED10000, 0x1100) | |
Field (MCHT, ByteAcc, NoLock, Preserve) | |
{ | |
} | |
Name (BUF0, ResourceTemplate () | |
{ | |
WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, | |
0x0000, // Granularity | |
0x0000, // Range Minimum | |
0x00FF, // Range Maximum | |
0x0000, // Translation Offset | |
0x0100, // Length | |
,, ) | |
DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, | |
0x00000000, // Granularity | |
0x00000000, // Range Minimum | |
0x00000CF7, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00000CF8, // Length | |
,, , TypeStatic) | |
IO (Decode16, | |
0x0CF8, // Range Minimum | |
0x0CF8, // Range Maximum | |
0x01, // Alignment | |
0x08, // Length | |
) | |
DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, | |
0x00000000, // Granularity | |
0x00000D00, // Range Minimum | |
0x0000FFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x0000F300, // Length | |
,, , TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000A0000, // Range Minimum | |
0x000BFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00020000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000C0000, // Range Minimum | |
0x000C3FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000C4000, // Range Minimum | |
0x000C7FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000C8000, // Range Minimum | |
0x000CBFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000CC000, // Range Minimum | |
0x000CFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000D0000, // Range Minimum | |
0x000D3FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000D4000, // Range Minimum | |
0x000D7FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000D8000, // Range Minimum | |
0x000DBFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000DC000, // Range Minimum | |
0x000DFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000E0000, // Range Minimum | |
0x000E3FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000E4000, // Range Minimum | |
0x000E7FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000E8000, // Range Minimum | |
0x000EBFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000EC000, // Range Minimum | |
0x000EFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000F0000, // Range Minimum | |
0x000FFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00010000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x00000000, // Range Minimum | |
0xFEAFFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0xFEB00000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0xFED40000, // Range Minimum | |
0xFED44FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00005000, // Length | |
,, , AddressRangeMemory, TypeStatic) | |
}) | |
Method (_CRS, 0, Serialized) | |
{ | |
CreateWordField (BUF0, 0x0A, PBMX) | |
Store (Subtract (ShiftRight (PELN, 0x14), 0x02), PBMX) | |
CreateWordField (BUF0, 0x0E, PBLN) | |
Store (Subtract (ShiftRight (PELN, 0x14), One), PBLN) | |
If (PM1L) | |
{ | |
CreateDWordField (BUF0, 0x7C, C0LN) | |
Store (Zero, C0LN) | |
} | |
If (LEqual (PM1L, One)) | |
{ | |
CreateBitField (BUF0, 0x0358, C0RW) | |
Store (Zero, C0RW) | |
} | |
If (PM1H) | |
{ | |
CreateDWordField (BUF0, 0x96, C4LN) | |
Store (Zero, C4LN) | |
} | |
If (LEqual (PM1H, One)) | |
{ | |
CreateBitField (BUF0, 0x0428, C4RW) | |
Store (Zero, C4RW) | |
} | |
If (PM2L) | |
{ | |
CreateDWordField (BUF0, 0xB0, C8LN) | |
Store (Zero, C8LN) | |
} | |
If (LEqual (PM2L, One)) | |
{ | |
CreateBitField (BUF0, 0x04F8, C8RW) | |
Store (Zero, C8RW) | |
} | |
If (PM2H) | |
{ | |
CreateDWordField (BUF0, 0xCA, CCLN) | |
Store (Zero, CCLN) | |
} | |
If (LEqual (PM2H, One)) | |
{ | |
CreateBitField (BUF0, 0x05C8, CCRW) | |
Store (Zero, CCRW) | |
} | |
If (PM3L) | |
{ | |
CreateDWordField (BUF0, 0xE4, D0LN) | |
Store (Zero, D0LN) | |
} | |
If (LEqual (PM3L, One)) | |
{ | |
CreateBitField (BUF0, 0x0698, D0RW) | |
Store (Zero, D0RW) | |
} | |
If (PM3H) | |
{ | |
CreateDWordField (BUF0, 0xFE, D4LN) | |
Store (Zero, D4LN) | |
} | |
If (LEqual (PM3H, One)) | |
{ | |
CreateBitField (BUF0, 0x0768, D4RW) | |
Store (Zero, D4RW) | |
} | |
If (PM4L) | |
{ | |
CreateDWordField (BUF0, 0x0118, D8LN) | |
Store (Zero, D8LN) | |
} | |
If (LEqual (PM4L, One)) | |
{ | |
CreateBitField (BUF0, 0x0838, D8RW) | |
Store (Zero, D8RW) | |
} | |
If (PM4H) | |
{ | |
CreateDWordField (BUF0, 0x0132, DCLN) | |
Store (Zero, DCLN) | |
} | |
If (LEqual (PM4H, One)) | |
{ | |
CreateBitField (BUF0, 0x0908, DCRW) | |
Store (Zero, DCRW) | |
} | |
If (PM5L) | |
{ | |
CreateDWordField (BUF0, 0x014C, E0LN) | |
Store (Zero, E0LN) | |
} | |
If (LEqual (PM5L, One)) | |
{ | |
CreateBitField (BUF0, 0x09D8, E0RW) | |
Store (Zero, E0RW) | |
} | |
If (PM5H) | |
{ | |
CreateDWordField (BUF0, 0x0166, E4LN) | |
Store (Zero, E4LN) | |
} | |
If (LEqual (PM5H, One)) | |
{ | |
CreateBitField (BUF0, 0x0AA8, E4RW) | |
Store (Zero, E4RW) | |
} | |
If (PM6L) | |
{ | |
CreateDWordField (BUF0, 0x0180, E8LN) | |
Store (Zero, E8LN) | |
} | |
If (LEqual (PM6L, One)) | |
{ | |
CreateBitField (BUF0, 0x0B78, E8RW) | |
Store (Zero, E8RW) | |
} | |
If (PM6H) | |
{ | |
CreateDWordField (BUF0, 0x019A, ECLN) | |
Store (Zero, ECLN) | |
} | |
If (LEqual (PM6H, One)) | |
{ | |
CreateBitField (BUF0, 0x0C48, ECRW) | |
Store (Zero, ECRW) | |
} | |
If (PM0H) | |
{ | |
CreateDWordField (BUF0, 0x01B4, F0LN) | |
Store (Zero, F0LN) | |
} | |
If (LEqual (PM0H, One)) | |
{ | |
CreateBitField (BUF0, 0x0D18, F0RW) | |
Store (Zero, F0RW) | |
} | |
CreateDWordField (BUF0, 0x01C2, M1MN) | |
CreateDWordField (BUF0, 0x01C6, M1MX) | |
CreateDWordField (BUF0, 0x01CE, M1LN) | |
ShiftLeft (TLUD, 0x14, M1MN) | |
Add (Subtract (M1MX, M1MN), One, M1LN) | |
Return (BUF0) | |
} | |
Name (GUID, Buffer (0x10) | |
{ | |
/* 0000 */ 0x5B, 0x4D, 0xDB, 0x33, 0xF7, 0x1F, 0x1C, 0x40, | |
/* 0008 */ 0x96, 0x57, 0x74, 0x41, 0xC0, 0x3D, 0xD7, 0x66 | |
}) | |
Name (SUPP, Zero) | |
Name (CTRL, Zero) | |
Method (_OSC, 4, Serialized) | |
{ | |
Store (Arg3, Local0) | |
CreateDWordField (Local0, Zero, CDW1) | |
CreateDWordField (Local0, 0x04, CDW2) | |
CreateDWordField (Local0, 0x08, CDW3) | |
If (LEqual (Arg0, GUID)) | |
{ | |
Store (CDW2, SUPP) | |
Store (CDW3, CTRL) | |
If (Not (And (CDW1, One))) | |
{ | |
If (And (CTRL, One)) | |
{ | |
NHPG () | |
} | |
If (And (CTRL, 0x04)) | |
{ | |
NPME () | |
} | |
} | |
If (LNotEqual (Arg1, One)) | |
{ | |
Or (CDW1, 0x08, CDW1) | |
} | |
If (LNotEqual (CDW3, CTRL)) | |
{ | |
Or (CDW1, 0x10, CDW1) | |
} | |
Store (CTRL, CDW3) | |
Store (CTRL, OSCC) | |
Return (Local0) | |
} | |
Else | |
{ | |
Or (CDW1, 0x04, CDW1) | |
Return (Local0) | |
} | |
} | |
Scope (\_SB.PCI0) | |
{ | |
Method (AR00, 0, NotSerialized) | |
{ | |
Return (^^AR00) | |
} | |
Method (PR00, 0, NotSerialized) | |
{ | |
Return (^^PR00) | |
} | |
Method (AR01, 0, NotSerialized) | |
{ | |
Return (^^AR01) | |
} | |
Method (PR01, 0, NotSerialized) | |
{ | |
Return (^^PR01) | |
} | |
Method (AR02, 0, NotSerialized) | |
{ | |
Return (^^AR02) | |
} | |
Method (PR02, 0, NotSerialized) | |
{ | |
Return (^^PR02) | |
} | |
Method (AR04, 0, NotSerialized) | |
{ | |
Return (^^AR04) | |
} | |
Method (PR04, 0, NotSerialized) | |
{ | |
Return (^^PR04) | |
} | |
Method (AR05, 0, NotSerialized) | |
{ | |
Return (^^AR05) | |
} | |
Method (PR05, 0, NotSerialized) | |
{ | |
Return (^^PR05) | |
} | |
Method (AR06, 0, NotSerialized) | |
{ | |
Return (^^AR06) | |
} | |
Method (PR06, 0, NotSerialized) | |
{ | |
Return (^^PR06) | |
} | |
Method (AR07, 0, NotSerialized) | |
{ | |
Return (^^AR07) | |
} | |
Method (PR07, 0, NotSerialized) | |
{ | |
Return (^^PR07) | |
} | |
Method (AR08, 0, NotSerialized) | |
{ | |
Return (^^AR08) | |
} | |
Method (PR08, 0, NotSerialized) | |
{ | |
Return (^^PR08) | |
} | |
Method (AR09, 0, NotSerialized) | |
{ | |
Return (^^AR09) | |
} | |
Method (PR09, 0, NotSerialized) | |
{ | |
Return (^^PR09) | |
} | |
Method (AR0A, 0, NotSerialized) | |
{ | |
Return (^^AR0A) | |
} | |
Method (PR0A, 0, NotSerialized) | |
{ | |
Return (^^PR0A) | |
} | |
Method (AR0B, 0, NotSerialized) | |
{ | |
Return (^^AR0B) | |
} | |
Method (PR0B, 0, NotSerialized) | |
{ | |
Return (^^PR0B) | |
} | |
} | |
Device (PEG0) | |
{ | |
Name (_ADR, 0x00010000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR02 ()) | |
} | |
Return (PR02 ()) | |
} | |
Device (GFX0) | |
{ | |
Name (_ADR, Zero) | |
} | |
} | |
Device (PEG1) | |
{ | |
Name (_ADR, 0x00010001) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR0A ()) | |
} | |
Return (PR0A ()) | |
} | |
} | |
Device (PEG2) | |
{ | |
Name (_ADR, 0x00010002) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR0B ()) | |
} | |
Return (PR0B ()) | |
} | |
} | |
Device (PEG3) | |
{ | |
Name (_ADR, 0x00060000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR0C) | |
} | |
Return (PR0C) | |
} | |
} | |
Device (B0D4) | |
{ | |
Name (_ADR, 0x00040000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
} | |
Device (P0P1) | |
{ | |
Name (_ADR, 0x001E0000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0B, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR01 ()) | |
} | |
Return (PR01 ()) | |
} | |
} | |
Device (SBUS) | |
{ | |
Name (_ADR, 0x001F0003) | |
OperationRegion (SMBP, PCI_Config, 0x40, 0xC0) | |
Field (SMBP, DWordAcc, NoLock, Preserve) | |
{ | |
, 2, | |
I2CE, 1 | |
} | |
OperationRegion (SMPB, PCI_Config, 0x20, 0x04) | |
Field (SMPB, DWordAcc, NoLock, Preserve) | |
{ | |
, 5, | |
SBAR, 11 | |
} | |
OperationRegion (SMBI, SystemIO, ShiftLeft (SBAR, 0x05), 0x10) | |
Field (SMBI, ByteAcc, NoLock, Preserve) | |
{ | |
HSTS, 8, | |
Offset (0x02), | |
HCON, 8, | |
HCOM, 8, | |
TXSA, 8, | |
DAT0, 8, | |
DAT1, 8, | |
HBDR, 8, | |
PECR, 8, | |
RXSA, 8, | |
SDAT, 16 | |
} | |
Method (SSXB, 2, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (Zero) | |
} | |
Store (Zero, I2CE) | |
Store (0xBF, HSTS) | |
Store (Arg0, TXSA) | |
Store (Arg1, HCOM) | |
Store (0x48, HCON) | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (SRXB, 1, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (0xFFFF) | |
} | |
Store (Zero, I2CE) | |
Store (0xBF, HSTS) | |
Store (Or (Arg0, One), TXSA) | |
Store (0x44, HCON) | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (DAT0) | |
} | |
Return (0xFFFF) | |
} | |
Method (SWRB, 3, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (Zero) | |
} | |
Store (Zero, I2CE) | |
Store (0xBF, HSTS) | |
Store (Arg0, TXSA) | |
Store (Arg1, HCOM) | |
Store (Arg2, DAT0) | |
Store (0x48, HCON) | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (SRDB, 2, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (0xFFFF) | |
} | |
Store (Zero, I2CE) | |
Store (0xBF, HSTS) | |
Store (Or (Arg0, One), TXSA) | |
Store (Arg1, HCOM) | |
Store (0x48, HCON) | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (DAT0) | |
} | |
Return (0xFFFF) | |
} | |
Method (SWRW, 3, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (Zero) | |
} | |
Store (Zero, I2CE) | |
Store (0xBF, HSTS) | |
Store (Arg0, TXSA) | |
Store (Arg1, HCOM) | |
And (Arg2, 0xFF, DAT1) | |
And (ShiftRight (Arg2, 0x08), 0xFF, DAT0) | |
Store (0x4C, HCON) | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (SRDW, 2, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (0xFFFF) | |
} | |
Store (Zero, I2CE) | |
Store (0xBF, HSTS) | |
Store (Or (Arg0, One), TXSA) | |
Store (Arg1, HCOM) | |
Store (0x4C, HCON) | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (Or (ShiftLeft (DAT0, 0x08), DAT1)) | |
} | |
Return (Ones) | |
} | |
Method (SBLW, 4, Serialized) | |
{ | |
If (STRT ()) | |
{ | |
Return (Zero) | |
} | |
Store (Arg3, I2CE) | |
Store (0xBF, HSTS) | |
Store (Arg0, TXSA) | |
Store (Arg1, HCOM) | |
Store (SizeOf (Arg2), DAT0) | |
Store (Zero, Local1) | |
Store (DerefOf (Index (Arg2, Zero)), HBDR) | |
Store (0x54, HCON) | |
While (LGreater (SizeOf (Arg2), Local1)) | |
{ | |
Store (0x0FA0, Local0) | |
While (LAnd (LNot (And (HSTS, 0x80)), Local0)) | |
{ | |
Decrement (Local0) | |
Stall (0x32) | |
} | |
If (LNot (Local0)) | |
{ | |
KILL () | |
Return (Zero) | |
} | |
Store (0x80, HSTS) | |
Increment (Local1) | |
If (LGreater (SizeOf (Arg2), Local1)) | |
{ | |
Store (DerefOf (Index (Arg2, Local1)), HBDR) | |
} | |
} | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (SBLR, 3, Serialized) | |
{ | |
Name (TBUF, Buffer (0x0100) {}) | |
If (STRT ()) | |
{ | |
Return (Zero) | |
} | |
Store (Arg2, I2CE) | |
Store (0xBF, HSTS) | |
Store (Or (Arg0, One), TXSA) | |
Store (Arg1, HCOM) | |
Store (0x54, HCON) | |
Store (0x0FA0, Local0) | |
While (LAnd (LNot (And (HSTS, 0x80)), Local0)) | |
{ | |
Decrement (Local0) | |
Stall (0x32) | |
} | |
If (LNot (Local0)) | |
{ | |
KILL () | |
Return (Zero) | |
} | |
Store (DAT0, Index (TBUF, Zero)) | |
Store (0x80, HSTS) | |
Store (One, Local1) | |
While (LLess (Local1, DerefOf (Index (TBUF, Zero)))) | |
{ | |
Store (0x0FA0, Local0) | |
While (LAnd (LNot (And (HSTS, 0x80)), Local0)) | |
{ | |
Decrement (Local0) | |
Stall (0x32) | |
} | |
If (LNot (Local0)) | |
{ | |
KILL () | |
Return (Zero) | |
} | |
Store (HBDR, Index (TBUF, Local1)) | |
Store (0x80, HSTS) | |
Increment (Local1) | |
} | |
If (COMP ()) | |
{ | |
Or (HSTS, 0xFF, HSTS) | |
Return (TBUF) | |
} | |
Return (Zero) | |
} | |
Method (STRT, 0, Serialized) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
If (And (HSTS, 0x40)) | |
{ | |
Decrement (Local0) | |
Sleep (One) | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Store (0x0FA0, Local0) | |
While (Local0) | |
{ | |
If (And (HSTS, One)) | |
{ | |
Decrement (Local0) | |
Stall (0x32) | |
If (LEqual (Local0, Zero)) | |
{ | |
KILL () | |
} | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Return (One) | |
} | |
Method (COMP, 0, Serialized) | |
{ | |
Store (0x0FA0, Local0) | |
While (Local0) | |
{ | |
If (And (HSTS, 0x02)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
Stall (0x32) | |
If (LEqual (Local0, Zero)) | |
{ | |
KILL () | |
} | |
} | |
} | |
Return (Zero) | |
} | |
Method (KILL, 0, Serialized) | |
{ | |
Or (HCON, 0x02, HCON) | |
Or (HSTS, 0xFF, HSTS) | |
} | |
} | |
Device (HDEF) | |
{ | |
Name (_ADR, 0x001B0000) | |
OperationRegion (HDAR, PCI_Config, 0x4C, 0x10) | |
Field (HDAR, WordAcc, NoLock, Preserve) | |
{ | |
DCKA, 1, | |
Offset (0x01), | |
DCKM, 1, | |
, 6, | |
DCKS, 1, | |
Offset (0x08), | |
, 15, | |
PMES, 1 | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0D, 0x04)) | |
} | |
Method (_DSM, 4, NotSerialized) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Return (Package (0x06) | |
{ | |
"layout-id", | |
Buffer (0x04) | |
{ | |
0x03, 0x00, 0x00, 0x00 | |
}, | |
"hda-gfx", | |
Buffer (0x0A) | |
{ | |
"onboard-1" | |
}, | |
"PinConfigurations", | |
Buffer (Zero) {} | |
}) | |
} | |
} | |
Device (GLAN) | |
{ | |
Name (_ADR, 0x00190000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0D, 0x04)) | |
} | |
} | |
Device (SBRG) | |
{ | |
Name (_ADR, 0x001F0000) | |
Scope (\_SB) | |
{ | |
OperationRegion (PCI0.SBRG.LPC1, PCI_Config, 0x40, 0xC0) | |
Field (PCI0.SBRG.LPC1, AnyAcc, NoLock, Preserve) | |
{ | |
Offset (0x20), | |
PARC, 8, | |
PBRC, 8, | |
PCRC, 8, | |
PDRC, 8, | |
Offset (0x28), | |
PERC, 8, | |
PFRC, 8, | |
PGRC, 8, | |
PHRC, 8 | |
} | |
Device (LNKA) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, One) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PARC, 0x80, PARC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSA) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLA, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLA, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PARC, 0x0F), IRQ0) | |
Return (RTLA) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PARC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PARC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKB) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x02) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PBRC, 0x80, PBRC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSB) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLB, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLB, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PBRC, 0x0F), IRQ0) | |
Return (RTLB) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PBRC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PBRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKC) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x03) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PCRC, 0x80, PCRC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSC) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLC, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLC, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PCRC, 0x0F), IRQ0) | |
Return (RTLC) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PCRC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PCRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKD) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x04) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PDRC, 0x80, PDRC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSD) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLD, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLD, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PDRC, 0x0F), IRQ0) | |
Return (RTLD) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PDRC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PDRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKE) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x05) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PERC, 0x80, PERC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSE) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLE, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLE, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PERC, 0x0F), IRQ0) | |
Return (RTLE) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PERC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PERC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKF) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x06) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PFRC, 0x80, PFRC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSF) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLF, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLF, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PFRC, 0x0F), IRQ0) | |
Return (RTLF) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PFRC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PFRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKG) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x07) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PGRC, 0x80, PGRC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSG) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLG, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLG, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PGRC, 0x0F), IRQ0) | |
Return (RTLG) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PGRC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PGRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKH) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) | |
Name (_UID, 0x08) | |
Method (_DIS, 0, Serialized) | |
{ | |
Or (PHRC, 0x80, PHRC) | |
} | |
Method (_PRS, 0, Serialized) | |
{ | |
Return (PRSH) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Name (RTLH, ResourceTemplate () | |
{ | |
IRQ (Level, ActiveLow, Shared, ) | |
{} | |
}) | |
CreateWordField (RTLH, One, IRQ0) | |
Store (Zero, IRQ0) | |
ShiftLeft (One, And (PHRC, 0x0F), IRQ0) | |
Return (RTLH) | |
} | |
Method (_SRS, 1, Serialized) | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PHRC) | |
} | |
Method (_STA, 0, Serialized) | |
{ | |
If (And (PHRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
} | |
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 (DMAC) | |
{ | |
Name (_HID, EisaId ("PNP0200")) | |
Name (_CRS, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0000, // Range Minimum | |
0x0000, // Range Maximum | |
0x01, // Alignment | |
0x20, // Length | |
) | |
IO (Decode16, | |
0x0081, // Range Minimum | |
0x0081, // Range Maximum | |
0x01, // Alignment | |
0x11, // Length | |
) | |
IO (Decode16, | |
0x0093, // Range Minimum | |
0x0093, // Range Maximum | |
0x01, // Alignment | |
0x0D, // Length | |
) | |
IO (Decode16, | |
0x00C0, // Range Minimum | |
0x00C0, // Range Maximum | |
0x01, // Alignment | |
0x20, // Length | |
) | |
DMA (Compatibility, NotBusMaster, Transfer8_16, ) | |
{4} | |
}) | |
} | |
Device (FWHD) | |
{ | |
Name (_HID, EisaId ("INT0800")) | |
Name (_CRS, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadOnly, | |
0xFF000000, // Address Base | |
0x01000000, // Address Length | |
) | |
}) | |
} | |
Device (HPET) | |
{ | |
Name (_HID, EisaId ("PNP0103")) | |
Name (_UID, Zero) | |
Name (BUF0, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0xFED00000, // Address Base | |
0x00000400, // Address Length | |
) | |
}) | |
Method (_STA, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (OSYS, 0x07D1)) | |
{ | |
If (HPAE) | |
{ | |
Return (0x0F) | |
} | |
} | |
Else | |
{ | |
If (HPAE) | |
{ | |
Return (0x0B) | |
} | |
} | |
Return (Zero) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
If (HPAE) | |
{ | |
CreateDWordField (BUF0, 0x04, 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 (IPIC) | |
{ | |
Name (_HID, EisaId ("PNP0000")) | |
Name (_CRS, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0020, // Range Minimum | |
0x0020, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0024, // Range Minimum | |
0x0024, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0028, // Range Minimum | |
0x0028, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x002C, // Range Minimum | |
0x002C, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0030, // Range Minimum | |
0x0030, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0034, // Range Minimum | |
0x0034, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0038, // Range Minimum | |
0x0038, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x003C, // Range Minimum | |
0x003C, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00A0, // Range Minimum | |
0x00A0, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00A4, // Range Minimum | |
0x00A4, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00A8, // Range Minimum | |
0x00A8, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00AC, // Range Minimum | |
0x00AC, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00B0, // Range Minimum | |
0x00B0, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00B4, // Range Minimum | |
0x00B4, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00B8, // Range Minimum | |
0x00B8, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x00BC, // Range Minimum | |
0x00BC, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x04D0, // Range Minimum | |
0x04D0, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IRQNoFlags () | |
{2} | |
}) | |
} | |
Device (MATH) | |
{ | |
Name (_HID, EisaId ("PNP0C04")) | |
Name (_CRS, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x00F0, // Range Minimum | |
0x00F0, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IRQNoFlags () | |
{13} | |
}) | |
} | |
Device (LDRC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) | |
Name (_UID, 0x02) | |
Name (BUF0, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x002E, // Range Minimum | |
0x002E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x004E, // Range Minimum | |
0x004E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0061, // Range Minimum | |
0x0061, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0063, // Range Minimum | |
0x0063, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0065, // Range Minimum | |
0x0065, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0067, // Range Minimum | |
0x0067, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0070, // Range Minimum | |
0x0070, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0080, // Range Minimum | |
0x0080, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0092, // Range Minimum | |
0x0092, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x00B2, // Range Minimum | |
0x00B2, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0680, // Range Minimum | |
0x0680, // Range Maximum | |
0x01, // Alignment | |
0x20, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0400, // Range Minimum | |
0x0400, // Range Maximum | |
0x01, // Alignment | |
0x80, // Length | |
) | |
IO (Decode16, | |
0x0500, // Range Minimum | |
0x0500, // Range Maximum | |
0x01, // Alignment | |
0x80, // Length | |
) | |
IO (Decode16, | |
0x164E, // Range Minimum | |
0x164E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
}) | |
Name (BUF1, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x002E, // Range Minimum | |
0x002E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x004E, // Range Minimum | |
0x004E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0061, // Range Minimum | |
0x0061, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0063, // Range Minimum | |
0x0063, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0065, // Range Minimum | |
0x0065, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0067, // Range Minimum | |
0x0067, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0070, // Range Minimum | |
0x0070, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0080, // Range Minimum | |
0x0080, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0092, // Range Minimum | |
0x0092, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x00B2, // Range Minimum | |
0x00B2, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0680, // Range Minimum | |
0x0680, // Range Maximum | |
0x01, // Alignment | |
0x20, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0400, // Range Minimum | |
0x0400, // Range Maximum | |
0x01, // Alignment | |
0x54, // Length | |
) | |
IO (Decode16, | |
0x0458, // Range Minimum | |
0x0458, // Range Maximum | |
0x01, // Alignment | |
0x28, // Length | |
) | |
IO (Decode16, | |
0x0500, // Range Minimum | |
0x0500, // Range Maximum | |
0x01, // Alignment | |
0x80, // Length | |
) | |
IO (Decode16, | |
0x164E, // Range Minimum | |
0x164E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
}) | |
Name (_CRS, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x002E, // Range Minimum | |
0x002E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x004E, // Range Minimum | |
0x004E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0061, // Range Minimum | |
0x0061, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0063, // Range Minimum | |
0x0063, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0065, // Range Minimum | |
0x0065, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0067, // Range Minimum | |
0x0067, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0070, // Range Minimum | |
0x0070, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0080, // Range Minimum | |
0x0080, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0092, // Range Minimum | |
0x0092, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x00B2, // Range Minimum | |
0x00B2, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0680, // Range Minimum | |
0x0680, // Range Maximum | |
0x01, // Alignment | |
0x20, // Length | |
) | |
IO (Decode16, | |
0x1000, // Range Minimum | |
0x1000, // Range Maximum | |
0x01, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0xFFFF, // Range Minimum | |
0xFFFF, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0400, // Range Minimum | |
0x0400, // Range Maximum | |
0x01, // Alignment | |
0x54, // Length | |
) | |
IO (Decode16, | |
0x0458, // Range Minimum | |
0x0458, // Range Maximum | |
0x01, // Alignment | |
0x28, // Length | |
) | |
IO (Decode16, | |
0x0500, // Range Minimum | |
0x0500, // Range Maximum | |
0x01, // Alignment | |
0x80, // Length | |
) | |
IO (Decode16, | |
0x164E, // Range Minimum | |
0x164E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
}) | |
} | |
Device (RTC) | |
{ | |
Name (_HID, EisaId ("PNP0B00")) | |
Name (_CRS, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0070, // Range Minimum | |
0x0070, // Range Maximum | |
0x01, // Alignment | |
0x08, // Length | |
) | |
IRQNoFlags () | |
{8} | |
}) | |
} | |
Device (TIMR) | |
{ | |
Name (_HID, EisaId ("PNP0100")) | |
Name (_CRS, 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} | |
}) | |
} | |
Device (CWDT) | |
{ | |
Name (_HID, EisaId ("INT3F0D")) | |
Name (_CID, EisaId ("PNP0C02")) | |
Name (BUF0, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0454, // Range Minimum | |
0x0454, // Range Maximum | |
0x04, // Alignment | |
0x04, // Length | |
) | |
}) | |
Method (_STA, 0, Serialized) | |
{ | |
Return (0x0F) | |
} | |
Method (_CRS, 0, Serialized) | |
{ | |
Return (BUF0) | |
} | |
} | |
Device (ADBG) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) | |
Name (_UID, 0x13) | |
Name (CRS1, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0240, // Range Minimum | |
0x0240, // Range Maximum | |
0x01, // Alignment | |
0x1A, // Length | |
) | |
}) | |
OperationRegion (DBGC, SystemIO, 0x0259, 0x10) | |
Field (DBGC, ByteAcc, Lock, Preserve) | |
{ | |
DBGP, 8 | |
} | |
OperationRegion (DBPP, SystemIO, 0x0250, 0x02) | |
Field (DBPP, ByteAcc, Lock, Preserve) | |
{ | |
PPDT, 8, | |
PPST, 8 | |
} | |
OperationRegion (DB80, SystemIO, 0x80, One) | |
Field (DB80, ByteAcc, Lock, Preserve) | |
{ | |
DP80, 8 | |
} | |
Method (_CRS, 0, NotSerialized) | |
{ | |
Return (CRS1) | |
} | |
Method (CALL, 0, Serialized) | |
{ | |
ISMI (0x96) | |
} | |
Method (PUTD, 1, Serialized) | |
{ | |
Or (And (Arg0, 0x0F), 0x10, Local0) | |
And (ShiftRight (Arg0, 0x04), 0x0F, Local1) | |
And (Not (Local1), 0x0F, Local2) | |
Store (0x3FFF, Local4) | |
Store (Local0, PPDT) | |
Store (ShiftRight (XOr (PPST, 0x80), 0x03), Local3) | |
While (LAnd (LNotEqual (Local3, 0x10), LNotEqual (Local4, Zero))) | |
{ | |
Store (ShiftRight (XOr (PPST, 0x80), 0x03), Local3) | |
Decrement (Local4) | |
Stall (0x1E) | |
} | |
If (LEqual (Local4, Zero)) | |
{ | |
Store (Zero, PPDT) | |
Return (Zero) | |
} | |
Store (0x3FFF, Local4) | |
Store (Local1, PPDT) | |
Store (ShiftRight (XOr (PPST, 0x80), 0x03), Local3) | |
While (LAnd (LNotEqual (Local3, Zero), LNotEqual (Local4, Zero))) | |
{ | |
Store (ShiftRight (XOr (PPST, 0x80), 0x03), Local3) | |
Decrement (Local4) | |
Stall (0x1E) | |
} | |
If (LEqual (Local4, Zero)) | |
{ | |
Store (Zero, PPDT) | |
Return (Zero) | |
} | |
Store (Local2, PPDT) | |
Return (One) | |
} | |
Method (OUTS, 1, Serialized) | |
{ | |
If (LNotEqual (DBGP, 0xFF)) | |
{ | |
Add (SizeOf (Arg0), One, Local0) | |
Store (Zero, Local1) | |
Name (BUFF, Buffer (Local0) {}) | |
Store (Arg0, BUFF) | |
Subtract (Local0, One, Local0) | |
If (LEqual (PUTD (0x53), Zero)) | |
{ | |
Return (Zero) | |
} | |
While (LNotEqual (DerefOf (Index (BUFF, Local1)), Zero)) | |
{ | |
If (LEqual (PUTD (DerefOf (Index (BUFF, Local1))), Zero)) | |
{ | |
PUTD (Zero) | |
Return (Zero) | |
} | |
Increment (Local1) | |
} | |
PUTD (Zero) | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (OUTD, 1, Serialized) | |
{ | |
Name (DEC, Buffer (0x0B) | |
{ | |
"0123456789" | |
}) | |
Name (TMP, Buffer (0x0B) {}) | |
Store (Zero, Local0) | |
Store (Arg0, Local1) | |
If (LEqual (Local1, Zero)) | |
{ | |
OUTS ("0") | |
} | |
Else | |
{ | |
While (LGreater (Local1, Zero)) | |
{ | |
Divide (Local1, 0x0A, Local2, Local1) | |
Store (DerefOf (Index (DEC, Local2)), Index (TMP, Local0)) | |
Increment (Local0) | |
Store (Zero, Index (TMP, Local0)) | |
} | |
Store (Zero, Local2) | |
Decrement (Local0) | |
While (LLess (Local2, Local0)) | |
{ | |
Store (DerefOf (Index (TMP, Local2)), Local3) | |
Store (DerefOf (Index (TMP, Local0)), Index (TMP, Local2)) | |
Store (Local3, Index (TMP, Local0)) | |
Increment (Local2) | |
Decrement (Local0) | |
} | |
OUTS (TMP) | |
} | |
} | |
Method (OUTH, 1, Serialized) | |
{ | |
Name (HEX, Buffer (0x11) | |
{ | |
"0123456789ABCDEF" | |
}) | |
Name (TMP, Buffer (0x0A) {}) | |
Store (Zero, Local0) | |
Store (Arg0, Local1) | |
While (LLess (Local0, 0x08)) | |
{ | |
And (Local1, 0x0F, Local2) | |
Store (DerefOf (Index (HEX, Local2)), Index (TMP, Local0)) | |
ShiftRight (Local1, 0x04, Local1) | |
Increment (Local0) | |
Store (Zero, Index (TMP, Local0)) | |
} | |
Store (Zero, Local2) | |
Decrement (Local0) | |
While (LLess (Local2, Local0)) | |
{ | |
Store (DerefOf (Index (TMP, Local2)), Local3) | |
Store (DerefOf (Index (TMP, Local0)), Index (TMP, Local2)) | |
Store (Local3, Index (TMP, Local0)) | |
Increment (Local2) | |
Decrement (Local0) | |
} | |
OUTS (TMP) | |
} | |
} | |
Device (PS2M) | |
{ | |
Method (_HID, 0, NotSerialized) | |
{ | |
If (SYNA) | |
{ | |
Return (0x170A2E4F) | |
} | |
If (ALPS) | |
{ | |
Return (0x0713A906) | |
} | |
If (ELAN) | |
{ | |
Return (0x01018416) | |
} | |
If (STLC) | |
{ | |
Return (0x41C18C4E) | |
} | |
Return (0x060A2E4F) | |
} | |
Name (_CID, Package (0x05) | |
{ | |
EisaId ("SYN0A00"), | |
EisaId ("SYN0002"), | |
EisaId ("PNP0F03"), | |
EisaId ("PNP0F13"), | |
EisaId ("PNP0F12") | |
}) | |
Method (_STA, 0, NotSerialized) | |
{ | |
ShiftLeft (One, 0x0E, Local0) | |
If (And (IOST, Local0)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
Return (Zero) | |
} | |
Name (CRS1, ResourceTemplate () | |
{ | |
IRQNoFlags () | |
{12} | |
}) | |
Name (CRS2, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0060, // Range Minimum | |
0x0060, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0064, // Range Minimum | |
0x0064, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IRQNoFlags () | |
{12} | |
}) | |
Method (_CRS, 0, NotSerialized) | |
{ | |
ShiftLeft (One, 0x0A, Local0) | |
If (And (IOST, Local0)) | |
{ | |
Return (CRS1) | |
} | |
Else | |
{ | |
Return (CRS2) | |
} | |
} | |
} | |
Device (PS2K) | |
{ | |
Name (_HID, EisaId ("PNP0303")) | |
Name (_CID, EisaId ("PNP030B")) | |
Method (_STA, 0, NotSerialized) | |
{ | |
If (And (IOST, 0x0400)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Name (_CRS, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0060, // Range Minimum | |
0x0060, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0064, // Range Minimum | |
0x0064, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IRQNoFlags () | |
{1} | |
}) | |
Name (_PRS, ResourceTemplate () | |
{ | |
StartDependentFn (0x00, 0x00) | |
{ | |
IO (Decode16, | |
0x0060, // Range Minimum | |
0x0060, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0064, // Range Minimum | |
0x0064, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IRQNoFlags () | |
{1} | |
} | |
EndDependentFn () | |
}) | |
} | |
} | |
Device (IDE0) | |
{ | |
Name (_ADR, 0x001F0002) | |
Name (REGF, One) | |
Method (_REG, 2, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x02)) | |
{ | |
Store (Arg1, REGF) | |
} | |
} | |
Device (CHN0) | |
{ | |
Name (_ADR, Zero) | |
Device (DRV0) | |
{ | |
Name (_ADR, Zero) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA0)) | |
} | |
} | |
Device (DRV1) | |
{ | |
Name (_ADR, One) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA1)) | |
} | |
} | |
} | |
Device (CHN1) | |
{ | |
Name (_ADR, One) | |
Device (DRV0) | |
{ | |
Name (_ADR, Zero) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA2)) | |
} | |
} | |
Device (DRV1) | |
{ | |
Name (_ADR, One) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA3)) | |
} | |
} | |
} | |
Name (AT01, Buffer (0x07) | |
{ | |
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT02, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90 | |
}) | |
Name (AT03, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6 | |
}) | |
Name (AT04, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x91 | |
}) | |
Name (AT05, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF5 | |
}) | |
Name (AT06, Buffer (0x07) | |
{ | |
0x10, 0x03, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT61, Buffer (0x07) | |
{ | |
0x90, 0x03, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT07, Buffer (0x07) | |
{ | |
0x10, 0x06, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT08, Buffer (0x07) | |
{ | |
0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT81, Buffer (0x07) | |
{ | |
0xC1, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT09, Buffer (0x07) | |
{ | |
0x90, 0x05, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (ATA0, Buffer (0x32) {}) | |
Name (ATA1, Buffer (0x32) {}) | |
Name (ATA2, Buffer (0x32) {}) | |
Name (ATA3, Buffer (0x32) {}) | |
Name (ATAB, Buffer (0x32) {}) | |
CreateByteField (ATAB, Zero, CMDC) | |
Method (GTFB, 3, Serialized) | |
{ | |
Multiply (CMDC, 0x38, Local0) | |
Add (Local0, 0x08, Local1) | |
CreateField (ATAB, Local1, 0x38, CMDX) | |
Multiply (CMDC, 0x07, Local0) | |
CreateByteField (ATAB, Add (Local0, 0x02), A001) | |
CreateByteField (ATAB, Add (Local0, 0x06), A005) | |
Store (Arg0, CMDX) | |
Store (Arg1, A001) | |
Store (Arg2, A005) | |
Increment (CMDC) | |
} | |
Method (GTF, 2, Serialized) | |
{ | |
Store (Arg1, Debug) | |
Store (Zero, CMDC) | |
Name (ID00, Zero) | |
Name (ID49, 0x0C00) | |
Name (ID59, Zero) | |
Name (ID53, 0x04) | |
Name (ID63, 0x0F00) | |
Name (ID88, 0x0F00) | |
Name (ID78, Zero) | |
Name (W128, Zero) | |
Name (W119, Zero) | |
Name (W120, Zero) | |
Name (IRDY, One) | |
Name (PIOT, Zero) | |
Name (DMAT, Zero) | |
If (LEqual (SizeOf (Arg1), 0x0200)) | |
{ | |
CreateWordField (Arg1, Zero, IW00) | |
Store (IW00, ID00) | |
CreateWordField (Arg1, 0x62, IW49) | |
Store (IW49, ID49) | |
CreateWordField (Arg1, 0x6A, IW53) | |
Store (IW53, ID53) | |
CreateWordField (Arg1, 0x7E, IW63) | |
Store (IW63, ID63) | |
CreateWordField (Arg1, 0x76, IW59) | |
Store (IW59, ID59) | |
CreateWordField (Arg1, 0xB0, IW88) | |
Store (IW88, ID88) | |
CreateWordField (Arg1, 0x9C, IW78) | |
Store (IW78, ID78) | |
CreateWordField (Arg1, 0x0100, I128) | |
Store (I128, W128) | |
CreateWordField (Arg1, 0xEE, I119) | |
Store (I119, W119) | |
CreateWordField (Arg1, 0xF0, I120) | |
Store (I120, W120) | |
} | |
Store (0xA0, Local7) | |
If (Arg0) | |
{ | |
Store (0xB0, Local7) | |
} | |
If (LAnd (And (ID59, 0x0100), And (ID59, 0xFF))) | |
{ | |
GTFB (AT03, And (ID59, 0xFF), Local7) | |
} | |
If (LEqual (Local7, 0xA0)) | |
{ | |
If (And (W128, One)) | |
{ | |
GTFB (AT05, Zero, Local7) | |
} | |
If (And (ID78, 0x40)) | |
{ | |
GTFB (AT07, 0x06, Local7) | |
} | |
If (And (ID78, 0x08)) | |
{ | |
If (LDFT) | |
{ | |
GTFB (AT06, 0x03, Local7) | |
} | |
Else | |
{ | |
GTFB (AT61, 0x03, Local7) | |
} | |
} | |
If (And (W119, 0x20)) | |
{ | |
If (And (HDDF, One)) | |
{ | |
GTFB (AT08, Zero, Local7) | |
} | |
Else | |
{ | |
GTFB (AT81, Zero, Local7) | |
} | |
} | |
} | |
Store (ATAB, Debug) | |
Return (ATAB) | |
} | |
Method (RATA, 1, NotSerialized) | |
{ | |
CreateByteField (Arg0, Zero, CMDN) | |
Multiply (CMDN, 0x38, Local0) | |
CreateField (Arg0, 0x08, Local0, RETB) | |
Store (RETB, Debug) | |
Return (RETB) | |
} | |
Name (ATP0, Buffer (0x32) {}) | |
Device (PRT0) | |
{ | |
Name (_ADR, 0xFFFF) | |
Method (_SDD, 1, NotSerialized) | |
{ | |
Store (AGTF (Zero, Arg0), ATP0) | |
} | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATP0)) | |
} | |
} | |
Name (ATP2, Buffer (0x32) {}) | |
Device (PRT2) | |
{ | |
Name (_ADR, 0x0002FFFF) | |
Name (OFLG, One) | |
Method (_SDD, 1, NotSerialized) | |
{ | |
Store (AGTF (Zero, Arg0), ATP2) | |
} | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATP2)) | |
} | |
Method (_DSM, 4, Serialized) | |
{ | |
Name (_T_1, Zero) | |
Name (_T_0, Zero) | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x30, 0xEF, 0xFA, 0xBD, 0xBB, 0xAE, 0xDE, 0x11, | |
/* 0008 */ 0x8A, 0x39, 0x08, 0x00, 0x20, 0x0C, 0x9A, 0x66 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg1), _T_1) | |
If (LEqual (_T_1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x0F | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Break | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Store (^^^SBRG.GPLK, Local6) | |
Store (Zero, ^^^SBRG.GPLK) | |
Store (Zero, GPE3) | |
Store (One, GPS3) | |
Store (Zero, OFLG) | |
If (LEqual (And (GL00, 0x08), 0x08)) | |
{ | |
Or (GIV0, 0x08, GIV0) | |
} | |
Else | |
{ | |
And (GIV0, 0xF7, GIV0) | |
} | |
Or (GL08, 0x10, GL08) | |
Sleep (0xC8) | |
Store (One, OFLG) | |
Store (One, GPS3) | |
Store (One, GPE3) | |
Store (Local6, ^^^SBRG.GPLK) | |
Return (One) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03)) | |
{ | |
If (OFLG) | |
{ | |
Store (^^^SBRG.GPLK, Local6) | |
Store (Zero, ^^^SBRG.GPLK) | |
Store (Zero, GPE3) | |
Store (One, GPS3) | |
And (GL08, 0xEF, GL08) | |
Store (Local6, ^^^SBRG.GPLK) | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
Method (AGTF, 2, Serialized) | |
{ | |
Store (0xA0, Local0) | |
Store (Zero, CMDC) | |
If (LEqual (SizeOf (Arg1), 0x0200)) | |
{ | |
CreateWordField (Arg1, Zero, IW00) | |
CreateWordField (Arg1, 0x0100, I128) | |
If (And (I128, One)) | |
{ | |
GTFB (AT05, Zero, Local0) | |
} | |
CreateWordField (Arg1, 0x9C, IW78) | |
If (And (IW78, 0x40)) | |
{ | |
GTFB (AT07, 0x06, Local0) | |
} | |
If (And (IW78, 0x08)) | |
{ | |
If (LDFT) | |
{ | |
GTFB (AT06, 0x03, Local0) | |
} | |
Else | |
{ | |
GTFB (AT61, 0x03, Local0) | |
} | |
} | |
CreateWordField (Arg1, 0xEE, I119) | |
If (And (I119, 0x20)) | |
{ | |
If (And (HDDF, One)) | |
{ | |
GTFB (AT08, Zero, Local0) | |
} | |
Else | |
{ | |
GTFB (AT81, Zero, Local0) | |
} | |
} | |
} | |
Return (ATAB) | |
} | |
} | |
Device (IDE1) | |
{ | |
Name (_ADR, 0x001F0005) | |
Name (REGF, One) | |
Method (_REG, 2, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x02)) | |
{ | |
Store (Arg1, REGF) | |
} | |
} | |
OperationRegion (BAR0, PCI_Config, Zero, 0x0100) | |
Field (BAR0, DWordAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x0A), | |
SCCR, 8, | |
BCCR, 8, | |
Offset (0x90), | |
MAPV, 2, | |
, 4, | |
SMS, 2, | |
Offset (0x92), | |
P0EN, 1, | |
P1EN, 1, | |
P2EN, 1, | |
P3EN, 1, | |
P4EN, 1, | |
P5EN, 1, | |
, 1, | |
Offset (0x93), | |
P0PF, 1, | |
P1PF, 1, | |
P2PF, 1, | |
P3PF, 1, | |
P4PF, 1, | |
P5PF, 1, | |
, 1, | |
Offset (0x94) | |
} | |
Device (CHN0) | |
{ | |
Name (_ADR, Zero) | |
Device (DRV0) | |
{ | |
Name (_ADR, Zero) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA0)) | |
} | |
} | |
Device (DRV1) | |
{ | |
Name (_ADR, One) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA1)) | |
} | |
} | |
} | |
Device (CHN1) | |
{ | |
Name (_ADR, One) | |
Device (DRV0) | |
{ | |
Name (_ADR, Zero) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA2)) | |
} | |
} | |
Device (DRV1) | |
{ | |
Name (_ADR, One) | |
Method (_GTF, 0, NotSerialized) | |
{ | |
Return (RATA (ATA3)) | |
} | |
} | |
} | |
Name (AT01, Buffer (0x07) | |
{ | |
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT02, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90 | |
}) | |
Name (AT03, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6 | |
}) | |
Name (AT04, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x91 | |
}) | |
Name (AT05, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF5 | |
}) | |
Name (AT06, Buffer (0x07) | |
{ | |
0x10, 0x03, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT61, Buffer (0x07) | |
{ | |
0x90, 0x03, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT07, Buffer (0x07) | |
{ | |
0x10, 0x06, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT08, Buffer (0x07) | |
{ | |
0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT81, Buffer (0x07) | |
{ | |
0xC1, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (AT09, Buffer (0x07) | |
{ | |
0x90, 0x05, 0x00, 0x00, 0x00, 0x00, 0xEF | |
}) | |
Name (ATA0, Buffer (0x32) {}) | |
Name (ATA1, Buffer (0x32) {}) | |
Name (ATA2, Buffer (0x32) {}) | |
Name (ATA3, Buffer (0x32) {}) | |
Name (ATAB, Buffer (0x32) {}) | |
CreateByteField (ATAB, Zero, CMDC) | |
Method (GTFB, 3, Serialized) | |
{ | |
Multiply (CMDC, 0x38, Local0) | |
Add (Local0, 0x08, Local1) | |
CreateField (ATAB, Local1, 0x38, CMDX) | |
Multiply (CMDC, 0x07, Local0) | |
CreateByteField (ATAB, Add (Local0, 0x02), A001) | |
CreateByteField (ATAB, Add (Local0, 0x06), A005) | |
Store (Arg0, CMDX) | |
Store (Arg1, A001) | |
Store (Arg2, A005) | |
Increment (CMDC) | |
} | |
Method (GTF, 2, Serialized) | |
{ | |
Store (Arg1, Debug) | |
Store (Zero, CMDC) | |
Name (ID00, Zero) | |
Name (ID49, 0x0C00) | |
Name (ID59, Zero) | |
Name (ID53, 0x04) | |
Name (ID63, 0x0F00) | |
Name (ID88, 0x0F00) | |
Name (ID78, Zero) | |
Name (W128, Zero) | |
Name (W119, Zero) | |
Name (W120, Zero) | |
Name (IRDY, One) | |
Name (PIOT, Zero) | |
Name (DMAT, Zero) | |
If (LEqual (SizeOf (Arg1), 0x0200)) | |
{ | |
CreateWordField (Arg1, Zero, IW00) | |
Store (IW00, ID00) | |
CreateWordField (Arg1, 0x62, IW49) | |
Store (IW49, ID49) | |
CreateWordField (Arg1, 0x6A, IW53) | |
Store (IW53, ID53) | |
CreateWordField (Arg1, 0x7E, IW63) | |
Store (IW63, ID63) | |
CreateWordField (Arg1, 0x76, IW59) | |
Store (IW59, ID59) | |
CreateWordField (Arg1, 0xB0, IW88) | |
Store (IW88, ID88) | |
CreateWordField (Arg1, 0x9C, IW78) | |
Store (IW78, ID78) | |
CreateWordField (Arg1, 0x0100, I128) | |
Store (I128, W128) | |
CreateWordField (Arg1, 0xEE, I119) | |
Store (I119, W119) | |
CreateWordField (Arg1, 0xF0, I120) | |
Store (I120, W120) | |
} | |
Store (0xA0, Local7) | |
If (Arg0) | |
{ | |
Store (0xB0, Local7) | |
} | |
If (LAnd (And (ID59, 0x0100), And (ID59, 0xFF))) | |
{ | |
GTFB (AT03, And (ID59, 0xFF), Local7) | |
} | |
If (LEqual (Local7, 0xA0)) | |
{ | |
If (And (W128, One)) | |
{ | |
GTFB (AT05, Zero, Local7) | |
} | |
If (And (ID78, 0x40)) | |
{ | |
GTFB (AT07, 0x06, Local7) | |
} | |
If (And (ID78, 0x08)) | |
{ | |
If (LDFT) | |
{ | |
GTFB (AT06, 0x03, Local7) | |
} | |
Else | |
{ | |
GTFB (AT61, 0x03, Local7) | |
} | |
} | |
If (And (W119, 0x20)) | |
{ | |
If (And (HDDF, One)) | |
{ | |
GTFB (AT08, Zero, Local7) | |
} | |
Else | |
{ | |
GTFB (AT81, Zero, Local7) | |
} | |
} | |
} | |
Store (ATAB, Debug) | |
Return (ATAB) | |
} | |
Method (RATA, 1, NotSerialized) | |
{ | |
CreateByteField (Arg0, Zero, CMDN) | |
Multiply (CMDN, 0x38, Local0) | |
CreateField (Arg0, 0x08, Local0, RETB) | |
Store (RETB, Debug) | |
Return (RETB) | |
} | |
Method (AGTF, 2, Serialized) | |
{ | |
Store (0xA0, Local0) | |
Store (Zero, CMDC) | |
If (LEqual (SizeOf (Arg1), 0x0200)) | |
{ | |
CreateWordField (Arg1, Zero, IW00) | |
CreateWordField (Arg1, 0x0100, I128) | |
If (And (I128, One)) | |
{ | |
GTFB (AT05, Zero, Local0) | |
} | |
CreateWordField (Arg1, 0x9C, IW78) | |
If (And (IW78, 0x40)) | |
{ | |
GTFB (AT07, 0x06, Local0) | |
} | |
If (And (IW78, 0x08)) | |
{ | |
If (LDFT) | |
{ | |
GTFB (AT06, 0x03, Local0) | |
} | |
Else | |
{ | |
GTFB (AT61, 0x03, Local0) | |
} | |
} | |
CreateWordField (Arg1, 0xEE, I119) | |
If (And (I119, 0x20)) | |
{ | |
If (And (HDDF, One)) | |
{ | |
GTFB (AT08, Zero, Local0) | |
} | |
Else | |
{ | |
GTFB (AT81, Zero, Local0) | |
} | |
} | |
} | |
Return (ATAB) | |
} | |
} | |
Device (EHC1) | |
{ | |
Name (_ADR, 0x001D0000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0D, 0x03)) | |
} | |
} | |
Device (USB1) | |
{ | |
Name (_ADR, 0x001D0001) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x03, 0x03)) | |
} | |
} | |
Device (USB2) | |
{ | |
Name (_ADR, 0x001D0002) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x04, 0x03)) | |
} | |
} | |
Device (USB3) | |
{ | |
Name (_ADR, 0x001D0003) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0C, 0x03)) | |
} | |
} | |
Device (USB4) | |
{ | |
Name (_ADR, 0x001D0004) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0E, 0x03)) | |
} | |
} | |
Device (EHC2) | |
{ | |
Name (_ADR, 0x001A0000) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x0D, 0x03)) | |
} | |
} | |
Device (USB5) | |
{ | |
Name (_ADR, 0x001A0001) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x05, 0x03)) | |
} | |
} | |
Device (USB6) | |
{ | |
Name (_ADR, 0x001A0002) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x20, 0x03)) | |
} | |
} | |
Device (USB7) | |
{ | |
Name (_ADR, 0x001A0003) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x25, 0x03)) | |
} | |
} | |
Device (RP01) | |
{ | |
Name (_ADR, 0x001C0000) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR04 ()) | |
} | |
Return (PR04 ()) | |
} | |
} | |
Device (RP02) | |
{ | |
Name (_ADR, 0x001C0001) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR05 ()) | |
} | |
Return (PR05 ()) | |
} | |
Device (WLAN) | |
{ | |
Name (_ADR, Zero) | |
Method (_RMV, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
OperationRegion (MINP, PCI_Config, Zero, 0x68) | |
Field (MINP, ByteAcc, NoLock, Preserve) | |
{ | |
VNUM, 32, | |
Offset (0x09), | |
PINF, 8, | |
SBCC, 8, | |
BSCC, 8, | |
Offset (0x2C), | |
SNUM, 32, | |
Offset (0x34) | |
} | |
Method (MPDP, 0, NotSerialized) | |
{ | |
If (LEqual (SNUM, Ones)) | |
{ | |
Return (Zero) | |
} | |
If (LNotEqual (BSCC, 0x02)) | |
{ | |
Return (Zero) | |
} | |
Return (One) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x03)) | |
} | |
} | |
} | |
Device (RP03) | |
{ | |
Name (_ADR, 0x001C0002) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR06 ()) | |
} | |
Return (PR06 ()) | |
} | |
} | |
Device (RP04) | |
{ | |
Name (_ADR, 0x001C0003) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR07 ()) | |
} | |
Return (PR07 ()) | |
} | |
Device (XHCI) | |
{ | |
Name (_ADR, Zero) | |
Method (_RMV, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x03)) | |
} | |
} | |
} | |
Device (RP05) | |
{ | |
Name (_ADR, 0x001C0004) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR08 ()) | |
} | |
Return (PR08 ()) | |
} | |
} | |
Device (RP06) | |
{ | |
Name (_ADR, 0x001C0005) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR09 ()) | |
} | |
Return (PR09 ()) | |
} | |
Device (GLAN) | |
{ | |
Name (_ADR, Zero) | |
Method (_RMV, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
OperationRegion (LANR, PCI_Config, Zero, 0x0100) | |
Field (LANR, ByteAcc, NoLock, Preserve) | |
{ | |
VID, 16, | |
Offset (0xE0), | |
, 15, | |
PMES, 1 | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
} | |
} | |
Device (RP07) | |
{ | |
Name (_ADR, 0x001C0006) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR0E) | |
} | |
Return (PR0E) | |
} | |
} | |
Device (RP08) | |
{ | |
Name (_ADR, 0x001C0007) | |
OperationRegion (LCTL, PCI_Config, 0x50, 0x04) | |
Field (LCTL, ByteAcc, NoLock, Preserve) | |
{ | |
, 4, | |
PELD, 1, | |
PERL, 1 | |
} | |
OperationRegion (SLOT, PCI_Config, 0x54, 0x10) | |
Field (SLOT, ByteAcc, NoLock, Preserve) | |
{ | |
SCAP, 32, | |
SCTL, 16, | |
ABP1, 1, | |
PFD1, 1, | |
MSC1, 1, | |
PDC1, 1, | |
CC10, 1, | |
MS10, 1, | |
PDS1, 1, | |
RSV0, 1, | |
LASC, 1, | |
RSV1, 7 | |
} | |
OperationRegion (RHUB, PCI_Config, 0x60, 0x10) | |
Field (RHUB, ByteAcc, NoLock, Preserve) | |
{ | |
PMID, 16, | |
PMES, 1, | |
PMEP, 1, | |
RSV2, 14 | |
} | |
OperationRegion (MISC, PCI_Config, 0xD8, 0x08) | |
Field (MISC, ByteAcc, NoLock, Preserve) | |
{ | |
RSV4, 30, | |
PMCE, 1, | |
HPCE, 1, | |
PMMS, 1, | |
HPPD, 1, | |
HPAB, 1, | |
HPCC, 1, | |
HPLA, 1, | |
RSV3, 25, | |
HPCS, 1, | |
PMCS, 1 | |
} | |
OperationRegion (PXCS, PCI_Config, 0x40, 0xC0) | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x12), | |
, 13, | |
LASX, 1, | |
Offset (0x1A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x1B), | |
LSCX, 1, | |
Offset (0x20), | |
Offset (0x22), | |
PSPX, 1, | |
Offset (0x98), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDC1) | |
Store (One, HPCS) | |
Store (Zero, PELD) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (GPRW (0x09, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) | |
{ | |
If (PICM) | |
{ | |
Return (AR0F) | |
} | |
Return (PR0F) | |
} | |
} | |
Device (GFX0) | |
{ | |
Name (_ADR, 0x00020000) | |
OperationRegion (VSID, PCI_Config, Zero, 0x04) | |
Field (VSID, ByteAcc, NoLock, Preserve) | |
{ | |
REG0, 32 | |
} | |
Name (PCTG, Package (0x0B) {}) | |
Scope (^^PCI0) | |
{ | |
OperationRegion (MCHP, PCI_Config, 0x40, 0xC0) | |
Field (MCHP, AnyAcc, NoLock, Preserve) | |
{ | |
Offset (0x60), | |
TASM, 10, | |
Offset (0x62) | |
} | |
} | |
OperationRegion (IGDP, PCI_Config, 0x40, 0xC0) | |
Field (IGDP, AnyAcc, NoLock, Preserve) | |
{ | |
Offset (0x12), | |
, 1, | |
GIVD, 1, | |
, 2, | |
GUMA, 3, | |
Offset (0x14), | |
, 4, | |
GMFN, 1, | |
Offset (0x18), | |
Offset (0xA4), | |
ASLE, 8, | |
Offset (0xA8), | |
GSSE, 1, | |
GSSB, 14, | |
GSES, 1, | |
Offset (0xB0), | |
, 12, | |
CDVL, 1, | |
Offset (0xB2), | |
Offset (0xB5), | |
LBPC, 8, | |
Offset (0xBC), | |
ASLS, 32 | |
} | |
OperationRegion (IGDM, SystemMemory, ASLB, 0x2000) | |
Field (IGDM, AnyAcc, NoLock, Preserve) | |
{ | |
SIGN, 128, | |
SIZE, 32, | |
OVER, 32, | |
SVER, 256, | |
VVER, 128, | |
GVER, 128, | |
MBOX, 32, | |
DMOD, 32, | |
Offset (0x100), | |
DRDY, 32, | |
CSTS, 32, | |
CEVT, 32, | |
Offset (0x120), | |
DIDL, 32, | |
DDL2, 32, | |
DDL3, 32, | |
DDL4, 32, | |
DDL5, 32, | |
DDL6, 32, | |
DDL7, 32, | |
DDL8, 32, | |
CPDL, 32, | |
CPL2, 32, | |
CPL3, 32, | |
CPL4, 32, | |
CPL5, 32, | |
CPL6, 32, | |
CPL7, 32, | |
CPL8, 32, | |
CADL, 32, | |
CAL2, 32, | |
CAL3, 32, | |
CAL4, 32, | |
CAL5, 32, | |
CAL6, 32, | |
CAL7, 32, | |
CAL8, 32, | |
NADL, 32, | |
NDL2, 32, | |
NDL3, 32, | |
NDL4, 32, | |
NDL5, 32, | |
NDL6, 32, | |
NDL7, 32, | |
NDL8, 32, | |
ASLP, 32, | |
TIDX, 32, | |
CHPD, 32, | |
CLID, 32, | |
CDCK, 32, | |
SXSW, 32, | |
EVTS, 32, | |
CNOT, 32, | |
NRDY, 32, | |
Offset (0x200), | |
SCIE, 1, | |
GEFC, 4, | |
GXFC, 3, | |
GESF, 8, | |
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 (NVLD, 0x02) | |
Name (CRIT, 0x04) | |
Name (NCRT, 0x06) | |
Method (GSCI, 0, Serialized) | |
{ | |
Method (GBDA, 0, Serialized) | |
{ | |
If (LEqual (GESF, Zero)) | |
{ | |
Store (0x0679, 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 (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, 0x1800, PARM) | |
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) | |
} | |
If (LEqual (GESF, 0x0B)) | |
{ | |
Store (KSV0, PARM) | |
Store (KSV1, GESF) | |
Return (SUCC) | |
} | |
Store (Zero, GESF) | |
Return (CRIT) | |
} | |
Method (SBCB, 0, Serialized) | |
{ | |
If (LEqual (GESF, Zero)) | |
{ | |
Store (Zero, PARM) | |
Store (0x000F87FD, 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, 0x14), 0x07, IBIA) | |
Store (Zero, GESF) | |
Store (Zero, PARM) | |
Return (SUCC) | |
} | |
If (LEqual (GESF, 0x0B)) | |
{ | |
And (ShiftRight (PARM, One), One, IF1E) | |
If (And (PARM, 0x0001E000)) | |
{ | |
And (ShiftRight (PARM, 0x0D), 0x0F, IDMS) | |
} | |
Else | |
{ | |
And (ShiftRight (PARM, 0x11), 0x0F, 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, SCIS) | |
Store (Zero, GSSE) | |
Store (Zero, SCIE) | |
Return (Zero) | |
} | |
Method (PDRD, 0, NotSerialized) | |
{ | |
If (LNot (DRDY)) | |
{ | |
Sleep (ASLP) | |
} | |
Return (LNot (DRDY)) | |
} | |
Method (PSTS, 0, NotSerialized) | |
{ | |
If (LGreater (CSTS, 0x02)) | |
{ | |
Sleep (ASLP) | |
} | |
Return (LEqual (CSTS, 0x03)) | |
} | |
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) | |
} | |
} | |
If (CondRefOf (HNOT)) | |
{ | |
HNOT (Arg0) | |
} | |
Else | |
{ | |
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 (GDCK, 1, NotSerialized) | |
{ | |
Store (Arg0, CDCK) | |
Return (GNOT (0x04, 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 (Divide (Multiply (Arg1, 0xFF), 0x64, ), BCLP) | |
Or (BCLP, 0x80000000, BCLP) | |
Store (0x02, ASLC) | |
} | |
Else | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (Arg1, ALSI) | |
Store (One, ASLC) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
} | |
Store (One, ASLE) | |
Return (Zero) | |
} | |
Method (SCIP, 0, NotSerialized) | |
{ | |
If (LNotEqual (OVER, Zero)) | |
{ | |
Return (LNot (GSMI)) | |
} | |
Return (Zero) | |
} | |
Name (OPBS, 0xFFFFFF00) | |
Method (OPTS, 1, NotSerialized) | |
{ | |
If (And (VGAF, One)) | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
Store (ASLS, OPBS) | |
} | |
} | |
} | |
Method (OWAK, 1, NotSerialized) | |
{ | |
If (And (VGAF, One)) | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
Store (OPBS, ASLS) | |
Store (One, GSES) | |
} | |
Store (One, CLID) | |
} | |
} | |
Method (OGCD, 0, NotSerialized) | |
{ | |
If (LEqual (CADL, Zero)) | |
{ | |
Store (LCDM, CSTE) | |
Return (Zero) | |
} | |
Store (OA2D (CADL), CSTE) | |
If (LEqual (CAL2, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL2), CSTE, CSTE) | |
If (LEqual (CAL3, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL3), CSTE, CSTE) | |
If (LEqual (CAL4, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL4), CSTE, CSTE) | |
If (LEqual (CAL5, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL5), CSTE, CSTE) | |
If (LEqual (CAL6, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL6), CSTE, CSTE) | |
If (LEqual (CAL7, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL7), CSTE, CSTE) | |
If (LEqual (CAL8, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CAL8), CSTE, CSTE) | |
Return (Zero) | |
} | |
Method (OGCA, 0, NotSerialized) | |
{ | |
SDTP () | |
If (LEqual (CPDL, Zero)) | |
{ | |
Store (LCDM, ^^^CADL) | |
Return (Zero) | |
} | |
Store (OA2D (CPDL), ^^^CADL) | |
If (LEqual (CPL2, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL2), ^^^CADL, ^^^CADL) | |
If (LEqual (CPL3, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL3), ^^^CADL, ^^^CADL) | |
If (LEqual (CPL4, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL4), ^^^CADL, ^^^CADL) | |
If (LEqual (CPL5, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL5), ^^^CADL, ^^^CADL) | |
If (LEqual (CPL6, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL6), ^^^CADL, ^^^CADL) | |
If (LEqual (CPL7, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL7), ^^^CADL, ^^^CADL) | |
If (LEqual (CPL8, Zero)) | |
{ | |
Return (Zero) | |
} | |
Or (OA2D (CPL8), ^^^CADL, ^^^CADL) | |
Return (Zero) | |
} | |
Method (OA2D, 1, NotSerialized) | |
{ | |
Store (Zero, Local0) | |
If (LEqual (Arg0, LFID)) | |
{ | |
Or (Local0, LCDM, Local0) | |
} | |
If (LEqual (Arg0, CRID)) | |
{ | |
Or (Local0, CRTM, Local0) | |
} | |
If (LEqual (Arg0, TVID)) | |
{ | |
Or (Local0, TVOM, Local0) | |
} | |
If (LEqual (Arg0, HDID)) | |
{ | |
Or (Local0, HDMM, Local0) | |
} | |
If (LEqual (Arg0, DVID)) | |
{ | |
Or (Local0, DVIM, Local0) | |
} | |
If (LEqual (Arg0, DPID)) | |
{ | |
Or (Local0, DPOM, Local0) | |
} | |
Return (Local0) | |
} | |
Name (DDID, Zero) | |
Method (WNDD, 1, NotSerialized) | |
{ | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NADL) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL2) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL3) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL4) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL5) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL6) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL7) | |
Store (GDID (Arg0), DDID) | |
Store (DDID, NDL8) | |
Store (Zero, CONT) | |
} | |
Name (CONT, Zero) | |
Method (GDID, 1, NotSerialized) | |
{ | |
While (LLess (CONT, 0x08)) | |
{ | |
Store (One, Local0) | |
ShiftLeft (Local0, CONT, Local0) | |
And (NSTE, Local0, Local1) | |
Increment (CONT) | |
If (And (Local1, LCDM)) | |
{ | |
Return (LFID) | |
} | |
If (And (Local1, CRTM)) | |
{ | |
Return (CRID) | |
} | |
If (And (Local1, TVOM)) | |
{ | |
Return (TVID) | |
} | |
If (And (Local1, HDMM)) | |
{ | |
Return (HDID) | |
} | |
If (And (Local1, DVIM)) | |
{ | |
Return (DVID) | |
} | |
If (And (Local1, DPOM)) | |
{ | |
Return (DPID) | |
} | |
} | |
Return (Zero) | |
} | |
Name (LFID, Ones) | |
Name (CRID, Ones) | |
Name (TVID, Ones) | |
Name (DPID, Ones) | |
Name (HDID, Ones) | |
Name (DVID, Ones) | |
Method (GDTP, 1, NotSerialized) | |
{ | |
And (Arg0, 0x0F00, Local0) | |
If (LEqual (Local0, 0x0100)) | |
{ | |
Store (Arg0, CRID) | |
} | |
If (LEqual (Local0, 0x0200)) | |
{ | |
Store (Arg0, TVID) | |
} | |
If (LEqual (Local0, 0x0400)) | |
{ | |
Store (Arg0, LFID) | |
} | |
If (LEqual (Arg0, 0x0300)) | |
{ | |
Store (Arg0, HDID) | |
} | |
} | |
Method (SDTP, 0, NotSerialized) | |
{ | |
GDTP (CPDL) | |
GDTP (CPL2) | |
GDTP (CPL3) | |
GDTP (CPL4) | |
GDTP (CPL5) | |
GDTP (CPL6) | |
GDTP (CPL7) | |
GDTP (CPL8) | |
} | |
Method (PRST, 0, NotSerialized) | |
{ | |
If (LEqual (REG0, Ones)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Name (LCDM, 0x0808) | |
Name (CRTM, 0x0101) | |
Name (TVOM, 0x0202) | |
Name (HDMM, 0x0404) | |
Name (DVIM, 0x4040) | |
Name (DPOM, 0x8080) | |
Name (DOSF, One) | |
Name (BRNC, Zero) | |
Name (UPDN, One) | |
Name (NXTD, One) | |
Method (MD2A, 1, NotSerialized) | |
{ | |
Store (Zero, Local0) | |
If (And (Arg0, LCDM)) | |
{ | |
Or (Local0, One, Local0) | |
} | |
If (And (Arg0, CRTM)) | |
{ | |
Or (Local0, 0x02, Local0) | |
} | |
If (And (Arg0, TVOM)) | |
{ | |
Or (Local0, 0x04, Local0) | |
} | |
If (And (Arg0, DVIM)) | |
{ | |
Or (Local0, 0x08, Local0) | |
} | |
If (And (Arg0, HDMM)) | |
{ | |
Or (Local0, 0x10, Local0) | |
} | |
If (And (Arg0, DPOM)) | |
{ | |
Or (Local0, 0x20, Local0) | |
} | |
If (LNot (Local0)) | |
{ | |
Return (NXTD) | |
} | |
Return (Local0) | |
} | |
Method (MA2D, 1, NotSerialized) | |
{ | |
Store (Zero, Local0) | |
If (And (Arg0, One)) | |
{ | |
Or (Local0, LCDM, Local0) | |
} | |
If (And (Arg0, 0x02)) | |
{ | |
Or (Local0, CRTM, Local0) | |
} | |
If (And (Arg0, 0x04)) | |
{ | |
Or (Local0, TVOM, Local0) | |
} | |
If (And (Arg0, 0x08)) | |
{ | |
Or (Local0, DVIM, Local0) | |
} | |
If (And (Arg0, 0x10)) | |
{ | |
Or (Local0, HDMM, Local0) | |
} | |
If (And (Arg0, 0x20)) | |
{ | |
Or (Local0, DPOM, Local0) | |
} | |
If (LNot (Local0)) | |
{ | |
Return (LCDM) | |
} | |
Return (Local0) | |
} | |
Method (_INI, 0, NotSerialized) | |
{ | |
If (PAT2) | |
{ | |
^^SBRG.EC0.WRAM (0x0342, 0x90) | |
^^SBRG.EC0.WRAM (0x0343, 0x05) | |
^^SBRG.EC0.WRAM (0x0344, 0x58) | |
^^SBRG.EC0.WRAM (0x0340, 0x06) | |
} | |
} | |
Method (_DOS, 1, NotSerialized) | |
{ | |
GVIF () | |
If (And (VBIF, One)) | |
{ | |
And (Arg0, 0x03, DOSF) | |
Store (ShiftRight (Arg0, 0x02), BRNC) | |
And (BRNC, One, BRNC) | |
} | |
} | |
Method (_DOD, 0, NotSerialized) | |
{ | |
Store (Zero, NDID) | |
If (LNotEqual (DIDL, Zero)) | |
{ | |
Store (SDDL (DIDL), DID1) | |
} | |
If (LNotEqual (DDL2, Zero)) | |
{ | |
Store (SDDL (DDL2), DID2) | |
} | |
If (LNotEqual (DDL3, Zero)) | |
{ | |
Store (SDDL (DDL3), DID3) | |
} | |
If (LNotEqual (DDL4, Zero)) | |
{ | |
Store (SDDL (DDL4), DID4) | |
} | |
If (LNotEqual (DDL5, Zero)) | |
{ | |
Store (SDDL (DDL5), DID5) | |
} | |
If (LEqual (NDID, One)) | |
{ | |
Name (TMP1, Package (0x01) | |
{ | |
Ones | |
}) | |
Store (Or (0x00010000, DID1), Index (TMP1, Zero)) | |
Return (TMP1) | |
} | |
If (LEqual (NDID, 0x02)) | |
{ | |
Name (TMP2, Package (0x02) | |
{ | |
Ones, | |
Ones | |
}) | |
Store (Or (0x00010000, DID1), Index (TMP2, Zero)) | |
Store (Or (0x00010000, DID2), Index (TMP2, One)) | |
Return (TMP2) | |
} | |
If (LEqual (NDID, 0x03)) | |
{ | |
Name (TMP3, Package (0x03) | |
{ | |
Ones, | |
Ones, | |
Ones | |
}) | |
Store (Or (0x00010000, DID1), Index (TMP3, Zero)) | |
Store (Or (0x00010000, DID2), Index (TMP3, One)) | |
Store (Or (0x00010000, DID3), Index (TMP3, 0x02)) | |
Return (TMP3) | |
} | |
If (LEqual (NDID, 0x04)) | |
{ | |
Name (TMP4, Package (0x04) | |
{ | |
Ones, | |
Ones, | |
Ones, | |
Ones | |
}) | |
Store (Or (0x00010000, DID1), Index (TMP4, Zero)) | |
Store (Or (0x00010000, DID2), Index (TMP4, One)) | |
Store (Or (0x00010000, DID3), Index (TMP4, 0x02)) | |
Store (Or (0x00010000, DID4), Index (TMP4, 0x03)) | |
Return (TMP4) | |
} | |
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 (0x01) | |
{ | |
0x0400 | |
}) | |
} | |
Device (DD01) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID1, Zero)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID1)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
Return (CDDS (DID1)) | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID1)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Device (LCDD) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID2, Zero)) | |
{ | |
Return (0x02) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID2)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
Return (CDDS (DID2)) | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID2)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
Method (MINB, 0, NotSerialized) | |
{ | |
If (ARDY) | |
{ | |
Store (BRTI, Local1) | |
ShiftLeft (Local1, 0x04, Local1) | |
Store (DerefOf (Index (^^^SBRG.EC0.PWAC, Local1)), Local0) | |
Or (TCHE, 0x08, TCHE) | |
Or (ASLC, 0x08, ASLC) | |
Store (Local0, PFMB) | |
Or (PFMB, 0x0100, PFMB) | |
Store (One, ASLE) | |
} | |
} | |
Method (_BCL, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
Add (0x64, One, Local0) | |
Add (Local0, 0x02, Local0) | |
Name (BRPP, Package (0x67) {}) | |
Store (0x64, Index (BRPP, Zero)) | |
Store (0x28, Index (BRPP, One)) | |
Store (0x02, Local1) | |
Store (0x64, Local2) | |
While (LLess (Local1, Local0)) | |
{ | |
Store (Local2, Index (BRPP, Local1)) | |
Increment (Local1) | |
Decrement (Local2) | |
} | |
Store (Zero, Local0) | |
While (LLessEqual (Local0, 0x0A)) | |
{ | |
Store (Multiply (Local0, 0x0A), Index (PCTG, Subtract (0x0A, Local0 | |
))) | |
Increment (Local0) | |
} | |
MINB () | |
Return (BRPP) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
Store (BRTI, Local4) | |
ShiftLeft (Local4, 0x04, Local4) | |
While (LLess (Local0, 0x0B)) | |
{ | |
Subtract (0x0B, Local0, Local3) | |
Subtract (Local3, One, Local3) | |
Store (Add (Local4, Local3), Local3) | |
Store (DerefOf (Index (^^^SBRG.EC0.PWAC, Local3)), Local1) | |
Store (Divide (Multiply (Local1, 0x64), 0xFF, ), Local2) | |
Store (Local2, Index (PCTG, Local0)) | |
Increment (Local0) | |
} | |
MINB () | |
Return (PCTG) | |
} | |
} | |
Name (BCBH, Zero) | |
Method (_BCM, 1, NotSerialized) | |
{ | |
Store (One, BCMD) | |
Store (GCBL (Arg0), Local0) | |
Subtract (0x0A, Local0, LBTN) | |
If (BRNC) | |
{ | |
AINT (One, Arg0) | |
} | |
Else | |
{ | |
^^^SBRG.EC0.STBR () | |
} | |
} | |
Method (_BQC, 0, NotSerialized) | |
{ | |
Return (LBTN) | |
} | |
} | |
Device (DD03) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID3, Zero)) | |
{ | |
Return (0x03) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID3)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
If (LEqual (DID3, Zero)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (CDDS (DID3)) | |
} | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID3)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Device (DD04) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID4, Zero)) | |
{ | |
Return (0x04) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID4)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
If (LEqual (DID4, Zero)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (CDDS (DID4)) | |
} | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID4)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Device (DD05) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID5, Zero)) | |
{ | |
Return (0x05) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID5)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
If (LEqual (DID5, Zero)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (CDDS (DID5)) | |
} | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID5)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Device (DD06) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID6, Zero)) | |
{ | |
Return (0x06) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID6)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
If (LEqual (DID6, Zero)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (CDDS (DID6)) | |
} | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID6)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Device (DD07) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID7, Zero)) | |
{ | |
Return (0x07) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID7)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
If (LEqual (DID7, Zero)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (CDDS (DID7)) | |
} | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID7)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Device (DD08) | |
{ | |
Method (_ADR, 0, Serialized) | |
{ | |
If (LEqual (DID8, Zero)) | |
{ | |
Return (0x08) | |
} | |
Else | |
{ | |
Return (And (0xFFFF, DID8)) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
If (LEqual (DID8, Zero)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (CDDS (DID8)) | |
} | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
Return (NDDS (DID8)) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
If (LEqual (And (Arg0, 0xC0000000), 0xC0000000)) | |
{ | |
Store (NSTE, CSTE) | |
} | |
} | |
} | |
Method (SDDL, 1, NotSerialized) | |
{ | |
Increment (NDID) | |
Store (And (Arg0, 0x0F0F), Local0) | |
Or (0x80000000, Local0, Local1) | |
If (LEqual (DIDL, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL2, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL3, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL4, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL5, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL6, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL7, Local0)) | |
{ | |
Return (Local1) | |
} | |
If (LEqual (DDL8, Local0)) | |
{ | |
Return (Local1) | |
} | |
Return (Zero) | |
} | |
Method (CDDS, 1, NotSerialized) | |
{ | |
Store (And (Arg0, 0x0F0F), Local0) | |
If (LEqual (Zero, Local0)) | |
{ | |
Return (0x1D) | |
} | |
If (LEqual (CADL, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL2, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL3, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL4, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL5, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL6, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL7, Local0)) | |
{ | |
Return (0x1F) | |
} | |
If (LEqual (CAL8, Local0)) | |
{ | |
Return (0x1F) | |
} | |
Return (0x1D) | |
} | |
Method (NDDS, 1, NotSerialized) | |
{ | |
Store (And (Arg0, 0x0F0F), Local0) | |
If (LEqual (Zero, Local0)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (NADL, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL2, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL3, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL4, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL5, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL6, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL7, Local0)) | |
{ | |
Return (One) | |
} | |
If (LEqual (NDL8, Local0)) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (SWHD, 1, Serialized) | |
{ | |
Store (One, UPDN) | |
If (LEqual (DOSF, One)) | |
{ | |
If (\NATK ()) | |
{ | |
Store (Zero, SFUN) | |
} | |
Else | |
{ | |
Store (0x04, SFUN) | |
} | |
Store (Arg0, SSTE) | |
If (\NATK ()) | |
{ | |
Store (MA2D (Arg0), NSTE) | |
Store (NSTE, SSTE) | |
} | |
ISMI (0x94) | |
Notify (GFX0, 0x81) | |
} | |
Else | |
{ | |
Store (One, CEVT) | |
Store (0x03, CSTS) | |
If (LNotEqual (^^^CADL, PADL)) | |
{ | |
Store (^^^CADL, PADL) | |
If (LEqual (OSFG, OSXP)) | |
{ | |
Notify (PCI0, Zero) | |
} | |
Else | |
{ | |
Notify (GFX0, Zero) | |
} | |
Sleep (0x03E8) | |
} | |
Store (MA2D (Arg0), NSTE) | |
WNDD (NSTE) | |
Notify (GFX0, 0x80) | |
} | |
Return (Zero) | |
} | |
Method (GCDD, 0, NotSerialized) | |
{ | |
Store (One, SFUN) | |
ISMI (0x95) | |
Return (CSTE) | |
} | |
Method (GNDD, 0, NotSerialized) | |
{ | |
Store (0x05, SFUN) | |
ISMI (0x95) | |
Return (NSTE) | |
} | |
Method (GCAD, 0, NotSerialized) | |
{ | |
Store (0x02, SFUN) | |
ISMI (0x95) | |
Return (^^^CADL) | |
} | |
Method (GVIF, 0, NotSerialized) | |
{ | |
Store (0x67, VBIF) | |
Store (Zero, SFUN) | |
ISMI (0x95) | |
Return (VBIF) | |
} | |
Method (ADVD, 0, NotSerialized) | |
{ | |
If (And (DOSF, 0x03)) | |
{ | |
GCDD () | |
GCAD () | |
GVIF () | |
} | |
Else | |
{ | |
OGCA () | |
OGCD () | |
} | |
If (\NATK ()) | |
{ | |
If (UPDN) | |
{ | |
Store (MD2A (CSTE), NXTD) | |
Store (Zero, UPDN) | |
} | |
Store (Zero, Local0) | |
Store (MD2A (^^^CADL), Local1) | |
Store (Zero, Local2) | |
If (And (VGAF, One)) | |
{ | |
And (VBIF, 0x08, Local2) | |
} | |
If (And (LEqual (Local2, 0x08), And (VGAF, One))) | |
{ | |
And (NXTD, Local1, NXTD) | |
Store (NXTD, Local0) | |
} | |
While (LNotEqual (NXTD, Local0)) | |
{ | |
Increment (NXTD) | |
If (LAnd (LEqual (DOSF, One), LEqual (NXTD, 0x03))) | |
{ | |
Increment (NXTD) | |
} | |
If (And (DOSF, 0x03)) | |
{ | |
If (LEqual (NXTD, 0x05)) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (NXTD, 0x06)) | |
{ | |
Increment (NXTD) | |
} | |
} | |
If (LEqual (NXTD, 0x07)) | |
{ | |
Increment (NXTD) | |
} | |
If (And (DOSF, 0x03)) | |
{ | |
If (LEqual (NXTD, 0x09)) | |
{ | |
Increment (NXTD) | |
} | |
} | |
If (LAnd (LEqual (DOSF, One), LEqual (NXTD, 0x0A))) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (NXTD, 0x0B)) | |
{ | |
Increment (NXTD) | |
} | |
If (LAnd (LEqual (DOSF, One), LEqual (NXTD, 0x0C))) | |
{ | |
Increment (NXTD) | |
} | |
While (LAnd (LGreater (NXTD, 0x0C), LLess (NXTD, 0x10))) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (DOSF, One)) | |
{ | |
If (LEqual (NXTD, 0x11)) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (NXTD, 0x12)) | |
{ | |
Increment (NXTD) | |
} | |
} | |
If (LEqual (NXTD, 0x13)) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (DOSF, One)) | |
{ | |
While (LAnd (LGreaterEqual (NXTD, 0x14), LLess (NXTD, 0x20))) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (NXTD, 0x21)) | |
{ | |
Increment (NXTD) | |
} | |
If (LEqual (NXTD, 0x22)) | |
{ | |
Increment (NXTD) | |
} | |
} | |
If (LEqual (NXTD, 0x23)) | |
{ | |
Increment (NXTD) | |
} | |
If (LAnd (LEqual (DOSF, One), LEqual (NXTD, 0x24))) | |
{ | |
Increment (NXTD) | |
} | |
While (LAnd (LGreater (NXTD, 0x24), LLess (NXTD, 0x28))) | |
{ | |
Increment (NXTD) | |
} | |
If (LAnd (LEqual (DOSF, One), LEqual (NXTD, 0x28))) | |
{ | |
Increment (NXTD) | |
} | |
While (LAnd (LGreater (NXTD, 0x28), LLess (NXTD, 0x30))) | |
{ | |
Increment (NXTD) | |
} | |
If (LAnd (LEqual (DOSF, One), LEqual (NXTD, 0x30))) | |
{ | |
Increment (NXTD) | |
} | |
If (LGreater (NXTD, 0x30)) | |
{ | |
Store (One, NXTD) | |
} | |
And (NXTD, Local1, Local0) | |
} | |
Return (NXTD) | |
} | |
Return (GNDD ()) | |
} | |
Method (GCDS, 0, NotSerialized) | |
{ | |
If (And (DOSF, 0x03)) | |
{ | |
GCDD () | |
GCAD () | |
GVIF () | |
} | |
Else | |
{ | |
OGCA () | |
OGCD () | |
} | |
Return (MD2A (CSTE)) | |
} | |
Method (NATK, 0, NotSerialized) | |
{ | |
Return (One) | |
} | |
Name (BCMD, Zero) | |
Method (UPBL, 0, NotSerialized) | |
{ | |
If (BRNC) | |
{ | |
GCDD () | |
Store (And (MD2A (CSTE), One), Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (Zero) | |
} | |
Store (CBLV, Local0) | |
Store (Zero, BCMD) | |
Notify (LCDD, 0x86) | |
Store (0x012C, Local2) | |
And (Local0, 0x7FFFFFFF, Local1) | |
If (LGreaterEqual (Local1, DerefOf (Index (PCTG, One)))) | |
{ | |
Store (Zero, Local2) | |
Store (One, Local1) | |
} | |
If (LLess (MSOS (), OSW8)) | |
{ | |
While (LAnd (LNot (BCMD), Local2)) | |
{ | |
Store (CBLV, Local1) | |
If (LNot (And (Local1, 0x80000000))) | |
{ | |
Store (Local0, Local1) | |
} | |
If (LEqual (Local0, Local1)) | |
{ | |
Sleep (0x0A) | |
Decrement (Local2) | |
Store (Zero, Local1) | |
} | |
Else | |
{ | |
Store (Zero, Local2) | |
Store (One, Local1) | |
} | |
} | |
} | |
If (LAnd (LNot (BCMD), Local1)) | |
{ | |
If (LLess (MSOS (), OSW8)) | |
{ | |
Store (GCBL (CBLV), Local3) | |
Subtract (0x0A, Local3, Local3) | |
Store (Local3, LBTN) | |
} | |
} | |
} | |
Else | |
{ | |
If (LLess (LBTN, 0x0F)) | |
{ | |
Increment (LBTN) | |
} | |
Else | |
{ | |
Store (0x0F, LBTN) | |
} | |
^^SBRG.EC0.STBR () | |
} | |
Return (Zero) | |
} | |
Method (DWBL, 0, NotSerialized) | |
{ | |
If (BRNC) | |
{ | |
GCDD () | |
Store (And (MD2A (CSTE), One), Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (Zero) | |
} | |
Store (CBLV, Local0) | |
Store (Zero, BCMD) | |
Notify (LCDD, 0x87) | |
Store (0x012C, Local2) | |
And (Local0, 0x7FFFFFFF, Local1) | |
If (LLessEqual (Local1, DerefOf (Index (PCTG, 0x0A)))) | |
{ | |
Store (Zero, Local2) | |
Store (One, Local1) | |
} | |
If (LLess (MSOS (), OSW8)) | |
{ | |
While (LAnd (LNot (BCMD), Local2)) | |
{ | |
Store (CBLV, Local1) | |
If (LNot (And (Local1, 0x80000000))) | |
{ | |
Store (Local0, Local1) | |
} | |
If (LEqual (Local0, Local1)) | |
{ | |
Sleep (0x0A) | |
Decrement (Local2) | |
Store (Zero, Local1) | |
} | |
Else | |
{ | |
Store (Zero, Local2) | |
Store (One, Local1) | |
} | |
} | |
} | |
If (LAnd (LNot (BCMD), Local1)) | |
{ | |
If (LLess (MSOS (), OSW8)) | |
{ | |
Store (GCBL (CBLV), Local3) | |
Subtract (0x0A, Local3, Local3) | |
Store (Local3, LBTN) | |
} | |
} | |
} | |
Else | |
{ | |
If (LGreater (LBTN, Zero)) | |
{ | |
Decrement (LBTN) | |
} | |
If (LGreater (LBTN, 0x0F)) | |
{ | |
Store (0x0F, LBTN) | |
} | |
^^SBRG.EC0.STBR () | |
} | |
Return (Zero) | |
} | |
Method (GCBL, 1, NotSerialized) | |
{ | |
Store (Zero, Local0) | |
And (Arg0, 0x7FFFFFFF, Arg0) | |
While (LLess (Local0, 0x0A)) | |
{ | |
Store (DerefOf (Index (PCTG, Local0)), Local1) | |
Store (DerefOf (Index (PCTG, Add (Local0, One))), Local2) | |
If (LAnd (LLessEqual (Arg0, Local1), LGreater (Arg0, Local2))) | |
{ | |
Break | |
} | |
Increment (Local0) | |
} | |
Return (Local0) | |
} | |
Device (^^MEM2) | |
{ | |
Name (_HID, EisaId ("PNP0C01")) | |
Name (_UID, 0x02) | |
Name (CRS, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x20000000, // Address Base | |
0x00200000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0x40000000, // Address Base | |
0x00200000, // Address Length | |
) | |
}) | |
Method (_CRS, 0, NotSerialized) | |
{ | |
If (IGDS) | |
{ | |
Return (CRS) | |
} | |
} | |
} | |
} | |
Device (IMEI) | |
{ | |
Name (_ADR, 0x00160000) | |
} | |
} | |
} | |
Mutex (MUTX, 0x00) | |
OperationRegion (PRT0, SystemIO, 0x80, 0x04) | |
Field (PRT0, DWordAcc, Lock, Preserve) | |
{ | |
P80H, 32 | |
} | |
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) | |
} | |
OperationRegion (SPRT, SystemIO, 0xB2, 0x02) | |
Field (SPRT, ByteAcc, Lock, Preserve) | |
{ | |
SSMP, 8 | |
} | |
Method (_PIC, 1, NotSerialized) | |
{ | |
Store (Arg0, GPIC) | |
Store (Arg0, PICM) | |
} | |
Method (_PTS, 1, NotSerialized) | |
{ | |
PTS (Arg0) | |
} | |
Method (_WAK, 1, Serialized) | |
{ | |
WAK (Arg0) | |
Return (Package (0x02) | |
{ | |
Zero, | |
Zero | |
}) | |
} | |
Method (GETB, 3, Serialized) | |
{ | |
Multiply (Arg0, 0x08, Local0) | |
Multiply (Arg1, 0x08, Local1) | |
CreateField (Arg2, Local0, Local1, TBF3) | |
Return (TBF3) | |
} | |
Method (PNOT, 0, Serialized) | |
{ | |
If (LGreater (TCNT, One)) | |
{ | |
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) | |
} | |
} | |
If (And (PDC2, 0x08)) | |
{ | |
Notify (\_PR.CPU2, 0x80) | |
If (And (PDC2, 0x10)) | |
{ | |
Sleep (0x64) | |
Notify (\_PR.CPU2, 0x81) | |
} | |
} | |
If (And (PDC3, 0x08)) | |
{ | |
Notify (\_PR.CPU3, 0x80) | |
If (And (PDC3, 0x10)) | |
{ | |
Sleep (0x64) | |
Notify (\_PR.CPU3, 0x81) | |
} | |
} | |
If (And (PDC4, 0x08)) | |
{ | |
Notify (\_PR.CPU4, 0x80) | |
If (And (PDC4, 0x10)) | |
{ | |
Sleep (0x64) | |
Notify (\_PR.CPU4, 0x81) | |
} | |
} | |
If (And (PDC5, 0x08)) | |
{ | |
Notify (\_PR.CPU5, 0x80) | |
If (And (PDC5, 0x10)) | |
{ | |
Sleep (0x64) | |
Notify (\_PR.CPU5, 0x81) | |
} | |
} | |
If (And (PDC6, 0x08)) | |
{ | |
Notify (\_PR.CPU6, 0x80) | |
If (And (PDC6, 0x10)) | |
{ | |
Sleep (0x64) | |
Notify (\_PR.CPU6, 0x81) | |
} | |
} | |
If (And (PDC7, 0x08)) | |
{ | |
Notify (\_PR.CPU7, 0x80) | |
If (And (PDC7, 0x10)) | |
{ | |
Sleep (0x64) | |
Notify (\_PR.CPU7, 0x81) | |
} | |
} | |
} | |
Else | |
{ | |
Notify (\_PR.CPU0, 0x80) | |
Sleep (0x64) | |
Notify (\_PR.CPU0, 0x81) | |
} | |
} | |
Method (TRAP, 2, Serialized) | |
{ | |
Store (Arg1, SMIF) | |
If (LEqual (Arg0, TRTP)) | |
{ | |
Store (Zero, TRP0) | |
} | |
If (LEqual (Arg0, TRTD)) | |
{ | |
Store (Arg1, DTSF) | |
Store (Zero, TRPD) | |
Return (DTSF) | |
} | |
Return (SMIF) | |
} | |
Scope (_SB.PCI0) | |
{ | |
Method (_INI, 0, NotSerialized) | |
{ | |
Store (0x07D0, OSYS) | |
If (CondRefOf (\_OSI, Local0)) | |
{ | |
If (_OSI ("Linux")) | |
{ | |
Store (0x03E8, OSYS) | |
} | |
If (_OSI ("Windows 2001")) | |
{ | |
Store (0x07D1, OSYS) | |
} | |
If (_OSI ("Windows 2001 SP1")) | |
{ | |
Store (0x07D1, OSYS) | |
} | |
If (_OSI ("Windows 2001 SP2")) | |
{ | |
Store (0x07D2, OSYS) | |
} | |
If (_OSI ("Windows 2001.1")) | |
{ | |
Store (0x07D3, OSYS) | |
} | |
If (_OSI ("Windows 2006")) | |
{ | |
Store (0x07D6, OSYS) | |
} | |
If (_OSI ("Windows 2009")) | |
{ | |
Store (0x07D9, OSYS) | |
} | |
} | |
} | |
Method (NHPG, 0, Serialized) | |
{ | |
Store (Zero, ^RP01.HPEX) | |
Store (Zero, ^RP02.HPEX) | |
Store (Zero, ^RP03.HPEX) | |
Store (Zero, ^RP04.HPEX) | |
Store (One, ^RP01.HPSX) | |
Store (One, ^RP02.HPSX) | |
Store (One, ^RP03.HPSX) | |
Store (One, ^RP04.HPSX) | |
} | |
Method (NPME, 0, Serialized) | |
{ | |
Store (Zero, ^RP01.PMEX) | |
Store (Zero, ^RP02.PMEX) | |
Store (Zero, ^RP03.PMEX) | |
Store (Zero, ^RP04.PMEX) | |
Store (Zero, ^RP05.PMEX) | |
Store (Zero, ^RP06.PMEX) | |
Store (Zero, ^RP07.PMEX) | |
Store (Zero, ^RP08.PMEX) | |
Store (One, ^RP01.PMSX) | |
Store (One, ^RP02.PMSX) | |
Store (One, ^RP03.PMSX) | |
Store (One, ^RP04.PMSX) | |
Store (One, ^RP05.PMSX) | |
Store (One, ^RP06.PMSX) | |
Store (One, ^RP07.PMSX) | |
Store (One, ^RP08.PMSX) | |
} | |
} | |
Scope (\) | |
{ | |
Name (PICM, Zero) | |
Name (PRWP, Package (0x02) | |
{ | |
Zero, | |
Zero | |
}) | |
Method (GPRW, 2, NotSerialized) | |
{ | |
Store (Arg0, Index (PRWP, Zero)) | |
Store (ShiftLeft (SS1, One), Local0) | |
Or (Local0, ShiftLeft (SS2, 0x02), Local0) | |
Or (Local0, ShiftLeft (SS3, 0x03), Local0) | |
Or (Local0, ShiftLeft (SS4, 0x04), Local0) | |
If (And (ShiftLeft (One, Arg1), Local0)) | |
{ | |
Store (Arg1, Index (PRWP, One)) | |
} | |
Else | |
{ | |
ShiftRight (Local0, One, Local0) | |
FindSetLeftBit (Local0, Index (PRWP, One)) | |
} | |
Return (PRWP) | |
} | |
} | |
Scope (\) | |
{ | |
OperationRegion (IO_T, SystemIO, 0x1000, 0x10) | |
Field (IO_T, ByteAcc, NoLock, Preserve) | |
{ | |
TRPI, 16, | |
Offset (0x04), | |
Offset (0x06), | |
Offset (0x08), | |
TRP0, 8, | |
Offset (0x0A), | |
Offset (0x0B), | |
Offset (0x0C), | |
Offset (0x0D), | |
Offset (0x0E), | |
Offset (0x0F), | |
Offset (0x10) | |
} | |
OperationRegion (IO_D, SystemIO, 0x0810, 0x04) | |
Field (IO_D, ByteAcc, NoLock, Preserve) | |
{ | |
TRPD, 8 | |
} | |
OperationRegion (IO_H, SystemIO, 0x1000, 0x04) | |
Field (IO_H, ByteAcc, NoLock, Preserve) | |
{ | |
TRPH, 8 | |
} | |
OperationRegion (RCRB, SystemMemory, SRCB, 0x4000) | |
Field (RCRB, DWordAcc, Lock, Preserve) | |
{ | |
Offset (0x1000), | |
Offset (0x3000), | |
Offset (0x3404), | |
HPAS, 2, | |
, 5, | |
HPAE, 1, | |
Offset (0x3418), | |
, 1, | |
, 1, | |
SATD, 1, | |
SMBD, 1, | |
HDAD, 1, | |
Offset (0x341A), | |
RP1D, 1, | |
RP2D, 1, | |
RP3D, 1, | |
RP4D, 1, | |
RP5D, 1, | |
RP6D, 1, | |
RP7D, 1, | |
RP8D, 1, | |
Offset (0x359C), | |
UP0D, 1, | |
UP1D, 1, | |
UP2D, 1, | |
UP3D, 1, | |
UP4D, 1, | |
UP5D, 1, | |
UP6D, 1, | |
UP7D, 1, | |
UP8D, 1, | |
UP9D, 1, | |
UPAD, 1, | |
UPBD, 1, | |
UPCD, 1, | |
UPDD, 1, | |
, 1, | |
Offset (0x359E) | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
} | |
Scope (_PR) | |
{ | |
Processor (CPU0, 0x01, 0x00000410, 0x06) {} | |
Processor (CPU1, 0x02, 0x00000410, 0x06) {} | |
Processor (CPU2, 0x03, 0x00000410, 0x06) {} | |
Processor (CPU3, 0x04, 0x00000410, 0x06) {} | |
Processor (CPU4, 0x05, 0x00000410, 0x06) {} | |
Processor (CPU5, 0x06, 0x00000410, 0x06) {} | |
Processor (CPU6, 0x07, 0x00000410, 0x06) {} | |
Processor (CPU7, 0x08, 0x00000410, 0x06) {} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (PDRC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) | |
Name (_UID, One) | |
Name (BUF0, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00004000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00008000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00000000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0xFED20000, // Address Base | |
0x00020000, // Address Length | |
) | |
Memory32Fixed (ReadOnly, | |
0xFED90000, // Address Base | |
0x00004000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0xFED45000, // Address Base | |
0x0004B000, // Address Length | |
) | |
Memory32Fixed (ReadOnly, | |
0xFF000000, // Address Base | |
0x01000000, // Address Length | |
) | |
Memory32Fixed (ReadOnly, | |
0xFEE00000, // Address Base | |
0x00100000, // Address Length | |
) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
) | |
}) | |
Method (_CRS, 0, Serialized) | |
{ | |
CreateDWordField (BUF0, 0x04, RBR0) | |
ShiftLeft (^^SBRG.RCBA, 0x0E, RBR0) | |
CreateDWordField (BUF0, 0x7C, TBR0) | |
Store (TBAB, TBR0) | |
CreateDWordField (BUF0, 0x80, TBLN) | |
If (LEqual (TBAB, Zero)) | |
{ | |
Store (Zero, TBLN) | |
} | |
CreateDWordField (BUF0, 0x10, MBR0) | |
ShiftLeft (MHBR, 0x0F, MBR0) | |
CreateDWordField (BUF0, 0x1C, DBR0) | |
ShiftLeft (DIBR, 0x0C, DBR0) | |
CreateDWordField (BUF0, 0x28, EBR0) | |
ShiftLeft (EPBR, 0x0C, EBR0) | |
CreateDWordField (BUF0, 0x34, XBR0) | |
ShiftLeft (PXBR, 0x1A, XBR0) | |
CreateDWordField (BUF0, 0x38, XSZ0) | |
ShiftRight (0x10000000, PXSZ, XSZ0) | |
Return (BUF0) | |
} | |
} | |
} | |
Scope (_SB.PCI0.SBRG) | |
{ | |
Device (EC0) | |
{ | |
Name (_HID, EisaId ("PNP0C09")) | |
Name (_CRS, 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 | |
) | |
}) | |
Name (_GPE, 0x1B) | |
Mutex (MUEC, 0x00) | |
Mutex (MU4T, 0x00) | |
Name (ECFL, Ones) | |
Method (ECAV, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (SLPT, 0x04)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (ECFL, Ones)) | |
{ | |
If (LGreaterEqual (_REV, 0x02)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
Return (Zero) | |
} | |
Return (ECFL) | |
} | |
OperationRegion (PECO, SystemIO, 0x0260, 0x08) | |
Field (PECO, ByteAcc, Lock, Preserve) | |
{ | |
HSTS, 8, | |
HCTL, 8, | |
HCMD, 8, | |
HTAR, 8, | |
HWLR, 8, | |
HRLR, 8, | |
HWDR, 8, | |
HRDR, 8 | |
} | |
Method (PECI, 7, Serialized) | |
{ | |
Name (_T_0, Zero) | |
While (LEqual (And (PBSY, 0x02), 0x02)) | |
{ | |
If (LGreater (Arg6, 0x1000)) | |
{ | |
Return (Zero) | |
} | |
Add (Arg6, One, Arg6) | |
Sleep (0x0A) | |
} | |
And (PBSY, 0xFD, PBSY) | |
Store (Arg0, HTAR) | |
Store (Arg1, HWLR) | |
Store (Arg2, HRLR) | |
Store (Arg3, HCMD) | |
Name (TEMP, Zero) | |
Store (Zero, TEMP) | |
If (LNotEqual (Arg1, Zero)) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (HCMD), _T_0) | |
If (LEqual (_T_0, 0xF7)) | |
{ | |
Store (Zero, TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
Store (Zero, TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Store (Zero, TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xA1)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xA2)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xB1)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xB2)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x61)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x62)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xE1)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xE2)) | |
{ | |
Store (Subtract (Arg1, One), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xA5)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xA6)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xB5)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xB6)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x65)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x66)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xE5)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0xE6)) | |
{ | |
Or (HCTL, 0x40, HCTL) | |
Store (Subtract (Arg1, 0x02), TEMP) | |
Break | |
} | |
Else | |
{ | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
If (LGreater (TEMP, Zero)) | |
{ | |
Store (Zero, Local0) | |
While (LLess (Local0, TEMP)) | |
{ | |
Store (DerefOf (Index (Arg4, Local0)), HWDR) | |
Add (Local0, One, Local0) | |
} | |
} | |
Or (HCTL, One, HCTL) | |
Name (TIME, 0x5000) | |
Store (Zero, Local0) | |
While (LLess (Local0, TIME)) | |
{ | |
If (And (HSTS, 0x80)) | |
{ | |
Store (0x80, HSTS) | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
If (And (HSTS, 0x40)) | |
{ | |
Store (0x40, HSTS) | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
If (And (HSTS, 0x20)) | |
{ | |
Store (0x20, HSTS) | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
If (And (HSTS, 0x08)) | |
{ | |
Store (0x08, HSTS) | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
If (And (HSTS, 0x04)) | |
{ | |
Store (0x04, HSTS) | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
If (And (HSTS, 0x02)) | |
{ | |
Store (0x02, HSTS) | |
Break | |
} | |
} | |
If (LEqual (Local0, TIME)) | |
{ | |
And (PBSY, 0xFE, PBSY) | |
Return (Zero) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
While (LLess (Local0, HRLR)) | |
{ | |
Store (HRDR, Local1) | |
Store (Local1, Index (Arg5, Local0)) | |
Add (Local0, One, Local0) | |
} | |
And (PBSY, 0xFE, PBSY) | |
Return (One) | |
} | |
And (PBSY, 0xFE, PBSY) | |
} | |
OperationRegion (ECOR, EmbeddedControl, Zero, 0xFF) | |
Field (ECOR, ByteAcc, Lock, Preserve) | |
{ | |
Offset (0x04), | |
CMD1, 8, | |
CDT1, 8, | |
CDT2, 8, | |
CDT3, 8, | |
Offset (0x80), | |
Offset (0x81), | |
Offset (0x82), | |
Offset (0x83), | |
EB0R, 8, | |
EB1R, 8, | |
EPWF, 8, | |
Offset (0x87), | |
Offset (0x88), | |
Offset (0x89), | |
Offset (0x8A), | |
HKEN, 1, | |
Offset (0x93), | |
TAH0, 16, | |
TAH1, 16, | |
TSTP, 8, | |
Offset (0x9C), | |
CDT4, 8, | |
CDT5, 8, | |
Offset (0xA0), | |
Offset (0xA1), | |
Offset (0xA2), | |
Offset (0xA3), | |
EACT, 8, | |
TH1R, 8, | |
TH1L, 8, | |
TH0R, 8, | |
TH0L, 8, | |
Offset (0xB0), | |
B0PN, 16, | |
Offset (0xB4), | |
Offset (0xB6), | |
Offset (0xB8), | |
Offset (0xBA), | |
Offset (0xBC), | |
Offset (0xBE), | |
B0TM, 16, | |
B0C1, 16, | |
B0C2, 16, | |
B0C3, 16, | |
B0C4, 16, | |
Offset (0xD0), | |
B1PN, 16, | |
Offset (0xD4), | |
Offset (0xD6), | |
Offset (0xD8), | |
Offset (0xDA), | |
Offset (0xDC), | |
Offset (0xDE), | |
B1TM, 16, | |
B1C1, 16, | |
B1C2, 16, | |
B1C3, 16, | |
B1C4, 16, | |
Offset (0xF0), | |
Offset (0xF2), | |
Offset (0xF4), | |
B0SN, 16, | |
Offset (0xF8), | |
Offset (0xFA), | |
Offset (0xFC), | |
B1SN, 16 | |
} | |
Name (SMBF, Zero) | |
OperationRegion (SMBX, EmbeddedControl, 0x18, 0x28) | |
Field (SMBX, ByteAcc, NoLock, Preserve) | |
{ | |
PRTC, 8, | |
SSTS, 5, | |
, 1, | |
ALFG, 1, | |
CDFG, 1, | |
ADDR, 8, | |
CMDB, 8, | |
BDAT, 256, | |
BCNT, 8, | |
, 1, | |
ALAD, 7, | |
ALD0, 8, | |
ALD1, 8 | |
} | |
OperationRegion (SMB2, EmbeddedControl, 0x40, 0x28) | |
Field (SMB2, ByteAcc, NoLock, Preserve) | |
{ | |
PRT2, 8, | |
SST2, 5, | |
, 1, | |
ALF2, 1, | |
CDF2, 1, | |
ADD2, 8, | |
CMD2, 8, | |
BDA2, 256, | |
BCN2, 8, | |
, 1, | |
ALA2, 7, | |
ALR0, 8, | |
ALR1, 8 | |
} | |
Field (SMB2, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x04), | |
DA20, 8, | |
DA21, 8 | |
} | |
Field (SMBX, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x04), | |
DAT0, 8, | |
DAT1, 8 | |
} | |
Field (SMBX, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x04), | |
DT2B, 16 | |
} | |
OperationRegion (NSBS, EmbeddedControl, 0x40, 0x04) | |
Field (NSBS, ByteAcc, NoLock, Preserve) | |
{ | |
A2AD, 8, | |
A2D0, 8, | |
A2D1, 8, | |
A3AD, 8 | |
} | |
OperationRegion (BRAM, SystemIO, 0x025A, 0x02) | |
Field (BRAM, ByteAcc, Lock, Preserve) | |
{ | |
BRAI, 8, | |
BRAD, 8 | |
} | |
IndexField (BRAI, BRAD, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x8F), | |
PBSY, 8, | |
EPWS, 8, | |
EB0S, 8, | |
EB1S, 8, | |
EB0T, 8, | |
EB1T, 8, | |
Offset (0x98), | |
ECPU, 8, | |
ECRT, 8, | |
EPSV, 8, | |
Offset (0xA0), | |
B0VL, 16, | |
B0RC, 16, | |
B0FC, 16, | |
B0MD, 16, | |
B0ST, 16, | |
B0CC, 16, | |
B0DC, 16, | |
B0DV, 16, | |
B1VL, 16, | |
B1RC, 16, | |
B1FC, 16, | |
B1MD, 16, | |
B1ST, 16, | |
B1CC, 16, | |
B1DC, 16, | |
B1DV, 16 | |
} | |
Method (_INI, 0, NotSerialized) | |
{ | |
If (LLessEqual (MSOS (), OSME)) | |
{ | |
Store (One, ECFL) | |
} | |
} | |
Method (_REG, 2, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
Store (Arg1, ECFL) | |
} | |
} | |
} | |
} | |
Scope (\) | |
{ | |
Method (DIAG, 1, NotSerialized) | |
{ | |
P8XH (Zero, Arg0) | |
SBYT (Zero, Arg0) | |
} | |
OperationRegion (GPSC, SystemIO, 0xB2, 0x02) | |
Field (GPSC, ByteAcc, NoLock, Preserve) | |
{ | |
SMCM, 8, | |
SMST, 8 | |
} | |
Method (ISMI, 1, Serialized) | |
{ | |
Store (Arg0, SMCM) | |
} | |
Method (ASMI, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.ALPR) | |
Store (0xA3, SMCM) | |
Return (\_SB.ALPR) | |
} | |
Scope (_SB) | |
{ | |
OperationRegion (ECMS, SystemIO, 0x72, 0x02) | |
Field (ECMS, ByteAcc, Lock, Preserve) | |
{ | |
EIND, 8, | |
EDAT, 8 | |
} | |
IndexField (EIND, EDAT, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x40), | |
IKFG, 8, | |
Offset (0x43), | |
RAMB, 32, | |
AVOL, 8, | |
LBTN, 8, | |
ERRF, 8, | |
OCLK, 8, | |
WIDE, 1, | |
OVCK, 2, | |
SLPN, 3, | |
ACRD, 1, | |
VGAS, 1, | |
CPUR, 6, | |
CPUF, 2, | |
LBT2, 8, | |
PCMS, 8, | |
ALSL, 8, | |
ALAE, 1, | |
ALDE, 1, | |
ALSP, 1, | |
Offset (0x51), | |
WLDP, 1, | |
BTDP, 1, | |
WRST, 1, | |
BRST, 1, | |
WRPS, 1, | |
BRPS, 1, | |
Offset (0x52), | |
SYNA, 1, | |
ALPS, 1, | |
ELAN, 1, | |
STLC, 1, | |
Offset (0x53), | |
IKF2, 8, | |
UHDB, 8, | |
OSPM, 8, | |
TCGF, 8, | |
PPIS, 8, | |
PPIR, 8, | |
SIDE, 1, | |
PWBS, 1, | |
WFFG, 1, | |
OCST, 3, | |
SMTT, 1, | |
Offset (0x5A), | |
SP80, 1, | |
Offset (0x5B), | |
SWD2, 1, | |
F9KP, 1, | |
HACF, 6, | |
UWDP, 1, | |
WMDP, 1, | |
GPDP, 1, | |
TGDP, 1, | |
UWST, 1, | |
WMST, 1, | |
GPST, 1, | |
TGST, 1, | |
UWPS, 1, | |
WMPS, 1, | |
GPPS, 1, | |
TGPS, 1, | |
Offset (0x5E), | |
SPDC, 8, | |
DROK, 1, | |
SPDG, 1, | |
Offset (0x60), | |
KBLV, 8, | |
FVGA, 1, | |
P4HN, 1, | |
USSC, 1, | |
MFTM, 1, | |
APBM, 4, | |
EGCP, 8, | |
EGC2, 2, | |
Offset (0x64), | |
VHDA, 1, | |
DP3S, 1, | |
LTCL, 2, | |
LOLK, 2, | |
U3WA, 2 | |
} | |
OperationRegion (RAMW, SystemMemory, RAMB, 0x0100) | |
Field (RAMW, AnyAcc, NoLock, Preserve) | |
{ | |
TRTY, 8, | |
FSFN, 8, | |
FSTA, 16, | |
FADR, 32, | |
FSIZ, 16, | |
ACTD, 8, | |
AVLD, 8, | |
SETD, 8, | |
ACPF, 8, | |
DCPF, 8, | |
DCP2, 8, | |
DCTP, 8, | |
CTPY, 8, | |
PADL, 16, | |
CADL, 16, | |
CSTE, 16, | |
NSTE, 16, | |
SSTE, 16, | |
SFUN, 8, | |
TPSV, 8, | |
TAC0, 8, | |
TCRT, 8, | |
TDO1, 8, | |
TDO2, 8, | |
PPSV, 8, | |
PAC0, 8, | |
T0HL, 8, | |
T0LL, 8, | |
T0F1, 8, | |
T0F2, 8, | |
T1HL, 8, | |
T1LL, 8, | |
T1F1, 8, | |
T1F2, 8, | |
T2HL, 8, | |
T2LL, 8, | |
T2F1, 8, | |
T2F2, 8, | |
T3HL, 8, | |
T3LL, 8, | |
T3F1, 8, | |
T3F2, 8, | |
T4HL, 8, | |
T4LL, 8, | |
T4F1, 8, | |
T4F2, 8, | |
T5HL, 8, | |
T5LL, 8, | |
T5F1, 8, | |
T5F2, 8, | |
T6HL, 8, | |
T6LL, 8, | |
T6F1, 8, | |
T6F2, 8, | |
T7HL, 8, | |
T7LL, 8, | |
T7F1, 8, | |
T7F2, 8, | |
SLPT, 8, | |
AIBF, 8, | |
IDES, 8, | |
VGAF, 16, | |
C4CP, 8, | |
LUXS, 8, | |
LUXL, 8, | |
LUXH, 8, | |
LUXF, 8, | |
MNAM, 64, | |
LCDV, 32, | |
LCDR, 8, | |
PTIM, 8, | |
PTMP, 8, | |
SMIF, 8, | |
DTSE, 8, | |
DTS1, 8, | |
DTS2, 8, | |
MPEN, 8, | |
QFAN, 8, | |
VBIF, 16, | |
BIPA, 32, | |
RTCW, 16, | |
CPUN, 8, | |
ALPR, 32, | |
CIST, 8, | |
GNBF, 32, | |
CPUP, 16, | |
SLMT, 16, | |
LDES, 8, | |
HDDF, 8, | |
GCDF, 16, | |
SMBB, 32, | |
FEBL, 32, | |
TMPB, 8, | |
DSYN, 8, | |
LDFT, 8, | |
TBOT, 16, | |
RTC1, 8, | |
RTC2, 8, | |
RTC3, 8, | |
BRTI, 8, | |
SGEN, 8, | |
RBUF, 32, | |
RVBS, 32, | |
EXTS, 8, | |
USBT, 8, | |
SCMA, 32, | |
CTBO, 8, | |
DOSF, 8, | |
PTAB, 32, | |
CPCH, 32, | |
HTPT, 32, | |
CPUH, 8, | |
XHCB, 32, | |
USBC, 8, | |
VBOF, 16, | |
WOLO, 8, | |
PATP, 8, | |
PAT2, 8 | |
} | |
} | |
OperationRegion (DBGM, SystemMemory, 0x000D0000, 0x04) | |
Field (DBGM, DWordAcc, NoLock, Preserve) | |
{ | |
DBGG, 32 | |
} | |
Name (OSFG, Zero) | |
Name (OS9X, One) | |
Name (OS98, 0x02) | |
Name (OSME, 0x04) | |
Name (OS2K, 0x08) | |
Name (OSXP, 0x10) | |
Name (OSEG, 0x20) | |
Name (OSVT, 0x40) | |
Name (OSW7, 0x80) | |
Name (OSW8, 0x0100) | |
Method (MCTH, 2, NotSerialized) | |
{ | |
If (LLess (SizeOf (Arg0), SizeOf (Arg1))) | |
{ | |
Return (Zero) | |
} | |
Add (SizeOf (Arg0), One, Local0) | |
Name (BUF0, Buffer (Local0) {}) | |
Name (BUF1, Buffer (Local0) {}) | |
Store (Arg0, BUF0) | |
Store (Arg1, BUF1) | |
While (Local0) | |
{ | |
Decrement (Local0) | |
If (LNotEqual (DerefOf (Index (BUF0, Local0)), DerefOf (Index ( | |
BUF1, Local0)))) | |
{ | |
Return (Zero) | |
} | |
} | |
Return (One) | |
} | |
Method (MSOS, 0, NotSerialized) | |
{ | |
If (LNotEqual (OSFG, Zero)) | |
{ | |
Return (OSFG) | |
} | |
If (CondRefOf (\_OSI, Local0)) | |
{ | |
If (_OSI ("Windows 2001")) | |
{ | |
Store (OSXP, OSFG) | |
} | |
If (_OSI ("Windows 2001 SP1")) | |
{ | |
Store (OSXP, OSFG) | |
} | |
If (_OSI ("Windows 2001 SP2")) | |
{ | |
Store (OSXP, OSFG) | |
} | |
If (_OSI ("Windows 2006")) | |
{ | |
Store (OSVT, OSFG) | |
} | |
If (_OSI ("Linux")) | |
{ | |
Store (OSEG, OSFG) | |
} | |
If (_OSI ("Windows 2009")) | |
{ | |
Store (OSW7, OSFG) | |
} | |
If (_OSI ("Windows 2012")) | |
{ | |
Store (OSW8, OSFG) | |
} | |
Return (OSFG) | |
} | |
Else | |
{ | |
If (MCTH (_OS, "Microsoft Windows")) | |
{ | |
Store (OS98, OSFG) | |
} | |
Else | |
{ | |
If (MCTH (_OS, "Microsoft WindowsME: Millennium Edition")) | |
{ | |
Store (OSME, OSFG) | |
} | |
Else | |
{ | |
If (MCTH (_OS, "Microsoft Windows NT")) | |
{ | |
Store (OS2K, OSFG) | |
} | |
Else | |
{ | |
Store (OSXP, OSFG) | |
} | |
} | |
} | |
} | |
Return (OSFG) | |
} | |
Name (ONAM, "ASUSTek") | |
Method (ADVG, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.GFX0.PRST ()) | |
{ | |
Return (\_SB.PCI0.GFX0.ADVD ()) | |
} | |
Return (0x03) | |
} | |
Method (GCDM, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.GFX0.PRST ()) | |
{ | |
Return (\_SB.PCI0.GFX0.GCDS ()) | |
} | |
Return (One) | |
} | |
Method (SWHG, 1, Serialized) | |
{ | |
If (\_SB.PCI0.GFX0.PRST ()) | |
{ | |
\_SB.PCI0.GFX0.SWHD (Arg0) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (NATK, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.GFX0.PRST ()) | |
{ | |
Return (\_SB.PCI0.GFX0.NATK ()) | |
} | |
Return (One) | |
} | |
} | |
Scope (_SB) | |
{ | |
Name (ATKP, Zero) | |
Name (AITM, Zero) | |
Name (PLMD, Zero) | |
Name (MUTX, One) | |
Name (LEDS, Zero) | |
Name (PWKY, Zero) | |
Device (ATKD) | |
{ | |
Name (_HID, "pnp0c14") | |
Name (_UID, "ATK") | |
Name (ATKQ, Package (0x10) | |
{ | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones | |
}) | |
Name (AQHI, Zero) | |
Name (AQTI, 0x0F) | |
Name (AQNO, Zero) | |
Method (IANQ, 1, Serialized) | |
{ | |
If (LGreaterEqual (AQNO, 0x10)) | |
{ | |
Store (0x64, Local0) | |
While (LAnd (Local0, LGreaterEqual (AQNO, 0x10))) | |
{ | |
Decrement (Local0) | |
Sleep (0x0A) | |
} | |
If (LAnd (LNot (Local0), LGreaterEqual (AQNO, 0x10))) | |
{ | |
Return (Zero) | |
} | |
} | |
Increment (AQTI) | |
And (AQTI, 0x0F, AQTI) | |
Store (Arg0, Index (ATKQ, AQTI)) | |
Increment (AQNO) | |
Return (One) | |
} | |
Method (GANQ, 0, Serialized) | |
{ | |
If (AQNO) | |
{ | |
Decrement (AQNO) | |
Store (DerefOf (Index (ATKQ, AQHI)), Local0) | |
Increment (AQHI) | |
And (AQHI, 0x0F, AQHI) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (IANE, 1, Serialized) | |
{ | |
IANQ (Arg0) | |
Notify (ATKD, 0xFF) | |
} | |
Name (_WDG, Buffer (0x28) | |
{ | |
/* 0000 */ 0xD0, 0x5E, 0x84, 0x97, 0x6D, 0x4E, 0xDE, 0x11, | |
/* 0008 */ 0x8A, 0x39, 0x08, 0x00, 0x20, 0x0C, 0x9A, 0x66, | |
/* 0010 */ 0x4E, 0x42, 0x01, 0x02, 0x35, 0xBB, 0x3C, 0x0B, | |
/* 0018 */ 0xC2, 0xE3, 0xED, 0x45, 0x91, 0xC2, 0x4C, 0x5A, | |
/* 0020 */ 0x6D, 0x19, 0x5D, 0x1C, 0xFF, 0x00, 0x01, 0x08 | |
}) | |
Method (WMNB, 3, NotSerialized) | |
{ | |
CreateDWordField (Arg2, Zero, IIA0) | |
CreateDWordField (Arg2, 0x04, IIA1) | |
And (Arg1, Ones, Local0) | |
If (LEqual (Local0, 0x54494E49)) | |
{ | |
INIT (IIA0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x53545342)) | |
{ | |
Return (BSTS ()) | |
} | |
If (LEqual (Local0, 0x4E554653)) | |
{ | |
Return (SFUN ()) | |
} | |
If (LEqual (Local0, 0x43455053)) | |
{ | |
Return (0x00070006) | |
} | |
If (LEqual (Local0, 0x494E424B)) | |
{ | |
Return (KBNI ()) | |
} | |
If (LEqual (Local0, 0x5256534F)) | |
{ | |
OSVR (IIA0) | |
Return (Zero) | |
} | |
If (LEqual (Local0, 0x53545344)) | |
{ | |
If (LEqual (IIA0, 0x00010002)) | |
{ | |
Return (0x00050002) | |
} | |
If (LEqual (IIA0, 0x00020011)) | |
{ | |
Return (Or (GALE (One), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00020012)) | |
{ | |
Return (Or (GALE (0x02), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00020013)) | |
{ | |
Return (Or (GALE (0x04), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00040015)) | |
{ | |
Return (Or (GALE (0x08), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00020014)) | |
{ | |
Return (Or (GALE (0x10), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00020015)) | |
{ | |
Return (Or (GALE (0x20), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00020016)) | |
{ | |
Return (Or (GALE (0x40), 0x00050000)) | |
} | |
If (LEqual (IIA0, 0x00110011)) | |
{ | |
Return (And (TMPR (), 0xFFFF)) | |
} | |
If (LEqual (IIA0, 0x00110012)) | |
{ | |
Store (TMPR (), Local0) | |
Store (Local0, Local1) | |
ShiftRight (And (Local0, 0xF0000000), 0x1C, Local0) | |
ShiftRight (And (Local1, 0x0F000000), 0x18, Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
Return (Add (Local0, Local1)) | |
} | |
If (LEqual (IIA0, 0x00050012)) | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
Subtract (0x64, Zero, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (Local0, 0x64, Local1) | |
} | |
Else | |
{ | |
Store (0x0A, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Store (Add (GPLV (), Local0), Local1) | |
} | |
Return (Local1) | |
} | |
If (LEqual (IIA0, 0x00010011)) | |
{ | |
If (WLDP) | |
{ | |
Return (Add (WRST, 0x00030000)) | |
} | |
} | |
If (LEqual (IIA0, 0x00010013)) | |
{ | |
If (BTDP) | |
{ | |
Return (Add (BRST, 0x00050000)) | |
} | |
} | |
If (LEqual (IIA0, 0x00010021)) | |
{ | |
If (UWDP) | |
{ | |
Return (Add (UWST, 0x00050000)) | |
} | |
} | |
If (LEqual (IIA0, 0x00010017)) | |
{ | |
If (WMDP) | |
{ | |
Return (Add (WMST, 0x00050000)) | |
} | |
} | |
If (LEqual (IIA0, 0x00010015)) | |
{ | |
If (GPDP) | |
{ | |
Return (Add (GPST, 0x00050000)) | |
} | |
} | |
If (LEqual (IIA0, 0x00010019)) | |
{ | |
If (TGDP) | |
{ | |
Return (Add (TGST, 0x00050000)) | |
} | |
} | |
If (LEqual (IIA0, 0x00120012)) | |
{ | |
Return (PSTC (Zero)) | |
} | |
Return (0x02) | |
} | |
If (LEqual (Local0, 0x53564544)) | |
{ | |
If (LEqual (IIA0, 0x00020011)) | |
{ | |
Return (SALE (Add (IIA1, 0x02))) | |
} | |
If (LEqual (IIA0, 0x00020012)) | |
{ | |
Return (SALE (Add (IIA1, 0x04))) | |
} | |
If (LEqual (IIA0, 0x00020013)) | |
{ | |
Return (SALE (Add (IIA1, 0x08))) | |
} | |
If (LEqual (IIA0, 0x00040015)) | |
{ | |
Return (SALE (Add (IIA1, 0x10))) | |
} | |
If (LEqual (IIA0, 0x00020014)) | |
{ | |
Return (SALE (Add (IIA1, 0x20))) | |
} | |
If (LEqual (IIA0, 0x00020015)) | |
{ | |
Return (SALE (Add (IIA1, 0x40))) | |
} | |
If (LEqual (IIA0, 0x00020016)) | |
{ | |
Return (SALE (Add (IIA1, 0x80))) | |
} | |
If (LEqual (IIA0, 0x00050012)) | |
{ | |
SPLV (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010002)) | |
{ | |
OWGD (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010012)) | |
{ | |
WLED (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010013)) | |
{ | |
BLED (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010003)) | |
{ | |
Return (CWAP (IIA1)) | |
} | |
If (LEqual (IIA0, 0x00010015)) | |
{ | |
GPSC (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010019)) | |
{ | |
GSMC (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010017)) | |
{ | |
WMXC (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00010021)) | |
{ | |
UWBC (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00120012)) | |
{ | |
Return (PSTC (Add (IIA1, One))) | |
} | |
Return (Zero) | |
} | |
If (LEqual (Local0, 0x48534C46)) | |
{ | |
FLSH (IIA0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x494E4946)) | |
{ | |
Return (FINI (IIA0)) | |
} | |
If (LEqual (Local0, 0x53524546)) | |
{ | |
Return (FERS (IIA0)) | |
} | |
If (LEqual (Local0, 0x49525746)) | |
{ | |
Return (FWRI (IIA0)) | |
} | |
If (LEqual (Local0, 0x50525746)) | |
{ | |
Return (FWRP ()) | |
} | |
If (LEqual (Local0, 0x52534345)) | |
{ | |
Return (ECSR (IIA0)) | |
} | |
If (LEqual (Local0, 0x43534C46)) | |
{ | |
Return (FLSC (IIA0)) | |
} | |
If (LEqual (Local0, 0x43455246)) | |
{ | |
Return (FREC (IIA0)) | |
} | |
If (LEqual (Local0, 0x454D4946)) | |
{ | |
Return (FIME (IIA0)) | |
} | |
If (LEqual (Local0, 0x4C425053)) | |
{ | |
If (LEqual (IIA0, 0x80)) | |
{ | |
If (LGreaterEqual (MSOS (), OSVT)) | |
{ | |
Return (Zero) | |
} | |
Return (One) | |
} | |
If (LGreater (IIA0, 0x0F)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (IIA0, Zero)) | |
{ | |
Return (Zero) | |
} | |
SPLV (IIA0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x50534453)) | |
{ | |
SDSP (IIA0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x50534447)) | |
{ | |
Return (GDSP (IIA0)) | |
} | |
If (LEqual (Local0, 0x44495047)) | |
{ | |
Return (GPID ()) | |
} | |
If (LEqual (Local0, 0x44434C47)) | |
{ | |
Return (GLCD ()) | |
} | |
If (LEqual (Local0, 0x444F4D51)) | |
{ | |
Return (QMOD (IIA0)) | |
} | |
If (LEqual (Local0, 0x49564E41)) | |
{ | |
Return (ANVI (IIA0)) | |
} | |
If (LEqual (Local0, 0x46494243)) | |
{ | |
Return (CBIF (IIA0)) | |
} | |
If (LEqual (Local0, 0x4E464741)) | |
{ | |
Return (AGFN (IIA0)) | |
} | |
If (LEqual (Local0, 0x46494643)) | |
{ | |
CFIF (IIA0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x44495046)) | |
{ | |
Return (FPID ()) | |
} | |
If (LEqual (Local0, 0x59454B48)) | |
{ | |
Store (^^PCI0.SBRG.EC0.CDT1, Local0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x5446424B)) | |
{ | |
Store (IIA0, ^^PCI0.SBRG.EC0.HKEN) | |
Return (One) | |
} | |
Return (0xFFFFFFFE) | |
} | |
Method (_WED, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0xFF)) | |
{ | |
Return (GANQ ()) | |
} | |
Return (Ones) | |
} | |
Method (INIT, 1, NotSerialized) | |
{ | |
Store (One, ATKP) | |
Return (MNAM) | |
} | |
Method (BSTS, 0, NotSerialized) | |
{ | |
Store (IKFG, Local0) | |
Or (Local0, ShiftLeft (IKF2, 0x08), Local0) | |
If (ACPF) | |
{ | |
Store (Zero, Local0) | |
Return (Local0) | |
} | |
Else | |
{ | |
Store (^^PCI0.SBRG.EC0.RRAM (0x04FE), Local0) | |
If (LEqual (And (Local0, 0xFF), 0x34)) | |
{ | |
Store (0x05, Local0) | |
Return (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
Return (Local0) | |
} | |
} | |
And (Local0, 0xFFDF, Local0) | |
Return (Local0) | |
} | |
Method (TMPR, 0, NotSerialized) | |
{ | |
Store (\_TZ.RTMP (), Local0) | |
Store (\_TZ.RFAN (Zero), Local1) | |
ShiftLeft (Local1, 0x10, Local1) | |
Add (\_TZ.KELV (Local0), Local1, Local0) | |
Store (Zero, Local2) | |
If (TENA) | |
{ | |
Store (TDTY, Local2) | |
} | |
Else | |
{ | |
Store (HKTH (), Local3) | |
If (LNotEqual (Local3, 0xFFFF)) | |
{ | |
Store (Local3, Local2) | |
} | |
} | |
ShiftLeft (Local2, 0x18, Local2) | |
Add (Local0, Local2, Local0) | |
Store (\_TZ.RFSE (), Local3) | |
ShiftLeft (Local3, 0x1C, Local3) | |
Add (Local0, Local3, Local0) | |
Return (Local0) | |
} | |
Method (SFUN, 0, NotSerialized) | |
{ | |
Store (0x37, Local0) | |
Or (Local0, 0x40, Local0) | |
Or (Local0, 0x0800, Local0) | |
Or (Local0, 0x00020000, Local0) | |
Or (Local0, 0x00080000, Local0) | |
Or (Local0, 0x00100000, Local0) | |
Return (Local0) | |
} | |
Method (OSVR, 1, NotSerialized) | |
{ | |
Store (Arg0, OSFG) | |
} | |
Method (GPLV, 0, NotSerialized) | |
{ | |
Return (LBTN) | |
} | |
Method (SPLV, 1, NotSerialized) | |
{ | |
Store (Arg0, LBTN) | |
^^PCI0.SBRG.EC0.STBR () | |
Return (One) | |
} | |
Method (SPBL, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x0100)) | |
{ | |
Subtract (0x0B, One, Local0) | |
Return (Local0) | |
} | |
If (LEqual (Arg0, 0x80)) | |
{ | |
Return (One) | |
} | |
If (LGreater (Arg0, 0x0F)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (Arg0, Zero)) | |
{ | |
Return (Zero) | |
} | |
SPLV (Arg0) | |
Return (One) | |
} | |
Method (WLED, 1, NotSerialized) | |
{ | |
OWLD (Arg0) | |
Return (One) | |
} | |
Method (KBNI, 0, NotSerialized) | |
{ | |
Return (One) | |
} | |
Method (GALE, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x04)) | |
{ | |
If (LAnd (LEDS, 0x04)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
If (LEqual (Arg0, 0x08)) | |
{ | |
If (LAnd (LEDS, 0x08)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
If (LEqual (Arg0, 0x10)) | |
{ | |
If (LAnd (LEDS, 0x10)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Return (0x02) | |
} | |
Method (SALE, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x10)) {} | |
If (LEqual (Arg0, 0x11)) {} | |
Return (One) | |
} | |
Method (BLED, 1, NotSerialized) | |
{ | |
OBTD (Arg0) | |
Return (One) | |
} | |
Method (UWBC, 1, NotSerialized) | |
{ | |
OUWD (Arg0) | |
Return (One) | |
} | |
Method (WMXC, 1, NotSerialized) | |
{ | |
OWMD (Arg0) | |
Return (One) | |
} | |
Method (GPSC, 1, NotSerialized) | |
{ | |
OGPD (Arg0) | |
Return (One) | |
} | |
Method (GSMC, 1, NotSerialized) | |
{ | |
OTGD (Arg0) | |
Return (One) | |
} | |
Method (RSTS, 0, NotSerialized) | |
{ | |
Return (ORST ()) | |
} | |
Method (SDSP, 1, NotSerialized) | |
{ | |
If (NATK ()) | |
{ | |
Return (SWHG (Arg0)) | |
} | |
Return (Zero) | |
} | |
Method (GPID, 0, NotSerialized) | |
{ | |
Return (LCDR) | |
} | |
Method (FPID, 0, NotSerialized) | |
{ | |
Return (0x0118) | |
} | |
Method (HWRS, 0, NotSerialized) | |
{ | |
Return (OHWR ()) | |
} | |
Method (GLCD, 0, NotSerialized) | |
{ | |
Return (LCDV) | |
} | |
Name (WAPF, Zero) | |
Method (CWAP, 1, NotSerialized) | |
{ | |
Or (Arg0, WAPF, WAPF) | |
Return (One) | |
} | |
Method (QMOD, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (One) | |
} | |
If (LEqual (Arg0, One)) | |
{ | |
ShiftLeft (QFAN, 0x10, Local0) | |
Add (Local0, 0x98B6, Local0) | |
ECRW (Local0) | |
} | |
If (LEqual (Arg0, 0x02)) | |
{ | |
ECRW (0x00FF98B6) | |
} | |
Return (One) | |
} | |
Method (ANVI, 1, Serialized) | |
{ | |
Store (ASMI (Arg0), Local0) | |
Return (Local0) | |
} | |
Method (PSTC, 1, Serialized) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (CPUP, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (CPUP, Local0, Local0) | |
Return (Local0) | |
} | |
If (LGreater (Arg0, CPUP)) | |
{ | |
Return (Ones) | |
} | |
Store (Arg0, SLMT) | |
OLPM () | |
If (CIST) | |
{ | |
Notify (\_PR.CPU0, 0x80) | |
Notify (\_PR.CPU1, 0x80) | |
Notify (\_PR.CPU2, 0x80) | |
Notify (\_PR.CPU3, 0x80) | |
Notify (\_PR.CPU4, 0x80) | |
Notify (\_PR.CPU5, 0x80) | |
Notify (\_PR.CPU6, 0x80) | |
Notify (\_PR.CPU7, 0x80) | |
} | |
Return (Zero) | |
} | |
Method (SMBB, 1, Serialized) | |
{ | |
ShiftRight (Arg0, 0x10, Local0) | |
And (Local0, 0xFF, Local0) | |
ShiftRight (Arg0, 0x18, Local1) | |
And (Arg0, 0xFF, Local2) | |
If (And (Local1, One)) | |
{ | |
Return (RBYT (Local1, Local0)) | |
} | |
Else | |
{ | |
Return (WBYT (Local1, Local0, Local2)) | |
} | |
} | |
Method (SMBW, 1, Serialized) | |
{ | |
ShiftRight (Arg0, 0x10, Local0) | |
And (Local0, 0xFF, Local0) | |
ShiftRight (Arg0, 0x18, Local1) | |
And (Arg0, 0xFF, Local2) | |
If (And (Local1, One)) | |
{ | |
Return (RWRD (Local1, Local0)) | |
} | |
Else | |
{ | |
Return (WWRD (Local1, Local0, Local2)) | |
} | |
} | |
Method (SMBK, 1, Serialized) | |
{ | |
ShiftRight (Arg0, 0x08, Local0) | |
And (Local0, 0xFF, Local0) | |
If (Local0) | |
{ | |
ShiftRight (Arg0, 0x10, Local0) | |
And (Local0, 0xFF, Local0) | |
ShiftRight (Arg0, 0x18, Local1) | |
And (Local1, 0xFF, Local1) | |
And (Arg0, 0x0F, Local3) | |
If (And (Local1, One)) | |
{ | |
RBLK (Local1, Local0, Local3) | |
} | |
Else | |
{ | |
WBLK (Local1, Local0, Local3) | |
} | |
Return (Zero) | |
} | |
Else | |
{ | |
ShiftRight (Arg0, 0x10, Local2) | |
And (Local2, 0xFF, Local2) | |
ShiftRight (Arg0, 0x18, Local1) | |
If (And (Local1, One)) | |
{ | |
Return (DerefOf (Index (RBUF, Local2))) | |
} | |
Else | |
{ | |
And (Arg0, 0xFF, Local1) | |
Store (Local1, Index (RBUF, Local2)) | |
Return (Zero) | |
} | |
} | |
} | |
Method (ECRW, 1, Serialized) | |
{ | |
ShiftRight (Arg0, 0x18, Local0) | |
And (Local0, 0xFF, Local0) | |
ShiftRight (Arg0, 0x10, Local1) | |
And (Local1, 0xFF, Local1) | |
ShiftRight (Arg0, 0x08, Local2) | |
And (Local2, 0xFF, Local2) | |
And (Arg0, 0xFF, Local3) | |
Acquire (^^PCI0.SBRG.EC0.MUEC, 0xFFFF) | |
Store (Local0, ^^PCI0.SBRG.EC0.CDT3) | |
Store (Local1, ^^PCI0.SBRG.EC0.CDT2) | |
Store (Local2, ^^PCI0.SBRG.EC0.CDT1) | |
Store (Local3, ^^PCI0.SBRG.EC0.CMD1) | |
Store (0x05, Local0) | |
While (LAnd (Local0, ^^PCI0.SBRG.EC0.CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
Store (^^PCI0.SBRG.EC0.CDT3, Local0) | |
Store (^^PCI0.SBRG.EC0.CDT2, Local1) | |
Store (^^PCI0.SBRG.EC0.CDT1, Local2) | |
Store (^^PCI0.SBRG.EC0.CMD1, Local3) | |
Release (^^PCI0.SBRG.EC0.MUEC) | |
ShiftLeft (Local0, 0x08, Local0) | |
Or (Local0, Local1, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Or (Local0, Local2, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Or (Local0, Local3, Local0) | |
Return (Local0) | |
} | |
Method (CBIF, 1, Serialized) | |
{ | |
Store (Arg0, TMPB) | |
Store (0x03, ALPR) | |
ISMI (0xA3) | |
Return (One) | |
} | |
Method (CFIF, 1, Serialized) | |
{ | |
Store (Arg0, TMPB) | |
ISMI (0xA6) | |
Return (One) | |
} | |
Method (GDSP, 1, NotSerialized) | |
{ | |
If (NATK ()) | |
{ | |
If (LEqual (Arg0, 0x80)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
If (LEqual (Arg0, 0x02)) | |
{ | |
Return (GCDM ()) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
Return (Zero) | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (AC0) | |
{ | |
Name (_HID, "ACPI0003") | |
Method (_PSR, 0, NotSerialized) | |
{ | |
Return (^^SBRG.EC0.ACAP ()) | |
} | |
Name (_PCL, Package (0x01) | |
{ | |
PCI0 | |
}) | |
} | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
Method (ACAP, 0, Serialized) | |
{ | |
Return (ACPF) | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (BAT0) | |
{ | |
Name (_HID, EisaId ("PNP0C0A")) | |
Name (_UID, Zero) | |
Name (_PCL, Package (0x01) | |
{ | |
PCI0 | |
}) | |
Method (_STA, 0, NotSerialized) | |
{ | |
If (^^SBRG.EC0.BATP (Zero)) | |
{ | |
Return (0x1F) | |
} | |
Else | |
{ | |
Return (0x0F) | |
} | |
} | |
Name (LOW2, 0x012C) | |
Name (DVOT, 0x0E) | |
Name (PUNT, One) | |
Name (LFCC, 0x1770) | |
Name (NBIF, Package (0x0D) | |
{ | |
Zero, | |
Ones, | |
Ones, | |
One, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
"", | |
"", | |
"", | |
"" | |
}) | |
Name (PBIF, Package (0x0D) | |
{ | |
One, | |
0x1770, | |
0x1770, | |
One, | |
0x39D0, | |
0x0258, | |
0x012C, | |
0x3C, | |
0x3C, | |
"M3N", | |
" ", | |
"LIon", | |
"ASUSTek" | |
}) | |
Name (PBST, Package (0x04) | |
{ | |
Zero, | |
Ones, | |
Ones, | |
Ones | |
}) | |
Method (FBIF, 5, NotSerialized) | |
{ | |
Store (Arg0, PUNT) | |
Store (Arg1, Local1) | |
Store (Arg2, Local2) | |
If (LEqual (PUNT, Zero)) | |
{ | |
Multiply (Local1, 0x0A, Local1) | |
Multiply (Local2, 0x0A, Local2) | |
} | |
Store (Arg0, Index (PBIF, Zero)) | |
Store (Local1, Index (PBIF, One)) | |
Store (Local2, Index (PBIF, 0x02)) | |
Store (Local2, LFCC) | |
Store (Arg3, Index (PBIF, 0x03)) | |
Store (Arg4, Index (PBIF, 0x04)) | |
Divide (Local1, 0x0A, Local3, Local5) | |
Store (Local5, Index (PBIF, 0x05)) | |
Divide (Local1, 0x64, Local3, Local6) | |
Store (Local6, Index (PBIF, 0x06)) | |
Store (Local6, LOW2) | |
Divide (Local1, 0x64, Local3, Local7) | |
Store (Local7, Index (PBIF, 0x07)) | |
Store (Local7, Index (PBIF, 0x08)) | |
} | |
Method (CBIF, 0, NotSerialized) | |
{ | |
If (PUNT) | |
{ | |
Store (DerefOf (Index (PBIF, 0x04)), Local0) | |
Add (Local0, 0x01F4, Local0) | |
Divide (Local0, 0x03E8, Local1, DVOT) | |
Store (Zero, Index (PBIF, Zero)) | |
Multiply (DerefOf (Index (PBIF, One)), DVOT, Index (PBIF, One | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x02)), DVOT, Index (PBIF, 0x02 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x05)), DVOT, Index (PBIF, 0x05 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x06)), DVOT, Index (PBIF, 0x06 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x07)), DVOT, Index (PBIF, 0x07 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x08)), DVOT, Index (PBIF, 0x08 | |
)) | |
} | |
} | |
Method (_BIF, 0, NotSerialized) | |
{ | |
If (LNot (^^SBRG.EC0.BATP (Zero))) | |
{ | |
Return (NBIF) | |
} | |
If (LEqual (^^SBRG.EC0.GBTT (Zero), 0xFF)) | |
{ | |
Return (NBIF) | |
} | |
BATO () | |
BATS (Zero) | |
Store (^^SBRG.EC0.BIF9 (), Index (PBIF, 0x09)) | |
Store (ONAM, Index (PBIF, 0x0C)) | |
Store (^^SBRG.EC0.BIF0 (), Local0) | |
Store (^^SBRG.EC0.BIF1 (), Local1) | |
Store (^^SBRG.EC0.BIF2 (), Local2) | |
Store (^^SBRG.EC0.BIF3 (), Local3) | |
Store (^^SBRG.EC0.BIF4 (), Local4) | |
If (LNotEqual (Local0, Ones)) | |
{ | |
If (LNotEqual (Local1, Ones)) | |
{ | |
If (LNotEqual (Local2, Ones)) | |
{ | |
If (LNotEqual (Local3, Ones)) | |
{ | |
If (LNotEqual (Local4, Ones)) | |
{ | |
FBIF (Local0, Local1, Local2, Local3, Local4) | |
CBIF () | |
} | |
} | |
} | |
} | |
} | |
If (LEqual (PUNT, Zero)) | |
{ | |
Multiply (Local2, 0x0A, Local2) | |
} | |
Store (Local2, LFCC) | |
BATR () | |
Return (PBIF) | |
} | |
Method (FBST, 4, NotSerialized) | |
{ | |
And (Arg1, 0xFFFF, Local1) | |
Store (Zero, Local0) | |
If (^^SBRG.EC0.ACAP ()) | |
{ | |
Store (One, Local0) | |
} | |
If (Local0) | |
{ | |
If (CHGS (Zero)) | |
{ | |
Store (0x02, Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Else | |
{ | |
Store (One, Local0) | |
} | |
If (BLLO) | |
{ | |
ShiftLeft (One, 0x02, Local2) | |
Or (Local0, Local2, Local0) | |
} | |
If (LLessEqual (^^SBRG.EC0.RRAM (0x03B0), One)) | |
{ | |
ShiftLeft (One, 0x02, Local2) | |
Or (Local0, Local2, Local0) | |
} | |
If (LGreaterEqual (Local1, 0x8000)) | |
{ | |
Subtract (0xFFFF, Local1, Local1) | |
} | |
Store (Arg2, Local2) | |
If (LEqual (PUNT, Zero)) | |
{ | |
Multiply (Local1, DVOT, Local1) | |
Multiply (Local2, 0x0A, Local2) | |
} | |
And (Local0, 0x02, Local3) | |
If (LNot (Local3)) | |
{ | |
Subtract (LFCC, Local2, Local3) | |
Divide (LFCC, 0xC8, Local4, Local5) | |
If (LLess (Local3, Local5)) | |
{ | |
Store (LFCC, Local2) | |
} | |
} | |
Else | |
{ | |
Divide (LFCC, 0xC8, Local4, Local5) | |
Subtract (LFCC, Local5, Local4) | |
If (LGreater (Local2, Local4)) | |
{ | |
Store (Local4, Local2) | |
} | |
} | |
If (LNot (^^SBRG.EC0.ACAP ())) | |
{ | |
Divide (Local2, MBLF, Local3, Local4) | |
If (LLess (Local1, Local4)) | |
{ | |
Store (Local4, Local1) | |
} | |
} | |
Store (Local0, Index (PBST, Zero)) | |
Store (Local1, Index (PBST, One)) | |
Store (Local2, Index (PBST, 0x02)) | |
Store (Arg3, Index (PBST, 0x03)) | |
} | |
Method (CBST, 0, NotSerialized) | |
{ | |
If (PUNT) | |
{ | |
Multiply (DerefOf (Index (PBST, One)), DVOT, Index (PBST, One | |
)) | |
Multiply (DerefOf (Index (PBST, 0x02)), DVOT, Index (PBST, 0x02 | |
)) | |
} | |
} | |
Method (_BST, 0, NotSerialized) | |
{ | |
Store (Zero, Index (PBST, Zero)) | |
Store (Ones, Index (PBST, One)) | |
Store (Ones, Index (PBST, 0x02)) | |
Store (Ones, Index (PBST, 0x03)) | |
If (LNot (^^SBRG.EC0.BATP (Zero))) | |
{ | |
Return (PBST) | |
} | |
If (LEqual (^^SBRG.EC0.GBTT (Zero), 0xFF)) | |
{ | |
Return (PBST) | |
} | |
If (MES4) | |
{ | |
Decrement (MES4) | |
Return (PBST) | |
} | |
BATO () | |
BATS (Zero) | |
Store (^^SBRG.EC0.BSTS (), Local0) | |
Store (^^SBRG.EC0.BCRT (), Local1) | |
Store (^^SBRG.EC0.BRCP (), Local2) | |
Store (^^SBRG.EC0.BVOT (), Local3) | |
If (LNotEqual (Local0, Ones)) | |
{ | |
If (LNotEqual (Local1, Ones)) | |
{ | |
If (LNotEqual (Local2, Ones)) | |
{ | |
If (LNotEqual (Local3, Ones)) | |
{ | |
FBST (Local0, Local1, Local2, Local3) | |
CBST () | |
} | |
} | |
} | |
} | |
BATR () | |
Return (PBST) | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Name (B0CR, Zero) | |
Name (B1CR, Zero) | |
Method (GGCC, 1, Serialized) | |
{ | |
BATO () | |
BATS (Arg0) | |
Store (^SBRG.EC0.BCRT (), Local0) | |
BATR () | |
If (LEqual (Local0, Ones)) | |
{ | |
If (Arg0) | |
{ | |
Store (B1CR, Local0) | |
} | |
Else | |
{ | |
Store (B0CR, Local0) | |
} | |
} | |
And (Local0, 0x8000, Local1) | |
If (Local1) | |
{ | |
Store (Zero, Local0) | |
} | |
If (Arg0) | |
{ | |
Store (Local0, B1CR) | |
} | |
Else | |
{ | |
Store (Local0, B0CR) | |
} | |
Return (Local0) | |
} | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
Name (BADR, 0x0B) | |
Name (CADR, 0x09) | |
Name (SADR, 0x0A) | |
Method (ALMH, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, BADR)) | |
{ | |
NBAT (0x80) | |
} | |
} | |
Method (BIFW, 1, NotSerialized) | |
{ | |
Store (SMBR (RDWD, BADR, Arg0), Local0) | |
Store (DerefOf (Index (Local0, Zero)), Local1) | |
If (Local1) | |
{ | |
Return (Ones) | |
} | |
Else | |
{ | |
Return (DerefOf (Index (Local0, 0x02))) | |
} | |
} | |
Method (BIF0, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1MD, Local0) | |
} | |
Else | |
{ | |
Store (B0MD, Local0) | |
} | |
If (LNotEqual (Local0, 0xFFFF)) | |
{ | |
ShiftRight (Local0, 0x0F, Local1) | |
And (Local1, One, Local1) | |
XOr (Local1, One, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BIF1, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1DC, Local0) | |
} | |
Else | |
{ | |
Store (B0DC, Local0) | |
} | |
And (Local0, 0xFFFF, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BIF2, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1FC, Local0) | |
} | |
Else | |
{ | |
Store (B0FC, Local0) | |
} | |
And (Local0, 0xFFFF, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BIF3, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1MD, Local0) | |
} | |
Else | |
{ | |
Store (B0MD, Local0) | |
} | |
If (LNotEqual (Local0, 0xFFFF)) | |
{ | |
ShiftRight (Local0, 0x09, Local0) | |
And (Local0, One, Local0) | |
XOr (Local0, One, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BIF4, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1DV, Local0) | |
} | |
Else | |
{ | |
Store (B0DV, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BIF9, 0, NotSerialized) | |
{ | |
Name (BSTR, Buffer (0x20) {}) | |
Store (SMBR (RDBL, BADR, 0x21), Local0) | |
If (LNotEqual (DerefOf (Index (Local0, Zero)), Zero)) | |
{ | |
Store (MNAM, BSTR) | |
Store (Zero, Index (BSTR, 0x04)) | |
} | |
Else | |
{ | |
Store (DerefOf (Index (Local0, 0x02)), BSTR) | |
Store (Zero, Index (BSTR, DerefOf (Index (Local0, One)))) | |
} | |
Return (BSTR) | |
} | |
Method (BIFA, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1SN, Local0) | |
} | |
Else | |
{ | |
Store (B0SN, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BSTS, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1ST, Local0) | |
} | |
Else | |
{ | |
Store (B0ST, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BCRT, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1CC, Local0) | |
} | |
Else | |
{ | |
Store (B0CC, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BRCP, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1RC, Local0) | |
} | |
Else | |
{ | |
Store (B0RC, Local0) | |
} | |
If (LEqual (Local0, 0xFFFF)) | |
{ | |
Store (Ones, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BVOT, 0, NotSerialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (BSLF) | |
{ | |
Store (B1VL, Local0) | |
} | |
Else | |
{ | |
Store (B0VL, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
} | |
Scope (\) | |
{ | |
Method (CHGS, 1, Serialized) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.BCHG (Arg0), Local0) | |
Return (Local0) | |
} | |
Name (BSLF, Zero) | |
Method (BATS, 1, Serialized) | |
{ | |
If (Arg0) | |
{ | |
Store (One, BSLF) | |
} | |
Else | |
{ | |
Store (Zero, BSLF) | |
} | |
} | |
Mutex (MMPX, 0x00) | |
Method (BATO, 0, Serialized) | |
{ | |
Acquire (MMPX, 0xFFFF) | |
} | |
Method (BATR, 0, Serialized) | |
{ | |
Release (MMPX) | |
} | |
Name (BLLO, Zero) | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
Method (_QA1, 0, NotSerialized) | |
{ | |
Store (DCPS (Zero), DCPF) | |
If (DCPF) | |
{ | |
Sleep (0x07D0) | |
} | |
Notify (BAT0, 0x80) | |
Notify (BAT0, 0x81) | |
} | |
Method (_QA5, 0, NotSerialized) | |
{ | |
Store (One, BLLO) | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x6E) | |
} | |
Else | |
{ | |
If (BATP (Zero)) | |
{ | |
Notify (BAT0, 0x80) | |
} | |
} | |
} | |
Method (_QA3, 0, NotSerialized) | |
{ | |
If (BATP (Zero)) | |
{ | |
Store (BCLE (Zero), Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
Notify (BAT0, 0x80) | |
} | |
Else | |
{ | |
Notify (BAT0, 0x81) | |
Notify (AC0, 0x80) | |
} | |
} | |
} | |
Method (BATP, 1, Serialized) | |
{ | |
If (Arg0) | |
{ | |
Return (DCP2) | |
} | |
Else | |
{ | |
Return (DCPF) | |
} | |
} | |
Method (NBAT, 1, NotSerialized) | |
{ | |
If (BATP (Zero)) | |
{ | |
Notify (BAT0, Arg0) | |
} | |
} | |
} | |
Scope (\) | |
{ | |
Name (MES4, Zero) | |
Method (OEMS, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
If (LLessEqual (MSOS (), OSME)) | |
{ | |
Store (One, \_SB.WIDE) | |
} | |
Else | |
{ | |
Store (Zero, \_SB.WIDE) | |
} | |
} | |
SBRS (Arg0) | |
\_SB.PCI0.SBRG.EC0.EC0S (Arg0) | |
Store (Arg0, \_SB.SLPN) | |
DIAG (Add (Arg0, 0xD0)) | |
PPRJ (Arg0) | |
Store (Arg0, \_SB.SLPT) | |
If (Arg0) | |
{ | |
STRP (One) | |
} | |
PRJS (Arg0) | |
ISMI (0x9D) | |
} | |
Method (OEMW, 1, NotSerialized) | |
{ | |
ISMI (0x9E) | |
Store (Zero, \_SB.SLPT) | |
\_SB.PCI0.SBRG.EC0.EC0W (Arg0) | |
If (LEqual (Arg0, 0x04)) | |
{ | |
If (LLessEqual (MSOS (), OSME)) | |
{ | |
Store (0x02, MES4) | |
} | |
Else | |
{ | |
Store (Zero, MES4) | |
} | |
} | |
SBRW (Arg0) | |
If (LEqual (Arg0, 0x04)) | |
{ | |
Notify (\_SB.SLPB, 0x02) | |
} | |
PRJW (Arg0) | |
DIAG (Add (Arg0, 0xF0)) | |
} | |
} | |
Scope (_SB) | |
{ | |
Device (PTID) | |
{ | |
Name (CADR, Zero) | |
Name (WLEN, Zero) | |
Name (RLEN, Zero) | |
Name (CAMD, Zero) | |
Name (OBUF, Buffer (0x10) {}) | |
Name (IBUF, Buffer (0x0F) {}) | |
Name (ERRN, Zero) | |
Name (_HID, EisaId ("INT340E")) | |
Name (_CID, EisaId ("PNP0C02")) | |
Name (IVER, 0x00030000) | |
Name (TSDL, Package (0x04) | |
{ | |
Zero, | |
"CPU Temperature", | |
0x05, | |
"PCH Temperature" | |
}) | |
Name (TMPV, Package (0x02) | |
{ | |
0x80000000, | |
0x80000000 | |
}) | |
Name (PSDL, Package (0x04) | |
{ | |
Zero, | |
"CPU Power", | |
One, | |
"Gfx Power" | |
}) | |
Name (PWRV, Package (0x02) | |
{ | |
0x80000000, | |
0x80000000 | |
}) | |
Name (OSDL, Package (0x06) | |
{ | |
0x04, | |
"Fan RPM", | |
"RPM", | |
0x0C, | |
"Battery Capaciy", | |
"mAh" | |
}) | |
Name (OSDV, Package (0x02) | |
{ | |
0x80000000, | |
0x80000000 | |
}) | |
Method (TSDD, 0, NotSerialized) | |
{ | |
Name (TMPC, Zero) | |
Store (^^PCI0.SBRG.EC0.ECPU, TMPC) | |
Store (TMPC, Index (TMPV, Zero)) | |
Store (^^PCI0.SBRG.EC0.ECPU, TMPC) | |
Store (TMPC, Index (TMPV, One)) | |
Return (TMPV) | |
} | |
Method (PWRG, 0, NotSerialized) | |
{ | |
Return (Ones) | |
} | |
Method (PSDD, 0, NotSerialized) | |
{ | |
Name (PWRC, Zero) | |
Store (PWRG (), PWRC) | |
Store (PWRC, Index (PWRV, Zero)) | |
Store (PWRG (), PWRC) | |
Store (PWRC, Index (PWRV, One)) | |
Return (PWRV) | |
} | |
Method (OSDG, 0, NotSerialized) | |
{ | |
Return (Ones) | |
} | |
Method (OSDD, 0, NotSerialized) | |
{ | |
Name (OSDC, Zero) | |
Store (OSDG (), OSDC) | |
Store (OSDC, Index (OSDV, Zero)) | |
Store (OSDG (), OSDC) | |
Store (OSDC, Index (OSDV, One)) | |
Return (OSDV) | |
} | |
Method (SDSP, 0, NotSerialized) | |
{ | |
Return (0x0A) | |
} | |
Name (MBOX, Buffer (0x1A) {}) | |
Name (PADA, Package (0x0A) | |
{ | |
One, | |
Ones, | |
Ones, | |
0x1A, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones, | |
Ones | |
}) | |
Name (PADD, Package (0x0A) | |
{ | |
0x02, | |
0x0271, | |
0x0270, | |
0x1A, | |
0x62, | |
0x63, | |
0x60, | |
0x61, | |
0x65, | |
0x64 | |
}) | |
Method (PADT, 0, NotSerialized) | |
{ | |
And (^^PCI0.SBRG.EC0.PBSY, 0x80, Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (PADD) | |
} | |
Return (PADA) | |
} | |
Method (RPMD, 0, NotSerialized) | |
{ | |
Store (Zero, Local0) | |
Store (0x0A, Local1) | |
Add (WLEN, Local1, Local1) | |
While (LLess (Local0, RLEN)) | |
{ | |
Store (DerefOf (Index (IBUF, Local0)), Index (MBOX, Local1)) | |
Add (One, Local0, Local0) | |
Add (One, Local1, Local1) | |
} | |
Return (MBOX) | |
} | |
Method (WPMD, 1, NotSerialized) | |
{ | |
If (LNotEqual (SizeOf (Arg0), 0x1A)) | |
{ | |
Return (Ones) | |
} | |
Store (Zero, Local0) | |
While (LLess (Local0, 0x1A)) | |
{ | |
Store (DerefOf (Index (Arg0, Local0)), Index (MBOX, Local0)) | |
Add (One, Local0, Local0) | |
} | |
Store (DerefOf (Index (Arg0, 0x06)), CADR) | |
Store (DerefOf (Index (Arg0, 0x07)), WLEN) | |
Store (DerefOf (Index (Arg0, 0x08)), RLEN) | |
Store (DerefOf (Index (Arg0, 0x09)), CAMD) | |
Name (CUNT, Zero) | |
Store (Zero, CUNT) | |
Store (0x0A, Local0) | |
While (LLess (CUNT, WLEN)) | |
{ | |
Store (DerefOf (Index (Arg0, Local0)), Index (OBUF, CUNT)) | |
Add (CUNT, One, CUNT) | |
Add (Local0, One, Local0) | |
} | |
Return (Zero) | |
} | |
Name (CYCT, Zero) | |
Method (ISPC, 0, NotSerialized) | |
{ | |
Store (DerefOf (Index (MBOX, 0x03)), CYCT) | |
ShiftLeft (CYCT, 0x08, CYCT) | |
Add (CYCT, DerefOf (Index (MBOX, 0x02)), CYCT) | |
ShiftLeft (CYCT, 0x08, CYCT) | |
Add (CYCT, DerefOf (Index (MBOX, One)), CYCT) | |
ShiftLeft (CYCT, 0x08, CYCT) | |
Add (CYCT, DerefOf (Index (MBOX, Zero)), CYCT) | |
If (LGreaterEqual (CYCT, One)) | |
{ | |
Store (DerefOf (Index (MBOX, 0x04)), Local0) | |
Multiply (Local0, 0x0A, Local0) | |
Sleep (Local0) | |
} | |
Store (^^PCI0.SBRG.EC0.PECI (CADR, WLEN, RLEN, CAMD, OBUF, IBUF, ERRN), Local0) | |
If (LEqual (Local0, One)) | |
{ | |
If (LGreater (CYCT, Zero)) | |
{ | |
Subtract (CYCT, One, CYCT) | |
And (CYCT, 0xFF, Index (MBOX, Zero)) | |
And (CYCT, 0xFF00, Local0) | |
ShiftRight (Local0, 0x08, Index (MBOX, One)) | |
And (CYCT, 0x00FF0000, Local0) | |
ShiftRight (Local0, 0x10, Index (MBOX, 0x02)) | |
And (CYCT, 0xFF000000, Local0) | |
ShiftRight (Local0, 0x18, Index (MBOX, 0x03)) | |
} | |
} | |
} | |
Method (ENPC, 0, NotSerialized) | |
{ | |
Store (Zero, CYCT) | |
} | |
Method (RPCS, 0, NotSerialized) | |
{ | |
Name (TPCS, Zero) | |
If (LGreater (CYCT, Zero)) | |
{ | |
Store (One, TPCS) | |
ISPC () | |
} | |
Else | |
{ | |
Store (Zero, TPCS) | |
} | |
Return (TPCS) | |
} | |
Method (RPEC, 0, NotSerialized) | |
{ | |
Name (TPEC, Zero) | |
Store (ERRN, TPEC) | |
Return (TPEC) | |
} | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (AGFN, 1, Serialized) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (GNBF) | |
} | |
Store (Zero, Local0) | |
OperationRegion (\PARM, SystemMemory, Arg0, 0x08) | |
Field (PARM, DWordAcc, NoLock, Preserve) | |
{ | |
MFUN, 16, | |
SFUN, 16, | |
LEN, 16, | |
STAS, 8, | |
EROR, 8 | |
} | |
Store (Zero, EROR) | |
Store (One, STAS) | |
If (LEqual (MFUN, 0x02)) | |
{ | |
BSMI (Arg0) | |
And (STAS, 0xFE, STAS) | |
} | |
And (MFUN, 0xF0, Local0) | |
If (LEqual (Local0, 0x10)) | |
{ | |
MF1X (Arg0, LEN, MFUN, SFUN) | |
} | |
If (LEqual (MFUN, 0x42)) | |
{ | |
MF42 (Arg0, SFUN, LEN) | |
And (STAS, 0xFE, STAS) | |
} | |
If (LEqual (MFUN, One)) | |
{ | |
GVER (Arg0, LEN) | |
And (STAS, 0xFE, STAS) | |
} | |
If (LEqual (MFUN, 0x30)) | |
{ | |
MF30 (Arg0, SFUN, LEN) | |
And (STAS, 0xFE, STAS) | |
} | |
AGLN (Arg0, MFUN, SFUN, LEN) | |
If (LEqual (STAS, One)) | |
{ | |
Store (One, EROR) | |
Or (STAS, 0x02, STAS) | |
} | |
And (STAS, 0xFE, STAS) | |
Or (STAS, 0x80, STAS) | |
Return (Zero) | |
} | |
Method (GVER, 2, NotSerialized) | |
{ | |
OperationRegion (\FGVR, SystemMemory, Arg0, Arg1) | |
Field (FGVR, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
APID, 16, | |
APRV, 32 | |
} | |
Return (Zero) | |
} | |
Method (MF30, 3, NotSerialized) | |
{ | |
OperationRegion (FM30, SystemMemory, Arg0, 0x08) | |
Field (FM30, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x06), | |
SM30, 8, | |
EM30, 8 | |
} | |
Store (One, Local0) | |
If (LEqual (Arg1, Zero)) | |
{ | |
Store (G30V (Arg0, Arg2), Local0) | |
} | |
If (LEqual (Arg1, One)) | |
{ | |
Store (EC01 (Arg0, Arg2), Local0) | |
} | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (EC02 (Arg0, Arg2), Local0) | |
} | |
If (Local0) | |
{ | |
Store (Local0, EM30) | |
Or (SM30, 0x02, SM30) | |
} | |
Or (SM30, 0x80, SM30) | |
Return (Zero) | |
} | |
Method (G30V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F300, SystemMemory, Arg0, Arg1) | |
Field (F300, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (EC01, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x10)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (FEC1, SystemMemory, Arg0, Arg1) | |
Field (FEC1, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
ECMD, 8, | |
EDA1, 8, | |
EDA2, 8, | |
EDA3, 8, | |
EDA4, 8, | |
EDA5, 8 | |
} | |
Store (^^PCI0.SBRG.EC0.ECXT (ECMD, EDA1, EDA2, EDA3, EDA4, EDA5), Local0) | |
Store (DerefOf (Index (Local0, One)), EDA1) | |
Store (DerefOf (Index (Local0, 0x02)), EDA2) | |
Store (DerefOf (Index (Local0, 0x03)), EDA3) | |
Store (DerefOf (Index (Local0, 0x04)), EDA4) | |
Store (DerefOf (Index (Local0, 0x05)), EDA5) | |
Return (DerefOf (Index (Local0, Zero))) | |
} | |
Method (EC02, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x30)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (FEC2, SystemMemory, Arg0, Arg1) | |
Field (FEC2, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BUSN, 8, | |
PROT, 8, | |
DADD, 8, | |
DREG, 8, | |
DAT0, 8, | |
DAT1, 8, | |
BLEN, 8, | |
REVB, 8, | |
BLKK, 256 | |
} | |
Store (Package (0x02) | |
{ | |
Zero, | |
Buffer (0x20) {} | |
}, Local1) | |
Store (BLEN, Index (Local1, Zero)) | |
Store (BLKK, Index (Local1, One)) | |
Store (^^PCI0.SBRG.EC0.ECSB (BUSN, PROT, DADD, DREG, DAT0, DAT1, Local1), Local0) | |
If (LEqual (DerefOf (Index (Local0, Zero)), Zero)) | |
{ | |
Store (DerefOf (Index (Local0, One)), DAT0) | |
Store (DerefOf (Index (Local0, 0x02)), DAT1) | |
Store (DerefOf (Index (Local0, 0x03)), BLEN) | |
Store (DerefOf (Index (Local0, 0x04)), BLKK) | |
} | |
Store (DerefOf (Index (Local0, Zero)), Local2) | |
And (Local2, 0x3F, Local2) | |
Return (Local2) | |
} | |
Method (GENW, 1, NotSerialized) | |
{ | |
Store (Zero, RTCW) | |
} | |
Method (BSMI, 1, Serialized) | |
{ | |
Store (Arg0, BIPA) | |
ISMI (0xA1) | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (MF1X, 4, NotSerialized) | |
{ | |
OperationRegion (FM1X, SystemMemory, Arg0, 0x08) | |
Field (FM1X, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x06), | |
SM1X, 8, | |
EM1X, 8 | |
} | |
Store (One, Local0) | |
If (LEqual (Arg2, 0x10)) | |
{ | |
Store (MF10 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x11)) | |
{ | |
Store (MF11 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x12)) | |
{ | |
Store (MF12 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x13)) | |
{ | |
Store (MF13 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x14)) | |
{ | |
Store (MF14 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x15)) | |
{ | |
Store (MF15 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x16)) | |
{ | |
Store (MF16 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x17)) | |
{ | |
Store (MF17 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x18)) | |
{ | |
Store (MF18 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x19)) | |
{ | |
Store (MF19 (Arg0, Arg1, Arg3), Local0) | |
} | |
If (LEqual (Arg2, 0x1F)) | |
{ | |
Store (MF1F (Arg0, Arg1, Arg3), Local0) | |
} | |
And (SM1X, 0xFE, SM1X) | |
If (Local0) | |
{ | |
Store (Local0, EM1X) | |
Or (SM1X, 0x02, SM1X) | |
} | |
Or (SM1X, 0x80, SM1X) | |
} | |
Method (MF10, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G10V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (SRTC (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G10V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F100, SystemMemory, Arg0, Arg1) | |
Field (F100, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (SRTC, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F101, SystemMemory, Arg0, Arg1) | |
Field (F101, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
DLTM, 16 | |
} | |
Store (DLTM, RTCW) | |
Return (Zero) | |
} | |
Method (MF11, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G11V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GBAT (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (ASBR (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x03)) | |
{ | |
Store (ASBE (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x04)) | |
{ | |
Store (BTCR (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G11V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F110, SystemMemory, Arg0, Arg1) | |
Field (F100, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GBAT, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F111, SystemMemory, Arg0, Arg1) | |
Field (F111, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BTNM, 8, | |
BTTP, 8 | |
} | |
Store (One, BTNM) | |
Store (Zero, BTTP) | |
Return (Zero) | |
} | |
Method (ASBR, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x30)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F112, SystemMemory, Arg0, Arg1) | |
Field (F112, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BATN, 8, | |
BATA, 8, | |
REGS, 8, | |
BDAT, 16, | |
BLEN, 8, | |
BREV, 16, | |
BLK1, 32, | |
BLK2, 32, | |
BLK3, 32, | |
BLK4, 32, | |
BLK5, 32, | |
BLK6, 32, | |
BLK7, 32, | |
BLK8, 32 | |
} | |
If (LGreaterEqual (BATN, One)) | |
{ | |
Return (0x11) | |
} | |
If (LEqual (BATA, Zero)) | |
{ | |
Store (^^PCI0.SBRG.EC0.SMBR (^^PCI0.SBRG.EC0.RDWD, ^^PCI0.SBRG.EC0.BADR, REGS), Local0) | |
Store (DerefOf (Index (Local0, 0x02)), BDAT) | |
Store (DerefOf (Index (Local0, Zero)), Local2) | |
And (Local2, 0x1F, Local2) | |
If (Local2) | |
{ | |
Add (Local2, 0x10, Local2) | |
} | |
Return (Local2) | |
} | |
If (LEqual (BATA, One)) | |
{ | |
Store (^^PCI0.SBRG.EC0.SMBW (^^PCI0.SBRG.EC0.WRWD, ^^PCI0.SBRG.EC0.BADR, REGS, 0x02, BDAT), Local0) | |
Store (DerefOf (Index (Local0, Zero)), Local2) | |
And (Local2, 0x1F, Local2) | |
If (Local2) | |
{ | |
Add (Local2, 0x10, Local2) | |
} | |
Return (Local2) | |
} | |
If (LEqual (BATA, 0x02)) | |
{ | |
Store (^^PCI0.SBRG.EC0.SMBR (^^PCI0.SBRG.EC0.RDBL, ^^PCI0.SBRG.EC0.BADR, REGS), Local0) | |
Name (BKUF, Buffer (0x20) {}) | |
CreateDWordField (BKUF, Zero, DAT1) | |
CreateDWordField (BKUF, 0x04, DAT2) | |
CreateDWordField (BKUF, 0x08, DAT3) | |
CreateDWordField (BKUF, 0x0C, DAT4) | |
CreateDWordField (BKUF, 0x10, DAT5) | |
CreateDWordField (BKUF, 0x14, DAT6) | |
CreateDWordField (BKUF, 0x18, DAT7) | |
CreateDWordField (BKUF, 0x1C, DAT8) | |
Store (DerefOf (Index (Local0, 0x02)), BKUF) | |
Store (DAT1, BLK1) | |
Store (DAT2, BLK2) | |
Store (DAT3, BLK3) | |
Store (DAT4, BLK4) | |
Store (DAT5, BLK5) | |
Store (DAT6, BLK6) | |
Store (DAT7, BLK7) | |
Store (DAT8, BLK8) | |
Store (DerefOf (Index (Local0, One)), BLEN) | |
Store (DerefOf (Index (Local0, Zero)), Local2) | |
And (Local2, 0x1F, Local2) | |
If (Local2) | |
{ | |
Add (Local2, 0x10, Local2) | |
} | |
Return (Local2) | |
} | |
Return (0x10) | |
} | |
Method (ASBE, 2, Serialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F113, SystemMemory, Arg0, Arg1) | |
Field (F113, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BATN, 8, | |
BATA, 8, | |
REGS, 8, | |
BDAT, 8 | |
} | |
If (LGreater (BATN, One)) | |
{ | |
Return (0x11) | |
} | |
If (LEqual (BATA, Zero)) | |
{ | |
Store (^^PCI0.SBRG.EC0.RBEP (REGS), Local2) | |
And (Local2, 0xFF, Local3) | |
Store (Local3, BDAT) | |
ShiftRight (Local2, 0x08, Local2) | |
And (Local2, 0x1F, Local2) | |
If (Local2) | |
{ | |
Add (Local2, 0x10, Local2) | |
} | |
Return (Local2) | |
} | |
If (LEqual (BATA, One)) | |
{ | |
Store (^^PCI0.SBRG.EC0.WBEP (REGS, BDAT), Local2) | |
And (Local2, 0x1F, Local2) | |
If (Local2) | |
{ | |
Add (Local2, 0x10, Local2) | |
} | |
Return (Local2) | |
} | |
Return (0x10) | |
} | |
Method (BTCR, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x09)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F114, SystemMemory, Arg0, Arg1) | |
Field (F114, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BCDC, 8 | |
} | |
SBTL (BCDC) | |
Return (Zero) | |
} | |
Method (MF12, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G12V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GLDI (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (LDCR (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G12V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F120, SystemMemory, Arg0, Arg1) | |
Field (F120, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GLDI, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x10)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F121, SystemMemory, Arg0, Arg1) | |
Field (F121, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
LDI0, 32, | |
LDI1, 32 | |
} | |
Store (Zero, Local0) | |
Or (Local0, 0x10, Local0) | |
Or (Local0, 0x20, Local0) | |
Store (Local0, LDI0) | |
Return (Zero) | |
} | |
Method (LDCR, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F122, SystemMemory, Arg0, Arg1) | |
Field (F122, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
LDNM, 8, | |
LCRT, 8 | |
} | |
If (LEqual (LDNM, 0x04)) | |
{ | |
WLED (LCRT) | |
Return (Zero) | |
} | |
Return (0x10) | |
} | |
Method (MF13, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G13V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GTSI (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (GTSV (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x03)) | |
{ | |
Store (GVSN (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x04)) | |
{ | |
Store (GVSV (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x05)) | |
{ | |
Store (GFNN (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x06)) | |
{ | |
Store (GFNS (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x07)) | |
{ | |
Store (SFNS (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G13V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F130, SystemMemory, Arg0, Arg1) | |
Field (F130, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GTSI, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F131, SystemMemory, Arg0, Arg1) | |
Field (F131, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
THRI, 32 | |
} | |
Store (Zero, Local0) | |
Or (Local0, One, Local0) | |
If (LGreaterEqual (CPUN, One)) | |
{ | |
Or (Local0, 0x0100, Local0) | |
} | |
If (LGreaterEqual (CPUN, 0x02)) | |
{ | |
Or (Local0, 0x0200, Local0) | |
} | |
If (LGreaterEqual (CPUN, 0x03)) | |
{ | |
Or (Local0, 0x0400, Local0) | |
} | |
If (LGreaterEqual (CPUN, 0x04)) | |
{ | |
Or (Local0, 0x0800, Local0) | |
} | |
Store (Local0, THRI) | |
Return (Zero) | |
} | |
Method (GTSV, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F132, SystemMemory, Arg0, Arg1) | |
Field (F132, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
TSNM, 8, | |
TSVL, 8, | |
TSST, 8 | |
} | |
Store (Zero, TSST) | |
If (LEqual (TSNM, Zero)) | |
{ | |
Store (\_TZ.RTMP (), TSVL) | |
Return (Zero) | |
} | |
If (LEqual (TSNM, 0x08)) | |
{ | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
If (LEqual (TSNM, 0x09)) | |
{ | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
If (LEqual (TSNM, 0x0A)) | |
{ | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
If (LEqual (TSNM, 0x0B)) | |
{ | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
Return (0x10) | |
} | |
Method (GVSN, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x09)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F133, SystemMemory, Arg0, Arg1) | |
Field (F133, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
NMVS, 8 | |
} | |
Store (Zero, NMVS) | |
Return (Zero) | |
} | |
Method (GVSV, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0B)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F134, SystemMemory, Arg0, Arg1) | |
Field (F134, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
VSNM, 8, | |
VSVL, 16 | |
} | |
If (LGreater (VSNM, Zero)) | |
{ | |
Return (0x10) | |
} | |
Return (Zero) | |
} | |
Method (GFNN, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x09)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F135, SystemMemory, Arg0, Arg1) | |
Field (F135, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
NMFN, 32 | |
} | |
Store (One, NMFN) | |
Return (Zero) | |
} | |
Method (GFNS, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0D)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F136, SystemMemory, Arg0, Arg1) | |
Field (F136, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
FNNM, 8, | |
GFNS, 32 | |
} | |
If (Or (LEqual (FNNM, Zero), LGreater (FNNM, One))) | |
{ | |
Return (0x10) | |
} | |
Store (FNNM, Local0) | |
Store (\_TZ.RFAN (Decrement (Local0)), GFNS) | |
Return (Zero) | |
} | |
Method (SFNS, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F137, SystemMemory, Arg0, Arg1) | |
Field (F137, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
FNNB, 8, | |
FNSP, 8 | |
} | |
If (LGreater (FNNB, One)) | |
{ | |
Return (0x10) | |
} | |
^^PCI0.SBRG.EC0.SFNV (FNNB, FNSP) | |
Return (Zero) | |
} | |
Method (MF14, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G14V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GNBT (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (GBTS (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G14V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F140, SystemMemory, Arg0, Arg1) | |
Field (F140, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GNBT, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x09)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F141, SystemMemory, Arg0, Arg1) | |
Field (F141, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
NBBT, 8 | |
} | |
Store (0x05, NBBT) | |
Return (Zero) | |
} | |
Method (GBTS, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F142, SystemMemory, Arg0, Arg1) | |
Field (F142, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BTNM, 8, | |
BTST, 8 | |
} | |
Name (BTTB, Package (0x05) | |
{ | |
Package (0x03) | |
{ | |
0x0C, | |
Zero, | |
Zero | |
}, | |
Package (0x03) | |
{ | |
0x0D, | |
Zero, | |
Zero | |
}, | |
Package (0x03) | |
{ | |
0x0E, | |
Zero, | |
Zero | |
}, | |
Package (0x03) | |
{ | |
0x0F, | |
Zero, | |
Zero | |
}, | |
Package (0x03) | |
{ | |
0x15, | |
Zero, | |
Zero | |
} | |
}) | |
If (LGreater (BTNM, 0x05)) | |
{ | |
Return (0x10) | |
} | |
Store (BTNM, Local0) | |
Decrement (Local0) | |
Store (DerefOf (Index (BTTB, Local0)), Local1) | |
If (LEqual (DerefOf (Index (Local1, One)), Zero)) | |
{ | |
Store (^^PCI0.SBRG.EC0.RPIN (DerefOf (Index (Local1, Zero))), Local2) | |
} | |
If (LEqual (DerefOf (Index (Local1, One)), One)) | |
{ | |
Store (RGPL (DerefOf (Index (Local1, Zero)), One), Local2) | |
} | |
If (LEqual (DerefOf (Index (Local1, One)), 0x03)) {} | |
If (LEqual (DerefOf (Index (Local1, 0x02)), Local2)) | |
{ | |
Store (Zero, BTST) | |
} | |
Else | |
{ | |
Store (One, BTST) | |
} | |
Return (Zero) | |
} | |
Method (MF15, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G15V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GLDB (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (SLDB (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x03)) | |
{ | |
Store (GDPI (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x04)) | |
{ | |
Store (SODP (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G15V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F150, SystemMemory, Arg0, Arg1) | |
Field (F150, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GLDB, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F151, SystemMemory, Arg0, Arg1) | |
Field (F151, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
LCDB, 8, | |
MLDB, 8 | |
} | |
Store (GPLV (), LCDB) | |
Store (0x0B, MLDB) | |
Return (Zero) | |
} | |
Method (SLDB, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F152, SystemMemory, Arg0, Arg1) | |
Field (F152, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
LCDL, 8, | |
LTPE, 8 | |
} | |
If (LEqual (LTPE, Zero)) | |
{ | |
If (LGreater (LCDL, 0x0B)) | |
{ | |
Return (0x10) | |
} | |
SPLV (LCDL) | |
Return (Zero) | |
} | |
If (LEqual (LTPE, One)) | |
{ | |
^^PCI0.SBRG.EC0.SBRV (LCDL) | |
Return (Zero) | |
} | |
Return (0x11) | |
} | |
Method (GDPI, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x10)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F153, SystemMemory, Arg0, Arg1) | |
Field (F153, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
ODPI, 32, | |
ODPC, 8 | |
} | |
Store (Zero, Local0) | |
Or (Local0, One, Local0) | |
Or (Local0, 0x02, Local0) | |
Store (Local0, ODPI) | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
Method (SODP, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F154, SystemMemory, Arg0, Arg1) | |
Field (F154, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
ODPM, 32 | |
} | |
Store (Zero, Local0) | |
Or (Local0, One, Local0) | |
Or (Local0, 0x02, Local0) | |
And (ODPM, Local0, Local0) | |
If (LEqual (Local0, ODPM)) | |
{ | |
SDSP (ODPM) | |
Return (Zero) | |
} | |
Return (0x10) | |
} | |
Method (MF16, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G16V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (SFBD (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (LCMD (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G16V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F160, SystemMemory, Arg0, Arg1) | |
Field (F160, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (SFBD, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F161, SystemMemory, Arg0, Arg1) | |
Field (F161, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
NXBD, 8 | |
} | |
If (OFBD (NXBD)) | |
{ | |
Store (NXBD, UHDB) | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (0x10) | |
} | |
} | |
Method (LCMD, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
Method (MF17, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G17V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GMDL (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (GBSI (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x03)) | |
{ | |
Store (GECI (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G17V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F170, SystemMemory, Arg0, Arg1) | |
Field (F170, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GMDL, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x19)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F171, SystemMemory, Arg0, Arg1) | |
Field (F171, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
MLEN, 8, | |
MDL1, 32, | |
MDL2, 32, | |
MDL3, 32, | |
MDL4, 32 | |
} | |
Store (Zero, MDL1) | |
Store (Zero, MDL2) | |
Store (Zero, MDL3) | |
Store (Zero, MDL4) | |
Name (BBUF, Buffer (0x10) {}) | |
CreateDWordField (BBUF, Zero, DAT1) | |
CreateDWordField (BBUF, 0x04, DAT2) | |
CreateDWordField (BBUF, 0x08, DAT3) | |
CreateDWordField (BBUF, 0x0C, DAT4) | |
Store (GBMN (), Local0) | |
Store (SizeOf (Local0), MLEN) | |
Store (GBMN (), BBUF) | |
Store (DAT1, MDL1) | |
Store (DAT2, MDL2) | |
Store (DAT3, MDL3) | |
Store (DAT4, MDL4) | |
Return (Zero) | |
} | |
Method (GBSI, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x19)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F172, SystemMemory, Arg0, Arg1) | |
Field (F172, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BLEN, 8, | |
BDL1, 32, | |
BDL2, 32, | |
BDL3, 32, | |
BDL4, 32 | |
} | |
Store (Zero, BDL1) | |
Store (Zero, BDL2) | |
Store (Zero, BDL3) | |
Store (Zero, BDL4) | |
Name (BBUF, Buffer (0x10) {}) | |
CreateDWordField (BBUF, Zero, DAT1) | |
CreateDWordField (BBUF, 0x04, DAT2) | |
CreateDWordField (BBUF, 0x08, DAT3) | |
CreateDWordField (BBUF, 0x0C, DAT4) | |
Store (GBRV (), Local0) | |
Store (SizeOf (Local0), BLEN) | |
Store (GBRV (), BBUF) | |
Store (DAT1, BDL1) | |
Store (DAT2, BDL2) | |
Store (DAT3, BDL3) | |
Store (DAT4, BDL4) | |
Return (Zero) | |
} | |
Method (GECI, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x19)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F173, SystemMemory, Arg0, Arg1) | |
Field (F173, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
ELEN, 8, | |
EDL1, 32, | |
EDL2, 32, | |
EDL3, 32, | |
EDL4, 32 | |
} | |
Store (Zero, EDL1) | |
Store (Zero, EDL2) | |
Store (Zero, EDL3) | |
Store (Zero, EDL4) | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
Method (MF18, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G18V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (GDVI (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (GDVS (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x03)) | |
{ | |
Store (SDPW (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G18V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F180, SystemMemory, Arg0, Arg1) | |
Field (F180, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (GDVI, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x18)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F181, SystemMemory, Arg0, Arg1) | |
Field (F181, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
LDI0, 32, | |
LDI1, 32 | |
} | |
Store (FEBL, LDI0) | |
Return (Zero) | |
} | |
Method (GDVS, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F182, SystemMemory, Arg0, Arg1) | |
Field (F182, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
DNUM, 8, | |
DSTS, 8 | |
} | |
ShiftLeft (One, DNUM, Local0) | |
If (LEqual (And (Local0, FEBL), Zero)) | |
{ | |
Return (0x10) | |
} | |
Return (Zero) | |
} | |
Method (SDPW, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F183, SystemMemory, Arg0, Arg1) | |
Field (F183, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
DNUM, 8, | |
DCTR, 8 | |
} | |
ShiftLeft (One, DNUM, Local0) | |
If (LEqual (And (Local0, FEBL), Zero)) | |
{ | |
Return (0x10) | |
} | |
If (LGreater (DCTR, One)) | |
{ | |
Return (0x11) | |
} | |
Return (Zero) | |
} | |
Method (MF19, 3, NotSerialized) | |
{ | |
Store (One, Local0) | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (G19V (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (ACMS (Arg0, Arg1), Local0) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Store (CSIN (Arg0, Arg1), Local0) | |
} | |
Return (Local0) | |
} | |
Method (G19V, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0C)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F190, SystemMemory, Arg0, Arg1) | |
Field (F190, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SVER, 16, | |
MVER, 16 | |
} | |
Store (Zero, MVER) | |
Store (Zero, SVER) | |
Return (Zero) | |
} | |
Method (ACMS, 2, NotSerialized) | |
{ | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
Method (CSIN, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x0A)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F192, SystemMemory, Arg0, Arg1) | |
Field (F192, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
CMAX, 16 | |
} | |
Store (0xFF, CMAX) | |
Return (Zero) | |
} | |
Method (MF1F, 3, NotSerialized) | |
{ | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (AGLN, 4, NotSerialized) | |
{ | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (OFBD, 1, NotSerialized) | |
{ | |
Name (FBDT, Package (0x14) | |
{ | |
0xE0, | |
0xE1, | |
0xE2, | |
0xE3, | |
0xE4, | |
0xE5, | |
0xE6, | |
0xE7, | |
0xE8, | |
0xE9, | |
0xEA, | |
0xEB, | |
0xEC, | |
0xED, | |
0xEE, | |
0xEF, | |
0xF1, | |
0xF2, | |
0xF3, | |
0xF6 | |
}) | |
Store (Match (FBDT, MEQ, Arg0, MTR, Zero, Zero), Local0) | |
Increment (Local0) | |
Return (Local0) | |
} | |
Method (GBRV, 0, NotSerialized) | |
{ | |
Store ("221", Local0) | |
Return (Local0) | |
} | |
Method (GBMN, 0, NotSerialized) | |
{ | |
Store ("K53E", Local0) | |
Return (Local0) | |
} | |
Method (OGDP, 1, NotSerialized) | |
{ | |
Store (Arg0, Local0) | |
Store (0x02, Local1) | |
Return (Local1) | |
} | |
Method (RSID, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
Method (OSDP, 2, NotSerialized) | |
{ | |
Store (Arg0, Local0) | |
Store (Arg1, Local1) | |
} | |
Method (MF42, 3, NotSerialized) | |
{ | |
OperationRegion (FM42, SystemMemory, Arg0, 0x08) | |
Field (FM42, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x06), | |
SM42, 8, | |
EM42, 8 | |
} | |
Store (One, Local0) | |
If (LEqual (Arg1, One)) | |
{ | |
Store (SFBO (Arg0, Arg2), Local0) | |
} | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (SAOC (Arg0, Arg2), Local0) | |
} | |
If (LEqual (Arg1, 0x03)) | |
{ | |
Store (GBST (Arg0, Arg2), Local0) | |
} | |
If (Local0) | |
{ | |
Store (Local0, EM42) | |
Or (SM42, 0x02, SM42) | |
} | |
Or (SM42, 0x80, SM42) | |
Return (Zero) | |
} | |
Method (SFBO, 2, NotSerialized) | |
{ | |
OperationRegion (\F421, SystemMemory, Arg0, Arg1) | |
Field (F421, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SOPT, 8 | |
} | |
Return (Zero) | |
} | |
Method (SAOC, 2, NotSerialized) | |
{ | |
OperationRegion (\F422, SystemMemory, Arg0, Arg1) | |
Field (F422, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
CNTF, 8 | |
} | |
Return (Zero) | |
} | |
Method (GBST, 2, NotSerialized) | |
{ | |
OperationRegion (\F423, SystemMemory, Arg0, Arg1) | |
Field (F423, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
BOT1, 64, | |
BOT2, 64 | |
} | |
Store (TBOT, BOT1) | |
Store (RTC3, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (RTC2, Local0, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (RTC1, Local0, Local0) | |
Store (Local0, BOT2) | |
Return (Zero) | |
} | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
Method (GBTT, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (EB0T, Local0) | |
} | |
Else | |
{ | |
Store (EB1T, Local0) | |
} | |
} | |
Else | |
{ | |
Store (0xFF, Local0) | |
} | |
Return (Local0) | |
} | |
Method (WCMD, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, CMD1) | |
Release (MUEC) | |
} | |
} | |
Method (DLY0, 1, Serialized) | |
{ | |
If (LNot (ECAV ())) | |
{ | |
Return (Ones) | |
} | |
Store (Ones, Local0) | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, CDT1) | |
Store (0x6B, CDT2) | |
Store (Zero, CDT3) | |
Store (0xBB, CMD1) | |
Store (0x7F, Local1) | |
While (LAnd (Local1, CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local1) | |
} | |
If (LEqual (CMD1, Zero)) | |
{ | |
Store (CDT1, Local0) | |
} | |
Release (MUEC) | |
Return (Local0) | |
} | |
Method (RRAM, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, Local0) | |
And (Local0, 0xFF, Local1) | |
ShiftRight (Local0, 0x08, Local0) | |
And (Local0, 0xFF, Local0) | |
Store (Local1, CDT3) | |
Store (Local0, CDT2) | |
Store (0x80, CDT1) | |
Store (0xB6, CMD1) | |
Store (0x7F, Local0) | |
While (LAnd (Local0, CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
If (LEqual (CMD1, Zero)) | |
{ | |
Store (CDT1, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Release (MUEC) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (WRAM, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, Local0) | |
And (Local0, 0xFF, Local1) | |
ShiftRight (Local0, 0x08, Local0) | |
And (Local0, 0xFF, Local0) | |
Store (Local1, CDT3) | |
Store (Local0, CDT2) | |
Store (0x81, CDT1) | |
Store (Arg1, CDT4) | |
Store (0xB6, CMD1) | |
Store (0x7F, Local0) | |
While (LAnd (Local0, CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
If (LEqual (CMD1, Zero)) | |
{ | |
Store (One, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Release (MUEC) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (STBR, 0, Serialized) | |
{ | |
Store (Zero, Local0) | |
Store (Zero, Local1) | |
Store (Zero, Local2) | |
If (And (VGAF, One)) | |
{ | |
Store (One, Local0) | |
} | |
If (Local0) | |
{ | |
Store (One, Local2) | |
} | |
If (Local1) | |
{ | |
ISMI (0x9A) | |
} | |
Else | |
{ | |
If (Local2) | |
{ | |
If (LNotEqual (MSOS (), OSEG)) | |
{ | |
If (LEqual (^^^GFX0.DOSF, One)) | |
{ | |
ISMI (0x9A) | |
} | |
Else | |
{ | |
If (LLess (MSOS (), OSW8)) | |
{ | |
Store (BRTI, Local4) | |
ShiftLeft (Local4, 0x04, Local4) | |
Store (LBTN, Local3) | |
Store (Add (Local4, Local3), Local3) | |
^^^GFX0.AINT (One, Divide (Multiply (DerefOf (Index (PWAC, Local3)), 0x64 | |
), 0xFF, )) | |
} | |
} | |
} | |
Else | |
{ | |
ISMI (0x9A) | |
} | |
} | |
Else | |
{ | |
ECCB () | |
} | |
} | |
} | |
Method (ECCB, 0, Serialized) | |
{ | |
If (LLess (MSOS (), OSW8)) | |
{ | |
If (LOr (ACAP (), LEqual (MSOS (), OSVT))) | |
{ | |
Store (LBTN, Local0) | |
} | |
Else | |
{ | |
Store (LBTN, Local0) | |
} | |
Store (BRTI, Local1) | |
ShiftLeft (Local1, 0x04, Local1) | |
Add (Local0, Local1, Local1) | |
Store (DerefOf (Index (PWAC, Local1)), Local0) | |
SADC (Local0) | |
} | |
Else | |
{ | |
} | |
} | |
Method (SBRV, 1, Serialized) | |
{ | |
ST86 (Zero, Arg0) | |
} | |
Name (DECF, Zero) | |
Method (SFNV, 2, Serialized) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
If (And (DECF, One)) | |
{ | |
Store (RRAM (0x0521), Local0) | |
Or (Local0, 0x80, Local0) | |
WRAM (0x0521, Local0) | |
} | |
If (And (DECF, 0x02)) | |
{ | |
Store (RRAM (0x0522), Local0) | |
Or (Local0, 0x80, Local0) | |
WRAM (0x0522, Local0) | |
} | |
Store (Zero, DECF) | |
Return (Zero) | |
} | |
If (LEqual (Arg0, One)) | |
{ | |
Store (RRAM (0x0521), Local0) | |
And (Local0, 0x7F, Local0) | |
WRAM (0x0521, Local0) | |
Or (DECF, One, DECF) | |
ST84 (Zero, Arg1) | |
Return (Zero) | |
} | |
If (LEqual (Arg0, 0x02)) | |
{ | |
Store (RRAM (0x0522), Local0) | |
And (Local0, 0x7F, Local0) | |
WRAM (0x0522, Local0) | |
Or (DECF, 0x02, DECF) | |
ST84 (One, Arg1) | |
Return (Zero) | |
} | |
Return (Zero) | |
} | |
Method (SADC, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (0x86, CDT1) | |
Store (Zero, CDT2) | |
Store (Arg0, CDT3) | |
Store (0xB6, CMD1) | |
Store (0x7F, Local0) | |
While (LAnd (Local0, CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
If (LEqual (CMD1, Zero)) | |
{ | |
Store (CDT1, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Release (MUEC) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (SPIN, 2, Serialized) | |
{ | |
If (Arg1) | |
{ | |
ST87 (0x20, Arg0) | |
} | |
Else | |
{ | |
ST87 (0x40, Arg0) | |
} | |
Return (One) | |
} | |
Method (RPIN, 1, Serialized) | |
{ | |
Store (ST87 (Zero, Arg0), Local1) | |
Return (Local1) | |
} | |
Method (RBAT, 2, Serialized) | |
{ | |
If (LNot (ECAV ())) | |
{ | |
Return (Ones) | |
} | |
Acquire (MUEC, 0xFFFF) | |
Store (0x03, Local0) | |
While (Local0) | |
{ | |
Store (Arg0, CDT2) | |
Store (Arg1, Local1) | |
ShiftLeft (Local1, One, Local1) | |
Add (Local1, 0xDA, Local1) | |
Store (Local1, CMD1) | |
Store (0x7F, Local1) | |
While (LAnd (CMD1, Local1)) | |
{ | |
Decrement (Local1) | |
Sleep (One) | |
} | |
If (LEqual (CMD1, Zero)) | |
{ | |
Store (CDT1, Local1) | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local1) | |
Decrement (Local0) | |
} | |
} | |
Release (MUEC) | |
Return (Local1) | |
} | |
Method (WBAT, 3, Serialized) | |
{ | |
Or (Arg0, 0x80, Local3) | |
If (LNot (ECAV ())) | |
{ | |
Return (Ones) | |
} | |
Acquire (MUEC, 0xFFFF) | |
Store (0x03, Local0) | |
While (Local0) | |
{ | |
Store (Arg2, CDT1) | |
Store (Local3, CDT2) | |
Store (Arg1, Local1) | |
ShiftLeft (Local1, One, Local1) | |
Add (Local1, 0xDA, Local1) | |
Store (Local1, CMD1) | |
Store (0x7F, Local1) | |
While (LAnd (CMD1, Local1)) | |
{ | |
Decrement (Local1) | |
Sleep (One) | |
} | |
} | |
Release (MUEC) | |
Return (Local1) | |
} | |
Method (FNCT, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, CDT2) | |
Store (Arg1, CDT1) | |
Store (0xC4, CMD1) | |
Store (0x7F, Local0) | |
While (LAnd (Local0, CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
Release (MUEC) | |
} | |
} | |
Name (WRQK, 0x02) | |
Name (RDQK, 0x03) | |
Name (SDBT, 0x04) | |
Name (RCBT, 0x05) | |
Name (WRBT, 0x06) | |
Name (RDBT, 0x07) | |
Name (WRWD, 0x08) | |
Name (RDWD, 0x09) | |
Name (WRBL, 0x0A) | |
Name (RDBL, 0x0B) | |
Name (PCLL, 0x0C) | |
Name (GOOD, Zero) | |
Name (UKER, 0x07) | |
Name (DAER, 0x10) | |
Name (CMDN, 0x12) | |
Name (UKE2, 0x13) | |
Name (DADN, 0x17) | |
Name (SBTO, 0x18) | |
Name (USPT, 0x19) | |
Name (SBBY, 0x1A) | |
Method (SWTC, 1, Serialized) | |
{ | |
Store (UKER, Local0) | |
Store (0x03, Local1) | |
While (LAnd (Local0, Local1)) | |
{ | |
Store (0x23, Local2) | |
While (Local2) | |
{ | |
If (PRTC) | |
{ | |
Sleep (One) | |
Decrement (Local2) | |
} | |
Else | |
{ | |
Store (Zero, Local2) | |
Store (SSTS, Local0) | |
} | |
} | |
If (Local0) | |
{ | |
Store (Zero, PRTC) | |
Decrement (Local1) | |
If (Local1) | |
{ | |
Sleep (One) | |
Store (Arg0, PRTC) | |
} | |
} | |
} | |
Return (Local0) | |
} | |
Method (SMBR, 3, Serialized) | |
{ | |
Store (Package (0x03) | |
{ | |
0x07, | |
Zero, | |
Zero | |
}, Local0) | |
If (LNot (ECAV ())) | |
{ | |
Return (Local0) | |
} | |
If (LNotEqual (Arg0, RDBL)) | |
{ | |
If (LNotEqual (Arg0, RDWD)) | |
{ | |
If (LNotEqual (Arg0, RDBT)) | |
{ | |
If (LNotEqual (Arg0, RCBT)) | |
{ | |
If (LNotEqual (Arg0, RDQK)) | |
{ | |
Return (Local0) | |
} | |
} | |
} | |
} | |
} | |
Acquire (MUEC, 0xFFFF) | |
Store (PRTC, Local1) | |
Store (Zero, Local2) | |
While (LNotEqual (Local1, Zero)) | |
{ | |
Stall (0x0A) | |
Increment (Local2) | |
If (LGreater (Local2, 0x03E8)) | |
{ | |
Store (SBBY, Index (Local0, Zero)) | |
Store (Zero, Local1) | |
} | |
Else | |
{ | |
Store (PRTC, Local1) | |
} | |
} | |
If (LLessEqual (Local2, 0x03E8)) | |
{ | |
ShiftLeft (Arg1, One, Local3) | |
Or (Local3, One, Local3) | |
Store (Local3, ADDR) | |
If (LNotEqual (Arg0, RDQK)) | |
{ | |
If (LNotEqual (Arg0, RCBT)) | |
{ | |
Store (Arg2, CMDB) | |
} | |
} | |
Store (Zero, BDAT) | |
Store (Arg0, PRTC) | |
Store (SWTC (Arg0), Index (Local0, Zero)) | |
If (LEqual (DerefOf (Index (Local0, Zero)), Zero)) | |
{ | |
If (LEqual (Arg0, RDBL)) | |
{ | |
Store (BCNT, Index (Local0, One)) | |
Store (BDAT, Index (Local0, 0x02)) | |
} | |
If (LEqual (Arg0, RDWD)) | |
{ | |
Store (0x02, Index (Local0, One)) | |
Store (DT2B, Index (Local0, 0x02)) | |
} | |
If (LEqual (Arg0, RDBT)) | |
{ | |
Store (One, Index (Local0, One)) | |
Store (DAT0, Index (Local0, 0x02)) | |
} | |
If (LEqual (Arg0, RCBT)) | |
{ | |
Store (One, Index (Local0, One)) | |
Store (DAT0, Index (Local0, 0x02)) | |
} | |
} | |
} | |
Release (MUEC) | |
Return (Local0) | |
} | |
Method (SMBW, 5, Serialized) | |
{ | |
Store (Package (0x01) | |
{ | |
0x07 | |
}, Local0) | |
If (LNot (ECAV ())) | |
{ | |
Return (Local0) | |
} | |
If (LNotEqual (Arg0, WRBL)) | |
{ | |
If (LNotEqual (Arg0, WRWD)) | |
{ | |
If (LNotEqual (Arg0, WRBT)) | |
{ | |
If (LNotEqual (Arg0, SDBT)) | |
{ | |
If (LNotEqual (Arg0, WRQK)) | |
{ | |
Return (Local0) | |
} | |
} | |
} | |
} | |
} | |
Acquire (MUEC, 0xFFFF) | |
Store (PRTC, Local1) | |
Store (Zero, Local2) | |
While (LNotEqual (Local1, Zero)) | |
{ | |
Stall (0x0A) | |
Increment (Local2) | |
If (LGreater (Local2, 0x03E8)) | |
{ | |
Store (SBBY, Index (Local0, Zero)) | |
Store (Zero, Local1) | |
} | |
Else | |
{ | |
Store (PRTC, Local1) | |
} | |
} | |
If (LLessEqual (Local2, 0x03E8)) | |
{ | |
Store (Zero, BDAT) | |
ShiftLeft (Arg1, One, Local3) | |
Store (Local3, ADDR) | |
If (LNotEqual (Arg0, WRQK)) | |
{ | |
If (LNotEqual (Arg0, SDBT)) | |
{ | |
Store (Arg2, CMDB) | |
} | |
} | |
If (LEqual (Arg0, WRBL)) | |
{ | |
Store (Arg3, BCNT) | |
Store (Arg4, BDAT) | |
} | |
If (LEqual (Arg0, WRWD)) | |
{ | |
Store (Arg4, DT2B) | |
} | |
If (LEqual (Arg0, WRBT)) | |
{ | |
Store (Arg4, DAT0) | |
} | |
If (LEqual (Arg0, SDBT)) | |
{ | |
Store (Arg4, DAT0) | |
} | |
Store (Arg0, PRTC) | |
Store (SWTC (Arg0), Index (Local0, Zero)) | |
} | |
Release (MUEC) | |
Return (Local0) | |
} | |
Mutex (MUEP, 0x00) | |
Method (RBEP, 1, NotSerialized) | |
{ | |
Store (0xFFFF, Local1) | |
Acquire (MUEP, 0xFFFF) | |
Store (RRAM (0x0620), Local3) | |
And (Local3, 0x7F, Local4) | |
WRAM (0x0620, Local4) | |
Store (0x10, Local2) | |
Store (0x10, Local1) | |
While (And (LEqual (Local1, 0x10), LNotEqual (Local2, Zero))) | |
{ | |
SMBW (WRWD, BADR, Zero, 0x02, 0x0635) | |
SMBW (WRWD, BADR, Zero, 0x02, 0x0606) | |
Store (SMBR (RDBT, 0x50, Arg0), Local0) | |
Store (DerefOf (Index (Local0, Zero)), Local1) | |
Decrement (Local2) | |
} | |
WRAM (0x0620, Local3) | |
ShiftLeft (Local1, 0x08, Local1) | |
Or (Local1, DerefOf (Index (Local0, 0x02)), Local1) | |
Release (MUEP) | |
Return (Local1) | |
} | |
Method (WBEP, 2, NotSerialized) | |
{ | |
Store (0xFFFF, Local1) | |
Acquire (MUEP, 0xFFFF) | |
Store (RRAM (0x0620), Local3) | |
And (Local3, 0x7F, Local4) | |
WRAM (0x0620, Local4) | |
Store (0x10, Local2) | |
Store (0x10, Local1) | |
While (And (LEqual (Local1, 0x10), LNotEqual (Local2, Zero))) | |
{ | |
SMBW (WRWD, BADR, Zero, 0x02, 0x0635) | |
SMBW (WRWD, BADR, Zero, 0x02, 0x0606) | |
Store (SMBW (WRBT, 0x50, Arg0, One, Arg1), Local0) | |
Store (DerefOf (Index (Local0, Zero)), Local1) | |
Decrement (Local2) | |
} | |
WRAM (0x0620, Local3) | |
Release (MUEP) | |
Return (Local1) | |
} | |
Method (ECXT, 6, NotSerialized) | |
{ | |
Store (Package (0x06) | |
{ | |
0x10, | |
Zero, | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}, Local1) | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg1, CDT1) | |
Store (Arg2, CDT2) | |
Store (Arg3, CDT3) | |
Store (Arg4, CDT4) | |
Store (Arg5, CDT5) | |
Store (Arg0, CMD1) | |
Store (0x7F, Local0) | |
While (LAnd (Local0, CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
If (Local0) | |
{ | |
Store (Zero, Index (Local1, Zero)) | |
Store (CDT1, Index (Local1, One)) | |
Store (CDT2, Index (Local1, 0x02)) | |
Store (CDT3, Index (Local1, 0x03)) | |
Store (CDT4, Index (Local1, 0x04)) | |
Store (CDT5, Index (Local1, 0x05)) | |
} | |
Else | |
{ | |
Store (0x10, Index (Local1, Zero)) | |
} | |
Release (MUEC) | |
} | |
Return (Local1) | |
} | |
Method (ECSB, 7, NotSerialized) | |
{ | |
Store (Package (0x05) | |
{ | |
0x11, | |
Zero, | |
Zero, | |
Zero, | |
Buffer (0x20) {} | |
}, Local1) | |
If (LGreater (Arg0, One)) | |
{ | |
Return (Local1) | |
} | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (PRTC, Local0) | |
} | |
Else | |
{ | |
Store (PRT2, Local0) | |
} | |
Store (Zero, Local2) | |
While (LNotEqual (Local0, Zero)) | |
{ | |
Stall (0x0A) | |
Increment (Local2) | |
If (LGreater (Local2, 0x03E8)) | |
{ | |
Store (SBBY, Index (Local1, Zero)) | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (PRTC, Local0) | |
} | |
Else | |
{ | |
Store (PRT2, Local0) | |
} | |
} | |
} | |
If (LLessEqual (Local2, 0x03E8)) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (Arg2, ADDR) | |
Store (Arg3, CMDB) | |
Store (Arg4, DAT0) | |
Store (Arg5, DAT1) | |
Store (DerefOf (Index (Arg6, Zero)), BCNT) | |
Store (DerefOf (Index (Arg6, One)), BDAT) | |
Store (Arg1, PRTC) | |
} | |
Else | |
{ | |
Store (Arg2, ADD2) | |
Store (Arg3, CMD2) | |
Store (Arg4, DA20) | |
Store (Arg5, DA21) | |
Store (DerefOf (Index (Arg6, Zero)), BCN2) | |
Store (DerefOf (Index (Arg6, One)), BDA2) | |
Store (Arg1, PRT2) | |
} | |
Store (0x7F, Local0) | |
If (LEqual (Arg0, Zero)) | |
{ | |
While (PRTC) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
} | |
Else | |
{ | |
While (PRT2) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
} | |
If (Local0) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (SSTS, Local0) | |
Store (DAT0, Index (Local1, One)) | |
Store (DAT1, Index (Local1, 0x02)) | |
Store (BCNT, Index (Local1, 0x03)) | |
Store (BDAT, Index (Local1, 0x04)) | |
} | |
Else | |
{ | |
Store (SST2, Local0) | |
Store (DA20, Index (Local1, One)) | |
Store (DA21, Index (Local1, 0x02)) | |
Store (BCN2, Index (Local1, 0x03)) | |
Store (BDA2, Index (Local1, 0x04)) | |
} | |
And (Local0, 0x1F, Local0) | |
If (Local0) | |
{ | |
Add (Local0, 0x10, Local0) | |
} | |
Store (Local0, Index (Local1, Zero)) | |
} | |
Else | |
{ | |
Store (0x10, Index (Local1, Zero)) | |
} | |
} | |
Release (MUEC) | |
} | |
Return (Local1) | |
} | |
OperationRegion (ECID, SystemIO, 0x0257, One) | |
Field (ECID, ByteAcc, NoLock, Preserve) | |
{ | |
EC4D, 8 | |
} | |
OperationRegion (ECIC, SystemIO, 0x0258, One) | |
Field (ECIC, ByteAcc, NoLock, Preserve) | |
{ | |
EC4C, 8 | |
} | |
Method (WEIE, 0, Serialized) | |
{ | |
Store (0xFFFF, Local0) | |
While (LEqual (And (EC4C, 0x02), 0x02)) | |
{ | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (Ones) | |
} | |
Decrement (Local0) | |
Sleep (0x05) | |
} | |
Return (Zero) | |
} | |
Method (WEOF, 0, Serialized) | |
{ | |
Store (0xFFFF, Local0) | |
While (LNotEqual (And (EC4C, One), One)) | |
{ | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (Ones) | |
} | |
Decrement (Local0) | |
Sleep (0x05) | |
} | |
Return (Zero) | |
} | |
Method (WEOE, 0, NotSerialized) | |
{ | |
Store (0xFFFF, Local0) | |
While (LEqual (And (EC4C, One), One)) | |
{ | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (Ones) | |
} | |
Decrement (Local0) | |
Sleep (0x05) | |
Store (EC4D, Local1) | |
} | |
Return (Zero) | |
} | |
Method (ST83, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x83, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEOF (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (EC4D, Local0) | |
Release (MU4T) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (ST84, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x84, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST95, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x95, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LEqual (Arg0, Zero)) | |
{ | |
If (LNotEqual (WEOF (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (EC4D, Local0) | |
} | |
Release (MU4T) | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (Local0) | |
} | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST87, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x87, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LEqual (Arg0, Zero)) | |
{ | |
If (LNotEqual (WEOF (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (EC4D, Local0) | |
} | |
Release (MU4T) | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (Local0) | |
} | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST85, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x85, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEOF (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (EC4D, Local0) | |
Release (MU4T) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (ST86, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x86, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST8E, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x8E, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEOF (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (EC4D, Local0) | |
Release (MU4T) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (ST9E, 3, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x9E, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg2, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST9F, 3, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0x9F, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg2, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STA9, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xA9, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg1, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STA8, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xFF, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xA8, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEOF (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (EC4D, Local0) | |
Release (MU4T) | |
Return (Local0) | |
} | |
Return (Ones) | |
} | |
Method (TPSW, 1, NotSerialized) | |
{ | |
And (Arg0, One, Local0) | |
If (Local0) | |
{ | |
ECXT (0xB6, 0xB8, One, One, Zero, Zero) | |
} | |
Else | |
{ | |
ECXT (0xB6, 0xB8, One, 0x02, Zero, Zero) | |
} | |
} | |
Method (TPST, 0, NotSerialized) | |
{ | |
Store (ECXT (0xB6, 0xB8, 0x02, Zero, Zero, Zero), Local0) | |
Store (DerefOf (Index (Local0, One)), Local1) | |
If (LEqual (Local1, Zero)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (LBSW, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, One)) | |
{ | |
ECXT (0xB6, 0xB9, One, Zero, Zero, Zero) | |
} | |
Else | |
{ | |
ECXT (0xB6, 0xB9, 0x02, Zero, Zero, Zero) | |
} | |
} | |
Method (LBST, 0, NotSerialized) | |
{ | |
Store (RRAM (0x044A), Local0) | |
And (Local0, 0x03, Local0) | |
Return (Local0) | |
} | |
} | |
Scope (\) | |
{ | |
Name (TSP, 0x0A) | |
Name (TC1, 0x02) | |
Name (TC2, 0x0A) | |
} | |
Scope (_TZ) | |
{ | |
Method (KELV, 1, NotSerialized) | |
{ | |
And (Arg0, 0xFF, Local0) | |
If (LGreaterEqual (Local0, 0x80)) | |
{ | |
Subtract (0x0100, Local0, Local0) | |
Multiply (Local0, 0x0A, Local0) | |
Subtract (0x0AAC, Local0, Local0) | |
Return (Local0) | |
} | |
Multiply (Local0, 0x0A, Local0) | |
Add (Local0, 0x0AAC, Local0) | |
Return (Local0) | |
} | |
Method (CELC, 1, NotSerialized) | |
{ | |
Subtract (Arg0, 0x0AAC, Local0) | |
Divide (Local0, 0x0A, Local1, Local0) | |
Return (Local0) | |
} | |
Name (PLCY, Zero) | |
ThermalZone (THRM) | |
{ | |
Method (_CRT, 0, NotSerialized) | |
{ | |
RCRT () | |
Return (KELV (\_SB.TCRT)) | |
} | |
Method (_TMP, 0, NotSerialized) | |
{ | |
Store (0x05, Local1) | |
While (Local1) | |
{ | |
Store (RTMP (), Local0) | |
If (LGreater (Local0, \_SB.TCRT)) | |
{ | |
Decrement (Local1) | |
} | |
Else | |
{ | |
Store (Zero, Local1) | |
} | |
} | |
Return (KELV (Local0)) | |
} | |
Name (_PSL, Package (0x04) | |
{ | |
\_PR.CPU0, | |
\_PR.CPU1, | |
\_PR.CPU2, | |
\_PR.CPU3 | |
}) | |
Method (_TSP, 0, NotSerialized) | |
{ | |
Multiply (TSP, 0x0A, Local0) | |
Return (Local0) | |
} | |
Method (_TC1, 0, NotSerialized) | |
{ | |
Return (TC1) | |
} | |
Method (_TC2, 0, NotSerialized) | |
{ | |
Return (TC2) | |
} | |
Method (_PSV, 0, NotSerialized) | |
{ | |
RPSV () | |
If (PLCY) | |
{ | |
Return (KELV (\_SB.PPSV)) | |
} | |
Else | |
{ | |
Return (KELV (\_SB.TPSV)) | |
} | |
} | |
Method (_SCP, 1, NotSerialized) | |
{ | |
Store (Zero, PLCY) | |
Notify (THRM, 0x81) | |
} | |
} | |
} | |
Scope (_TZ) | |
{ | |
Name (ATMP, 0x3C) | |
Name (LTMP, 0x3C) | |
Name (FANS, Zero) | |
Method (RTMP, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.SBRG.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ECPU, Local0) | |
If (LLess (Local0, 0x80)) | |
{ | |
Store (Local0, LTMP) | |
} | |
} | |
Return (LTMP) | |
} | |
Method (RCRT, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.SBRG.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ECRT, Local0) | |
If (LLess (Local0, 0x80)) | |
{ | |
Store (Local0, \_SB.TCRT) | |
} | |
} | |
} | |
Method (RPSV, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.SBRG.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.EPSV, Local0) | |
If (LLess (Local0, 0x80)) | |
{ | |
Store (Local0, \_SB.TPSV) | |
} | |
} | |
} | |
Method (RFAN, 1, NotSerialized) | |
{ | |
If (\_SB.PCI0.SBRG.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST83 (Arg0), Local0) | |
If (LEqual (Local0, 0xFF)) | |
{ | |
Return (Local0) | |
} | |
Store (\_SB.PCI0.SBRG.EC0.TACH (Arg0), Local0) | |
Divide (Local0, 0x64, Local1, Local0) | |
Add (Local0, One, Local0) | |
If (LLessEqual (Local0, 0x3C)) | |
{ | |
Store (Local0, FANS) | |
} | |
Else | |
{ | |
Store (FANS, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
Return (Local0) | |
} | |
Method (RFSE, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.SBRG.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST83 (Zero), Local1) | |
If (LLess (Local1, 0x80)) | |
{ | |
If (LLess (Local1, 0x0A)) | |
{ | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
Store (One, Local0) | |
} | |
} | |
Else | |
{ | |
If (LLess (Local1, 0xF5)) | |
{ | |
Store (0x02, Local0) | |
} | |
Else | |
{ | |
Store (0x03, Local0) | |
} | |
} | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
Return (Local0) | |
} | |
Method (TCHG, 0, NotSerialized) | |
{ | |
} | |
Method (THDL, 0, NotSerialized) | |
{ | |
} | |
Method (TMSS, 1, NotSerialized) | |
{ | |
} | |
Method (TMSW, 1, NotSerialized) | |
{ | |
} | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
Name (PWAC, Buffer (0x40) | |
{ | |
/* 0000 */ 0x33, 0x40, 0x4D, 0x5A, 0x67, 0x73, 0x80, 0x8D, | |
/* 0008 */ 0xA7, 0xCD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
/* 0010 */ 0x21, 0x2E, 0x3B, 0x48, 0x55, 0x61, 0x6E, 0x7B, | |
/* 0018 */ 0x9A, 0xC5, 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 | |
}) | |
Method (ACPS, 0, Serialized) | |
{ | |
Return (And (GPWS (), One)) | |
} | |
Method (DCPS, 1, Serialized) | |
{ | |
Store (GPWS (), Local0) | |
If (Arg0) | |
{ | |
And (Local0, 0x04, Local0) | |
} | |
Else | |
{ | |
And (Local0, 0x02, Local0) | |
} | |
If (Local0) | |
{ | |
Store (One, Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
Return (Local0) | |
} | |
Method (GPWS, 0, Serialized) | |
{ | |
Store (EPWS, Local0) | |
Return (Local0) | |
} | |
Method (BCHG, 1, Serialized) | |
{ | |
If (Arg0) | |
{ | |
If (ECAV ()) | |
{ | |
Store (EB1S, Local0) | |
And (Local0, 0xFF, Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
And (Local0, 0x02, Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
Return (Local0) | |
} | |
Else | |
{ | |
If (ECAV ()) | |
{ | |
Store (EB0S, Local0) | |
And (Local0, 0xFF, Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
And (Local0, 0x02, Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
Return (Local0) | |
} | |
} | |
Method (BCLE, 1, Serialized) | |
{ | |
If (Arg0) | |
{ | |
If (ECAV ()) | |
{ | |
Store (Ones, Local0) | |
Store (EB1S, Local1) | |
And (Local1, 0xFFFF, Local1) | |
If (LNotEqual (Local1, 0xFFFF)) | |
{ | |
And (Local1, 0x16, Local1) | |
If (LEqual (Local1, 0x04)) | |
{ | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
If (LEqual (Local1, 0x02)) | |
{ | |
Store (One, Local0) | |
} | |
Else | |
{ | |
If (LEqual (Local1, 0x10)) | |
{ | |
Store (One, Local0) | |
} | |
} | |
} | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Else | |
{ | |
If (ECAV ()) | |
{ | |
Store (Ones, Local0) | |
Store (EB0S, Local1) | |
And (Local1, 0xFFFF, Local1) | |
If (LNotEqual (Local1, 0xFFFF)) | |
{ | |
And (Local1, 0x16, Local1) | |
If (LEqual (Local1, 0x04)) | |
{ | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
If (LEqual (Local1, 0x02)) | |
{ | |
Store (One, Local0) | |
} | |
Else | |
{ | |
If (LEqual (Local1, 0x10)) | |
{ | |
Store (One, Local0) | |
} | |
} | |
} | |
} | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
} | |
Method (CHBT, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Store (GBTT (Arg0), Local1) | |
If (LEqual (Local1, 0xFF)) | |
{ | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
And (Local1, 0x10, Local0) | |
If (Local0) | |
{ | |
Store (One, Local0) | |
} | |
} | |
} | |
Else | |
{ | |
Store (DCTP, Local0) | |
} | |
Return (Local0) | |
} | |
Method (TACH, 1, Serialized) | |
{ | |
Name (_T_0, Zero) | |
If (ECAV ()) | |
{ | |
While (One) | |
{ | |
Store (Arg0, _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
Store (TAH0, Local0) | |
Break | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
Store (TAH1, Local0) | |
Break | |
} | |
Else | |
{ | |
Return (Ones) | |
} | |
} | |
Break | |
} | |
Multiply (Local0, 0x02, Local0) | |
If (LNotEqual (Local0, Zero)) | |
{ | |
Divide (0x0041CDB4, Local0, Local1, Local0) | |
Return (Local0) | |
} | |
Else | |
{ | |
Return (Ones) | |
} | |
} | |
Else | |
{ | |
Return (Ones) | |
} | |
} | |
Name (HKFG, Zero) | |
Method (EC0S, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x03)) {} | |
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) {} | |
If (LEqual (Arg0, 0x05)) {} | |
If (LGreater (Arg0, 0x04)) {} | |
Store (HKEN, HKFG) | |
} | |
Method (EC0W, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x03)) {} | |
If (LLessEqual (Arg0, 0x04)) | |
{ | |
Store (ACPS (), ACPF) | |
Store (DCPS (Zero), DCPF) | |
PNOT () | |
} | |
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) | |
{ | |
Store (RRAM (0x0449), Local0) | |
And (Local0, 0x02, Local1) | |
If (Local1) | |
{ | |
Or (Local0, One, Local0) | |
WRAM (0x0449, Local0) | |
} | |
} | |
If (LEqual (Arg0, 0x05)) {} | |
If (LGreaterEqual (Arg0, 0x04)) | |
{ | |
Store (HKFG, HKEN) | |
} | |
} | |
Name (FHKM, One) | |
Method (FHKW, 0, Serialized) | |
{ | |
While (LNot (FHKM)) | |
{ | |
Sleep (0x0A) | |
} | |
Store (Zero, FHKM) | |
} | |
Method (FHKS, 0, Serialized) | |
{ | |
Store (One, FHKM) | |
} | |
Method (_Q01, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x52) | |
} | |
} | |
Method (_Q02, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x53) | |
} | |
} | |
Method (_Q03, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x54) | |
} | |
} | |
Method (_Q04, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x55) | |
} | |
} | |
Method (_Q05, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x56) | |
} | |
} | |
Method (_Q0A, 0, NotSerialized) | |
{ | |
Notify (SLPB, 0x80) | |
} | |
Method (_Q0B, 0, NotSerialized) | |
{ | |
If (And (^^^^ATKD.WAPF, 0x04)) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x88) | |
} | |
} | |
Else | |
{ | |
Store (OHWR (), Local0) | |
If (And (Local0, 0x02)) | |
{ | |
If (And (Local0, One)) | |
{ | |
Store (One, Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Else | |
{ | |
Store (One, Local0) | |
} | |
If (Local0) | |
{ | |
If (And (^^^^ATKD.WAPF, One)) | |
{ | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Store (WRST, Local0) | |
Or (ShiftLeft (BRST, One), Local0, Local0) | |
Increment (Local0) | |
If (LGreater (Local0, 0x03)) | |
{ | |
Store (Zero, Local0) | |
} | |
Store (DerefOf (Index (WBTL, Local0)), Local1) | |
If (LEqual (Local1, Zero)) | |
{ | |
^^^^ATKD.IANE (0x5D) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
If (LEqual (Local1, One)) | |
{ | |
^^^^ATKD.IANE (0x5D) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
If (LEqual (Local1, 0x02)) | |
{ | |
^^^^ATKD.IANE (0x5D) | |
Sleep (0x0DAC) | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
If (LEqual (Local1, 0x03)) | |
{ | |
^^^^ATKD.IANE (0x5D) | |
Sleep (0x0DAC) | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
} | |
Else | |
{ | |
If (WLDP) | |
{ | |
^^^^ATKD.IANE (0x5D) | |
} | |
Else | |
{ | |
If (BTDP) | |
{ | |
If (BRST) | |
{ | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
Else | |
{ | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
} | |
} | |
} | |
} | |
Else | |
{ | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Store (WRST, Local0) | |
Or (ShiftLeft (BRST, One), Local0, Local0) | |
Increment (Local0) | |
If (LGreater (Local0, 0x03)) | |
{ | |
Store (Zero, Local0) | |
} | |
Store (DerefOf (Index (WBTL, Local0)), Local1) | |
If (LEqual (Local1, Zero)) | |
{ | |
OWLD (Zero) | |
^^^^ATKD.IANE (0x5F) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
If (LEqual (Local1, One)) | |
{ | |
OWLD (One) | |
^^^^ATKD.IANE (0x5E) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
If (LEqual (Local1, 0x02)) | |
{ | |
OWLD (Zero) | |
^^^^ATKD.IANE (0x5F) | |
Sleep (0x0DAC) | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
If (LEqual (Local1, 0x03)) | |
{ | |
OWLD (One) | |
^^^^ATKD.IANE (0x5E) | |
Sleep (0x0DAC) | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
} | |
Else | |
{ | |
If (WLDP) | |
{ | |
If (WRST) | |
{ | |
OWLD (Zero) | |
^^^^ATKD.IANE (0x5F) | |
} | |
Else | |
{ | |
OWLD (One) | |
^^^^ATKD.IANE (0x5E) | |
} | |
} | |
Else | |
{ | |
If (BTDP) | |
{ | |
If (BRST) | |
{ | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
Else | |
{ | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
} | |
} | |
} | |
} | |
} | |
Else | |
{ | |
If (WLDP) | |
{ | |
^^^^ATKD.IANE (0x5F) | |
} | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Sleep (0x0DAC) | |
} | |
If (BTDP) | |
{ | |
^^^^ATKD.IANE (0x7E) | |
} | |
} | |
} | |
} | |
Name (WBTL, Package (0x04) | |
{ | |
Zero, | |
One, | |
0x02, | |
0x03 | |
}) | |
Method (_Q0C, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x50) | |
} | |
} | |
Method (_Q0D, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x51) | |
} | |
} | |
Method (_Q0E, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (OSFG, OSVT)) | |
{ | |
Store (LBTN, Local0) | |
If (^^^GFX0.PRST ()) | |
{ | |
^^^GFX0.DWBL () | |
} | |
If (ATKP) | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) {} | |
Else | |
{ | |
If (LGreater (Local0, Zero)) | |
{ | |
Decrement (Local0) | |
} | |
If (LGreater (Local0, 0x0A)) | |
{ | |
Store (0x0A, Local0) | |
} | |
Store (Local0, LBTN) | |
^^^^ATKD.IANE (Add (Local0, 0x20)) | |
} | |
} | |
} | |
Else | |
{ | |
If (LGreater (LBTN, Zero)) | |
{ | |
Decrement (LBTN) | |
} | |
If (LGreater (LBTN, 0x0A)) | |
{ | |
Store (0x0A, LBTN) | |
} | |
STBR () | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (Add (LBTN, 0x20)) | |
} | |
} | |
Return (One) | |
} | |
Method (_Q0F, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (OSFG, OSVT)) | |
{ | |
Store (LBTN, Local0) | |
If (^^^GFX0.PRST ()) | |
{ | |
^^^GFX0.UPBL () | |
} | |
If (ATKP) | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) {} | |
Else | |
{ | |
If (LLess (Local0, 0x0A)) | |
{ | |
Increment (Local0) | |
} | |
Else | |
{ | |
Store (0x0A, Local0) | |
} | |
Store (Local0, LBTN) | |
^^^^ATKD.IANE (Add (Local0, 0x10)) | |
} | |
} | |
} | |
Else | |
{ | |
If (LLess (LBTN, 0x0A)) | |
{ | |
Increment (LBTN) | |
} | |
Else | |
{ | |
Store (0x0A, LBTN) | |
} | |
STBR () | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (Add (LBTN, 0x10)) | |
} | |
} | |
Return (One) | |
} | |
Method (_Q10, 0, NotSerialized) | |
{ | |
Store (One, Local0) | |
Store (RPIN (0x35), Local0) | |
XOr (Local0, One, Local0) | |
SPIN (0x35, Local0) | |
If (ATKP) | |
{ | |
Subtract (0x34, Local0, Local0) | |
^^^^ATKD.IANE (Local0) | |
} | |
} | |
Method (_Q11, 0, Serialized) | |
{ | |
Name (_T_0, Zero) | |
FHKW () | |
Store (ADVG (), Local0) | |
If (NATK ()) | |
{ | |
If (LLess (Local0, 0x08)) | |
{ | |
Add (Local0, 0x60, Local1) | |
} | |
Else | |
{ | |
If (LLess (Local0, 0x10)) | |
{ | |
Subtract (Local0, 0x08, Local1) | |
Add (Local1, 0x8C, Local1) | |
} | |
Else | |
{ | |
If (LLess (Local0, 0x20)) | |
{ | |
And (Local0, 0x07, Local1) | |
Add (Local1, 0xA0, Local1) | |
} | |
Else | |
{ | |
If (LLess (Local0, 0x40)) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Local0), _T_0) | |
If (LEqual (_T_0, 0x20)) | |
{ | |
Store (0xD0, Local1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x21)) | |
{ | |
Store (0xD1, Local1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x22)) | |
{ | |
Store (0xD2, Local1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x24)) | |
{ | |
Store (0xD3, Local1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x28)) | |
{ | |
Store (0xD4, Local1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x30)) | |
{ | |
Store (0xD5, Local1) | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
} | |
} | |
} | |
If (ATKP) | |
{ | |
If (LNotEqual (Local1, 0x60)) | |
{ | |
^^^^ATKD.IANE (Local1) | |
} | |
} | |
Else | |
{ | |
SWHG (Local0) | |
} | |
} | |
Else | |
{ | |
SWHG (Local0) | |
} | |
FHKS () | |
} | |
Method (_Q12, 0, NotSerialized) | |
{ | |
If (LNot (And (DSYN, One))) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x6B) | |
} | |
} | |
Else | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x6F) | |
} | |
} | |
} | |
Method (_Q13, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x32) | |
} | |
} | |
Method (_Q14, 0, NotSerialized) | |
{ | |
If (LLess (AVOL, 0x0F)) | |
{ | |
Increment (AVOL) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x31) | |
} | |
} | |
Method (_Q15, 0, NotSerialized) | |
{ | |
If (LGreater (AVOL, Zero)) | |
{ | |
Decrement (AVOL) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x30) | |
} | |
} | |
Method (_Q6F, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x45) | |
} | |
} | |
Method (_Q6E, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x43) | |
} | |
} | |
Method (_Q6C, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x40) | |
} | |
} | |
Method (_Q6D, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x41) | |
} | |
} | |
Method (_Q70, 0, NotSerialized) | |
{ | |
} | |
Method (_Q71, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x5C) | |
} | |
} | |
Method (_Q72, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x8A) | |
} | |
} | |
Method (_Q73, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x99) | |
} | |
} | |
Method (_Q74, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x82) | |
} | |
} | |
Method (_Q77, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0xB5) | |
} | |
} | |
Method (_Q85, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x5C) | |
} | |
} | |
Method (_Q84, 0, NotSerialized) | |
{ | |
Store (OHWR (), Local0) | |
If (And (Local0, 0x02)) | |
{ | |
If (And (^^^^ATKD.WAPF, 0x04)) | |
{ | |
If (ATKP) | |
{ | |
If (And (Local0, One)) | |
{ | |
^^^^ATKD.IANE (0x80) | |
} | |
Else | |
{ | |
^^^^ATKD.IANE (0x81) | |
} | |
} | |
} | |
Else | |
{ | |
If (And (^^^^ATKD.WAPF, One)) | |
{ | |
If (And (Local0, One)) | |
{ | |
If (WLDP) | |
{ | |
If (LEqual (And (^^^RP02.WLAN.VNUM, 0xFFFF), 0x8086)) | |
{ | |
Sleep (0x09C4) | |
} | |
If (LEqual (WRPS, One)) | |
{ | |
^^^^ATKD.IANE (0x5E) | |
} | |
Else | |
{ | |
^^^^ATKD.IANE (0x5F) | |
} | |
} | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Sleep (0x0DAC) | |
} | |
If (BTDP) | |
{ | |
If (BRPS) | |
{ | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
Else | |
{ | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
} | |
} | |
Else | |
{ | |
If (WLDP) | |
{ | |
Store (WRST, WRPS) | |
^^^^ATKD.IANE (0x5F) | |
} | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Sleep (0x0DAC) | |
} | |
If (BTDP) | |
{ | |
Store (BRST, BRPS) | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
} | |
} | |
Else | |
{ | |
If (And (Local0, One)) | |
{ | |
If (WLDP) | |
{ | |
If (WRPS) | |
{ | |
OWLD (One) | |
^^^^ATKD.IANE (0x5E) | |
} | |
Else | |
{ | |
OWLD (Zero) | |
^^^^ATKD.IANE (0x5F) | |
} | |
} | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Sleep (0x0DAC) | |
} | |
If (BTDP) | |
{ | |
If (BRPS) | |
{ | |
OBTD (One) | |
^^^^ATKD.IANE (0x7D) | |
} | |
Else | |
{ | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
} | |
} | |
Else | |
{ | |
If (WLDP) | |
{ | |
Store (WRST, WRPS) | |
OWLD (Zero) | |
^^^^ATKD.IANE (0x5F) | |
} | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Sleep (0x0DAC) | |
} | |
If (BTDP) | |
{ | |
Store (BRST, BRPS) | |
OBTD (Zero) | |
^^^^ATKD.IANE (0x7E) | |
} | |
} | |
} | |
} | |
} | |
} | |
Method (_QB0, 0, NotSerialized) | |
{ | |
Notify (\_TZ.THRM, 0x80) | |
} | |
Method (_QA0, 0, NotSerialized) | |
{ | |
If (ACPS ()) | |
{ | |
Store (One, ACPF) | |
Store (0x58, Local0) | |
} | |
Else | |
{ | |
Store (Zero, ACPF) | |
Store (0x57, Local0) | |
} | |
If (LNotEqual (MSOS (), OSVT)) | |
{ | |
STBR () | |
} | |
Notify (AC0, 0x80) | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (Local0) | |
} | |
Sleep (0x64) | |
PNOT () | |
Sleep (0x0A) | |
NBAT (0x80) | |
} | |
Method (_Q20, 0, NotSerialized) | |
{ | |
If (CDFG) | |
{ | |
Store (One, SMBF) | |
Store (Zero, CDFG) | |
} | |
If (ALFG) | |
{ | |
Store (Zero, ALFG) | |
} | |
} | |
Method (_QB3, 0, NotSerialized) | |
{ | |
^^^^ATKD.IANE (0x6D) | |
} | |
Method (ECRS, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, ADD2) | |
Store (Arg1, CMD2) | |
Store (0x07, PRT2) | |
Store (0x7F, Local0) | |
While (PRT2) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
If (Local0) | |
{ | |
Store (DA20, Local0) | |
} | |
Else | |
{ | |
Store (Ones, Local0) | |
} | |
Release (MUEC) | |
} | |
Return (Local0) | |
} | |
Method (ECWS, 3, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MUEC, 0xFFFF) | |
Store (Arg0, ADD2) | |
Store (Arg1, CMD2) | |
Store (Arg2, DA20) | |
Store (0x06, PRT2) | |
Store (0x07FF, Local0) | |
While (PRT2) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
Release (MUEC) | |
} | |
Return (Local0) | |
} | |
Method (_Q69, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x32) | |
} | |
} | |
Method (_Q6A, 0, NotSerialized) | |
{ | |
If (LLess (AVOL, 0x0F)) | |
{ | |
Increment (AVOL) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x31) | |
} | |
} | |
Method (_Q6B, 0, NotSerialized) | |
{ | |
If (LGreater (AVOL, Zero)) | |
{ | |
Decrement (AVOL) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x30) | |
} | |
} | |
} | |
Scope (_SB) | |
{ | |
Device (LID) | |
{ | |
Name (_HID, EisaId ("PNP0C0D")) | |
Method (_LID, 0, NotSerialized) | |
{ | |
Store (One, Local0) | |
Store (^^PCI0.SBRG.EC0.RPIN (0x46), Local0) | |
If (LEqual (Local0, Ones)) | |
{ | |
Store (One, Local0) | |
} | |
If (And (VGAF, One)) | |
{ | |
Store (One, ^^PCI0.GFX0.CLID) | |
} | |
Return (Local0) | |
} | |
} | |
} | |
Scope (_GPE) | |
{ | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
Method (_Q83, 0, NotSerialized) | |
{ | |
Notify (LID, 0x80) | |
If (And (VGAF, One)) | |
{ | |
Store (GLID (), Local0) | |
Store (Local0, LIDS) | |
If (CondRefOf (\_SB.PCI0.GFX0.GLID)) | |
{ | |
^^^GFX0.GLID (LIDS) | |
} | |
} | |
} | |
} | |
Scope (_SB) | |
{ | |
Device (SLPB) | |
{ | |
Name (_HID, EisaId ("PNP0C0E")) | |
Method (_PRW, 0, NotSerialized) | |
{ | |
Return (Package (0x02) | |
{ | |
0x0B, | |
0x04 | |
}) | |
} | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (FSMI, 1, NotSerialized) | |
{ | |
Store (Arg0, FSFN) | |
Or (Arg0, 0xA0, Local0) | |
ISMI (0x90) | |
Return (FSTA) | |
} | |
Method (FLSH, 1, NotSerialized) | |
{ | |
Store (Arg0, FSTA) | |
FSMI (Zero) | |
} | |
Method (FINI, 1, NotSerialized) | |
{ | |
Store (Arg0, FADR) | |
Return (FSMI (One)) | |
} | |
Method (FERS, 1, NotSerialized) | |
{ | |
Store (Arg0, FSTA) | |
Return (FSMI (0x02)) | |
} | |
Method (FWRI, 1, NotSerialized) | |
{ | |
Store (Arg0, FADR) | |
Store (0x1000, FSIZ) | |
Return (Subtract (0x1000, FSMI (0x03))) | |
} | |
Method (FWRP, 0, NotSerialized) | |
{ | |
Store (Zero, FSIZ) | |
Return (Subtract (0x1000, FSMI (0x03))) | |
} | |
Method (FEBW, 1, NotSerialized) | |
{ | |
Store (Arg0, FADR) | |
Return (FSMI (0x04)) | |
} | |
Method (FEBR, 1, NotSerialized) | |
{ | |
Store (Arg0, FADR) | |
Return (FSMI (0x05)) | |
} | |
Method (FEDW, 0, NotSerialized) | |
{ | |
Return (FSMI (0x06)) | |
} | |
Method (ECSR, 1, NotSerialized) | |
{ | |
Store (Arg0, FSTA) | |
Return (FSMI (0x07)) | |
} | |
Method (FLSC, 1, NotSerialized) | |
{ | |
Store (Arg0, FSTA) | |
Return (FSMI (0x08)) | |
} | |
Method (FIME, 1, NotSerialized) | |
{ | |
Store (Arg0, FSTA) | |
If (Or (LEqual (Arg0, 0x04), LEqual (Arg0, 0x05))) | |
{ | |
FSMI (0x09) | |
If (LEqual (Arg0, 0x04)) | |
{ | |
Store (FADR, ULCK) | |
} | |
Store (Zero, FSTA) | |
Return (FSTA) | |
} | |
If (LEqual (Arg0, 0x8000)) | |
{ | |
Store (0x1000, FSIZ) | |
FSMI (0x09) | |
Return (FSTA) | |
} | |
Return (FSMI (0x09)) | |
} | |
Method (FREC, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x8000)) | |
{ | |
Store (Arg0, FSTA) | |
FSMI (0x0A) | |
Store (0x1000, FSIZ) | |
Return (FSTA) | |
} | |
Store (Arg0, FSTA) | |
Return (FSMI (0x0A)) | |
} | |
Name (ULCK, Zero) | |
} | |
Scope (_SB) | |
{ | |
Name (XCPD, Zero) | |
Name (XNPT, One) | |
Name (XCAP, 0x02) | |
Name (XDCP, 0x04) | |
Name (XDCT, 0x08) | |
Name (XDST, 0x0A) | |
Name (XLCP, 0x0C) | |
Name (XLCT, 0x10) | |
Name (XLST, 0x12) | |
Name (XSCP, 0x14) | |
Name (XSCT, 0x18) | |
Name (XSST, 0x1A) | |
Name (XRCT, 0x1C) | |
Mutex (MUTE, 0x00) | |
Method (BDFR, 4, NotSerialized) | |
{ | |
ShiftLeft (Arg0, 0x14, Arg0) | |
ShiftLeft (Arg1, 0x0F, Arg1) | |
ShiftLeft (Arg2, 0x0C, Arg2) | |
Add (Arg0, Zero, Local0) | |
Add (Arg1, Local0, Local0) | |
Add (Arg2, Local0, Local0) | |
Add (Arg3, Local0, Local0) | |
Return (Local0) | |
} | |
Method (RBPE, 1, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, One) | |
Field (PCFG, ByteAcc, NoLock, Preserve) | |
{ | |
XCFG, 8 | |
} | |
Release (MUTE) | |
Return (XCFG) | |
} | |
Method (RWPE, 1, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
And (Arg0, 0xFFFFFFFE, Arg0) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, 0x02) | |
Field (PCFG, WordAcc, NoLock, Preserve) | |
{ | |
XCFG, 16 | |
} | |
Release (MUTE) | |
Return (XCFG) | |
} | |
Method (RDPE, 1, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
And (Arg0, 0xFFFFFFFC, Arg0) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, 0x04) | |
Field (PCFG, DWordAcc, NoLock, Preserve) | |
{ | |
XCFG, 32 | |
} | |
Release (MUTE) | |
Return (XCFG) | |
} | |
Method (WBPE, 2, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, One) | |
Field (PCFG, ByteAcc, NoLock, Preserve) | |
{ | |
XCFG, 8 | |
} | |
Store (Arg1, XCFG) | |
Release (MUTE) | |
} | |
Method (WWPE, 2, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
And (Arg0, 0xFFFFFFFE, Arg0) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, 0x02) | |
Field (PCFG, WordAcc, NoLock, Preserve) | |
{ | |
XCFG, 16 | |
} | |
Store (Arg1, XCFG) | |
Release (MUTE) | |
} | |
Method (WDPE, 2, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
And (Arg0, 0xFFFFFFFC, Arg0) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, 0x04) | |
Field (PCFG, DWordAcc, NoLock, Preserve) | |
{ | |
XCFG, 32 | |
} | |
Store (Arg1, XCFG) | |
Release (MUTE) | |
} | |
Method (RWDP, 3, NotSerialized) | |
{ | |
Acquire (MUTE, 0xFFFF) | |
And (Arg0, 0xFFFFFFFC, Arg0) | |
Add (Arg0, PEBS, Local0) | |
OperationRegion (PCFG, SystemMemory, Local0, 0x04) | |
Field (PCFG, DWordAcc, NoLock, Preserve) | |
{ | |
XCFG, 32 | |
} | |
And (XCFG, Arg2, Local1) | |
Or (Local1, Arg1, XCFG) | |
Release (MUTE) | |
} | |
Method (RPME, 1, NotSerialized) | |
{ | |
Add (Arg0, 0x84, Local0) | |
Store (RDPE (Local0), Local1) | |
If (LEqual (Local1, Ones)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
If (LAnd (Local1, 0x00010000)) | |
{ | |
WDPE (Local0, And (Local1, 0x00010000)) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (RESC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) | |
Name (_UID, 0x09) | |
Name (BUF0, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
) | |
}) | |
Method (_CRS, 0, Serialized) | |
{ | |
CreateDWordField (BUF0, 0x04, PTB0) | |
Store (PTAB, PTB0) | |
CreateDWordField (BUF0, 0x08, PTLN) | |
If (LEqual (PTAB, Zero)) | |
{ | |
Store (Zero, PTLN) | |
} | |
Return (BUF0) | |
} | |
} | |
} | |
Scope (\) | |
{ | |
OperationRegion (PMIO, SystemIO, 0x0400, 0x80) | |
Field (PMIO, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x10), | |
, 1, | |
TDTY, 3, | |
TENA, 1, | |
TTDT, 3, | |
FRCT, 1, | |
, 8, | |
THLS, 1, | |
Offset (0x13), | |
Offset (0x20), | |
, 1, | |
PEHS, 1, | |
, 7, | |
PEPS, 1, | |
BLST, 1, | |
SBPS, 1, | |
Offset (0x22), | |
G00S, 1, | |
G01S, 1, | |
G02S, 1, | |
GPS3, 1, | |
G04S, 1, | |
G05S, 1, | |
G06S, 1, | |
G07S, 1, | |
G08S, 1, | |
G09S, 1, | |
G0AS, 1, | |
G0BS, 1, | |
G0CS, 1, | |
G0DS, 1, | |
G0ES, 1, | |
G0FS, 1, | |
Offset (0x28), | |
, 1, | |
PEHE, 1, | |
, 7, | |
PEPE, 1, | |
BLEN, 1, | |
SBPE, 1, | |
Offset (0x2A), | |
G00E, 1, | |
G01E, 1, | |
G02E, 1, | |
GPE3, 1, | |
G04E, 1, | |
G05E, 1, | |
G06E, 1, | |
G07E, 1, | |
G08E, 1, | |
G09E, 1, | |
G0AE, 1, | |
G0BE, 1, | |
G0CE, 1, | |
G0DE, 1, | |
G0EE, 1, | |
G0FE, 1, | |
Offset (0x30), | |
, 4, | |
SLPE, 1, | |
APME, 1, | |
, 5, | |
MCSE, 1, | |
, 1, | |
TCOE, 1, | |
PERE, 1, | |
Offset (0x32), | |
Offset (0x34), | |
, 4, | |
SLPS, 1, | |
APMS, 1, | |
, 5, | |
MCSS, 1, | |
, 1, | |
TCOS, 1, | |
PERS, 1, | |
Offset (0x36), | |
Offset (0x42), | |
, 1, | |
GPEC, 1, | |
Offset (0x64), | |
, 9, | |
SCIS, 1, | |
Offset (0x66) | |
} | |
OperationRegion (GPIS, SystemIO, 0x0400, 0x50) | |
Field (GPIS, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x22), | |
GS00, 16 | |
} | |
OperationRegion (GP01, SystemIO, 0x0500, 0x64) | |
Field (GP01, ByteAcc, NoLock, Preserve) | |
{ | |
GU00, 8, | |
GU01, 8, | |
GU02, 8, | |
GU03, 8, | |
GIO0, 8, | |
GIO1, 8, | |
GIO2, 8, | |
GIO3, 8, | |
Offset (0x0C), | |
Offset (0x0D), | |
GL01, 8, | |
GL02, 8, | |
, 3, | |
GP27, 1, | |
GP28, 1, | |
Offset (0x10), | |
Offset (0x18), | |
Offset (0x19), | |
GB01, 8, | |
GB02, 8, | |
GB03, 8, | |
Offset (0x2C), | |
GIV0, 8, | |
GIV1, 8, | |
GIV2, 8, | |
GIV3, 8, | |
GU04, 8, | |
GU05, 8, | |
GU06, 8, | |
GU07, 8, | |
GIO4, 8, | |
GIO5, 8, | |
GIO6, 8, | |
GIO7, 8, | |
, 5, | |
, 1, | |
Offset (0x39), | |
GL05, 8, | |
GL06, 8, | |
GL07, 8, | |
Offset (0x40), | |
GU08, 8, | |
GU09, 8, | |
GU0A, 8, | |
GU0B, 8, | |
GIO8, 8, | |
GIO9, 8, | |
GIOA, 8, | |
GIOB, 8, | |
GL08, 8, | |
GL09, 8, | |
GL0A, 8, | |
GL0B, 8 | |
} | |
OperationRegion (GPIO, SystemIO, 0x0500, 0x80) | |
Field (GPIO, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x0C), | |
GL00, 16, | |
GL10, 16, | |
Offset (0x18), | |
GB00, 32, | |
Offset (0x2C), | |
GP00, 16, | |
Offset (0x38), | |
GL20, 32, | |
Offset (0x48), | |
GL40, 32 | |
} | |
OperationRegion (RCBA, SystemMemory, 0xFED1C000, 0x4000) | |
Field (RCBA, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x3418), | |
FDRT, 32 | |
} | |
Method (RGPL, 2, Serialized) | |
{ | |
Store (Arg1, Local0) | |
Store (Zero, Local1) | |
While (Local0) | |
{ | |
ShiftLeft (Local1, One, Local1) | |
Or (Local1, One, Local1) | |
Decrement (Local0) | |
} | |
If (LLess (Arg0, 0x10)) | |
{ | |
ShiftLeft (Local1, Arg0, Local1) | |
Store (GL00, Local0) | |
And (Local0, Local1, Local0) | |
ShiftRight (Local0, Arg0, Local0) | |
} | |
Else | |
{ | |
If (LLess (Arg0, 0x20)) | |
{ | |
Store (GL10, Local0) | |
Subtract (Arg0, 0x10, Local2) | |
} | |
Else | |
{ | |
If (LLess (Arg0, 0x40)) | |
{ | |
Store (GL20, Local0) | |
Subtract (Arg0, 0x20, Local2) | |
} | |
Else | |
{ | |
Store (GL40, Local0) | |
Subtract (Arg0, 0x40, Local2) | |
} | |
} | |
ShiftLeft (Local1, Local2, Local1) | |
And (Local0, Local1, Local0) | |
ShiftRight (Local0, Local2, Local0) | |
} | |
Return (Local0) | |
} | |
Method (SGPL, 3, Serialized) | |
{ | |
Store (\_SB.PCI0.SBRG.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.SBRG.GPLK) | |
Store (Arg1, Local0) | |
Store (Zero, Local1) | |
While (Local0) | |
{ | |
ShiftLeft (Local1, One, Local1) | |
Or (Local1, One, Local1) | |
Decrement (Local0) | |
} | |
If (LGreaterEqual (Arg0, 0x10)) | |
{ | |
If (LLess (Arg0, 0x20)) | |
{ | |
Store (GL10, Local0) | |
Subtract (Arg0, 0x10, Local2) | |
} | |
Else | |
{ | |
If (LLess (Arg0, 0x40)) | |
{ | |
Store (GL20, Local0) | |
Subtract (Arg0, 0x20, Local2) | |
} | |
Else | |
{ | |
Store (GL40, Local0) | |
Subtract (Arg0, 0x40, Local2) | |
} | |
} | |
ShiftLeft (Local1, Local2, Local1) | |
Not (Local1, Local3) | |
And (Local0, Local3, Local0) | |
ShiftLeft (Arg2, Local2, Local4) | |
Or (Local0, Local4, Local0) | |
If (LLess (Arg0, 0x20)) | |
{ | |
Store (Local0, GL10) | |
} | |
Else | |
{ | |
If (LLess (Arg0, 0x40)) | |
{ | |
Store (Local0, GL20) | |
} | |
Else | |
{ | |
Store (Local0, GL40) | |
} | |
} | |
} | |
Else | |
{ | |
ShiftLeft (Local1, Arg0, Local1) | |
Not (Local1, Local3) | |
And (GL00, Local3, Local0) | |
ShiftLeft (Arg2, Arg0, Local4) | |
Or (Local0, Local4, Local0) | |
Store (Local0, GL00) | |
} | |
Store (Local7, \_SB.PCI0.SBRG.GPLK) | |
} | |
Method (RGPP, 1, Serialized) | |
{ | |
ShiftRight (GP00, Arg0, Local0) | |
And (Local0, One, Local0) | |
Return (Local0) | |
} | |
Method (TGPP, 1, Serialized) | |
{ | |
Store (\_SB.PCI0.SBRG.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.SBRG.GPLK) | |
ShiftLeft (One, Arg0, Local0) | |
XOr (GP00, Local0, GP00) | |
Store (Local7, \_SB.PCI0.SBRG.GPLK) | |
} | |
Method (SGPP, 2, Serialized) | |
{ | |
Store (\_SB.PCI0.SBRG.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.SBRG.GPLK) | |
ShiftLeft (One, Arg0, Local0) | |
If (Arg1) | |
{ | |
Or (GP00, Local0, GP00) | |
} | |
Else | |
{ | |
Not (Local0, Local1) | |
And (GP00, Local1, GP00) | |
} | |
Store (Local7, \_SB.PCI0.SBRG.GPLK) | |
} | |
Name (PMEW, Zero) | |
Method (SBRS, 1, NotSerialized) | |
{ | |
CPXS () | |
} | |
Method (SBRW, 1, NotSerialized) | |
{ | |
Store (SBPS, PMEW) | |
} | |
Method (STRP, 1, NotSerialized) | |
{ | |
If (Arg0) | |
{ | |
Store (One, SLPS) | |
Store (One, SLPE) | |
} | |
Else | |
{ | |
Store (Zero, SLPE) | |
Store (One, SLPS) | |
} | |
} | |
Method (HKTH, 0, Serialized) | |
{ | |
If (THLS) | |
{ | |
Return (TTDT) | |
} | |
Else | |
{ | |
Return (0xFFFF) | |
} | |
} | |
Method (CPXS, 0, NotSerialized) | |
{ | |
Store (Zero, Local0) | |
Store (0x00010000, Local1) | |
Store (0x000E0060, Local2) | |
Store (0x000E00DC, Local3) | |
While (LLess (Local0, 0x04)) | |
{ | |
If (LNot (And (FDRT, Local1))) | |
{ | |
While (And (\_SB.RDPE (Local2), 0x00010000)) | |
{ | |
Or (\_SB.RDPE (Local2), 0x00010000, Local4) | |
\_SB.WDPE (Local2, Local4) | |
} | |
While (And (\_SB.RDPE (Local3), 0x80000000)) | |
{ | |
Or (\_SB.RDPE (Local3), 0x80000000, Local4) | |
\_SB.WDPE (Local3, Local4) | |
} | |
} | |
Add (Local2, 0x1000, Local2) | |
Add (Local3, 0x1000, Local3) | |
ShiftLeft (Local1, One, Local1) | |
Increment (Local0) | |
} | |
While (And (PEPS, One)) | |
{ | |
Or (PEPS, One, PEPS) | |
} | |
} | |
} | |
Scope (_GPE) | |
{ | |
Method (_L01, 0, NotSerialized) | |
{ | |
If (LNot (And (FDRT, 0x00040000))) | |
{ | |
If (\_SB.PCI0.RP03.HPCS) | |
{ | |
\_SB.PCI0.RP03.HPHK () | |
Notify (\_SB.PCI0.RP03, Zero) | |
} | |
} | |
} | |
Method (_L09, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.RP01.PMES) | |
{ | |
While (\_SB.PCI0.RP01.PMES) | |
{ | |
Store (One, \_SB.PCI0.RP01.PMES) | |
Store (One, \_SB.PCI0.RP01.PMCS) | |
} | |
Notify (\_SB.PCI0.RP01, 0x02) | |
} | |
If (\_SB.PCI0.RP02.PMES) | |
{ | |
While (\_SB.PCI0.RP02.PMES) | |
{ | |
Store (One, \_SB.PCI0.RP02.PMES) | |
Store (One, \_SB.PCI0.RP02.PMCS) | |
} | |
Notify (\_SB.PCI0.RP02, 0x02) | |
} | |
If (\_SB.PCI0.RP04.PMES) | |
{ | |
While (\_SB.PCI0.RP04.PMES) | |
{ | |
Store (One, \_SB.PCI0.RP04.PMES) | |
Store (One, \_SB.PCI0.RP04.PMCS) | |
} | |
Notify (\_SB.PCI0.RP04, 0x02) | |
} | |
If (\_SB.PCI0.RP06.PMES) | |
{ | |
While (\_SB.PCI0.RP06.PMES) | |
{ | |
Store (One, \_SB.PCI0.RP06.PMES) | |
Store (One, \_SB.PCI0.RP06.PMCS) | |
} | |
Notify (\_SB.PCI0.RP06, 0x02) | |
} | |
} | |
Method (_L06, 0, NotSerialized) | |
{ | |
OperationRegion (PCHT, SystemMemory, \_SB.PTAB, 0x1000) | |
Field (PCHT, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x03), | |
TSTR, 8, | |
Offset (0x06), | |
AUX1, 8, | |
AUX2, 8, | |
Offset (0x0C), | |
TSES, 8, | |
TSGN, 8, | |
Offset (0xD8), | |
TITV, 8 | |
} | |
Name (HP01, Zero) | |
Name (LP01, Zero) | |
Name (HP02, Zero) | |
Name (LP02, Zero) | |
Name (ECH1, Zero) | |
Name (ECL1, Zero) | |
Name (ECH2, Zero) | |
Name (ECL2, Zero) | |
Name (EVNT, Zero) | |
Name (CUTP, Zero) | |
If (LNotEqual (\_SB.PTAB, Zero)) | |
{ | |
And (TSES, 0x99, EVNT) | |
If (LNotEqual (EVNT, Zero)) | |
{ | |
And (TSTR, 0x7F, CUTP) | |
Multiply (CUTP, 0x0C, Local0) | |
Multiply (Local0, CUTP, Local0) | |
Add (0x00147A30, Local0, Local0) | |
Multiply (CUTP, 0x21DB, Local1) | |
Subtract (Local0, Local1, CUTP) | |
Store (Divide (CUTP, 0x2710, ), CUTP) | |
And (\_SB.HTPT, 0xFF000000, ECH2) | |
And (\_SB.HTPT, 0x00FF0000, ECL2) | |
And (\_SB.HTPT, 0xFF00, ECH1) | |
And (\_SB.HTPT, 0xFF, ECL1) | |
ShiftRight (ECH2, 0x18, ECH2) | |
ShiftRight (ECL2, 0x10, ECL2) | |
ShiftRight (ECH1, 0x08, ECH1) | |
And (\_SB.CPCH, 0xFF000000, HP02) | |
And (\_SB.CPCH, 0x00FF0000, LP02) | |
And (\_SB.CPCH, 0xFF00, HP01) | |
And (\_SB.CPCH, 0xFF, LP01) | |
ShiftRight (HP02, 0x18, HP02) | |
ShiftRight (LP02, 0x10, LP02) | |
ShiftRight (HP01, 0x08, HP01) | |
If (LNotEqual (ECH2, Zero)) | |
{ | |
If (LEqual (EVNT, One)) | |
{ | |
\_SB.PCI0.SBRG.EC0.ST95 (0x7F, One) | |
Store (HP02, AUX2) | |
Store (LP01, AUX1) | |
} | |
If (LEqual (EVNT, 0x10)) | |
{ | |
\_SB.PCI0.SBRG.EC0.ST95 (0x7F, Zero) | |
Store (HP02, AUX2) | |
Store (HP01, AUX1) | |
} | |
If (LEqual (EVNT, 0x08)) | |
{ | |
\_SB.PCI0.SBRG.EC0.ST95 (0x7F, 0x02) | |
Store (LP02, AUX2) | |
Store (LP01, AUX1) | |
} | |
If (LEqual (EVNT, 0x80)) | |
{ | |
\_SB.PCI0.SBRG.EC0.ST95 (0x7F, One) | |
Store (HP02, AUX2) | |
Store (LP01, AUX1) | |
} | |
Store (Zero, Local0) | |
While (LNotEqual (TSES, Zero)) | |
{ | |
If (LEqual (Local0, 0x1000)) | |
{ | |
Break | |
} | |
Store (0x99, TSES) | |
Sleep (0x32) | |
} | |
} | |
} | |
} | |
If (LAnd (\_SB.PCI0.GFX0.GSSE, LNot (GSMI))) | |
{ | |
\_SB.PCI0.GFX0.GSCI () | |
} | |
} | |
} | |
Scope (_SB.PCI0.SBRG) | |
{ | |
OperationRegion (RX40, PCI_Config, 0x40, 0x10) | |
Field (RX40, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x0C), | |
GPLK, 1 | |
} | |
OperationRegion (RXA0, PCI_Config, 0xA0, 0x20) | |
Field (RXA0, ByteAcc, NoLock, Preserve) | |
{ | |
, 9, | |
PBLV, 1, | |
BCPE, 1, | |
Offset (0x10), | |
, 1, | |
PBMS, 1, | |
, 1, | |
PMCS, 1, | |
ECNS, 1, | |
Offset (0x11), | |
ECT1, 16, | |
ELEN, 1, | |
Offset (0x14) | |
} | |
} | |
Scope (\) | |
{ | |
OperationRegion (SMB0, SystemIO, \_SB.SMBB, 0x10) | |
Field (SMB0, ByteAcc, NoLock, Preserve) | |
{ | |
HSTS, 8, | |
SSTS, 8, | |
HSTC, 8, | |
HCMD, 8, | |
HADR, 8, | |
HDT0, 8, | |
HDT1, 8, | |
BLKD, 8, | |
SPEC, 8, | |
SRCV, 8, | |
SLVD, 16, | |
AUXS, 8, | |
AUXC, 8 | |
} | |
Name (RBUF, Buffer (0x20) {}) | |
Method (HBSY, 0, NotSerialized) | |
{ | |
Store (0x000FFFFF, Local0) | |
While (Local0) | |
{ | |
And (HSTS, One, Local1) | |
If (LNot (Local1)) | |
{ | |
Return (Zero) | |
} | |
Decrement (Local0) | |
} | |
Return (One) | |
} | |
Method (WTSB, 0, NotSerialized) | |
{ | |
Store (0x000FFFFF, Local0) | |
While (Local0) | |
{ | |
Decrement (Local0) | |
And (HSTS, 0x1E, Local1) | |
If (LEqual (Local1, 0x02)) | |
{ | |
Return (One) | |
} | |
If (Local1) | |
{ | |
Return (Zero) | |
} | |
} | |
Return (Zero) | |
} | |
Mutex (P4SM, 0x00) | |
Method (SBYT, 2, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (AUXC, Local0) | |
Store (Zero, AUXC) | |
Store (Arg0, HADR) | |
Store (Arg1, HCMD) | |
Store (0xFF, HSTS) | |
Store (0x44, HSTC) | |
If (WTSB ()) | |
{ | |
Store (Local0, AUXC) | |
Release (P4SM) | |
Return (One) | |
} | |
Else | |
{ | |
Store (Local0, AUXC) | |
Release (P4SM) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (WBYT, 3, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Arg0, HADR) | |
Store (Arg1, HCMD) | |
Store (Arg2, HDT0) | |
Store (0xFF, HSTS) | |
Store (0x48, HSTC) | |
If (WTSB ()) | |
{ | |
Release (P4SM) | |
Return (One) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
Method (WWRD, 3, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Arg0, HADR) | |
Store (Arg1, HCMD) | |
And (Arg2, 0xFF, Local1) | |
ShiftRight (Arg2, 0x08, Local2) | |
And (Local2, 0xFF, Local2) | |
Store (Local2, HDT0) | |
Store (Local1, HDT1) | |
Store (0xFF, HSTS) | |
Store (0x4C, HSTC) | |
If (WTSB ()) | |
{ | |
Release (P4SM) | |
Return (One) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
Method (WBLK, 3, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Or (AUXC, 0x02, AUXC) | |
Store (Arg0, HADR) | |
Store (Arg1, HCMD) | |
Store (HSTC, Local1) | |
Store (Arg2, Local2) | |
Store (Zero, Local1) | |
While (Local2) | |
{ | |
Store (DerefOf (Index (RBUF, Local1)), BLKD) | |
Decrement (Local2) | |
Increment (Local1) | |
} | |
Store (Arg2, HDT0) | |
Store (HSTC, Local1) | |
Store (0xFF, HSTS) | |
Store (0x54, HSTC) | |
If (WTSB ()) | |
{ | |
Release (P4SM) | |
Return (One) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
Method (RSBT, 2, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Or (Arg0, One, HADR) | |
Store (Arg1, HCMD) | |
Store (0xFF, HSTS) | |
Store (0x44, HSTC) | |
If (WTSB ()) | |
{ | |
Release (P4SM) | |
Return (HDT0) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
Method (RBYT, 2, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Or (Arg0, One, HADR) | |
Store (Arg1, HCMD) | |
Store (0xFF, HSTS) | |
Store (0x48, HSTC) | |
If (WTSB ()) | |
{ | |
Release (P4SM) | |
Return (HDT0) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
Method (RWRD, 2, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Or (Arg0, One, HADR) | |
Store (Arg1, HCMD) | |
Store (0xFF, HSTS) | |
Store (0x4C, HSTC) | |
If (WTSB ()) | |
{ | |
Store (HDT0, Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
Store (HDT1, Local2) | |
Add (Local1, Local2, Local1) | |
Release (P4SM) | |
Return (Local1) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
Method (RBLK, 3, Serialized) | |
{ | |
Acquire (P4SM, 0xFFFF) | |
Store (0x05, Local0) | |
While (Local0) | |
{ | |
If (HBSY ()) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Or (AUXC, 0x02, AUXC) | |
Or (Arg0, One, HADR) | |
Store (Arg1, HCMD) | |
Store (0xFF, HSTS) | |
Store (0x54, HSTC) | |
If (WTSB ()) | |
{ | |
Store (HSTC, Local1) | |
Store (HDT0, Local2) | |
Store (Local2, Local3) | |
Store (Zero, RBUF) | |
Store (Zero, Local1) | |
While (Local2) | |
{ | |
Store (BLKD, Index (RBUF, Local1)) | |
Decrement (Local2) | |
Increment (Local1) | |
} | |
Release (P4SM) | |
Return (Local3) | |
} | |
Else | |
{ | |
Decrement (Local0) | |
} | |
} | |
} | |
Release (P4SM) | |
Return (Ones) | |
} | |
} | |
Scope (_GPE) | |
{ | |
Method (_L03, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.USB1, 0x02) | |
} | |
Method (_L04, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.USB2, 0x02) | |
} | |
Method (_L0C, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.USB3, 0x02) | |
} | |
Method (_L0E, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.USB4, 0x02) | |
} | |
Method (_L05, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.USB5, 0x02) | |
} | |
Method (_L20, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.USB6, 0x02) | |
Notify (\_SB.PCI0.USB7, 0x02) | |
} | |
Method (_L0D, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.EHC1, 0x02) | |
Notify (\_SB.PCI0.EHC2, 0x02) | |
} | |
Method (_L08, 0, Serialized) | |
{ | |
Notify (\_SB.PCI0.HDEF, 0x02) | |
} | |
Method (_L0B, 0, Serialized) | |
{ | |
If (PMEW) | |
{ | |
Notify (\_SB.PCI0, 0x02) | |
Notify (\_SB.PCI0.RP02, 0x02) | |
Store (Zero, PMEW) | |
} | |
Else | |
{ | |
} | |
} | |
Method (_L13, 0, NotSerialized) | |
{ | |
If (LEqual (PFLV, FDTP)) | |
{ | |
Return (Zero) | |
} | |
If (\_SB.PCI0.IDE0.PRT2.OFLG) | |
{ | |
Store (\_SB.PCI0.SBRG.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.SBRG.GPLK) | |
Store (Zero, GPE3) | |
And (GL08, 0xEF, GL08) | |
Store (Local7, \_SB.PCI0.SBRG.GPLK) | |
Sleep (0x0320) | |
Notify (\_SB.PCI0.IDE0, 0x82) | |
} | |
Return (Zero) | |
} | |
} | |
Scope (_SB.PCI0.EHC1) | |
{ | |
Device (RHUB) | |
{ | |
Name (_ADR, Zero) | |
Device (PRT1) | |
{ | |
Name (_ADR, One) | |
Name (_UPC, Package (0x04) | |
{ | |
Zero, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Device (PRT1) | |
{ | |
Name (_ADR, One) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (Zero) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (Zero) | |
Return (BPLD) | |
} | |
} | |
Device (PRT2) | |
{ | |
Name (_ADR, 0x02) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (One) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (One) | |
Return (BPLD) | |
} | |
} | |
Device (PRT3) | |
{ | |
Name (_ADR, 0x03) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x02) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x02) | |
Return (BPLD) | |
} | |
} | |
Device (PRT4) | |
{ | |
Name (_ADR, 0x04) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x03) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x03) | |
Return (BPLD) | |
} | |
} | |
Device (PRT5) | |
{ | |
Name (_ADR, 0x05) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x04) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x04) | |
Return (BPLD) | |
} | |
} | |
Device (PRT6) | |
{ | |
Name (_ADR, 0x06) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x05) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x05) | |
Return (BPLD) | |
} | |
} | |
Device (PRT7) | |
{ | |
Name (_ADR, 0x07) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x06) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x06) | |
Return (BPLD) | |
} | |
} | |
Device (PRT8) | |
{ | |
Name (_ADR, 0x08) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x07) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x07) | |
Return (BPLD) | |
} | |
} | |
} | |
} | |
} | |
Scope (_SB.PCI0.EHC2) | |
{ | |
Device (RHUB) | |
{ | |
Name (_ADR, Zero) | |
Device (PRT1) | |
{ | |
Name (_ADR, One) | |
Name (_UPC, Package (0x04) | |
{ | |
Zero, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Device (PRT1) | |
{ | |
Name (_ADR, One) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x08) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x08) | |
Return (BPLD) | |
} | |
} | |
Device (PRT2) | |
{ | |
Name (_ADR, 0x02) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x09) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x09) | |
Return (BPLD) | |
} | |
} | |
Device (PRT3) | |
{ | |
Name (_ADR, 0x03) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x0A) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x0A) | |
Return (BPLD) | |
} | |
} | |
Device (PRT4) | |
{ | |
Name (_ADR, 0x04) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x0B) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x0B) | |
Return (BPLD) | |
} | |
} | |
Device (PRT5) | |
{ | |
Name (_ADR, 0x05) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x0C) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x0C) | |
Return (BPLD) | |
} | |
} | |
Device (PRT6) | |
{ | |
Name (_ADR, 0x06) | |
Method (_UPC, 0, NotSerialized) | |
{ | |
OUPC (0x0D) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) | |
{ | |
OPLD (0x0D) | |
Return (BPLD) | |
} | |
} | |
} | |
} | |
} | |
Scope (\) | |
{ | |
Name (CNTB, Buffer (0x0E) | |
{ | |
/* 0000 */ 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00 | |
}) | |
Name (VISB, Buffer (0x0E) | |
{ | |
/* 0000 */ 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00 | |
}) | |
Name (SHPB, Buffer (0x0E) | |
{ | |
/* 0000 */ 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, | |
/* 0008 */ 0x07, 0x07, 0x07, 0x07, 0x07, 0x07 | |
}) | |
Name (BUPC, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (BPLD, Buffer (0x10) | |
{ | |
0x81, 0x00, 0x31, 0x00 | |
}) | |
Method (OUPC, 1, Serialized) | |
{ | |
Store (DerefOf (Index (CNTB, Arg0)), Local0) | |
Store (Local0, Index (BUPC, Zero)) | |
} | |
Method (OPLD, 1, Serialized) | |
{ | |
Store (DerefOf (Index (VISB, Arg0)), Local0) | |
Store (DerefOf (Index (BPLD, 0x08)), Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (BPLD, 0x08)) | |
Store (DerefOf (Index (SHPB, Arg0)), Local0) | |
Store (DerefOf (Index (BPLD, 0x09)), Local1) | |
And (Local1, 0xC3, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (BPLD, 0x09)) | |
} | |
} | |
Scope (\) | |
{ | |
Method (LIMT, 0, NotSerialized) | |
{ | |
Subtract (\_SB.CPUP, \_SB.SLMT, Local0) | |
Return (Local0) | |
} | |
Name (LCDB, Zero) | |
Method (PPRJ, 1, Serialized) | |
{ | |
} | |
Method (PRJS, 1, Serialized) | |
{ | |
\_SB.PCI0.SBRG.EC0.WRAM (0x0521, 0x8D) | |
\_SB.PCI0.SBRG.EC0.WRAM (0x0520, 0x94) | |
SGPL (0x0F, One, Zero) | |
} | |
Method (PRJW, 1, Serialized) | |
{ | |
If (\_SB.PAT2) | |
{ | |
\_SB.PCI0.SBRG.EC0.WRAM (0x0342, 0x90) | |
\_SB.PCI0.SBRG.EC0.WRAM (0x0343, 0x05) | |
\_SB.PCI0.SBRG.EC0.WRAM (0x0344, 0x58) | |
\_SB.PCI0.SBRG.EC0.WRAM (0x0340, 0x06) | |
} | |
\_SB.PCI0.SBRG.EC0.STBR () | |
} | |
Method (GLID, 0, Serialized) | |
{ | |
Return (\_SB.PCI0.SBRG.EC0.RPIN (0x46)) | |
} | |
Method (TLID, 0, Serialized) | |
{ | |
} | |
Method (TGAC, 0, Serialized) | |
{ | |
} | |
Method (TGDC, 1, Serialized) | |
{ | |
} | |
Method (FCTR, 3, Serialized) | |
{ | |
} | |
Method (OWGD, 1, Serialized) | |
{ | |
SGPL (0x16, One, Arg0) | |
} | |
Method (OWLD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.WRST) | |
XOr (Arg0, One, Arg0) | |
If (LEqual (LAnd (\_SB.ATKD.WAPF, 0x05), Zero)) | |
{ | |
SGPL (0x1C, One, Arg0) | |
} | |
} | |
Method (OBTD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.BRST) | |
SGPL (0x39, One, Arg0) | |
SGPL (0x0F, One, Arg0) | |
} | |
Method (OUWD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.UWST) | |
If (Arg0) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x40, 0xFF), Local0) | |
} | |
Else | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x20, 0xFF), Local0) | |
} | |
Return (One) | |
} | |
Method (OWMD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.WMST) | |
If (Arg0) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x40, 0xFF), Local0) | |
} | |
Else | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x20, 0xFF), Local0) | |
} | |
Return (One) | |
} | |
Method (OGPD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.GPST) | |
If (Arg0) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x40, 0xFF), Local0) | |
} | |
Else | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x20, 0xFF), Local0) | |
} | |
Return (One) | |
} | |
Method (OTGD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.TGST) | |
If (Arg0) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x40, 0xFF), Local0) | |
} | |
Else | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.ST87 (0x20, 0xFF), Local0) | |
} | |
Return (One) | |
} | |
Method (OHWR, 0, Serialized) | |
{ | |
Store (Zero, Local0) | |
If (\_SB.PCI0.RP02.WLAN.MPDP ()) | |
{ | |
Or (Local0, 0x80, Local0) | |
} | |
If (\_SB.BTDP) | |
{ | |
Or (Local0, 0x0100, Local0) | |
} | |
If (\_SB.UWDP) | |
{ | |
Or (Local0, 0x08, Local0) | |
} | |
If (\_SB.WMDP) | |
{ | |
Or (Local0, 0x10, Local0) | |
} | |
If (\_SB.GPDP) | |
{ | |
Or (Local0, 0x20, Local0) | |
} | |
If (\_SB.TGDP) | |
{ | |
Or (Local0, 0x40, Local0) | |
} | |
Return (Local0) | |
} | |
Method (ORST, 0, Serialized) | |
{ | |
Store (Zero, Local0) | |
If (\_SB.WRST) | |
{ | |
Or (Local0, One, Local0) | |
} | |
If (\_SB.BRST) | |
{ | |
Or (Local0, 0x02, Local0) | |
} | |
If (\_SB.UWST) | |
{ | |
Or (Local0, 0x04, Local0) | |
} | |
If (\_SB.WMST) | |
{ | |
Or (Local0, 0x08, Local0) | |
} | |
If (\_SB.GPST) | |
{ | |
Or (Local0, 0x10, Local0) | |
} | |
If (\_SB.TGST) | |
{ | |
Or (Local0, 0x20, Local0) | |
} | |
Return (Local0) | |
} | |
Method (GBTL, 0, Serialized) | |
{ | |
Return (\_SB.PCI0.SBRG.EC0.RPIN (0x73)) | |
} | |
Method (SBTL, 1, Serialized) | |
{ | |
\_SB.PCI0.SBRG.EC0.SPIN (0x73, Arg0) | |
} | |
Method (BL2C, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
Method (STCF, 1, Serialized) | |
{ | |
If (LEqual (Arg0, One)) | |
{ | |
\_SB.PCI0.SBRG.EC0.FNCT (0x84, Zero) | |
} | |
} | |
Method (OTGB, 0, Serialized) | |
{ | |
Store (One, Local0) | |
Return (Local0) | |
} | |
Method (DCPS, 1, Serialized) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.RPIN (0x26), Local0) | |
XOr (Local0, One, Local0) | |
Return (Local0) | |
} | |
Method (ACPS, 0, Serialized) | |
{ | |
Store (\_SB.PCI0.SBRG.EC0.RPIN (0x24), Local0) | |
XOr (Local0, One, Local0) | |
Return (Local0) | |
} | |
Method (OLPM, 0, Serialized) | |
{ | |
If (LEqual (\_SB.ACPF, Zero)) | |
{ | |
If (LLessEqual (\_SB.PCI0.SBRG.EC0.B0DC, 0x0BB8)) | |
{ | |
Store (One, \_SB.SLMT) | |
} | |
} | |
} | |
} | |
Scope (_GPE) | |
{ | |
} | |
Scope (_SB.PCI0.SBRG.EC0) | |
{ | |
} | |
Scope (_SB.PCI0.PEG0.GFX0) | |
{ | |
OperationRegion (VSID, PCI_Config, Zero, 0x04) | |
Field (VSID, ByteAcc, NoLock, Preserve) | |
{ | |
REG0, 32 | |
} | |
Name (PCTG, Package (0x0B) {}) | |
Method (PRST, 0, NotSerialized) | |
{ | |
If (LEqual (REG0, Ones)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Name (BCMP, Zero) | |
Name (UPDN, One) | |
Name (NXTD, One) | |
Name (LCDM, One) | |
Name (CRTM, 0x02) | |
Name (TVOM, 0x04) | |
Name (DVIM, 0x08) | |
Name (HDMM, 0x10) | |
Name (PACH, Zero) | |
Name (DONE, Zero) | |
Name (DOSF, One) | |
Name (BRNC, Zero) | |
Method (_INI, 0, NotSerialized) | |
{ | |
Store (DOSF, ^^^^DOSF) | |
GETD () | |
} | |
Method (_DOS, 1, NotSerialized) | |
{ | |
And (Arg0, 0x03, DOSF) | |
Store (DOSF, ^^^^DOSF) | |
Store (ShiftRight (Arg0, 0x02), BRNC) | |
And (BRNC, One, BRNC) | |
} | |
Name (DODP, Package (0x03) | |
{ | |
0x00010100, | |
0x00010110, | |
0xFFFF0010 | |
}) | |
Method (_DOD, 0, NotSerialized) | |
{ | |
If (LNot (PACH)) | |
{ | |
If (LEqual (VGAF, 0x02)) | |
{ | |
Store (0x0220, Index (DODP, Match (DODP, MEQ, 0xFFFF0010, MTR, Zero, | |
Zero))) | |
} | |
Else | |
{ | |
Store (0x0121, Index (DODP, Match (DODP, MEQ, 0xFFFF0010, MTR, Zero, | |
Zero))) | |
} | |
Store (One, PACH) | |
} | |
Return (DODP) | |
} | |
Device (CRTD) | |
{ | |
Name (_ADR, 0x0100) | |
Method (_DCS, 0, NotSerialized) | |
{ | |
Store (AVLD, Local0) | |
If (Local0) | |
{ | |
If (And (Local0, CRTM)) | |
{ | |
Return (0x1F) | |
} | |
} | |
Return (0x1D) | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
And (NXTD, CRTM, Local0) | |
If (Local0) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
Store (One, DONE) | |
} | |
} | |
Device (HDMI) | |
{ | |
Method (_ADR, 0, NotSerialized) | |
{ | |
If (LEqual (VGAF, 0x02)) | |
{ | |
Return (0x0220) | |
} | |
Else | |
{ | |
Return (0x0121) | |
} | |
} | |
Method (_DCS, 0, NotSerialized) | |
{ | |
Store (AVLD, Local0) | |
If (Local0) | |
{ | |
If (And (Local0, HDMM)) | |
{ | |
Return (0x1F) | |
} | |
} | |
Return (0x1D) | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
And (NXTD, HDMM, Local0) | |
If (Local0) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
Store (One, DONE) | |
} | |
} | |
Device (LCDD) | |
{ | |
Name (_ADR, 0x0110) | |
Method (_DCS, 0, NotSerialized) | |
{ | |
ISMI (0x95) | |
Store (ACTD, Local0) | |
If (Local0) | |
{ | |
If (And (Local0, LCDM)) | |
{ | |
Return (0x1F) | |
} | |
} | |
Return (0x1D) | |
} | |
Method (_DGS, 0, NotSerialized) | |
{ | |
And (NXTD, LCDM, Local0) | |
If (Local0) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (_DSS, 1, NotSerialized) | |
{ | |
Store (One, DONE) | |
} | |
Method (_BCL, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
Add (0x64, One, Local0) | |
Add (Local0, 0x02, Local0) | |
Name (BRPP, Package (0x67) {}) | |
Store (0x64, Index (BRPP, Zero)) | |
Store (0x28, Index (BRPP, One)) | |
Store (0x02, Local1) | |
Store (Zero, Local2) | |
While (LLess (Local1, Local0)) | |
{ | |
Store (Local2, Index (BRPP, Local1)) | |
Increment (Local1) | |
Increment (Local2) | |
} | |
Store (Zero, Local0) | |
While (LLessEqual (Local0, 0x0A)) | |
{ | |
Store (Multiply (Local0, 0x0A), Local1) | |
Subtract (0x0B, Local0, Local2) | |
Subtract (Local2, One, Local2) | |
Store (Local1, Index (PCTG, Local2)) | |
Increment (Local0) | |
} | |
Return (BRPP) | |
} | |
Store (Zero, Local0) | |
Store (BRTI, Local4) | |
ShiftLeft (Local4, 0x04, Local4) | |
While (LLess (Local0, 0x0B)) | |
{ | |
Subtract (0x0B, Local0, Local3) | |
Subtract (Local3, One, Local3) | |
Store (Add (Local4, Local3), Local3) | |
Store (DerefOf (Index (^^^^SBRG.EC0.PWAC, Local3)), Local1) | |
Store (Divide (Multiply (Local1, 0x64), 0xFF, ), Local2) | |
Store (Local2, Index (PCTG, Local0)) | |
Increment (Local0) | |
} | |
Return (PCTG) | |
} | |
Name (BCBH, Zero) | |
Method (_BCM, 1, NotSerialized) | |
{ | |
If (LLess (MSOS (), OSW8)) | |
{ | |
Store (GCBL (Arg0), Local0) | |
Subtract (0x0A, Local0, LBTN) | |
^^^^SBRG.EC0.STBR () | |
} | |
Else | |
{ | |
} | |
} | |
Method (_BQC, 0, NotSerialized) | |
{ | |
Return (LBTN) | |
} | |
} | |
Method (SWHD, 1, Serialized) | |
{ | |
Store (One, UPDN) | |
If (LEqual (DOSF, One)) | |
{ | |
Store (Arg0, SETD) | |
ISMI (0x94) | |
} | |
Else | |
{ | |
Store (Arg0, NXTD) | |
Store (Arg0, SETD) | |
Store (Zero, DONE) | |
Notify (GFX0, 0x80) | |
Store (0x01F4, Local0) | |
While (Local0) | |
{ | |
GETD () | |
If (LEqual (ACTD, NXTD)) | |
{ | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
Sleep (0x0A) | |
Decrement (Local0) | |
} | |
} | |
} | |
} | |
Method (GETD, 0, NotSerialized) | |
{ | |
ISMI (0x95) | |
Return (ACTD) | |
} | |
Method (GNDD, 0, NotSerialized) | |
{ | |
ISMI (0xA0) | |
Return (SETD) | |
} | |
Method (ADVD, 0, NotSerialized) | |
{ | |
If (UPDN) | |
{ | |
Store (Zero, UPDN) | |
^^^SBRG.EC0.SPIN (0x40, Zero) | |
GETD () | |
Sleep (One) | |
^^^SBRG.EC0.SPIN (0x40, One) | |
Store (ACTD, SETD) | |
} | |
GNDD () | |
Store (SETD, NXTD) | |
Return (SETD) | |
} | |
Method (GCDS, 0, NotSerialized) | |
{ | |
Return (GETD ()) | |
} | |
Method (NATK, 0, NotSerialized) | |
{ | |
Return (One) | |
} | |
Method (UPBL, 0, NotSerialized) | |
{ | |
Notify (LCDD, 0x86) | |
} | |
Method (DWBL, 0, NotSerialized) | |
{ | |
Notify (LCDD, 0x87) | |
} | |
Method (GCBL, 1, NotSerialized) | |
{ | |
And (Arg0, 0x7FFFFFFF, Arg0) | |
Store (Zero, Local0) | |
While (LLess (Local0, 0x0B)) | |
{ | |
Store (DerefOf (Index (PCTG, Local0)), Local1) | |
If (LLessEqual (Local1, Arg0)) | |
{ | |
Break | |
} | |
Increment (Local0) | |
} | |
If (LGreaterEqual (Local0, 0x0B)) | |
{ | |
Store (0x0A, Local2) | |
} | |
Else | |
{ | |
Store (Local0, Local2) | |
} | |
Return (Local2) | |
} | |
} | |
Name (_S0, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (SS3) | |
{ | |
Name (_S3, Package (0x04) | |
{ | |
0x05, | |
Zero, | |
Zero, | |
Zero | |
}) | |
} | |
If (SS4) | |
{ | |
Name (_S4, Package (0x04) | |
{ | |
0x06, | |
Zero, | |
Zero, | |
Zero | |
}) | |
} | |
Name (_S5, Package (0x04) | |
{ | |
0x07, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Method (PTS, 1, NotSerialized) | |
{ | |
If (Arg0) | |
{ | |
\_SB.PCI0.GFX0.OPTS (Arg0) | |
OEMS (Arg0) | |
} | |
} | |
Method (WAK, 1, NotSerialized) | |
{ | |
\_SB.ATKD.GENW (Arg0) | |
\_SB.PCI0.GFX0.OWAK (Arg0) | |
OEMW (Arg0) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment