Created
December 16, 2013 11:53
-
-
Save jonte/7985909 to your computer and use it in GitHub Desktop.
Instructions for getting backlight working on UX301LAA ultrabook
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
Core problem: | |
Fn buttons are controlled via ACPI. ACPI is configured via a board specific firmware called the DSDT. The DSDT sections for backlight broken for UX301LAA, so it needs fixing. I have attached my DSDT file which work on my machine (I have not tested it extensively, but backlight works at least). | |
#1 Dump the current DSDT to a file: | |
cat /sys/firmware/acpi/tables/DSDT > dsdt | |
#2 The DSDT is compiled, so we need to decompile it | |
iadsl -d dsdt | |
#3 Often, the file is not properly decompiled, so re-compile it in order to discover any de-compilation errors. Fix any errors (the code is probably unparsable if there are errors, so you need to guess the correct semantics). | |
iadsl -tc dsdt.dsl | |
#4 Now we can fix the backlight issues. The functions responsible for backlight are _Q0E and _Q0F. We'll apply a brute-force approach here and replace these functions with functions which simply return NOTIFY_BRNDOWN_MIN and NOTIFY_BRNUP_MIN (see drivers/platform/x86/asus-wmi.c in your kernel sources). | |
Replace the functions with the following: | |
Method (_Q0E, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x20) | |
} | |
} | |
Method (_Q0F, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x11) | |
} | |
} | |
#5 re-compile DSDT again | |
iadsl -tc dsdt.dsl | |
#6 Select the DSDT for loading in your kernel config | |
De-select CONFIG_STANDALONE, this is needed since we will point at our DSDT file from the ACPI subsystem, and this is a firmware file. CONFIG_STANDALONE is found in: | |
Device Drivers -> Generic Driver Options -> Select only drivers that don't need compile time external firmware | |
Now, to point out the new DSDT firmware, set CONFIG_ACPI_CUSTOM_DSDT_FILE to the dsdt.hex file produced from the compilation before. The option is located in: | |
Power management and ACPI options -> ACPI (Advanced Configuration and Power Interface) Support (ACPI) -> Custom DSDT Table file to include | |
This needs to be an absolute path | |
#7 re-compile kernel and install as ususl. Reboot. When booted, verify that the new DSDT is loaded by checking dmesg for something similar to this: | |
[ 0.000000] ACPI: Override [DSDT-Notebook], this is unsafe: tainting kernel |
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 20131115-64 [Nov 25 2013] | |
* Copyright (c) 2000 - 2013 Intel Corporation | |
* | |
* Disassembly of dsdt, Mon Dec 16 11:14:32 2013 | |
* | |
* Original Table Header: | |
* Signature "DSDT" | |
* Length 0x000165E7 (91623) | |
* Revision 0x02 | |
* Checksum 0x0D | |
* OEM ID "_ASUS_" | |
* OEM Table ID "Notebook" | |
* OEM Revision 0x00000012 (18) | |
* Compiler ID "INTL" | |
* Compiler Version 0x20120711 (538052369) | |
*/ | |
DefinitionBlock ("dsdt.aml", "DSDT", 2, "_ASUS_", "Notebook", 0x00000012) | |
{ | |
/* | |
* iASL Warning: There were 15 external control methods found during | |
* disassembly, but additional ACPI tables to resolve these externals | |
* were not specified. This resulting disassembler output file may not | |
* compile because the disassembler did not know how many arguments | |
* to assign to these methods. To specify the tables needed to resolve | |
* external control method references, use the one of the following | |
* example iASL invocations: | |
* iasl -e <ssdt1.aml,ssdt2.aml...> -d <dsdt.aml> | |
* iasl -e <dsdt.aml,ssdt2.aml...> -d <ssdt1.aml> | |
*/ | |
External (_SB_.PCI0.GFX0.AINT, MethodObj) // Warning: Unresolved Method, guessing 2 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.DWBL, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.GLID, MethodObj) // Warning: Unresolved Method, guessing 1 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.GSCI, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.IUEH, MethodObj) // Warning: Unresolved Method, guessing 1 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.OPTS, MethodObj) // Warning: Unresolved Method, guessing 2 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.OWAK, MethodObj) // Warning: Unresolved Method, guessing 2 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.SWHD, MethodObj) // Warning: Unresolved Method, guessing 1 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.GFX0.UPBL, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.PAUD.PUAM, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (_SB_.PCI0.XHC_.DUAM, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (_SB_.TPM_.PTS_, MethodObj) // Warning: Unresolved Method, guessing 1 arguments (may be incorrect, see warning above) | |
External (LIDS, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (PS0X, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (PS3X, MethodObj) // Warning: Unresolved Method, guessing 0 arguments (may be incorrect, see warning above) | |
External (_PR_.CPU0._PPC) | |
External (_PR_.CPU0._PSS) | |
External (_SB_.IAOE.ECTM) | |
External (_SB_.IAOE.FFSE) | |
External (_SB_.IAOE.IBT1) | |
External (_SB_.IAOE.IIST) | |
External (_SB_.IAOE.ITMR) | |
External (_SB_.IAOE.PTSL) | |
External (_SB_.IAOE.RCTM) | |
External (_SB_.IAOE.WKRS) | |
External (_SB_.IFFS.FFSS) | |
External (_SB_.PCCD) | |
External (_SB_.PCCD.PENB) | |
External (_SB_.PCI0.GFX0.ADVD, IntObj) | |
External (_SB_.PCI0.GFX0.CBLV) | |
External (_SB_.PCI0.GFX0.CLID) | |
External (_SB_.PCI0.GFX0.GCBL, IntObj) | |
External (_SB_.PCI0.GFX0.GCDS, IntObj) | |
External (_SB_.PCI0.GFX0.GSSE) | |
External (_SB_.PCI0.GFX0.LCDD._DCS) | |
External (_SB_.PCI0.GFX0.NATK, IntObj) | |
External (_SB_.PCI0.GFX0.PRST, IntObj) | |
External (_SB_.PCI0.GFX0.STAT) | |
External (_SB_.PCI0.GFX0.TCHE) | |
External (GSMI) | |
External (MDBG, IntObj) | |
External (PCCD) | |
External (PDC0) | |
External (PDC1) | |
External (PDC2) | |
External (PDC3) | |
External (PDC4) | |
External (PDC5) | |
External (PDC6) | |
External (PDC7) | |
External (SGMD) | |
Name (SMBS, 0x0580) | |
Name (SMBL, 0x20) | |
Name (PMBS, 0x1800) | |
Name (GPBS, 0x1C00) | |
Name (SMIP, 0xB2) | |
Name (APCB, 0xFEC00000) | |
Name (APCL, 0x1000) | |
Name (SMCR, 0x1830) | |
Name (HPTB, 0xFED00000) | |
Name (HPTC, 0xFED1F404) | |
Name (FLSZ, 0x00600000) | |
Name (SRCB, 0xFED1C000) | |
Name (RCLN, 0x4000) | |
Name (PEBS, 0xF8000000) | |
Name (PELN, 0x04000000) | |
Name (LAPB, 0xFEE00000) | |
Name (EGPB, 0xFED19000) | |
Name (MCHB, 0xFED10000) | |
Name (VTBS, 0xFED90000) | |
Name (VTLN, 0x4000) | |
Name (ACPH, 0xDE) | |
Name (ASSB, Zero) | |
Name (AOTB, Zero) | |
Name (AAXB, Zero) | |
Name (HIDK, 0x0303D041) | |
Name (HIDM, 0x030FD041) | |
Name (CIDK, 0x0B03D041) | |
Name (CIDM, 0x130FD041) | |
Name (PEHP, One) | |
Name (SHPC, Zero) | |
Name (PEPM, One) | |
Name (PEER, One) | |
Name (PECS, One) | |
Name (ITKE, Zero) | |
Name (FMBL, One) | |
Name (FDTP, 0x02) | |
Name (FUPS, 0x03) | |
Name (FUWS, 0x04) | |
Name (BGR, One) | |
Name (BFR, 0x02) | |
Name (BBR, 0x03) | |
Name (BWC, 0x04) | |
Name (BWT1, 0x20) | |
Name (BFHC, 0x0100) | |
Name (TRTP, One) | |
Name (WDTE, One) | |
Name (TRTD, 0x02) | |
Name (TRTI, 0x03) | |
Name (PFTI, 0x04) | |
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 (BW1P, 0x21) | |
Name (BW2C, 0x22) | |
Name (BW2P, 0x23) | |
Name (BSPC, 0x24) | |
Name (BSPP, 0x25) | |
Name (BICO, 0x27) | |
Name (BICC, 0x28) | |
Name (BHB, 0x30) | |
Name (BFS2, 0x31) | |
Name (BFS3, 0x32) | |
Name (BFS4, 0x33) | |
Name (BRH, 0x35) | |
Name (DSSP, Zero) | |
Name (FHPP, One) | |
Name (SMIA, 0xB2) | |
Name (SMIB, 0xB3) | |
Name (OFST, 0x35) | |
Name (TPMF, Zero) | |
Name (TCMF, Zero) | |
Name (TMF1, Zero) | |
Name (TMF2, Zero) | |
Name (TMF3, Zero) | |
Name (TRST, 0x02) | |
Name (MBEC, Zero) | |
Name (PMLN, 0x0100) | |
Name (GPLN, 0x0400) | |
Name (MBLF, 0x0A) | |
Name (SS1, Zero) | |
Name (SS2, Zero) | |
Name (SS3, One) | |
Name (SS4, One) | |
Name (IOST, 0x4400) | |
Name (TOPM, 0x00000000) | |
Name (ROMS, 0xFFE00000) | |
Name (VGAF, One) | |
OperationRegion (GNVS, SystemMemory, 0xDAB1AC18, 0x02B1) | |
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, | |
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 (0x1E), | |
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, | |
EMAE, 8, | |
EMAP, 16, | |
EMAL, 16, | |
Offset (0x42), | |
MEFE, 8, | |
DSTS, 8, | |
Offset (0x48), | |
MORD, 8, | |
TCGP, 8, | |
PPRP, 32, | |
PPRQ, 8, | |
LPPR, 8, | |
GTF0, 56, | |
GTF2, 56, | |
IDEM, 8, | |
GTF1, 56, | |
BID, 16, | |
PLID, 8, | |
ECTG, 8, | |
Offset (0x70), | |
OSCC, 8, | |
NEXP, 8, | |
SBV1, 8, | |
SBV2, 8, | |
Offset (0x7A), | |
DSEN, 8, | |
ECON, 8, | |
GPIC, 8, | |
CTYP, 8, | |
L01C, 8, | |
VFN0, 8, | |
VFN1, 8, | |
VFN2, 8, | |
VFN3, 8, | |
VFN4, 8, | |
VFN5, 8, | |
VFN6, 8, | |
VFN7, 8, | |
VFN8, 8, | |
VFN9, 8, | |
Offset (0x8F), | |
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, | |
PDTS, 8, | |
PKGA, 8, | |
PAMT, 8, | |
AC0F, 8, | |
AC1F, 8, | |
DTS3, 8, | |
DTS4, 8, | |
Offset (0xB0), | |
LTR1, 8, | |
LTR2, 8, | |
LTR3, 8, | |
LTR4, 8, | |
LTR5, 8, | |
LTR6, 8, | |
LTR7, 8, | |
LTR8, 8, | |
OBF1, 8, | |
OBF2, 8, | |
OBF3, 8, | |
OBF4, 8, | |
OBF5, 8, | |
OBF6, 8, | |
OBF7, 8, | |
OBF8, 8, | |
XHCI, 8, | |
XTUB, 32, | |
XTUS, 32, | |
XMPB, 32, | |
DDRF, 8, | |
RTD3, 8, | |
PEP0, 8, | |
PEP3, 8, | |
DPTF, 8, | |
SADE, 8, | |
SACR, 8, | |
SAHT, 8, | |
PCHD, 8, | |
PCHC, 8, | |
PCHH, 8, | |
CTDP, 8, | |
LPMP, 8, | |
LPMV, 8, | |
ECEU, 8, | |
TGFG, 16, | |
MEMD, 8, | |
MEMC, 8, | |
MEMH, 8, | |
FND1, 8, | |
FND2, 8, | |
AMBD, 8, | |
AMAT, 8, | |
AMPT, 8, | |
AMCT, 8, | |
AMHT, 8, | |
SKDE, 8, | |
SKAT, 8, | |
SKPT, 8, | |
SKCT, 8, | |
SKHT, 8, | |
EFDE, 8, | |
EFAT, 8, | |
EFPT, 8, | |
EFCT, 8, | |
EFHT, 8, | |
VRDE, 8, | |
VRAT, 8, | |
VRPT, 8, | |
VRCT, 8, | |
VRHT, 8, | |
DPAP, 8, | |
DPPP, 8, | |
DPCP, 8, | |
DCMP, 8, | |
TRTV, 8, | |
LPOE, 8, | |
LPOP, 8, | |
LPOS, 8, | |
LPOW, 8, | |
LPER, 8, | |
PPSZ, 32, | |
DISE, 8, | |
PFMA, 64, | |
PFMS, 8, | |
PFIA, 16, | |
ICNF, 8, | |
DSP0, 32, | |
DSP1, 32, | |
NFCE, 8, | |
CODS, 8, | |
SNHE, 8, | |
S0ID, 8, | |
CTDB, 8, | |
Offset (0x207), | |
PWRE, 8, | |
PWRP, 8, | |
XHPR, 8, | |
SDS0, 8, | |
SDS1, 16, | |
SDS2, 8, | |
SDS3, 8, | |
SDS4, 8, | |
SDS5, 8, | |
Offset (0x212), | |
RIC0, 8, | |
PEPY, 8, | |
DVS0, 8, | |
DVS1, 8, | |
DVS2, 8, | |
DVS3, 8, | |
GBSX, 8, | |
IUBE, 8, | |
IUCE, 8, | |
IUDE, 8, | |
ECNO, 8, | |
AUDD, 16, | |
DSPD, 16, | |
IC0D, 16, | |
IC1D, 16, | |
IC1S, 16, | |
VRRD, 16, | |
PSCP, 8, | |
RWAG, 8, | |
I20D, 16, | |
I21D, 16, | |
Offset (0x231), | |
RCG0, 8, | |
ECDB, 8, | |
P2ME, 8, | |
SSH0, 16, | |
SSL0, 16, | |
SSD0, 16, | |
FMH0, 16, | |
FML0, 16, | |
FMD0, 16, | |
FPH0, 16, | |
FPL0, 16, | |
FPD0, 16, | |
SSH1, 16, | |
SSL1, 16, | |
SSD1, 16, | |
FMH1, 16, | |
FML1, 16, | |
FMD1, 16, | |
FPH1, 16, | |
FPL1, 16, | |
FPD1, 16, | |
M0C0, 16, | |
M1C0, 16, | |
M2C0, 16, | |
M0C1, 16, | |
M1C1, 16, | |
M2C1, 16, | |
M0C2, 16, | |
M1C2, 16, | |
M0C3, 16, | |
M1C3, 16, | |
M0C4, 16, | |
M1C4, 16, | |
M0C5, 16, | |
M1C5, 16, | |
TBSF, 8, | |
GIRQ, 32, | |
DMTP, 8, | |
DMTD, 8, | |
DMSH, 8, | |
LANP, 8, | |
Offset (0x27E), | |
SHSB, 8, | |
PLCS, 8, | |
PLVL, 16, | |
GN1E, 8, | |
G1AT, 8, | |
G1PT, 8, | |
G1CT, 8, | |
G1HT, 8, | |
GN2E, 8, | |
G2AT, 8, | |
G2PT, 8, | |
G2CT, 8, | |
G2HT, 8, | |
WWSD, 8, | |
CVSD, 8, | |
SSDD, 8, | |
INLD, 8, | |
IFAT, 8, | |
IFPT, 8, | |
IFCT, 8, | |
IFHT, 8, | |
DOSD, 8, | |
USBH, 8, | |
BCV4, 8, | |
WTV0, 8, | |
WTV1, 8, | |
APFU, 8, | |
SOHP, 8, | |
NOHP, 8, | |
TBSE, 8, | |
WKFN, 8, | |
PEPC, 16, | |
VRSD, 16, | |
PB1E, 8, | |
WAND, 8, | |
WWAT, 8, | |
WWPT, 8, | |
WWCT, 8, | |
WWHT, 8, | |
Offset (0x2AD), | |
MPLT, 16, | |
GR13, 8, | |
SPST, 8 | |
} | |
Scope (_SB) | |
{ | |
Name (PR00, Package (0x1B) | |
{ | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
One, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x02, | |
LNKC, | |
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) | |
{ | |
0x0015FFFF, | |
One, | |
LNKE, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0015FFFF, | |
0x02, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0015FFFF, | |
0x03, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0017FFFF, | |
Zero, | |
LNKG, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0013FFFF, | |
Zero, | |
LNKH, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
Zero, | |
LNKA, | |
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) | |
{ | |
0x001AFFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001BFFFF, | |
Zero, | |
LNKG, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
One, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
0x03, | |
LNKD, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
Zero, | |
LNKF, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x03, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
Zero, | |
LNKH, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0x0014FFFF, | |
Zero, | |
LNKA, | |
Zero | |
} | |
}) | |
Name (AR00, Package (0x1B) | |
{ | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
One, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
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) | |
{ | |
0x0015FFFF, | |
One, | |
Zero, | |
0x14 | |
}, | |
Package (0x04) | |
{ | |
0x0015FFFF, | |
0x02, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x0015FFFF, | |
0x03, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x0017FFFF, | |
Zero, | |
Zero, | |
0x16 | |
}, | |
Package (0x04) | |
{ | |
0x0013FFFF, | |
Zero, | |
Zero, | |
0x17 | |
}, | |
Package (0x04) | |
{ | |
0x0003FFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
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) | |
{ | |
0x001AFFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x001BFFFF, | |
Zero, | |
Zero, | |
0x16 | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
One, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0x001CFFFF, | |
0x03, | |
Zero, | |
0x13 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
Zero, | |
Zero, | |
0x15 | |
}, | |
Package (0x04) | |
{ | |
0x001FFFFF, | |
0x03, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x0002FFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0x001DFFFF, | |
Zero, | |
Zero, | |
0x17 | |
}, | |
Package (0x04) | |
{ | |
0x0014FFFF, | |
Zero, | |
Zero, | |
0x10 | |
} | |
}) | |
Name (PR04, Package (0x04) | |
{ | |
Package (0x04) | |
{ | |
0xFFFF, | |
Zero, | |
LNKA, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0xFFFF, | |
One, | |
LNKB, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0xFFFF, | |
0x02, | |
LNKC, | |
Zero | |
}, | |
Package (0x04) | |
{ | |
0xFFFF, | |
0x03, | |
LNKD, | |
Zero | |
} | |
}) | |
Name (AR04, Package (0x04) | |
{ | |
Package (0x04) | |
{ | |
0xFFFF, | |
Zero, | |
Zero, | |
0x10 | |
}, | |
Package (0x04) | |
{ | |
0xFFFF, | |
One, | |
Zero, | |
0x11 | |
}, | |
Package (0x04) | |
{ | |
0xFFFF, | |
0x02, | |
Zero, | |
0x12 | |
}, | |
Package (0x04) | |
{ | |
0xFFFF, | |
0x03, | |
Zero, | |
0x13 | |
} | |
}) | |
Name (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 (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")) // _HID: Hardware ID | |
Name (_CID, EisaId ("PNP0A03")) // _CID: Compatible ID | |
Name (_ADR, Zero) // _ADR: Address | |
Method (^BN00, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
Method (_BBN, 0, NotSerialized) // _BBN: BIOS Bus Number | |
{ | |
Return (BN00 ()) | |
} | |
Name (_UID, Zero) // _UID: Unique ID | |
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table | |
{ | |
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, | |
D1F2, 1, | |
D1F1, 1, | |
D1F0, 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) | |
Name (BUF0, ResourceTemplate () | |
{ | |
WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, | |
0x0000, // Granularity | |
0x0000, // Range Minimum | |
0x00FF, // Range Maximum | |
0x0000, // Translation Offset | |
0x0100, // Length | |
,, _Y00) | |
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 | |
,, _Y01, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000C4000, // Range Minimum | |
0x000C7FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y02, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000C8000, // Range Minimum | |
0x000CBFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y03, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000CC000, // Range Minimum | |
0x000CFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y04, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000D0000, // Range Minimum | |
0x000D3FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y05, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000D4000, // Range Minimum | |
0x000D7FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y06, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000D8000, // Range Minimum | |
0x000DBFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y07, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000DC000, // Range Minimum | |
0x000DFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y08, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000E0000, // Range Minimum | |
0x000E3FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y09, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000E4000, // Range Minimum | |
0x000E7FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y0A, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000E8000, // Range Minimum | |
0x000EBFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y0B, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000EC000, // Range Minimum | |
0x000EFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00004000, // Length | |
,, _Y0C, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x000F0000, // Range Minimum | |
0x000FFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00010000, // Length | |
,, _Y0D, AddressRangeMemory, TypeStatic) | |
DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, | |
0x00000000, // Granularity | |
0x00000000, // Range Minimum | |
0xFEAFFFFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0xFEB00000, // Length | |
,, _Y0E, AddressRangeMemory, TypeStatic) | |
}) | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
CreateWordField (BUF0, \_SB.PCI0._Y00._MAX, PBMX) // _MAX: Maximum Base Address | |
Store (Subtract (ShiftRight (PELN, 0x14), 0x02), PBMX) | |
CreateWordField (BUF0, \_SB.PCI0._Y00._LEN, PBLN) // _LEN: Length | |
Store (Subtract (ShiftRight (PELN, 0x14), One), PBLN) | |
If (PM1L) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y01._LEN, C0LN) // _LEN: Length | |
Store (Zero, C0LN) | |
} | |
If (LEqual (PM1L, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y01._RW, C0RW) // _RW_: Read-Write Status | |
Store (Zero, C0RW) | |
} | |
If (PM1H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y02._LEN, C4LN) // _LEN: Length | |
Store (Zero, C4LN) | |
} | |
If (LEqual (PM1H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y02._RW, C4RW) // _RW_: Read-Write Status | |
Store (Zero, C4RW) | |
} | |
If (PM2L) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y03._LEN, C8LN) // _LEN: Length | |
Store (Zero, C8LN) | |
} | |
If (LEqual (PM2L, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y03._RW, C8RW) // _RW_: Read-Write Status | |
Store (Zero, C8RW) | |
} | |
If (PM2H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y04._LEN, CCLN) // _LEN: Length | |
Store (Zero, CCLN) | |
} | |
If (LEqual (PM2H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y04._RW, CCRW) // _RW_: Read-Write Status | |
Store (Zero, CCRW) | |
} | |
If (PM3L) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y05._LEN, D0LN) // _LEN: Length | |
Store (Zero, D0LN) | |
} | |
If (LEqual (PM3L, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y05._RW, D0RW) // _RW_: Read-Write Status | |
Store (Zero, D0RW) | |
} | |
If (PM3H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y06._LEN, D4LN) // _LEN: Length | |
Store (Zero, D4LN) | |
} | |
If (LEqual (PM3H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y06._RW, D4RW) // _RW_: Read-Write Status | |
Store (Zero, D4RW) | |
} | |
If (PM4L) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y07._LEN, D8LN) // _LEN: Length | |
Store (Zero, D8LN) | |
} | |
If (LEqual (PM4L, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y07._RW, D8RW) // _RW_: Read-Write Status | |
Store (Zero, D8RW) | |
} | |
If (PM4H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y08._LEN, DCLN) // _LEN: Length | |
Store (Zero, DCLN) | |
} | |
If (LEqual (PM4H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y08._RW, DCRW) // _RW_: Read-Write Status | |
Store (Zero, DCRW) | |
} | |
If (PM5L) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y09._LEN, E0LN) // _LEN: Length | |
Store (Zero, E0LN) | |
} | |
If (LEqual (PM5L, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y09._RW, E0RW) // _RW_: Read-Write Status | |
Store (Zero, E0RW) | |
} | |
If (PM5H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y0A._LEN, E4LN) // _LEN: Length | |
Store (Zero, E4LN) | |
} | |
If (LEqual (PM5H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y0A._RW, E4RW) // _RW_: Read-Write Status | |
Store (Zero, E4RW) | |
} | |
If (PM6L) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y0B._LEN, E8LN) // _LEN: Length | |
Store (Zero, E8LN) | |
} | |
If (LEqual (PM6L, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y0B._RW, E8RW) // _RW_: Read-Write Status | |
Store (Zero, E8RW) | |
} | |
If (PM6H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y0C._LEN, ECLN) // _LEN: Length | |
Store (Zero, ECLN) | |
} | |
If (LEqual (PM6H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y0C._RW, ECRW) // _RW_: Read-Write Status | |
Store (Zero, ECRW) | |
} | |
If (PM0H) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0._Y0D._LEN, F0LN) // _LEN: Length | |
Store (Zero, F0LN) | |
} | |
If (LEqual (PM0H, One)) | |
{ | |
CreateBitField (BUF0, \_SB.PCI0._Y0D._RW, F0RW) // _RW_: Read-Write Status | |
Store (Zero, F0RW) | |
} | |
CreateDWordField (BUF0, \_SB.PCI0._Y0E._MIN, M1MN) // _MIN: Minimum Base Address | |
CreateDWordField (BUF0, \_SB.PCI0._Y0E._MAX, M1MX) // _MAX: Maximum Base Address | |
CreateDWordField (BUF0, \_SB.PCI0._Y0E._LEN, M1LN) // _LEN: Length | |
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) | |
Name (XCNT, Zero) | |
Method (_OSC, 4, Serialized) // _OSC: Operating System Capabilities | |
{ | |
Store (Arg3, Local0) | |
CreateDWordField (Local0, Zero, CDW1) | |
CreateDWordField (Local0, 0x04, CDW2) | |
CreateDWordField (Local0, 0x08, CDW3) | |
If (^XHC.CUID (Arg0)) | |
{ | |
Return (^XHC.POSC (Arg1, Arg2, Arg3)) | |
} | |
Else | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
If (LEqual (XCNT, Zero)) | |
{ | |
^XHC.XSEL () | |
Increment (XCNT) | |
} | |
} | |
} | |
If (LEqual (Arg0, GUID)) | |
{ | |
Store (CDW2, SUPP) | |
Store (CDW3, CTRL) | |
If (LEqual (NEXP, Zero)) | |
{ | |
And (CTRL, 0xFFFFFFF8, CTRL) | |
} | |
If (NEXP) | |
{ | |
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 (AR04, 0, NotSerialized) | |
{ | |
Return (^^AR04) | |
} | |
Method (PR04, 0, NotSerialized) | |
{ | |
Return (^^PR04) | |
} | |
Method (AR07, 0, NotSerialized) | |
{ | |
Return (^^AR07) | |
} | |
Method (PR07, 0, NotSerialized) | |
{ | |
Return (^^PR07) | |
} | |
} | |
Device (TPMX) | |
{ | |
Name (_HID, EisaId ("PNP0C01")) // _HID: Hardware ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (CRS, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadOnly, | |
0xFED40000, // Address Base | |
0x00005000, // Address Length | |
) | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (CRS) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (TPMF) | |
{ | |
Return (Zero) | |
} | |
Return (0x0F) | |
} | |
} | |
Device (B0D4) | |
{ | |
Name (_ADR, 0x00040000) // _ADR: Address | |
} | |
Device (RP01) | |
{ | |
Name (_ADR, 0x001C0000) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table | |
{ | |
If (PICM) | |
{ | |
Return (AR04 ()) | |
} | |
Return (PR04 ()) | |
} | |
} | |
Device (RP02) | |
{ | |
Name (_ADR, 0x001C0001) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
} | |
Device (RP05) | |
{ | |
Name (_ADR, 0x001C0004) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
} | |
Device (RP06) | |
{ | |
Name (_ADR, 0x001C0005) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
} | |
Device (RP07) | |
{ | |
Name (_ADR, 0x001C0006) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
} | |
Device (RP08) | |
{ | |
Name (_ADR, 0x001C0007) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
} | |
Device (LPCB) | |
{ | |
Name (_ADR, 0x001F0000) // _ADR: Address | |
Scope (\_SB) | |
{ | |
OperationRegion (PCI0.LPCB.LPC1, PCI_Config, Zero, 0x0100) | |
Field (PCI0.LPCB.LPC1, AnyAcc, NoLock, Preserve) | |
{ | |
Offset (0x02), | |
CDID, 16, | |
Offset (0x08), | |
CRID, 8, | |
Offset (0x60), | |
PARC, 8, | |
PBRC, 8, | |
PCRC, 8, | |
PDRC, 8, | |
Offset (0x68), | |
PERC, 8, | |
PFRC, 8, | |
PGRC, 8, | |
PHRC, 8, | |
Offset (0xAC), | |
Offset (0xAD), | |
Offset (0xAE), | |
XUSB, 1 | |
} | |
Device (LNKA) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, One) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PARC, 0x80, PARC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSA) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PARC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PARC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKB) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x02) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PBRC, 0x80, PBRC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSB) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PBRC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PBRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKC) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x03) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PCRC, 0x80, PCRC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSC) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PCRC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PCRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKD) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x04) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PDRC, 0x80, PDRC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSD) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PDRC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PDRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKE) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x05) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PERC, 0x80, PERC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSE) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PERC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PERC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKF) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x06) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PFRC, 0x80, PFRC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSF) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PFRC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PFRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKG) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x07) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PGRC, 0x80, PGRC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSG) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PGRC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (And (PGRC, 0x80)) | |
{ | |
Return (0x09) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
} | |
Device (LNKH) | |
{ | |
Name (_HID, EisaId ("PNP0C0F")) // _HID: Hardware ID | |
Name (_UID, 0x08) // _UID: Unique ID | |
Method (_DIS, 0, Serialized) // _DIS: Disable Device | |
{ | |
Or (PHRC, 0x80, PHRC) | |
} | |
Method (_PRS, 0, Serialized) // _PRS: Possible Resource Settings | |
{ | |
Return (PRSH) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
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) // _SRS: Set Resource Settings | |
{ | |
CreateWordField (Arg0, One, IRQ0) | |
FindSetRightBit (IRQ0, Local0) | |
Decrement (Local0) | |
Store (Local0, PHRC) | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
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 (0x78), | |
, 6, | |
GR03, 2, | |
Offset (0x7A), | |
GR08, 2, | |
GR09, 2, | |
GR0A, 2, | |
GR0B, 2, | |
Offset (0x7C), | |
, 2, | |
GR19, 2, | |
Offset (0x80), | |
Offset (0xB0), | |
RAEN, 1, | |
, 13, | |
RCBA, 18 | |
} | |
Device (DMAC) | |
{ | |
Name (_HID, EisaId ("PNP0200")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
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")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
Memory32Fixed (ReadOnly, | |
0xFF000000, // Address Base | |
0x01000000, // Address Length | |
) | |
}) | |
} | |
Device (HPET) | |
{ | |
Name (_HID, EisaId ("PNP0103")) // _HID: Hardware ID | |
Name (_UID, Zero) // _UID: Unique ID | |
Name (BUF0, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0xFED00000, // Address Base | |
0x00000400, // Address Length | |
_Y0F) | |
}) | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LGreaterEqual (OSYS, 0x07D1)) | |
{ | |
If (HPAE) | |
{ | |
Return (0x0F) | |
} | |
} | |
Else | |
{ | |
If (HPAE) | |
{ | |
Return (0x0B) | |
} | |
} | |
Return (Zero) | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
If (HPAE) | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0.LPCB.HPET._Y0F._BAS, HPT0) // _BAS: Base Address | |
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")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
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")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
IO (Decode16, | |
0x00F0, // Range Minimum | |
0x00F0, // Range Maximum | |
0x01, // Alignment | |
0x01, // Length | |
) | |
IRQNoFlags () | |
{13} | |
}) | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x1F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
Device (LDRC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID | |
Name (_UID, 0x02) // _UID: Unique ID | |
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, | |
0x0800, // Range Minimum | |
0x0800, // Range Maximum | |
0x01, // Alignment | |
0xFF, // Length | |
_Y10) | |
IO (Decode16, | |
0x0900, // Range Minimum | |
0x0900, // Range Maximum | |
0x01, // Alignment | |
0xFF, // Length | |
_Y11) | |
IO (Decode16, | |
0x0A00, // Range Minimum | |
0x0A00, // Range Maximum | |
0x01, // Alignment | |
0xFF, // Length | |
_Y12) | |
IO (Decode16, | |
0x0B00, // Range Minimum | |
0x0B00, // Range Maximum | |
0x01, // Alignment | |
0xFF, // Length | |
_Y13) | |
IO (Decode16, | |
0x1800, // Range Minimum | |
0x1800, // Range Maximum | |
0x01, // Alignment | |
0xFF, // Length | |
) | |
IO (Decode16, | |
0x164E, // Range Minimum | |
0x164E, // Range Maximum | |
0x01, // Alignment | |
0x02, // Length | |
) | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y10._MIN, IO0M) // _MIN: Minimum Base Address | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y10._MAX, IO0X) // _MAX: Maximum Base Address | |
Store (GPBS, IO0M) | |
Store (GPBS, IO0X) | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y11._MIN, IO1M) // _MIN: Minimum Base Address | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y11._MAX, IO1X) // _MAX: Maximum Base Address | |
Store (Add (GPBS, 0x0100), IO1M) | |
Store (Add (GPBS, 0x0100), IO1X) | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y12._MIN, IO2M) // _MIN: Minimum Base Address | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y12._MAX, IO2X) // _MAX: Maximum Base Address | |
Store (Add (GPBS, 0x0200), IO2M) | |
Store (Add (GPBS, 0x0200), IO2X) | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y13._MIN, IO3M) // _MIN: Minimum Base Address | |
CreateWordField (BUF0, \_SB.PCI0.LPCB.LDRC._Y13._MAX, IO3X) // _MAX: Maximum Base Address | |
Store (Add (GPBS, 0x0300), IO3M) | |
Store (Add (GPBS, 0x0300), IO3X) | |
Return (BUF0) | |
} | |
} | |
Device (RTC) | |
{ | |
Name (_HID, EisaId ("PNP0B00")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
IO (Decode16, | |
0x0070, // Range Minimum | |
0x0070, // Range Maximum | |
0x01, // Alignment | |
0x08, // Length | |
) | |
IRQNoFlags () | |
{8} | |
}) | |
} | |
Device (TIMR) | |
{ | |
Name (_HID, EisaId ("PNP0100")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
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")) // _HID: Hardware ID | |
Name (_CID, EisaId ("PNP0C02")) // _CID: Compatible ID | |
Name (BUF0, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x1854, // Range Minimum | |
0x1854, // Range Maximum | |
0x04, // Alignment | |
0x04, // Length | |
) | |
}) | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (WDTE, One)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Return (BUF0) | |
} | |
} | |
Device (RMSC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID | |
Name (_UID, 0x10) // _UID: Unique ID | |
Name (CRS1, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0010, // Range Minimum | |
0x0010, // Range Maximum | |
0x00, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0x0022, // Range Minimum | |
0x0022, // Range Maximum | |
0x00, // Alignment | |
0x1E, // Length | |
) | |
IO (Decode16, | |
0x0044, // Range Minimum | |
0x0044, // Range Maximum | |
0x00, // Alignment | |
0x1C, // Length | |
) | |
IO (Decode16, | |
0x0062, // Range Minimum | |
0x0062, // Range Maximum | |
0x00, // Alignment | |
0x02, // Length | |
) | |
IO (Decode16, | |
0x0065, // Range Minimum | |
0x0065, // Range Maximum | |
0x00, // Alignment | |
0x0B, // Length | |
) | |
IO (Decode16, | |
0x0072, // Range Minimum | |
0x0072, // Range Maximum | |
0x00, // Alignment | |
0x0E, // Length | |
) | |
IO (Decode16, | |
0x0080, // Range Minimum | |
0x0080, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0084, // Range Minimum | |
0x0084, // Range Maximum | |
0x00, // Alignment | |
0x03, // Length | |
) | |
IO (Decode16, | |
0x0088, // Range Minimum | |
0x0088, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x008C, // Range Minimum | |
0x008C, // Range Maximum | |
0x00, // Alignment | |
0x03, // Length | |
) | |
IO (Decode16, | |
0x0090, // Range Minimum | |
0x0090, // Range Maximum | |
0x00, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0x00A2, // Range Minimum | |
0x00A2, // Range Maximum | |
0x00, // Alignment | |
0x1E, // Length | |
) | |
IO (Decode16, | |
0x00E0, // Range Minimum | |
0x00E0, // Range Maximum | |
0x00, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0x04D0, // Range Minimum | |
0x04D0, // Range Maximum | |
0x00, // Alignment | |
0x02, // Length | |
) | |
}) | |
Name (CRS2, ResourceTemplate () | |
{ | |
IO (Decode16, | |
0x0010, // Range Minimum | |
0x0010, // Range Maximum | |
0x00, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0x0022, // Range Minimum | |
0x0022, // Range Maximum | |
0x00, // Alignment | |
0x1E, // Length | |
) | |
IO (Decode16, | |
0x0044, // Range Minimum | |
0x0044, // Range Maximum | |
0x00, // Alignment | |
0x1C, // Length | |
) | |
IO (Decode16, | |
0x0072, // Range Minimum | |
0x0072, // Range Maximum | |
0x00, // Alignment | |
0x0E, // Length | |
) | |
IO (Decode16, | |
0x0080, // Range Minimum | |
0x0080, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0084, // Range Minimum | |
0x0084, // Range Maximum | |
0x00, // Alignment | |
0x03, // Length | |
) | |
IO (Decode16, | |
0x0088, // Range Minimum | |
0x0088, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x008C, // Range Minimum | |
0x008C, // Range Maximum | |
0x00, // Alignment | |
0x03, // Length | |
) | |
IO (Decode16, | |
0x0090, // Range Minimum | |
0x0090, // Range Maximum | |
0x00, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0x00A2, // Range Minimum | |
0x00A2, // Range Maximum | |
0x00, // Alignment | |
0x1E, // Length | |
) | |
IO (Decode16, | |
0x00E0, // Range Minimum | |
0x00E0, // Range Maximum | |
0x00, // Alignment | |
0x10, // Length | |
) | |
IO (Decode16, | |
0x04D0, // Range Minimum | |
0x04D0, // Range Maximum | |
0x00, // Alignment | |
0x02, // Length | |
) | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
If (And (MBEC, 0xFFFF)) | |
{ | |
Return (CRS1) | |
} | |
Else | |
{ | |
Return (CRS2) | |
} | |
} | |
} | |
Device (ADBG) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID | |
Name (_UID, 0x13) // _UID: Unique ID | |
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) // _CRS: Current Resource Settings | |
{ | |
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) | |
} | |
OperationRegion (SIO1, SystemIO, 0x0240, 0x08) | |
Field (SIO1, ByteAcc, NoLock, Preserve) | |
{ | |
SOUT, 8, | |
Offset (0x05), | |
SSAT, 8 | |
} | |
Method (THRE, 0, NotSerialized) | |
{ | |
And (SSAT, 0x20, Local0) | |
While (LEqual (Local0, Zero)) | |
{ | |
And (SSAT, 0x20, Local0) | |
} | |
} | |
Method (OUTX, 1, NotSerialized) | |
{ | |
THRE () | |
Store (Arg0, SOUT) | |
} | |
Method (OUTC, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x0A)) | |
{ | |
OUTX (0x0D) | |
} | |
OUTX (Arg0) | |
} | |
Method (DBGN, 1, NotSerialized) | |
{ | |
And (Arg0, 0x0F, Local0) | |
If (LLess (Local0, 0x0A)) | |
{ | |
Add (Local0, 0x30, Local0) | |
} | |
Else | |
{ | |
Add (Local0, 0x37, Local0) | |
} | |
OUTC (Local0) | |
} | |
Method (DBGB, 1, NotSerialized) | |
{ | |
ShiftRight (Arg0, 0x04, Local0) | |
DBGN (Local0) | |
DBGN (Arg0) | |
} | |
Method (DBGW, 1, NotSerialized) | |
{ | |
ShiftRight (Arg0, 0x08, Local0) | |
DBGB (Local0) | |
DBGB (Arg0) | |
} | |
Method (DBGD, 1, NotSerialized) | |
{ | |
ShiftRight (Arg0, 0x10, Local0) | |
DBGW (Local0) | |
DBGW (Arg0) | |
} | |
Method (DBGQ, 1, NotSerialized) | |
{ | |
ShiftRight (Arg0, 0x30, Local0) | |
DBGW (Local0) | |
ShiftRight (Arg0, 0x20, Local0) | |
DBGW (Local0) | |
ShiftRight (Arg0, 0x10, Local0) | |
DBGW (Local0) | |
DBGW (Arg0) | |
} | |
Name (DBGZ, Buffer (0x50) {}) | |
Method (GETC, 2, NotSerialized) | |
{ | |
CreateByteField (Arg0, Arg1, DBGC) | |
Return (DBGC) | |
} | |
Method (MNIO, 1, NotSerialized) | |
{ | |
If (LEqual (ObjectType (Arg0), One)) | |
{ | |
If (LGreater (Arg0, 0xFFFFFFFF)) | |
{ | |
DBGQ (Arg0) | |
} | |
Else | |
{ | |
If (LGreater (Arg0, 0xFFFF)) | |
{ | |
DBGD (Arg0) | |
} | |
Else | |
{ | |
If (LGreater (Arg0, 0xFF)) | |
{ | |
DBGW (Arg0) | |
} | |
Else | |
{ | |
DBGB (Arg0) | |
} | |
} | |
} | |
Return (Zero) | |
} | |
If (LEqual (ObjectType (Arg0), 0x02)) | |
{ | |
Store (Arg0, DBGZ) | |
Store (Zero, Local1) | |
While (One) | |
{ | |
Store (GETC (DBGZ, Local1), Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (Zero) | |
} | |
OUTC (Local0) | |
Increment (Local1) | |
} | |
Return (Zero) | |
} | |
If (LEqual (ObjectType (Arg0), 0x03)) | |
{ | |
Store (Zero, Local0) | |
While (LLess (Local0, SizeOf (Arg0))) | |
{ | |
Store (GETC (Arg0, Local0), Local1) | |
If (LGreater (Local0, Zero)) | |
{ | |
OUTC (0x20) | |
} | |
DBGB (Local1) | |
Increment (Local0) | |
} | |
Return (Zero) | |
} | |
If (LEqual (ObjectType (Arg0), 0x04)) | |
{ | |
Store (Zero, Local0) | |
While (LLess (Local0, SizeOf (Arg0))) | |
{ | |
OUTC (0x20) | |
OUTC (0x20) | |
MNIO (DerefOf (Index (Arg0, Local0))) | |
OUTC (0x0A) | |
Increment (Local0) | |
} | |
Return (Zero) | |
} | |
Return (One) | |
} | |
} | |
Scope (\) | |
{ | |
Method (MNIO, 1, NotSerialized) | |
{ | |
\_SB.PCI0.LPCB.ADBG.MNIO (Arg0) | |
} | |
} | |
Device (PS2M) | |
{ | |
Method (_HID, 0, NotSerialized) // _HID: Hardware ID | |
{ | |
If (SYNA) | |
{ | |
Return (0x190A2E4F) | |
} | |
If (ALPS) | |
{ | |
Return (0x0713A906) | |
} | |
If (ELAN) | |
{ | |
Return (0x05018416) | |
} | |
If (STLC) | |
{ | |
Return (0x41C18C4E) | |
} | |
If (FOLT) | |
{ | |
Return (0x02019419) | |
} | |
Return (0x060A2E4F) | |
} | |
Name (CID0, Package (0x05) | |
{ | |
0x000A2E4F, | |
0x02002E4F, | |
0x030FD041, | |
0x130FD041, | |
0x120FD041 | |
}) | |
Name (CID1, Package (0x03) | |
{ | |
0x000A2E4F, | |
0x02002E4F, | |
0x130FD041 | |
}) | |
Name (CID2, Package (0x01) | |
{ | |
0x130FD041 | |
}) | |
Method (_CID, 0, NotSerialized) // _CID: Compatible ID | |
{ | |
If (SYNA) | |
{ | |
Return (CID1) | |
} | |
If (STLC) | |
{ | |
Return (CID2) | |
} | |
Return (CID0) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
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) // _CRS: Current Resource Settings | |
{ | |
ShiftLeft (One, 0x0A, Local0) | |
If (And (IOST, Local0)) | |
{ | |
Return (CRS1) | |
} | |
Else | |
{ | |
Return (CRS2) | |
} | |
} | |
} | |
Device (PS2K) | |
{ | |
Name (_HID, EisaId ("ATK3001")) // _HID: Hardware ID | |
Name (_CID, EisaId ("PNP030B")) // _CID: Compatible ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (And (IOST, 0x0400)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
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 () // _PRS: Possible Resource Settings | |
{ | |
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 (RP03) | |
{ | |
Name (_ADR, 0x001C0002) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Device (GLAN) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (Zero) | |
} | |
OperationRegion (LANR, PCI_Config, Zero, 0x0100) | |
Field (LANR, ByteAcc, NoLock, Preserve) | |
{ | |
VID, 16, | |
Offset (0xE0), | |
, 15, | |
PMES, 1 | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
} | |
} | |
Device (RP04) | |
{ | |
Name (_ADR, 0x001C0003) // _ADR: Address | |
OperationRegion (PXCS, PCI_Config, Zero, 0x0380) | |
Field (PXCS, AnyAcc, NoLock, Preserve) | |
{ | |
VDID, 32, | |
Offset (0x50), | |
L0SE, 1, | |
, 3, | |
LDIS, 1, | |
Offset (0x51), | |
Offset (0x52), | |
, 13, | |
LASX, 1, | |
Offset (0x54), | |
, 6, | |
HPCE, 1, | |
Offset (0x5A), | |
ABPX, 1, | |
, 2, | |
PDCX, 1, | |
, 2, | |
PDSX, 1, | |
Offset (0x5B), | |
Offset (0x60), | |
Offset (0x62), | |
PSPX, 1, | |
PMEP, 1, | |
Offset (0xA4), | |
D3HT, 2, | |
Offset (0xD8), | |
, 30, | |
HPEX, 1, | |
PMEX, 1, | |
Offset (0xE2), | |
, 2, | |
L23E, 1, | |
L23R, 1, | |
Offset (0x324), | |
, 3, | |
LEDM, 1 | |
} | |
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0xDC), | |
, 30, | |
HPSX, 1, | |
PMSX, 1 | |
} | |
Name (LTRV, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Name (OPTS, Zero) | |
Name (RPAV, Zero) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xD0, 0x37, 0xC9, 0xE5, 0x53, 0x35, 0x7A, 0x4D, | |
/* 0008 */ 0x91, 0x17, 0xEA, 0x4D, 0x19, 0xC3, 0x43, 0x4D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
Store (One, OPTS) | |
If (LTRE) | |
{ | |
Or (OPTS, 0x40, OPTS) | |
} | |
If (OBFF) | |
{ | |
Or (OPTS, 0x10, OPTS) | |
} | |
Return (OPTS) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (OBFF) | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (0x10) | |
{ | |
/* 0000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
If (LEqual (Arg1, 0x02)) | |
{ | |
If (LTRE) | |
{ | |
Name (MLTR, Zero) | |
If (LEqual (PCHS, One)) | |
{ | |
Store (0x0846, MLTR) | |
} | |
Else | |
{ | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (0x1003, MLTR) | |
} | |
} | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
Zero)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, One)) | |
Store (And (ShiftRight (MLTR, 0x0A), 0x07), Index (LTRV, | |
0x02)) | |
Store (And (MLTR, 0x03FF), Index (LTRV, 0x03)) | |
Return (LTRV) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Break | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
Device (PXSX) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (HPCE) | |
} | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
If (LAnd (LEqual (Arg0, 0x02), LEqual (Arg1, One))) | |
{ | |
Store (One, RPAV) | |
} | |
} | |
Method (HPME, 0, Serialized) | |
{ | |
If (LOr (PSPX, PMEP)) | |
{ | |
Store (PMEX, Local1) | |
Store (Zero, PMEX) | |
Sleep (0x32) | |
Store (One, PSPX) | |
Sleep (0x32) | |
If (PSPX) | |
{ | |
Store (One, PSPX) | |
Sleep (0x32) | |
} | |
Store (Local1, PMEX) | |
} | |
If (PMSX) | |
{ | |
Store (0xC8, Local0) | |
While (Local0) | |
{ | |
Store (One, PMSX) | |
If (PMSX) | |
{ | |
Decrement (Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
} | |
Notify (PXSX, 0x02) | |
} | |
} | |
Method (HPHK, 0, NotSerialized) | |
{ | |
Store (One, PDCX) | |
Store (One, HPSX) | |
Store (Zero, LDIS) | |
Sleep (0xFA) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x04)) | |
} | |
Method (_PRT, 0, NotSerialized) // _PRT: PCI Routing Table | |
{ | |
If (PICM) | |
{ | |
Return (AR07 ()) | |
} | |
Return (PR07 ()) | |
} | |
Device (WLAN) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
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, 0xFFFFFFFF)) | |
{ | |
Return (Zero) | |
} | |
If (LNotEqual (BSCC, 0x02)) | |
{ | |
Return (Zero) | |
} | |
Return (One) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x69, 0x03)) | |
} | |
} | |
} | |
Device (USB2) | |
{ | |
Name (_ADR, 0x001D0000) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x6D, 0x03)) | |
} | |
} | |
Device (XHC1) | |
{ | |
Name (_ADR, 0x00140000) // _ADR: Address | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x6D, 0x03)) | |
} | |
} | |
} | |
} | |
Name (RPA0, 0x001C0000) | |
Name (RPA1, 0x001C0001) | |
Name (RPA2, 0x001C0002) | |
Name (RPA3, 0x001C0003) | |
Name (RPA4, 0x001C0004) | |
Name (RPA5, 0x001C0005) | |
Name (RPA6, 0x001C0006) | |
Name (RPA7, 0x001C0007) | |
Name (PCHS, 0x00000002) | |
Name (SRMB, 0xF7FE0000) | |
Name (PML1, 0x00001003) | |
Name (PML2, 0x00001003) | |
Name (PML3, 0x00001003) | |
Name (PML4, 0x00001003) | |
Name (PML5, 0x00001003) | |
Name (PML6, 0x00001003) | |
Name (PML7, 0xFFFFFFFF) | |
Name (PML8, 0xFFFFFFFF) | |
Name (PNL1, 0x00001003) | |
Name (PNL2, 0x00001003) | |
Name (PNL3, 0x00001003) | |
Name (PNL4, 0x00001003) | |
Name (PNL5, 0x00001003) | |
Name (PNL6, 0x00001003) | |
Name (PNL7, 0xFFFFFFFF) | |
Name (PNL8, 0xFFFFFFFF) | |
Scope (\) | |
{ | |
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 (PMLP, SystemIO, Add (PMBS, 0x80), 0x20) | |
Field (PMLP, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x10), | |
Offset (0x11), | |
GE08, 1, | |
, 8, | |
GE17, 1, | |
, 27, | |
GE45, 1, | |
, 5, | |
GE51, 1, | |
Offset (0x20) | |
} | |
Field (PMLP, ByteAcc, NoLock, WriteAsZeros) | |
{ | |
Offset (0x01), | |
GS08, 1, | |
, 8, | |
GS17, 1, | |
, 27, | |
GS45, 1, | |
, 5, | |
GS51, 1, | |
Offset (0x10) | |
} | |
OperationRegion (GPRL, SystemIO, GPBS, 0x40) | |
Field (GPRL, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x01), | |
GO08, 1, | |
GO09, 1, | |
, 3, | |
GO13, 1, | |
GO14, 1, | |
, 2, | |
GO17, 1, | |
, 27, | |
GO45, 1, | |
, 5, | |
GO51, 1, | |
Offset (0x10), | |
Offset (0x30), | |
GR00, 32, | |
GR01, 32, | |
GR02, 32 | |
} | |
OperationRegion (RCRB, SystemMemory, SRCB, 0x4000) | |
Field (RCRB, DWordAcc, Lock, Preserve) | |
{ | |
Offset (0x1000), | |
Offset (0x2330), | |
AFEA, 32, | |
AFED, 32, | |
AFES, 16, | |
AFER, 16, | |
Offset (0x3000), | |
Offset (0x331C), | |
Offset (0x331F), | |
PMFS, 1, | |
Offset (0x3320), | |
CKEN, 32, | |
Offset (0x3404), | |
HPAS, 2, | |
, 5, | |
HPAE, 1, | |
Offset (0x3418), | |
, 1, | |
ADSD, 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) | |
} | |
OperationRegion (IO_P, SystemIO, 0x1000, 0x04) | |
Field (IO_P, ByteAcc, NoLock, Preserve) | |
{ | |
TRPF, 8 | |
} | |
} | |
Scope (_SB) | |
{ | |
Method (RDGI, 1, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
, 30, | |
TEMP, 1 | |
} | |
Return (TEMP) | |
} | |
Return (Zero) | |
} | |
Method (RDGP, 1, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
, 31, | |
TEMP, 1 | |
} | |
Return (TEMP) | |
} | |
Return (Zero) | |
} | |
Method (WTGP, 2, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
, 31, | |
TEMP, 1 | |
} | |
Store (Arg1, TEMP) | |
} | |
} | |
Method (WTIN, 2, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, ByteAcc, NoLock, Preserve) | |
{ | |
, 3, | |
TEMP, 1 | |
} | |
Store (Arg1, TEMP) | |
} | |
} | |
Method (WPGP, 2, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0104), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
TEMP, 2 | |
} | |
Store (Arg1, TEMP) | |
} | |
} | |
Method (GP2N, 2, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
TEMP, 1 | |
} | |
Store (Arg1, TEMP) | |
} | |
} | |
Method (GP2A, 2, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0104), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGP2, SystemIO, Local0, 0x04) | |
Field (LGP2, AnyAcc, NoLock, Preserve) | |
{ | |
GPWP, 2, | |
GPIS, 1 | |
} | |
If (LEqual (Arg1, One)) | |
{ | |
Store (Zero, GPIS) | |
Store (Zero, GPWP) | |
} | |
Else | |
{ | |
Store (0x02, GPWP) | |
Store (One, GPIS) | |
} | |
Store (Add (GPBS, 0x10), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x02) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
TEMP, 16 | |
} | |
If (LGreaterEqual (Arg0, 0x2D)) | |
{ | |
Subtract (Arg0, 0x28, Local1) | |
} | |
Else | |
{ | |
If (LLessEqual (Arg0, 0x0A)) | |
{ | |
Subtract (Arg0, 0x08, Local1) | |
} | |
Else | |
{ | |
Subtract (Arg0, 0x0A, Local1) | |
} | |
} | |
Store (ShiftLeft (One, Local1), Local2) | |
If (Arg1) | |
{ | |
Or (TEMP, Local2, TEMP) | |
} | |
Else | |
{ | |
And (TEMP, Not (Local2), TEMP) | |
} | |
} | |
} | |
Method (GP2B, 2, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (GPBS, 0x10), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x02) | |
Field (LGPI, AnyAcc, NoLock, Preserve) | |
{ | |
TEMP, 16 | |
} | |
If (LGreaterEqual (Arg0, 0x2D)) | |
{ | |
Subtract (Arg0, 0x28, Local1) | |
} | |
Else | |
{ | |
If (LLessEqual (Arg0, 0x0A)) | |
{ | |
Subtract (Arg0, 0x08, Local1) | |
} | |
Else | |
{ | |
Subtract (Arg0, 0x0A, Local1) | |
} | |
} | |
Store (ShiftLeft (One, Local1), Local2) | |
If (Arg1) | |
{ | |
Or (TEMP, Local2, TEMP) | |
} | |
Else | |
{ | |
And (TEMP, Not (Local2), TEMP) | |
} | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Name (LTRE, Zero) | |
Name (OBFF, Zero) | |
Name (LMSL, Zero) | |
Name (LNSL, Zero) | |
Device (EHC1) | |
{ | |
Name (_ADR, 0x001D0000) // _ADR: Address | |
OperationRegion (PWKE, PCI_Config, 0x54, 0x12) | |
Field (PWKE, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x01), | |
PMEE, 1, | |
, 6, | |
PMES, 1, | |
Offset (0x0E), | |
, 1, | |
PWUC, 8 | |
} | |
Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake | |
{ | |
If (Arg0) | |
{ | |
Store (Ones, PWUC) | |
} | |
Else | |
{ | |
Store (Zero, PWUC) | |
} | |
} | |
Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State | |
{ | |
Return (0x02) | |
} | |
Method (_S4D, 0, NotSerialized) // _S4D: S4 Device State | |
{ | |
Return (0x02) | |
} | |
Device (HUBN) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Device (PR01) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCA, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Return (UPCA) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Device (PR11) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
Device (PR12) | |
{ | |
Name (_ADR, 0x02) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
Device (PR13) | |
{ | |
Name (_ADR, 0x03) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LEqual (And (CDID, 0xF000), 0x9000)) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (PR14) | |
{ | |
Name (_ADR, 0x04) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Alias (SBV1, SDGV) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, | |
/* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
If (LEqual (SDGV, 0xFF)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (SDGV) | |
} | |
} | |
} | |
Break | |
} | |
} | |
Return (Zero) | |
} | |
} | |
Device (PR15) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Alias (SBV2, SDGV) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, | |
/* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
If (LEqual (SDGV, 0xFF)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (SDGV) | |
} | |
} | |
} | |
Break | |
} | |
} | |
Return (Zero) | |
} | |
} | |
Device (PR16) | |
{ | |
Name (_ADR, 0x06) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Alias (SBV1, SDGV) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, | |
/* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
If (LEqual (SDGV, 0xFF)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (SDGV) | |
} | |
} | |
} | |
Break | |
} | |
} | |
Return (Zero) | |
} | |
} | |
Device (PR17) | |
{ | |
Name (_ADR, 0x07) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Alias (SBV2, SDGV) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, | |
/* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
If (LEqual (SDGV, 0xFF)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (SDGV) | |
} | |
} | |
} | |
Break | |
} | |
} | |
Return (Zero) | |
} | |
} | |
Device (PR18) | |
{ | |
Name (_ADR, 0x08) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
} | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x6D, 0x03)) | |
} | |
} | |
Device (EHC2) | |
{ | |
Name (_ADR, 0x001A0000) // _ADR: Address | |
OperationRegion (PWKE, PCI_Config, 0x54, 0x12) | |
Field (PWKE, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x01), | |
PMEE, 1, | |
, 6, | |
PMES, 1, | |
Offset (0x0E), | |
, 1, | |
PWUC, 6 | |
} | |
Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake | |
{ | |
If (Arg0) | |
{ | |
Store (Ones, PWUC) | |
} | |
Else | |
{ | |
Store (Zero, PWUC) | |
} | |
} | |
Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State | |
{ | |
Return (0x02) | |
} | |
Method (_S4D, 0, NotSerialized) // _S4D: S4 Device State | |
{ | |
Return (0x02) | |
} | |
Device (HUBN) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Device (PR01) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCA, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Return (UPCA) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Device (PR11) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
Device (PR12) | |
{ | |
Name (_ADR, 0x02) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
Alias (SBV1, SDGV) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, | |
/* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
If (LEqual (SDGV, 0xFF)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (SDGV) | |
} | |
} | |
} | |
Break | |
} | |
} | |
Return (Zero) | |
} | |
} | |
Device (PR13) | |
{ | |
Name (_ADR, 0x03) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LEqual (And (CDID, 0xF000), 0x9000)) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
Alias (SBV2, SDGV) | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x8F, 0x70, 0xFC, 0xA5, 0x75, 0x87, 0xA6, 0x4B, | |
/* 0008 */ 0xBD, 0x0C, 0xBA, 0x90, 0xA1, 0xEC, 0x72, 0xF8 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
If (LEqual (SDGV, 0xFF)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (SDGV) | |
} | |
} | |
} | |
Break | |
} | |
} | |
Return (Zero) | |
} | |
} | |
Device (PR14) | |
{ | |
Name (_ADR, 0x04) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xE1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
Device (PR15) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
Device (PR16) | |
{ | |
Name (_ADR, 0x06) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0xB1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
} | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x6D, 0x03)) | |
} | |
} | |
Device (XHC) | |
{ | |
Name (_ADR, 0x00140000) // _ADR: Address | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
If (LEqual (S0ID, One)) | |
{ | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
Return (Package (0x00) {}) | |
} | |
} | |
OperationRegion (XPRT, PCI_Config, Zero, 0x0100) | |
Field (XPRT, AnyAcc, NoLock, Preserve) | |
{ | |
DVID, 16, | |
Offset (0x74), | |
D0D3, 2, | |
Offset (0x75), | |
PMEE, 1, | |
, 6, | |
PMES, 1, | |
Offset (0xB0), | |
, 13, | |
MB13, 1, | |
MB14, 1, | |
Offset (0xB4), | |
Offset (0xD0), | |
PR2, 32, | |
PR2M, 32, | |
PR3, 32, | |
PR3M, 32 | |
} | |
OperationRegion (XHCP, SystemMemory, Add (PEBS, 0x000A0000), 0x0100) | |
Field (XHCP, AnyAcc, Lock, Preserve) | |
{ | |
Offset (0x04), | |
PDBM, 16, | |
Offset (0x10), | |
MEMB, 64 | |
} | |
Method (PR2S, 1, Serialized) | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
While (One) | |
{ | |
Store (Arg0, _T_0) | |
If (LEqual (_T_0, One)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (0x02) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03)) | |
{ | |
Return (0x04) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x04)) | |
{ | |
Return (0x08) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x05)) | |
{ | |
Return (0x0100) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x06)) | |
{ | |
Return (0x0200) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x07)) | |
{ | |
Return (0x0400) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x08)) | |
{ | |
Return (0x0800) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x09)) | |
{ | |
Return (0x10) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0A)) | |
{ | |
Return (0x20) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0B)) | |
{ | |
Return (0x1000) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0C)) | |
{ | |
Return (0x2000) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0D)) | |
{ | |
Return (0x40) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0E)) | |
{ | |
Return (0x80) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0F)) | |
{ | |
Return (0x4000) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Else | |
{ | |
While (One) | |
{ | |
Store (Arg0, _T_1) | |
If (LEqual (_T_1, One)) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x02)) | |
{ | |
Return (0x02) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x03)) | |
{ | |
Return (0x04) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x04)) | |
{ | |
Return (0x08) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x05)) | |
{ | |
Return (0x10) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x06)) | |
{ | |
Return (0x20) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x07)) | |
{ | |
Return (0x40) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x08)) | |
{ | |
Return (0x80) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, 0x09)) | |
{ | |
Return (0x0100) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
} | |
Name (XRST, Zero) | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
If (LEqual (DVID, 0xFFFF)) | |
{ | |
Return (Zero) | |
} | |
Store (MEMB, Local2) | |
Store (PDBM, Local1) | |
And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) | |
Store (SRMB, MEMB) | |
Or (PDBM, 0x02, PDBM) | |
OperationRegion (MCA1, SystemMemory, SRMB, 0x9000) | |
Field (MCA1, DWordAcc, Lock, Preserve) | |
{ | |
Offset (0x510), | |
R510, 32, | |
Offset (0x520), | |
R520, 32, | |
Offset (0x530), | |
R530, 32, | |
Offset (0x540), | |
R540, 32, | |
Offset (0x80E0), | |
, 15, | |
AX15, 1, | |
Offset (0x8154), | |
, 31, | |
CLK2, 1, | |
Offset (0x816C), | |
, 2, | |
CLK0, 1, | |
, 11, | |
CLK1, 1 | |
} | |
Store (D0D3, Local3) | |
If (LEqual (Local3, 0x03)) | |
{ | |
Store (Zero, D0D3) | |
} | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (Zero, MB13) | |
Store (Zero, MB14) | |
Store (Zero, CLK0) | |
Store (Zero, CLK1) | |
} | |
Store (One, CLK2) | |
If (LEqual (PCHS, 0x02)) | |
{ | |
While (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( | |
And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 0x03FB), | |
0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) | |
{ | |
Stall (0x32) | |
} | |
Store (R510, Local0) | |
If (LEqual (And (Local0, 0x000203FB), 0x02A0)) | |
{ | |
Or (Local0, 0x80000000, R510) | |
While (LEqual (And (R510, 0x00180000), Zero)) | |
{ | |
Stall (0x32) | |
} | |
And (R510, 0xFFFFFFFFFFFFFFFD, Local0) | |
Or (Local0, 0x00FE0000, R510) | |
} | |
Store (R520, Local0) | |
If (LEqual (And (Local0, 0x000203FB), 0x02A0)) | |
{ | |
Or (Local0, 0x80000000, R520) | |
While (LEqual (And (R520, 0x00180000), Zero)) | |
{ | |
Stall (0x32) | |
} | |
And (R520, 0xFFFFFFFFFFFFFFFD, Local0) | |
Or (Local0, 0x00FE0000, R520) | |
} | |
Store (R530, Local0) | |
If (LEqual (And (Local0, 0x000203FB), 0x02A0)) | |
{ | |
Or (Local0, 0x80000000, R530) | |
While (LEqual (And (R530, 0x00180000), Zero)) | |
{ | |
Stall (0x32) | |
} | |
And (R530, 0xFFFFFFFFFFFFFFFD, Local0) | |
Or (Local0, 0x00FE0000, R530) | |
} | |
Store (R540, Local0) | |
If (LEqual (And (Local0, 0x000203FB), 0x02A0)) | |
{ | |
Or (Local0, 0x80000000, R540) | |
While (LEqual (And (R540, 0x00180000), Zero)) | |
{ | |
Stall (0x32) | |
} | |
And (R540, 0xFFFFFFFFFFFFFFFD, Local0) | |
Or (Local0, 0x00FE0000, R540) | |
} | |
Store (One, AX15) | |
} | |
If (CondRefOf (\_SB.PCI0.XHC.PS0X)) | |
{ | |
PS0X () | |
} | |
If (LEqual (Local3, 0x03)) | |
{ | |
Store (0x03, D0D3) | |
} | |
And (PDBM, 0xFFFFFFFFFFFFFFFD, PDBM) | |
Store (Local2, MEMB) | |
Store (Local1, PDBM) | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
If (LEqual (DVID, 0xFFFF)) | |
{ | |
Return (Zero) | |
} | |
Store (One, PMES) | |
Store (One, PMEE) | |
Store (MEMB, Local2) | |
Store (PDBM, Local1) | |
And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) | |
Store (SRMB, MEMB) | |
Or (PDBM, 0x02, PDBM) | |
OperationRegion (MCA1, SystemMemory, SRMB, 0x9000) | |
Field (MCA1, DWordAcc, Lock, Preserve) | |
{ | |
Offset (0x80E0), | |
, 15, | |
AX15, 1, | |
Offset (0x8154), | |
, 31, | |
CLK2, 1, | |
Offset (0x816C), | |
, 2, | |
CLK0, 1, | |
, 11, | |
CLK1, 1, | |
Offset (0x8170) | |
} | |
Store (D0D3, Local3) | |
If (LEqual (Local3, 0x03)) | |
{ | |
Store (Zero, D0D3) | |
} | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (One, MB13) | |
Store (One, MB14) | |
Store (One, CLK0) | |
Store (One, CLK1) | |
} | |
Store (Zero, CLK2) | |
If (LEqual (PCHS, 0x02)) | |
{ | |
Store (Zero, AX15) | |
} | |
If (CondRefOf (\_SB.PCI0.XHC.PS3X)) | |
{ | |
PS3X () | |
} | |
If (LEqual (Local3, 0x03)) | |
{ | |
Store (0x03, D0D3) | |
} | |
And (PDBM, 0xFFFFFFFFFFFFFFFD, PDBM) | |
Store (Local2, MEMB) | |
Store (Local1, PDBM) | |
} | |
Method (CUID, 1, Serialized) | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xA9, 0x12, 0x95, 0x7C, 0x05, 0x17, 0xB4, 0x4C, | |
/* 0008 */ 0xAF, 0x7D, 0x50, 0x6A, 0x24, 0x23, 0xAB, 0x71 | |
})) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (POSC, 3, Serialized) | |
{ | |
CreateDWordField (Arg2, Zero, CDW1) | |
CreateDWordField (Arg2, 0x08, CDW3) | |
If (LEqual (XHCI, Zero)) | |
{ | |
Or (CDW1, 0x02, CDW1) | |
} | |
If (LNot (And (CDW1, One))) | |
{ | |
If (And (CDW3, One)) | |
{ | |
ESEL () | |
} | |
Else | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
If (LGreater (Arg0, One)) | |
{ | |
XSEL () | |
} | |
Else | |
{ | |
Or (CDW1, 0x0A, CDW1) | |
} | |
} | |
Else | |
{ | |
If (LGreater (Arg0, 0x02)) | |
{ | |
XSEL () | |
} | |
Else | |
{ | |
Or (CDW1, 0x0A, CDW1) | |
} | |
} | |
} | |
} | |
Return (Arg2) | |
} | |
Method (XSEL, 0, Serialized) | |
{ | |
If (LOr (LEqual (XHCI, 0x02), LEqual (XHCI, 0x03))) | |
{ | |
Store (One, XUSB) | |
Store (One, XRST) | |
Store (Zero, Local0) | |
And (PR3, 0xFFFFFFC0, Local0) | |
Or (Local0, PR3M, PR3) | |
Store (Zero, Local0) | |
And (PR2, 0xFFFF8000, Local0) | |
Or (Local0, PR2M, PR2) | |
} | |
} | |
Method (ESEL, 0, Serialized) | |
{ | |
If (LOr (LEqual (XHCI, 0x02), LEqual (XHCI, 0x03))) | |
{ | |
And (PR3, 0xFFFFFFC0, PR3) | |
And (PR2, 0xFFFF8000, PR2) | |
Store (Zero, XUSB) | |
Store (Zero, XRST) | |
} | |
} | |
Method (XWAK, 0, Serialized) | |
{ | |
If (LOr (LEqual (XUSB, One), LEqual (XRST, One))) | |
{ | |
XSEL () | |
} | |
} | |
Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State | |
{ | |
Return (0x02) | |
} | |
Method (_S4D, 0, NotSerialized) // _S4D: S4 Device State | |
{ | |
Return (0x02) | |
} | |
Device (RHUB) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Device (HS01) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (One), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, Zero)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x69, 0x0C, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, Zero)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (One), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS02) | |
{ | |
Name (_ADR, 0x02) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x02), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, One)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x69, 0x0C, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, One)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x02), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS03) | |
{ | |
Name (_ADR, 0x03) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x03), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x02)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x02)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x03), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS04) | |
{ | |
Name (_ADR, 0x04) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x04), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x03)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x03)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x04), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS05) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x05), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x04)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x69, 0x0C, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x04)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x05), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS06) | |
{ | |
Name (_ADR, 0x06) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x06), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x05)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x69, 0x0C, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x05)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x06), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS07) | |
{ | |
Name (_ADR, 0x07) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x07), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x06)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x06)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x07), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS08) | |
{ | |
Name (_ADR, 0x08) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x08), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x07)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x07)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x08), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS09) | |
{ | |
Name (_ADR, 0x09) // _ADR: Address | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x09), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x08)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x08)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x09), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
If (LEqual (And (CDID, 0xF000), 0x9000)) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS10) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0A) | |
} | |
Else | |
{ | |
Return (0xFA) | |
} | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x0A), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x09)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x09)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x0A), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS11) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0B) | |
} | |
Else | |
{ | |
Return (0xFB) | |
} | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x0B), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x0A)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x0A)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x0B), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS12) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0C) | |
} | |
Else | |
{ | |
Return (0xFC) | |
} | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x0C), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x0B)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x0B)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x0C), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS13) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0D) | |
} | |
Else | |
{ | |
Return (0xFD) | |
} | |
} | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x0D), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x0C)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x0C)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x0D), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS14) | |
{ | |
Name (_ADR, 0x0E) // _ADR: Address | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x0E), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x0D)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x0D)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x0E), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (HS15) | |
{ | |
Name (_ADR, 0x0F) // _ADR: Address | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR2S (0x0F), PR2))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x0E)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x0E)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR2S (0x0F), PR2))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (SSP1) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x10) | |
} | |
Else | |
{ | |
Return (0x0A) | |
} | |
} | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR3, One))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, Zero)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x69, 0x0C, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, Zero)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR3, One))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (SSP2) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x11) | |
} | |
Else | |
{ | |
Return (0x0B) | |
} | |
} | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR3, 0x02))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, One)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x69, 0x0C, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, One)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR3, 0x02))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (SSP3) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x12) | |
} | |
Else | |
{ | |
Return (0x0C) | |
} | |
} | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR3, 0x04))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x02)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x02)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR3, 0x04))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (SSP4) | |
{ | |
Method (_ADR, 0, Serialized) // _ADR: Address | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x13) | |
} | |
Else | |
{ | |
Return (0x0D) | |
} | |
} | |
Name (_STA, 0x0F) // _STA: Status | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR3, 0x08))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x03)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x03)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR3, 0x08))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (SSP5) | |
{ | |
Name (_ADR, 0x14) // _ADR: Address | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR3, 0x10))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x04)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x04)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR3, 0x10))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
Device (SSP6) | |
{ | |
Name (_ADR, 0x15) // _ADR: Address | |
Method (_STA, 0, Serialized) // _STA: Status | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
0xFF, | |
0x03, | |
Zero, | |
Zero | |
}) | |
If (LNot (And (PR3, 0x20))) | |
{ | |
Store (Zero, Index (UPCP, Zero)) | |
} | |
Store (DerefOf (Index (CNTB, 0x05)), Local0) | |
Store (Local0, Index (UPCP, Zero)) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x10) | |
{ | |
/* 0000 */ 0x01, 0xC6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x71, 0x0C, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00 | |
} | |
}) | |
Store (DerefOf (Index (VISB, 0x05)), Local0) | |
Store (DerefOf (Index (DerefOf (Index (PLDP, Zero)), 0x08)), | |
Local1) | |
And (Local1, 0xFE, Local1) | |
Or (Local1, Local0, Local1) | |
Store (Local1, Index (DerefOf (Index (PLDP, Zero)), 0x08)) | |
CreateBitField (DerefOf (Index (PLDP, Zero)), 0x40, VIS) | |
If (LNot (And (PR3, 0x20))) | |
{ | |
And (VIS, Zero, VIS) | |
} | |
Return (PLDP) | |
} | |
} | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x6D, 0x03)) | |
} | |
} | |
Device (HDEF) | |
{ | |
Name (_ADR, 0x001B0000) // _ADR: Address | |
OperationRegion (HDAR, PCI_Config, 0x4C, 0x10) | |
Field (HDAR, WordAcc, NoLock, Preserve) | |
{ | |
DCKA, 1, | |
Offset (0x01), | |
DCKM, 1, | |
, 6, | |
DCKS, 1, | |
Offset (0x08), | |
Offset (0x09), | |
PMEE, 1, | |
, 6, | |
PMES, 1 | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (GPRW (0x6D, 0x04)) | |
} | |
} | |
Scope (\_SB.PCI0) | |
{ | |
Device (SIRC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID | |
Name (_UID, 0x04) // _UID: Unique ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (And (CDID, 0xF000), 0x8000)) | |
{ | |
Return (Zero) | |
} | |
Return (0x0F) | |
} | |
Name (BUF1, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y14) | |
}) | |
Name (BUF2, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y15) | |
}) | |
Name (BUF3, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y16) | |
}) | |
Name (BUF4, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y17) | |
}) | |
Name (BUF5, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y18) | |
}) | |
Name (BUF6, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y19) | |
}) | |
Name (BUF7, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y1A) | |
}) | |
Name (BUF8, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y1B) | |
}) | |
Name (BUFL, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00000008, // Address Length | |
_Y1C) | |
}) | |
Name (BUFH, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00000FEC, // Address Length | |
_Y1D) | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Store (ResourceTemplate () | |
{ | |
}, Local0) | |
CreateDWordField (BUF1, \_SB.PCI0.SIRC._Y14._BAS, BR01) // _BAS: Base Address | |
CreateDWordField (BUF2, \_SB.PCI0.SIRC._Y15._BAS, BR02) // _BAS: Base Address | |
CreateDWordField (BUF3, \_SB.PCI0.SIRC._Y16._BAS, BR03) // _BAS: Base Address | |
CreateDWordField (BUF4, \_SB.PCI0.SIRC._Y17._BAS, BR04) // _BAS: Base Address | |
CreateDWordField (BUF5, \_SB.PCI0.SIRC._Y18._BAS, BR05) // _BAS: Base Address | |
CreateDWordField (BUF6, \_SB.PCI0.SIRC._Y19._BAS, BR06) // _BAS: Base Address | |
CreateDWordField (BUF7, \_SB.PCI0.SIRC._Y1A._BAS, BR07) // _BAS: Base Address | |
CreateDWordField (BUF8, \_SB.PCI0.SIRC._Y1B._BAS, BR08) // _BAS: Base Address | |
If (LNotEqual (BR01, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF1, Local0) | |
} | |
If (LNotEqual (BR02, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF2, Local0) | |
} | |
If (LNotEqual (BR03, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF3, Local0) | |
} | |
If (LNotEqual (BR04, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF4, Local0) | |
} | |
If (LNotEqual (BR05, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF5, Local0) | |
} | |
If (LNotEqual (BR06, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF6, Local0) | |
} | |
If (LNotEqual (BR07, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF7, Local0) | |
} | |
If (LNotEqual (BR08, Zero)) | |
{ | |
ConcatenateResTemplate (Local0, BUF8, Local0) | |
OperationRegion (SDCH, SystemMemory, BR08, 0x40) | |
Field (SDCH, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x10), | |
BAR0, 32 | |
} | |
CreateDWordField (BUFL, \_SB.PCI0.SIRC._Y1C._BAS, LBAS) // _BAS: Base Address | |
CreateDWordField (BUFH, \_SB.PCI0.SIRC._Y1D._BAS, HBAS) // _BAS: Base Address | |
Add (BAR0, 0x1000, LBAS) | |
Add (BAR0, 0x1014, HBAS) | |
ConcatenateResTemplate (Local0, BUFL, Local0) | |
ConcatenateResTemplate (Local0, BUFH, Local0) | |
} | |
Return (Local0) | |
} | |
Method (CNTR, 1, Serialized) | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (Arg0), _T_0) | |
If (LEqual (_T_0, One)) | |
{ | |
CreateDWordField (BUF1, \_SB.PCI0.SIRC._Y14._BAS, BAR1) // _BAS: Base Address | |
Return (BAR1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
CreateDWordField (BUF2, \_SB.PCI0.SIRC._Y15._BAS, BAR2) // _BAS: Base Address | |
Return (BAR2) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03)) | |
{ | |
CreateDWordField (BUF3, \_SB.PCI0.SIRC._Y16._BAS, BAR3) // _BAS: Base Address | |
Return (BAR3) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x04)) | |
{ | |
CreateDWordField (BUF4, \_SB.PCI0.SIRC._Y17._BAS, BAR4) // _BAS: Base Address | |
Return (BAR4) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x05)) | |
{ | |
CreateDWordField (BUF5, \_SB.PCI0.SIRC._Y18._BAS, BAR5) // _BAS: Base Address | |
Return (BAR5) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x06)) | |
{ | |
CreateDWordField (BUF6, \_SB.PCI0.SIRC._Y19._BAS, BAR6) // _BAS: Base Address | |
Return (BAR6) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x07)) | |
{ | |
CreateDWordField (BUF7, \_SB.PCI0.SIRC._Y1A._BAS, BAR7) // _BAS: Base Address | |
Return (BAR7) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x08)) | |
{ | |
CreateDWordField (BUF8, \_SB.PCI0.SIRC._Y1B._BAS, BAR8) // _BAS: Base Address | |
Return (BAR8) | |
} | |
Else | |
{ | |
Return (0xFFFFFFFF) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
} | |
Device (GPI0) | |
{ | |
Name (_HID, "INT33C7") // _HID: Hardware ID | |
Name (_CID, "INT33C7") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (RBUF, ResourceTemplate () | |
{ | |
DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, | |
0x00000000, // Granularity | |
0x00001C00, // Range Minimum | |
0x00001FFF, // Range Maximum | |
0x00000000, // Translation Offset | |
0x00000400, // Length | |
,, _Y1E, TypeStatic) | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.GPI0._Y1E._MIN, BVAL) // _MIN: Minimum Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
} | |
Device (SDMA) | |
{ | |
Name (_HID, "INTL9C60") // _HID: Hardware ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_ADR, 0x00150000) // _ADR: Address | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y1F) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000014, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
Method (PTD3, 0, NotSerialized) | |
{ | |
If (LNotEqual (^^SIRC.CNTR (One), Zero)) | |
{ | |
Add (^^SIRC.CNTR (One), 0x84, Local0) | |
OperationRegion (DMB1, SystemMemory, Local0, 0x04) | |
Field (DMB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
} | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.SDMA._Y1F._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LAnd (LEqual (DOSD, 0x02), LEqual (OSYS, 0x07DC))) | |
{ | |
PTD3 () | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
} | |
Device (I2C0) | |
{ | |
Name (_HID, "INT33C2") // _HID: Hardware ID | |
Name (_CID, "INT33C2") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_ADR, 0x00150001) // _ADR: Address | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("I2C0 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("I2C0 DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("I2C0 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
Method (SSCN, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x03) | |
{ | |
0x01B0, | |
0x01FB, | |
0x09 | |
}) | |
Store (SSH0, Index (PKG, Zero)) | |
Store (SSL0, Index (PKG, One)) | |
Store (SSD0, Index (PKG, 0x02)) | |
Return (PKG) | |
} | |
Method (FMCN, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x03) | |
{ | |
0x48, | |
0xA0, | |
0x09 | |
}) | |
Store (FMH0, Index (PKG, Zero)) | |
Store (FML0, Index (PKG, One)) | |
Store (FMD0, Index (PKG, 0x02)) | |
Return (PKG) | |
} | |
Method (FPCN, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x03) | |
{ | |
0x1A, | |
0x32, | |
0x05 | |
}) | |
Store (FPH0, Index (PKG, Zero)) | |
Store (FPL0, Index (PKG, One)) | |
Store (FPD0, Index (PKG, 0x02)) | |
Return (PKG) | |
} | |
Method (M0D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M0C0, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M1D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0x07D0 | |
}) | |
Store (M1C0, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M0D0, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
Zero | |
}) | |
Store (M2C0, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y20) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000015, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (DBUF, ResourceTemplate () | |
{ | |
FixedDMA (0x0018, 0x0004, Width32bit, ) | |
FixedDMA (0x0019, 0x0005, Width32bit, ) | |
}) | |
If (LNotEqual (^^SDMA._STA (), Zero)) | |
{ | |
Return (ConcatenateResTemplate (RBUF, DBUF)) | |
} | |
Else | |
{ | |
Return (RBUF) | |
} | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.I2C0._Y20._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("I2C0 Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x02), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x02), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
If (CondRefOf (\_SB.PCI0.I2C0.PS0X)) | |
{ | |
PS0X () | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("I2C0 Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x02), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x02), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
If (CondRefOf (\_SB.PCI0.I2C0.PS3X)) | |
{ | |
PS3X () | |
} | |
} | |
} | |
Device (I2C1) | |
{ | |
Name (_HID, "INT33C3") // _HID: Hardware ID | |
Name (_CID, "INT33C3") // _CID: Compatible ID | |
Name (_UID, 0x02) // _UID: Unique ID | |
Name (_ADR, 0x00150002) // _ADR: Address | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("I2C1 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("I2C1 DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("I2C1 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
Method (SSCN, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x03) | |
{ | |
0x01B0, | |
0x01FB, | |
0x09 | |
}) | |
Store (SSH1, Index (PKG, Zero)) | |
Store (SSL1, Index (PKG, One)) | |
Store (SSD1, Index (PKG, 0x02)) | |
Return (PKG) | |
} | |
Method (FMCN, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x03) | |
{ | |
0x48, | |
0xA0, | |
0x09 | |
}) | |
Store (FMH1, Index (PKG, Zero)) | |
Store (FML1, Index (PKG, One)) | |
Store (FMD1, Index (PKG, 0x02)) | |
Return (PKG) | |
} | |
Method (FPCN, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x03) | |
{ | |
0x1A, | |
0x32, | |
0x05 | |
}) | |
Store (FPH1, Index (PKG, Zero)) | |
Store (FPL1, Index (PKG, One)) | |
Store (FPD1, Index (PKG, 0x02)) | |
Return (PKG) | |
} | |
Method (M0D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M0C1, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M1D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0x07D0 | |
}) | |
Store (M1C1, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M0D0, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
Zero | |
}) | |
Store (M2C1, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y21) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000015, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (DBUF, ResourceTemplate () | |
{ | |
FixedDMA (0x001A, 0x0006, Width32bit, ) | |
FixedDMA (0x001B, 0x0007, Width32bit, ) | |
}) | |
If (LNotEqual (^^SDMA._STA (), Zero)) | |
{ | |
Return (ConcatenateResTemplate (RBUF, DBUF)) | |
} | |
Else | |
{ | |
Return (RBUF) | |
} | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.I2C1._Y21._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("I2C1 Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x03), Zero)) | |
{ | |
If (CondRefOf (\_SB.PCI0.I2C1.PS0X)) | |
{ | |
PS0X () | |
} | |
Add (^^SIRC.CNTR (0x03), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("I2C1 Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x03), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x03), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
} | |
Device (SPI0) | |
{ | |
Name (_HID, "INT33C0") // _HID: Hardware ID | |
Name (_CID, "INT33C0") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_ADR, 0x00150003) // _ADR: Address | |
Method (M0D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M0C2, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M1D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0x07D0 | |
}) | |
Store (M1C2, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y22) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000015, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.SPI0._Y22._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("SPI0 Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x04), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x04), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("SPI0 Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x04), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x04), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
} | |
Device (SPI1) | |
{ | |
Name (_HID, "INT33C1") // _HID: Hardware ID | |
Name (_CID, "INT33C1") // _CID: Compatible ID | |
Name (_UID, 0x02) // _UID: Unique ID | |
Name (_ADR, 0x00150004) // _ADR: Address | |
Method (M0D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M0C3, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M1D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0x07D0 | |
}) | |
Store (M1C3, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y23) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000015, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (DBUF, ResourceTemplate () | |
{ | |
FixedDMA (0x0010, 0x0000, Width32bit, ) | |
FixedDMA (0x0011, 0x0001, Width32bit, ) | |
}) | |
If (LNotEqual (^^SDMA._STA (), Zero)) | |
{ | |
Return (ConcatenateResTemplate (RBUF, DBUF)) | |
} | |
Else | |
{ | |
Return (RBUF) | |
} | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.SPI1._Y23._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("SPI1 Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x05), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x05), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("SPI1 Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x05), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x05), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
} | |
Device (UA00) | |
{ | |
Name (_HID, "INT33C4") // _HID: Hardware ID | |
Name (_CID, "INT33C4") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_ADR, 0x00150005) // _ADR: Address | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("UA00 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("UA00 DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("UA00 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
Method (M0D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M0C4, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M1D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M1C4, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y24) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000015, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.UA00._Y24._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("UAR0 Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x06), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x06), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("UAR0 Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x06), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x06), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
} | |
Device (UA01) | |
{ | |
Name (_HID, "INT33C5") // _HID: Hardware ID | |
Name (_CID, "INT33C5") // _CID: Compatible ID | |
Name (_UID, 0x02) // _UID: Unique ID | |
Name (_ADR, 0x00150006) // _ADR: Address | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("UA01 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("UA01 DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("UA01 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
Method (M0D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M0C5, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Method (M1D3, 0, NotSerialized) | |
{ | |
Name (PKG, Package (0x01) | |
{ | |
0xC8 | |
}) | |
Store (M1C5, Index (PKG, Zero)) | |
Return (PKG) | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y25) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000015, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (DBUF, ResourceTemplate () | |
{ | |
FixedDMA (0x0016, 0x0002, Width32bit, ) | |
FixedDMA (0x0017, 0x0003, Width32bit, ) | |
}) | |
If (LNotEqual (^^SDMA._STA (), Zero)) | |
{ | |
Return (ConcatenateResTemplate (RBUF, DBUF)) | |
} | |
Else | |
{ | |
Return (RBUF) | |
} | |
} | |
Method (_HRV, 0, NotSerialized) // _HRV: Hardware Revision | |
{ | |
Return (CRID) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.UA01._Y25._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("UAR1 Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x07), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x07), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("UAR1 Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x07), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x07), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
} | |
Device (SDHC) | |
{ | |
Name (_HID, "INT33C6") // _HID: Hardware ID | |
Name (_CID, "PNP0D40") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_ADR, 0x00170000) // _ADR: Address | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("SDHC DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("SDHC DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("SDHC DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y26) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, ,, ) | |
{ | |
0x00000016, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
CreateDWordField (RBUF, \_SB.PCI0.SDHC._Y26._BAS, BVAL) // _BAS: Base Address | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (LLess (OSYS, 0x07DC)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("SDHC Ctrlr D0") | |
If (LNotEqual (^^SIRC.CNTR (0x08), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x08), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
And (TEMP, 0xFFFFFFFC, TEMP) | |
Store (TEMP, Local0) | |
} | |
If (CondRefOf (\_SB.PCI0.SDHC.PS0X)) | |
{ | |
PS0X () | |
} | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("SDHC Ctrlr D3") | |
If (LNotEqual (^^SIRC.CNTR (0x08), Zero)) | |
{ | |
Add (^^SIRC.CNTR (0x08), 0x84, Local0) | |
OperationRegion (ICB1, SystemMemory, Local0, 0x04) | |
Field (ICB1, DWordAcc, NoLock, Preserve) | |
{ | |
TEMP, 32 | |
} | |
Or (TEMP, 0x03, TEMP) | |
Store (TEMP, Local0) | |
} | |
} | |
} | |
} | |
Scope (\_SB.PCI0) | |
{ | |
} | |
Scope (I2C0) | |
{ | |
Device (ACD0) | |
{ | |
Name (_ADR, 0x1C) // _ADR: Address | |
Name (_HID, "INT33CA") // _HID: Hardware ID | |
Name (_CID, "INT33CA") // _CID: Compatible ID | |
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33CA") // _DDN: DOS Device Name | |
Name (_UID, One) // _UID: Unique ID | |
Name (MCLK, Zero) | |
Name (SCLK, 0x09) | |
Name (SSPM, Zero) | |
Name (RBUF, ResourceTemplate () | |
{ | |
I2cSerialBus (0x001C, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C0", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, ) | |
{ | |
0x00000025, | |
} | |
}) | |
Name (EOD, One) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings | |
{ | |
Store (One, EOD) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LOr (LNotEqual (CODS, Zero), LNotEqual (ADSD, Zero))) | |
{ | |
Return (Zero) | |
} | |
If (And (EOD, One, EOD)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (0x0D) | |
} | |
} | |
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device | |
{ | |
Store (Zero, EOD) | |
} | |
} | |
Device (ACD1) | |
{ | |
Name (_ADR, 0x4A) // _ADR: Address | |
Name (_HID, "INT33C9") // _HID: Hardware ID | |
Name (_CID, "INT33C9") // _CID: Compatible ID | |
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33C9") // _DDN: DOS Device Name | |
Name (_UID, One) // _UID: Unique ID | |
Name (MCLK, 0x06) | |
Name (SCLK, Zero) | |
Name (SSPM, One) | |
Name (RBUF, ResourceTemplate () | |
{ | |
I2cSerialBus (0x004A, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C0", | |
0x00, ResourceConsumer, , | |
) | |
}) | |
Name (EOD, One) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Store (One, EOD) | |
Return (RBUF) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LOr (LNotEqual (CODS, One), LNotEqual (ADSD, Zero))) | |
{ | |
Return (Zero) | |
} | |
If (And (EOD, One, EOD)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (0x0D) | |
} | |
} | |
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device | |
{ | |
Store (Zero, EOD) | |
} | |
} | |
Device (ACD2) | |
{ | |
Name (_ADR, 0x69) // _ADR: Address | |
Name (_HID, "INT33CB") // _HID: Hardware ID | |
Name (_CID, "INT33CB") // _CID: Compatible ID | |
Name (_DDN, "Intel(R) Smart Sound Technology Audio Codec - INT33CB") // _DDN: DOS Device Name | |
Name (_UID, One) // _UID: Unique ID | |
Name (MCLK, 0x18) | |
Name (SCLK, 0x09) | |
Name (SSPM, Zero) | |
Name (RBUF, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0069, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C0", | |
0x00, ResourceConsumer, , | |
) | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly, | |
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x0033 | |
} | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly, | |
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x0035 | |
} | |
Interrupt (ResourceConsumer, Edge, ActiveHigh, ExclusiveAndWake, ,, ) | |
{ | |
0x00000023, | |
} | |
Interrupt (ResourceConsumer, Edge, ActiveHigh, ExclusiveAndWake, ,, ) | |
{ | |
0x00000025, | |
} | |
}) | |
Name (EOD, One) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Return (RBUF) | |
} | |
Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings | |
{ | |
Store (One, EOD) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LOr (LNotEqual (CODS, 0x02), LNotEqual (ADSD, Zero))) | |
{ | |
Return (Zero) | |
} | |
If (And (EOD, One, EOD)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (0x0D) | |
} | |
} | |
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device | |
{ | |
Store (Zero, EOD) | |
} | |
} | |
Device (SHUB) | |
{ | |
Name (_HID, "INT33D1") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_UID, One) // _UID: Unique ID | |
Name (_RMV, One) // _RMV: Removal Status | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LNotEqual (And (SDS0, One), One)) | |
{ | |
Return (Zero) | |
} | |
If (LAnd (LEqual (RDGP (0x2C), One), LEqual (_HID, "INT33D1"))) | |
{ | |
Return (0x0F) | |
} | |
If (LAnd (LEqual (RDGP (0x2C), Zero), LEqual (_HID, "INT33D7"))) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0040, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C0", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x0000001C, | |
} | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (DFUD) | |
{ | |
Name (_HID, "INT33D7") // _HID: Hardware ID | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_UID, One) // _UID: Unique ID | |
Name (_RMV, One) // _RMV: Removal Status | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LNotEqual (And (SDS0, One), One)) | |
{ | |
Return (Zero) | |
} | |
If (LAnd (LEqual (RDGP (0x2C), One), LEqual (_HID, "INT33D1"))) | |
{ | |
Return (0x0F) | |
} | |
If (LAnd (LEqual (RDGP (0x2C), Zero), LEqual (_HID, "INT33D7"))) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0040, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C0", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x0000001C, | |
} | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (TPD4) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_HID, "MSFT1111") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS0, 0x04), 0x04)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0060, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C0", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x0000001C, | |
} | |
}) | |
Return (SBFI) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
Return (Package (0x02) | |
{ | |
0x0E, | |
0x04 | |
}) | |
} | |
Method (_S3W, 0, NotSerialized) // _S3W: S3 Device Wake State | |
{ | |
Return (0x03) | |
} | |
Method (_S4W, 0, NotSerialized) // _S4W: S4 Device Wake State | |
{ | |
Return (0x03) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("TPD4 Ctrlr D0") | |
WTIN (0x0E, Zero) | |
Store (One, GO14) | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("TPD4 Ctrlr D3") | |
WTIN (0x0E, One) | |
Store (Zero, GO14) | |
} | |
} | |
} | |
Scope (I2C1) | |
{ | |
Device (TPL0) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_HID, "ATML1000") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, One), One)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x004C, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000022, | |
} | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (TPFU) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_HID, "ATML2000") // _HID: Hardware ID | |
Name (_CID, "PNP0C02") // _CID: Compatible ID | |
Name (_UID, 0x0A) // _UID: Unique ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LAnd (And (SDS1, One), And (APFU, One))) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0026, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
I2cSerialBus (0x0027, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (TPL1) | |
{ | |
Name (_HID, "ELAN1001") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x02), 0x02)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0010, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000022, | |
} | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (TPL2) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "NTRG0001") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x20), 0x20)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0007, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000022, | |
} | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (TPL3) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "EETI7900") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (0x0F) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x40), 0x40)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x002A, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000022, | |
} | |
}) | |
Return (SBFI) | |
} | |
} | |
Device (TPD0) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "ELAN1000") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x04), 0x04)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0015, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, _Y27) | |
{ | |
0x00000019, | |
} | |
}) | |
If (LEqual (GR13, One)) | |
{ | |
CreateByteField (SBFI, \_SB.PCI0.I2C1.TPD0._CRS._Y27._INT, VAL3) // _INT: Interrupts | |
Store (0x1B, VAL3) | |
} | |
Return (SBFI) | |
} | |
} | |
Device (TPD1) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "MSFT0001") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (0x20) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x08), 0x08)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0020, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, _Y28) | |
{ | |
0x00000019, | |
} | |
}) | |
If (LEqual (GR13, One)) | |
{ | |
CreateByteField (SBFI, \_SB.PCI0.I2C1.TPD1._CRS._Y28._INT, VAL3) // _INT: Interrupts | |
Store (0x1B, VAL3) | |
} | |
Return (SBFI) | |
} | |
} | |
Device (TPD2) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "ALP0001") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x80), 0x80)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x002A, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, _Y29) | |
{ | |
0x00000019, | |
} | |
}) | |
If (LEqual (GR13, One)) | |
{ | |
CreateByteField (SBFI, \_SB.PCI0.I2C1.TPD2._CRS._Y29._INT, VAL3) // _INT: Interrupts | |
Store (0x1B, VAL3) | |
} | |
Return (SBFI) | |
} | |
} | |
Device (TPD3) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "CYP0001") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x04) // _S0W: S0 Device Wake State | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x0100), 0x0100)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0024, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, _Y2A) | |
{ | |
0x00000019, | |
} | |
}) | |
If (LEqual (GR13, One)) | |
{ | |
CreateByteField (SBFI, \_SB.PCI0.I2C1.TPD3._CRS._Y2A._INT, VAL3) // _INT: Interrupts | |
Store (0x1B, VAL3) | |
} | |
Return (SBFI) | |
} | |
} | |
Device (TPD7) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "ELAN1010") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x03) // _S0W: S0 Device Wake State | |
Method (_S3W, 0, NotSerialized) // _S3W: S3 Device Wake State | |
{ | |
If (LEqual (S0ID, Zero)) | |
{ | |
Return (0x03) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x0800), 0x0800)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0015, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, _Y2B) | |
{ | |
0x00000019, | |
} | |
}) | |
If (LEqual (GR13, One)) | |
{ | |
CreateByteField (SBFI, \_SB.PCI0.I2C1.TPD7._CRS._Y2B._INT, VAL3) // _INT: Interrupts | |
Store (0x1B, VAL3) | |
} | |
If (LEqual (S0ID, Zero)) | |
{ | |
CreateByteField (SBFI, 0x24, VAL4) | |
And (VAL4, 0xE7, VAL4) | |
} | |
Return (SBFI) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
If (LAnd (LEqual (S0ID, Zero), LEqual (GR13, One))) | |
{ | |
Return (Package (0x02) | |
{ | |
0x0D, | |
0x03 | |
}) | |
} | |
Return (Package (0x02) | |
{ | |
Zero, | |
Zero | |
}) | |
} | |
} | |
Device (TPD8) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_HID, "MSFT0002") // _HID: Hardware ID | |
Name (_CID, "PNP0C50") // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (_S0W, 0x03) // _S0W: S0 Device Wake State | |
Method (_S3W, 0, NotSerialized) // _S3W: S3 Device Wake State | |
{ | |
If (LEqual (S0ID, Zero)) | |
{ | |
Return (0x03) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xF7, 0xF6, 0xDF, 0x3C, 0x67, 0x42, 0x55, 0x45, | |
/* 0008 */ 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (0x20) | |
} | |
} | |
Else | |
{ | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS1, 0x1000), 0x1000)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (SBFI, ResourceTemplate () | |
{ | |
I2cSerialBus (0x0020, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, _Y2C) | |
{ | |
0x00000019, | |
} | |
}) | |
If (LEqual (GR13, One)) | |
{ | |
CreateByteField (SBFI, \_SB.PCI0.I2C1.TPD8._CRS._Y2C._INT, VAL3) // _INT: Interrupts | |
Store (0x1B, VAL3) | |
} | |
If (LEqual (S0ID, Zero)) | |
{ | |
CreateByteField (SBFI, 0x24, VAL4) | |
And (VAL4, 0xE7, VAL4) | |
} | |
Return (SBFI) | |
} | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
If (LAnd (LEqual (S0ID, Zero), LEqual (GR13, One))) | |
{ | |
Return (Package (0x02) | |
{ | |
0x0D, | |
0x03 | |
}) | |
} | |
Return (Package (0x02) | |
{ | |
Zero, | |
Zero | |
}) | |
} | |
} | |
} | |
Scope (SPI0) | |
{ | |
} | |
Scope (SPI1) | |
{ | |
} | |
Scope (UA00) | |
{ | |
Device (BTH0) | |
{ | |
Name (_HID, "INT33E0") // _HID: Hardware ID | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (UBUF, ResourceTemplate () | |
{ | |
UartSerialBus (0x0001C200, DataBitsEight, StopBitsOne, | |
0xC0, LittleEndian, ParityTypeNone, FlowControlHardware, | |
0x0020, 0x0020, "\\_SB.PCI0.UA00", | |
0x00, ResourceConsumer, , | |
) | |
}) | |
Return (UBUF) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS4, One), One)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
Scope (UA01) | |
{ | |
Device (BTH1) | |
{ | |
Name (_HID, "INT33E0") // _HID: Hardware ID | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (UBUF, ResourceTemplate () | |
{ | |
UartSerialBus (0x0001C200, DataBitsEight, StopBitsOne, | |
0xC0, LittleEndian, ParityTypeNone, FlowControlHardware, | |
0x0020, 0x0020, "\\_SB.PCI0.UA01", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, SharedAndWake, ,, ) | |
{ | |
0x00000019, | |
} | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, | |
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x0057 | |
} | |
}) | |
Return (UBUF) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS5, One), One)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
Device (BTH2) | |
{ | |
Method (_HID, 0, NotSerialized) // _HID: Hardware ID | |
{ | |
If (LEqual (BCV4, Zero)) | |
{ | |
Return ("BCM2E20") | |
} | |
Else | |
{ | |
Return ("BCM2E40") | |
} | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (UBUF, ResourceTemplate () | |
{ | |
UartSerialBus (0x0001C200, DataBitsEight, StopBitsOne, | |
0xC0, LittleEndian, ParityTypeNone, FlowControlHardware, | |
0x0020, 0x0020, "\\_SB.PCI0.UA01", | |
0x00, ResourceConsumer, , | |
) | |
Interrupt (ResourceConsumer, Edge, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000019, | |
} | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, | |
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x0039 | |
} | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, | |
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x0057 | |
} | |
}) | |
Return (UBUF) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (And (SDS5, 0x02), 0x02)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Name (_S0W, 0x02) // _S0W: S0 Device Wake State | |
} | |
} | |
Scope (SDHC) | |
{ | |
Device (WI01) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_DDN, "SDIO Wifi device Function 1") // _DDN: DOS Device Name | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
Return (0x0F) | |
} | |
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status | |
{ | |
Return (Zero) | |
} | |
Name (_S4W, 0x02) // _S4W: S4 Device Wake State | |
Name (_S0W, 0x02) // _S0W: S0 Device Wake State | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
ADBG ("WiFi1 Enter D0") | |
If (CondRefOf (\_SB.PCI0.SDHC.WI01.PS0X)) | |
{ | |
PS0X () | |
} | |
} | |
Method (_PS2, 0, Serialized) // _PS2: Power State 2 | |
{ | |
ADBG ("WiFi1 Enter D2") | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
ADBG ("WiFi1 Enter D3") | |
If (CondRefOf (\_SB.PCI0.SDHC.WI01.PS3X)) | |
{ | |
PS3X () | |
} | |
} | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00000000, // Address Length | |
_Y2D) | |
Interrupt (ResourceConsumer, Level, ActiveLow, SharedAndWake, ,, ) | |
{ | |
0x00000026, | |
} | |
}) | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
CreateDWordField (^^RBUF, \_SB.PCI0.SDHC._Y26._BAS, AVAL) // _BAS: Base Address | |
If (LNotEqual (AVAL, Zero)) | |
{ | |
CreateDWordField (RBUF, \_SB.PCI0.SDHC.WI01._Y2D._LEN, WLN0) // _LEN: Length | |
Store (0x0C, WLN0) | |
CreateDWordField (RBUF, \_SB.PCI0.SDHC.WI01._Y2D._BAS, WVAL) // _BAS: Base Address | |
Add (AVAL, 0x1008, WVAL) | |
} | |
Return (RBUF) | |
} | |
} | |
} | |
Device (ADSP) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_HID, "INT33C8") // _HID: Hardware ID | |
Name (_CID, "INT33C8") // _CID: Compatible ID | |
Name (_DDN, "Intel(R) Smart Sound Technology Host Controller - INT33C8") // _DDN: DOS Device Name | |
Name (_UID, One) // _UID: Unique ID | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("ADSP DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("ADSP DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("ADSP DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
Name (MCLK, Zero) | |
Name (SCLK, 0x09) | |
Name (SSPM, Zero) | |
Name (ABTH, Zero) | |
Name (RBUF, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00100000, // Address Length | |
_Y2E) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
) | |
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, ) | |
{ | |
0x00000003, | |
} | |
}) | |
Name (EOD, One) | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (ToInteger (CODS), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
Store (^^I2C0.ACD0.MCLK, MCLK) | |
Store (^^I2C0.ACD0.SCLK, SCLK) | |
Store (^^I2C0.ACD0.SSPM, SSPM) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
Store (^^I2C0.ACD1.MCLK, MCLK) | |
Store (^^I2C0.ACD1.SCLK, SCLK) | |
Store (^^I2C0.ACD1.SSPM, SSPM) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Store (^^I2C0.ACD2.MCLK, MCLK) | |
Store (^^I2C0.ACD2.SCLK, SCLK) | |
Store (^^I2C0.ACD2.SSPM, SSPM) | |
} | |
Else | |
{ | |
Store (^^I2C0.ACD0.MCLK, MCLK) | |
Store (^^I2C0.ACD0.SCLK, SCLK) | |
Store (^^I2C0.ACD0.SSPM, SSPM) | |
} | |
} | |
} | |
Break | |
} | |
Return (RBUF) | |
} | |
Method (_SRS, 1, Serialized) // _SRS: Set Resource Settings | |
{ | |
Store (One, EOD) | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LGreaterEqual (OSYS, 0x07DC)) | |
{ | |
If (LEqual (S0ID, One)) | |
{ | |
CreateDWordField (RBUF, \_SB.PCI0.ADSP._Y2E._BAS, BVAL) // _BAS: Base Address | |
If (LEqual (BVAL, Zero)) | |
{ | |
Return (Zero) | |
} | |
If (And (EOD, One, EOD)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (0x0D) | |
} | |
} | |
} | |
Return (Zero) | |
} | |
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device | |
{ | |
Store (Zero, EOD) | |
} | |
Device (I2S0) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
} | |
Device (I2S1) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
} | |
} | |
Scope (RP01) | |
{ | |
Method (_INI, 0, NotSerialized) // _INI: Initialize | |
{ | |
Store (LTR1, LTRE) | |
Store (PML1, LMSL) | |
Store (PNL1, LNSL) | |
Store (OBF1, OBFF) | |
} | |
} | |
Scope (RP04) | |
{ | |
Method (_INI, 0, NotSerialized) // _INI: Initialize | |
{ | |
Store (LTR4, LTRE) | |
Store (PML4, LMSL) | |
Store (PNL4, LNSL) | |
Store (OBF4, OBFF) | |
} | |
} | |
Device (SAT0) | |
{ | |
Name (_ADR, 0x001F0002) // _ADR: Address | |
Name (FDEV, Zero) | |
Name (FDRP, Zero) | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("SAT0 DEP Call") | |
If (LGreaterEqual (OSYS, 0x07DD)) | |
{ | |
If (LAnd (LEqual (S0ID, One), LNotEqual (And (PEPC, 0x03 | |
), Zero))) | |
{ | |
ADBG ("SAT0 DEP") | |
Return (Package (0x01) | |
{ | |
PEPD | |
}) | |
} | |
} | |
ADBG ("SAT0 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
Device (PRT0) | |
{ | |
Name (_ADR, 0xFFFF) // _ADR: Address | |
Method (_SDD, 1, Serialized) // _SDD: Set Device Data | |
{ | |
CreateByteField (Arg0, 0x9D, BFDS) | |
ToInteger (BFDS, FDEV) | |
CreateByteField (Arg0, 0x9A, BFRP) | |
ToInteger (BFRP, FDRP) | |
} | |
Method (_GTF, 0, Serialized) // _GTF: Get Task File | |
{ | |
If (LAnd (LAnd (LEqual (DVS0, One), LEqual (And (FDEV, One | |
), One)), LEqual (And (FDRP, 0x80), 0x80))) | |
{ | |
Name (PIB1, Buffer (0x07) | |
{ | |
0x10, 0x09, 0x00, 0x00, 0x00, 0xB0, 0xEF | |
}) | |
Return (PIB1) | |
} | |
Name (PIB2, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
Return (PIB2) | |
} | |
} | |
Device (PRT1) | |
{ | |
Name (_ADR, 0x0001FFFF) // _ADR: Address | |
Name (FDEV, Zero) | |
Name (FDRP, Zero) | |
Method (_SDD, 1, Serialized) // _SDD: Set Device Data | |
{ | |
CreateByteField (Arg0, 0x9D, BFDS) | |
ToInteger (BFDS, FDEV) | |
CreateByteField (Arg0, 0x9A, BFRP) | |
ToInteger (BFRP, FDRP) | |
} | |
Method (_GTF, 0, Serialized) // _GTF: Get Task File | |
{ | |
If (LAnd (LAnd (LEqual (DVS1, One), LEqual (And (FDEV, One | |
), One)), LEqual (And (FDRP, 0x80), 0x80))) | |
{ | |
Name (PIB1, Buffer (0x07) | |
{ | |
0x10, 0x09, 0x00, 0x00, 0x00, 0xB0, 0xEF | |
}) | |
Return (PIB1) | |
} | |
Name (PIB2, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
Return (PIB2) | |
} | |
} | |
Device (PRT2) | |
{ | |
Name (_ADR, 0x0002FFFF) // _ADR: Address | |
Name (FDEV, Zero) | |
Name (FDRP, Zero) | |
Method (_SDD, 1, Serialized) // _SDD: Set Device Data | |
{ | |
CreateByteField (Arg0, 0x9D, BFDS) | |
ToInteger (BFDS, FDEV) | |
CreateByteField (Arg0, 0x9A, BFRP) | |
ToInteger (BFRP, FDRP) | |
} | |
Method (_GTF, 0, Serialized) // _GTF: Get Task File | |
{ | |
If (LAnd (LAnd (LEqual (DVS2, One), LEqual (And (FDEV, One | |
), One)), LEqual (And (FDRP, 0x80), 0x80))) | |
{ | |
Name (PIB1, Buffer (0x07) | |
{ | |
0x10, 0x09, 0x00, 0x00, 0x00, 0xB0, 0xEF | |
}) | |
Return (PIB1) | |
} | |
Name (PIB2, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
Return (PIB2) | |
} | |
} | |
Device (PRT3) | |
{ | |
Name (_ADR, 0x0003FFFF) // _ADR: Address | |
Name (FDEV, Zero) | |
Name (FDRP, Zero) | |
Method (_SDD, 1, Serialized) // _SDD: Set Device Data | |
{ | |
CreateByteField (Arg0, 0x9D, BFDS) | |
ToInteger (BFDS, FDEV) | |
CreateByteField (Arg0, 0x9A, BFRP) | |
ToInteger (BFRP, FDRP) | |
} | |
Method (_GTF, 0, Serialized) // _GTF: Get Task File | |
{ | |
If (LAnd (LAnd (LEqual (DVS3, One), LEqual (And (FDEV, One | |
), One)), LEqual (And (FDRP, 0x80), 0x80))) | |
{ | |
Name (PIB1, Buffer (0x07) | |
{ | |
0x10, 0x09, 0x00, 0x00, 0x00, 0xB0, 0xEF | |
}) | |
Return (PIB1) | |
} | |
Name (PIB2, Buffer (0x07) | |
{ | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
Return (PIB2) | |
} | |
} | |
} | |
Device (SAT1) | |
{ | |
Name (_ADR, 0x001F0005) // _ADR: Address | |
} | |
Device (SBUS) | |
{ | |
Name (_ADR, 0x001F0003) // _ADR: Address | |
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 (0xFFFFFFFF) | |
} | |
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) | |
} | |
} | |
} | |
OperationRegion (_SB.PCI0.LPCB.LPCR, PCI_Config, 0x80, 0x04) | |
Field (\_SB.PCI0.LPCB.LPCR, ByteAcc, NoLock, Preserve) | |
{ | |
CADR, 3, | |
, 1, | |
CBDR, 3, | |
Offset (0x01), | |
LTDR, 2, | |
, 2, | |
FDDR, 1, | |
Offset (0x02), | |
CALE, 1, | |
CBLE, 1, | |
LTLE, 1, | |
FDLE, 1, | |
Offset (0x03), | |
GLLE, 1, | |
GHLE, 1, | |
KCLE, 1, | |
MCLE, 1, | |
C1LE, 1, | |
C2LE, 1, | |
Offset (0x04) | |
} | |
Method (UXDV, 1, Serialized) | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
Store (0xFF, Local0) | |
While (One) | |
{ | |
Store (Add (Arg0, Zero), _T_0) | |
If (LEqual (_T_0, 0x03F8)) | |
{ | |
Store (Zero, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02F8)) | |
{ | |
Store (One, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0220)) | |
{ | |
Store (0x02, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0228)) | |
{ | |
Store (0x03, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0238)) | |
{ | |
Store (0x04, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02E8)) | |
{ | |
Store (0x05, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0338)) | |
{ | |
Store (0x06, Local0) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03E8)) | |
{ | |
Store (0x07, Local0) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
Return (Local0) | |
} | |
Method (RRIO, 4, Serialized) | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
While (One) | |
{ | |
Store (Add (Arg0, Zero), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
Store (Zero, CALE) | |
Store (UXDV (Arg2), Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
Store (Local0, CADR) | |
} | |
If (Arg1) | |
{ | |
Store (One, CALE) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
Store (Zero, CBLE) | |
Store (UXDV (Arg2), Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
Store (Local0, CBDR) | |
} | |
If (Arg1) | |
{ | |
Store (One, CBLE) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Store (Zero, LTLE) | |
If (LEqual (Arg2, 0x0378)) | |
{ | |
Store (Zero, LTDR) | |
} | |
If (LEqual (Arg2, 0x0278)) | |
{ | |
Store (One, LTDR) | |
} | |
If (LEqual (Arg2, 0x03BC)) | |
{ | |
Store (0x02, LTDR) | |
} | |
If (Arg1) | |
{ | |
Store (One, LTLE) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03)) | |
{ | |
Store (Zero, FDLE) | |
If (LEqual (Arg2, 0x03F0)) | |
{ | |
Store (Zero, FDDR) | |
} | |
If (LEqual (Arg2, 0x0370)) | |
{ | |
Store (One, FDDR) | |
} | |
If (Arg1) | |
{ | |
Store (One, FDLE) | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x08)) | |
{ | |
If (LEqual (Arg2, 0x0200)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, GLLE) | |
} | |
Else | |
{ | |
Store (Zero, GLLE) | |
} | |
} | |
If (LEqual (Arg2, 0x0208)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, GHLE) | |
} | |
Else | |
{ | |
Store (Zero, GHLE) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x09)) | |
{ | |
If (LEqual (Arg2, 0x0200)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, GLLE) | |
} | |
Else | |
{ | |
Store (Zero, GLLE) | |
} | |
} | |
If (LEqual (Arg2, 0x0208)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, GHLE) | |
} | |
Else | |
{ | |
Store (Zero, GHLE) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0A)) | |
{ | |
If (LOr (LEqual (Arg2, 0x60), LEqual (Arg2, 0x64))) | |
{ | |
If (Arg1) | |
{ | |
Store (One, KCLE) | |
} | |
Else | |
{ | |
Store (Zero, KCLE) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0B)) | |
{ | |
If (LOr (LEqual (Arg2, 0x62), LEqual (Arg2, 0x66))) | |
{ | |
If (Arg1) | |
{ | |
Store (One, MCLE) | |
} | |
Else | |
{ | |
Store (Zero, MCLE) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0C)) | |
{ | |
If (LEqual (Arg2, 0x2E)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, C1LE) | |
} | |
Else | |
{ | |
Store (Zero, C1LE) | |
} | |
} | |
If (LEqual (Arg2, 0x4E)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, C2LE) | |
} | |
Else | |
{ | |
Store (Zero, C2LE) | |
} | |
} | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x0D)) | |
{ | |
If (LEqual (Arg2, 0x2E)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, C1LE) | |
} | |
Else | |
{ | |
Store (Zero, C1LE) | |
} | |
} | |
If (LEqual (Arg2, 0x4E)) | |
{ | |
If (Arg1) | |
{ | |
Store (One, C2LE) | |
} | |
Else | |
{ | |
Store (Zero, C2LE) | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Method (RDMA, 3, NotSerialized) | |
{ | |
} | |
Scope (_SB.PCI0) | |
{ | |
Name (PA0H, Zero) | |
Name (PA1H, Zero) | |
Name (PA1L, Zero) | |
Name (PA2H, Zero) | |
Name (PA2L, Zero) | |
Name (PA3H, Zero) | |
Name (PA3L, Zero) | |
Name (PA4H, Zero) | |
Name (PA4L, Zero) | |
Name (PA5H, Zero) | |
Name (PA5L, Zero) | |
Name (PA6H, Zero) | |
Name (PA6L, Zero) | |
Method (NPTS, 1, NotSerialized) | |
{ | |
Store (PM0H, PA0H) | |
Store (PM1H, PA1H) | |
Store (PM1L, PA1L) | |
Store (PM2H, PA2H) | |
Store (PM2L, PA2L) | |
Store (PM3H, PA3H) | |
Store (PM3L, PA3L) | |
Store (PM4H, PA4H) | |
Store (PM4L, PA4L) | |
Store (PM5H, PA5H) | |
Store (PM5L, PA5L) | |
Store (PM6H, PA6H) | |
Store (PM6L, PA6L) | |
} | |
Method (NWAK, 1, NotSerialized) | |
{ | |
Store (PA0H, PM0H) | |
Store (PA1H, PM1H) | |
Store (PA1L, PM1L) | |
Store (PA2H, PM2H) | |
Store (PA2L, PM2L) | |
Store (PA3H, PM3H) | |
Store (PA3L, PM3L) | |
Store (PA4H, PM4H) | |
Store (PA4L, PM4L) | |
Store (PA5H, PM5H) | |
Store (PA5L, PM5L) | |
Store (PA6H, PM6H) | |
Store (PA6L, PM6L) | |
} | |
} | |
Scope (_PR) | |
{ | |
Processor (CPU0, 0x01, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU0 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU0 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU0 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU1, 0x02, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU1 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU1 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU1 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU2, 0x03, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU2 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU2 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU2 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU3, 0x04, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU3 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU3 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU3 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU4, 0x05, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU4 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU4 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU4 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU5, 0x06, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU5 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU5 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU5 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU6, 0x07, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU6 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU6 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU6 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
Processor (CPU7, 0x08, 0x00001810, 0x06) | |
{ | |
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies | |
{ | |
ADBG ("CPU7 DEP Call") | |
If (LEqual (S0ID, One)) | |
{ | |
ADBG ("CPU7 DEP") | |
Return (Package (0x01) | |
{ | |
\_SB.PEPD | |
}) | |
} | |
Else | |
{ | |
ADBG ("CPU7 DEP NULL") | |
Return (Package (0x00) {}) | |
} | |
} | |
} | |
} | |
Name (ECUP, One) | |
Scope (\) | |
{ | |
Device (NFC1) | |
{ | |
Name (_HID, EisaId ("SKTD000")) // _HID: Hardware ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (NFCE, 0x03)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
Device (NFC2) | |
{ | |
Name (_HID, EisaId ("NXP5442")) // _HID: Hardware ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (NFCE, 0x02)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
Device (NFC3) | |
{ | |
Name (_HID, EisaId ("ICV0A12")) // _HID: Hardware ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LEqual (NFCE, One)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
Mutex (MUTX, 0x00) | |
OperationRegion (DEB0, SystemIO, 0x80, One) | |
Field (DEB0, ByteAcc, NoLock, Preserve) | |
{ | |
DBG8, 8 | |
} | |
OperationRegion (DEB1, SystemIO, 0x90, 0x02) | |
Field (DEB1, WordAcc, NoLock, Preserve) | |
{ | |
DBG9, 16 | |
} | |
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) | |
} | |
Method (ADBG, 1, Serialized) | |
{ | |
If (CondRefOf (MDBG)) | |
{ | |
MNIO (Arg0) | |
MNIO ("\n") | |
Return (MDBG) | |
} | |
Return (Zero) | |
} | |
OperationRegion (SPRT, SystemIO, 0xB2, 0x02) | |
Field (SPRT, ByteAcc, Lock, Preserve) | |
{ | |
SSMP, 8 | |
} | |
Method (_PIC, 1, NotSerialized) // _PIC: Interrupt Model | |
{ | |
Store (Arg0, GPIC) | |
Store (Arg0, PICM) | |
} | |
Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep | |
{ | |
PTS (Arg0) | |
ADBG (Concatenate ("_PTS=", ToHexString (Arg0))) | |
If (And (ICNF, 0x10)) | |
{ | |
If (CondRefOf (\_SB.IAOE.PTSL)) | |
{ | |
Store (Arg0, \_SB.IAOE.PTSL) | |
} | |
} | |
If (LEqual (Arg0, 0x03)) | |
{ | |
If (And (ICNF, One)) | |
{ | |
If (LAnd (And (ICNF, 0x10), LEqual (\_SB.IAOE.ITMR, Zero))) | |
{ | |
\_SB.PCI0.LPCB.EC0.SCTF (Zero, 0x03) | |
} | |
If (LAnd (And (ICNF, 0x10), CondRefOf (\_SB.IFFS.FFSS))) | |
{ | |
If (And (\_SB.IFFS.FFSS, One)) | |
{ | |
Store (One, \_SB.IAOE.FFSE) | |
} | |
Else | |
{ | |
Store (Zero, \_SB.IAOE.FFSE) | |
} | |
} | |
} | |
} | |
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) {} | |
If (CondRefOf (\_SB.TPM.PTS)) | |
{ | |
\_SB.TPM.PTS (Arg0) | |
} | |
} | |
Method (_WAK, 1, Serialized) // _WAK: Wake | |
{ | |
WAK (Arg0) | |
ADBG ("_WAK") | |
If (And (ICNF, 0x10)) | |
{ | |
If (And (\_SB.PCI0.GFX0.TCHE, 0x0100)) | |
{ | |
If (LEqual (\_SB.IAOE.ITMR, One)) | |
{ | |
If (LAnd (And (\_SB.IAOE.IBT1, One), LOr (And (\_SB.IAOE.WKRS, 0x02 | |
), And (\_SB.IAOE.WKRS, 0x10)))) | |
{ | |
Store (Or (And (\_SB.PCI0.GFX0.STAT, 0xFFFFFFFFFFFFFFFC), One), \_SB.PCI0.GFX0.STAT) | |
} | |
Else | |
{ | |
Store (And (\_SB.PCI0.GFX0.STAT, 0xFFFFFFFFFFFFFFFC), \_SB.PCI0.GFX0.STAT) | |
} | |
} | |
Else | |
{ | |
If (LAnd (And (\_SB.IAOE.IBT1, One), LOr (And (\_SB.IAOE.WKRS, 0x02 | |
), And (\_SB.IAOE.WKRS, 0x10)))) | |
{ | |
Store (Or (And (\_SB.PCI0.GFX0.STAT, 0xFFFFFFFFFFFFFFFC), One), \_SB.PCI0.GFX0.STAT) | |
} | |
Else | |
{ | |
Store (And (\_SB.PCI0.GFX0.STAT, 0xFFFFFFFFFFFFFFFC), \_SB.PCI0.GFX0.STAT) | |
} | |
} | |
} | |
If (CondRefOf (\_SB.IAOE.PTSL)) | |
{ | |
Store (Zero, \_SB.IAOE.PTSL) | |
} | |
If (LEqual (\_SB.IAOE.ITMR, Zero)) {} | |
If (CondRefOf (\_SB.IAOE.ECTM)) | |
{ | |
Store (Zero, \_SB.IAOE.ECTM) | |
} | |
If (CondRefOf (\_SB.IAOE.RCTM)) | |
{ | |
Store (Zero, \_SB.IAOE.RCTM) | |
} | |
} | |
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) | |
{ | |
\_SB.PCI0.XHC.XWAK () | |
\_SB.PCI0.LPCB.EC0.WRAM (0x0533, 0x69) | |
\_SB.PCI0.LPCB.EC0.WRAM (0x0534, 0x64) | |
} | |
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 (CondRefOf (\_SB.PCCD.PENB)) | |
{ | |
Store (0x82, Local0) | |
} | |
Else | |
{ | |
Store (0x80, Local0) | |
} | |
If (LGreater (TCNT, One)) | |
{ | |
If (And (PDC0, 0x08)) | |
{ | |
Notify (\_PR.CPU0, Local0) | |
If (And (PDC0, 0x10)) | |
{ | |
Notify (\_PR.CPU0, 0x81) | |
} | |
} | |
If (And (PDC1, 0x08)) | |
{ | |
Notify (\_PR.CPU1, Local0) | |
If (And (PDC1, 0x10)) | |
{ | |
Notify (\_PR.CPU1, 0x81) | |
} | |
} | |
If (And (PDC2, 0x08)) | |
{ | |
Notify (\_PR.CPU2, Local0) | |
If (And (PDC2, 0x10)) | |
{ | |
Notify (\_PR.CPU2, 0x81) | |
} | |
} | |
If (And (PDC3, 0x08)) | |
{ | |
Notify (\_PR.CPU3, Local0) | |
If (And (PDC3, 0x10)) | |
{ | |
Notify (\_PR.CPU3, 0x81) | |
} | |
} | |
If (And (PDC4, 0x08)) | |
{ | |
Notify (\_PR.CPU4, Local0) | |
If (And (PDC4, 0x10)) | |
{ | |
Notify (\_PR.CPU4, 0x81) | |
} | |
} | |
If (And (PDC5, 0x08)) | |
{ | |
Notify (\_PR.CPU5, Local0) | |
If (And (PDC5, 0x10)) | |
{ | |
Notify (\_PR.CPU5, 0x81) | |
} | |
} | |
If (And (PDC6, 0x08)) | |
{ | |
Notify (\_PR.CPU6, Local0) | |
If (And (PDC6, 0x10)) | |
{ | |
Notify (\_PR.CPU6, 0x81) | |
} | |
} | |
If (And (PDC7, 0x08)) | |
{ | |
Notify (\_PR.CPU7, Local0) | |
If (And (PDC7, 0x10)) | |
{ | |
Notify (\_PR.CPU7, 0x81) | |
} | |
} | |
} | |
Else | |
{ | |
Notify (\_PR.CPU0, Local0) | |
Notify (\_PR.CPU0, 0x81) | |
} | |
} | |
OperationRegion (MBAR, SystemMemory, Add (ShiftLeft (\_SB.PCI0.MHBR, 0x0F), 0x5000), 0x1000) | |
Field (MBAR, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x938), | |
PWRU, 4, | |
Offset (0x9A0), | |
PPL1, 15, | |
PL1E, 1, | |
CLP1, 1 | |
} | |
Name (CLMP, Zero) | |
Name (PLEN, Zero) | |
Name (PLSV, 0x8000) | |
Name (CSEM, Zero) | |
Method (SPL1, 0, Serialized) | |
{ | |
Name (PPUU, Zero) | |
If (LEqual (CSEM, One)) | |
{ | |
Return (Zero) | |
} | |
Store (One, CSEM) | |
Store (PPL1, PLSV) | |
Store (PL1E, PLEN) | |
Store (CLP1, CLMP) | |
If (LEqual (PWRU, Zero)) | |
{ | |
Store (One, PPUU) | |
} | |
Else | |
{ | |
ShiftLeft (Decrement (PWRU), 0x02, PPUU) | |
} | |
Multiply (PLVL, PPUU, Local0) | |
Divide (Local0, 0x03E8, , Local1) | |
Store (Local1, PPL1) | |
Store (One, PL1E) | |
Store (One, CLP1) | |
} | |
Method (RPL1, 0, Serialized) | |
{ | |
Store (PLSV, PPL1) | |
Store (PLEN, PL1E) | |
Store (CLMP, CLP1) | |
Store (Zero, CSEM) | |
} | |
Name (DDPS, Zero) | |
Name (UAMS, Zero) | |
Method (GUAM, 1, Serialized) | |
{ | |
If (LNotEqual (Arg0, DDPS)) | |
{ | |
Store (Arg0, DDPS) | |
Store (LAnd (Arg0, Not (PWRS)), UAMS) | |
If (Arg0) | |
{ | |
\_SB.PCI0.LPCB.EC0.CSEE (0xAE) | |
P8XH (Zero, 0xC5) | |
P8XH (One, Zero) | |
ADBG ("Enter CS") | |
If (PSCP) | |
{ | |
If (LAnd (CondRefOf (\_PR.CPU0._PSS), CondRefOf (\_PR.CPU0._PPC))) | |
{ | |
Subtract (SizeOf (\_PR.CPU0._PSS), One, \_PR.CPU0._PPC) | |
PNOT () | |
} | |
} | |
If (PLCS) | |
{ | |
SPL1 () | |
} | |
} | |
Else | |
{ | |
\_SB.PCI0.LPCB.EC0.CSEE (0xAF) | |
P8XH (Zero, 0xB0) | |
P8XH (One, 0xAB) | |
ADBG ("Exit CS") | |
If (PSCP) | |
{ | |
If (CondRefOf (\_PR.CPU0._PPC)) | |
{ | |
Store (Zero, \_PR.CPU0._PPC) | |
PNOT () | |
} | |
} | |
If (PLCS) | |
{ | |
RPL1 () | |
} | |
} | |
P_CS () | |
} | |
} | |
Method (P_CS, 0, Serialized) | |
{ | |
If (CondRefOf (\_SB.PCI0.PAUD.PUAM)) | |
{ | |
\_SB.PCI0.PAUD.PUAM () | |
} | |
If (LEqual (OSYS, 0x07DC)) | |
{ | |
If (CondRefOf (\_SB.PCI0.XHC.DUAM)) | |
{ | |
\_SB.PCI0.XHC.DUAM () | |
} | |
} | |
} | |
Method (TRAP, 2, Serialized) | |
{ | |
Store (Arg1, SMIF) | |
If (LEqual (Arg0, TRTD)) | |
{ | |
Store (Arg1, DTSF) | |
Store (Zero, TRPD) | |
Return (DTSF) | |
} | |
If (LEqual (Arg0, PFTI)) | |
{ | |
Store (Zero, TRPF) | |
} | |
Return (SMIF) | |
} | |
Scope (_SB.PCI0) | |
{ | |
Method (PTMA, 0, NotSerialized) | |
{ | |
Return (PFMA) | |
} | |
Method (PTMS, 0, NotSerialized) | |
{ | |
Return (PFMS) | |
} | |
Method (PTIA, 0, NotSerialized) | |
{ | |
Return (PFIA) | |
} | |
Method (_INI, 0, NotSerialized) // _INI: Initialize | |
{ | |
Store (0x07DC, 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) | |
} | |
If (_OSI ("Windows 2012")) | |
{ | |
Store (0x07DC, OSYS) | |
} | |
If (_OSI ("Windows 2013")) | |
{ | |
Store (0x07DD, OSYS) | |
} | |
} | |
Else | |
{ | |
If (MCTH (_OS, "Microsoft Windows")) | |
{ | |
Store (0x07CE, OSYS) | |
} | |
Else | |
{ | |
If (MCTH (_OS, "Microsoft WindowsME: Millennium Edition")) | |
{ | |
Store (0x07D0, OSYS) | |
} | |
Else | |
{ | |
If (MCTH (_OS, "Microsoft Windows NT")) | |
{ | |
Store (0x07D0, OSYS) | |
} | |
Else | |
{ | |
Store (0x07D1, OSYS) | |
} | |
} | |
} | |
} | |
} | |
Method (NHPG, 0, Serialized) | |
{ | |
Store (Zero, ^RP01.HPEX) | |
Store (Zero, ^RP04.HPEX) | |
Store (One, ^RP01.HPSX) | |
Store (One, ^RP04.HPSX) | |
} | |
Method (NPME, 0, Serialized) | |
{ | |
Store (Zero, ^RP01.PMEX) | |
Store (Zero, ^RP04.PMEX) | |
Store (One, ^RP01.PMSX) | |
Store (One, ^RP04.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 (_SB) | |
{ | |
Name (OSCI, Zero) | |
Name (OSCO, Zero) | |
Method (_OSC, 4, Serialized) // _OSC: Operating System Capabilities | |
{ | |
CreateDWordField (Arg3, Zero, STS0) | |
CreateDWordField (Arg3, 0x04, CAP0) | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0x6E, 0xB0, 0x11, 0x08, 0x27, 0x4A, 0xF9, 0x44, | |
/* 0008 */ 0x8D, 0x60, 0x3C, 0xBB, 0xC2, 0x2E, 0x7B, 0x48 | |
})) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
If (And (CAP0, 0x04)) | |
{ | |
Store (0x04, OSCO) | |
If (LNotEqual (And (SGMD, 0x0F), 0x02)) | |
{ | |
If (LEqual (RTD3, Zero)) | |
{ | |
And (CAP0, 0x3B, CAP0) | |
Or (STS0, 0x10, STS0) | |
} | |
} | |
} | |
If (And (CAP0, 0x20)) | |
{ | |
If (CondRefOf (\_SB.PCCD.PENB)) | |
{ | |
If (LEqual (^PCCD.PENB, Zero)) | |
{ | |
And (CAP0, 0x1F, CAP0) | |
Or (STS0, 0x10, STS0) | |
} | |
} | |
Else | |
{ | |
And (CAP0, 0x1F, CAP0) | |
Or (STS0, 0x10, STS0) | |
} | |
} | |
} | |
Else | |
{ | |
And (STS0, 0xFFFFFF00, STS0) | |
Or (STS0, 0x0A, STS0) | |
} | |
} | |
Else | |
{ | |
And (STS0, 0xFFFFFF00, STS0) | |
Or (STS0, 0x06, STS0) | |
} | |
Return (Arg3) | |
} | |
Device (PEPD) | |
{ | |
Name (_HID, "INT33A1") // _HID: Hardware ID | |
Name (_CID, EisaId ("PNP0D80")) // _CID: Compatible ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (PEPP, Zero) | |
Name (DEVS, Package (0x03) | |
{ | |
0x02, | |
Package (0x01) | |
{ | |
"\\_SB.PCI0.GFX0" | |
}, | |
Package (0x01) | |
{ | |
"\\_SB.PCI0.SAT0.PRT1" | |
} | |
}) | |
Name (DEVX, Package (0x08) | |
{ | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.GFX0", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SAT0.PRT1", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.UA01", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SDHC", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.I2C0", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.I2C1", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.XHC", | |
0xFFFFFFFF | |
}, | |
Package (0x02) | |
{ | |
"HDAUDIO\\FUNC_01&VEN_10EC&DEV_0282&SUBSYS_00000000&REV_1000\\4&a02b74b&0&0001", | |
0xFFFFFFFF | |
} | |
}) | |
Name (DEVY, Package (0x12) | |
{ | |
Package (0x03) | |
{ | |
"\\_PR.CPU0", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
Zero | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_PR.CPU1", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
Zero | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_PR.CPU2", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
Zero | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_PR.CPU3", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
Zero | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.GFX0", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.SAT0", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.SAT0.PRT0", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x03) | |
{ | |
0xFF, | |
Zero, | |
0x81 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.SAT0.PRT1", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x03) | |
{ | |
0xFF, | |
Zero, | |
0x81 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.SAT0.PRT2", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x03) | |
{ | |
0xFF, | |
Zero, | |
0x81 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.SAT0.PRT3", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x03) | |
{ | |
0xFF, | |
Zero, | |
0x81 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.UA00", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.UA01", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.SDHC", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.I2C0", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.I2C1", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.XHC", | |
One, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"HDAUDIO\\FUNC_01&VEN_10EC&DEV_0282&SUBSYS_00000000&REV_1000", | |
Zero, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
}, | |
Package (0x03) | |
{ | |
"\\_SB.PCI0.ADSP", | |
Zero, | |
Package (0x02) | |
{ | |
Zero, | |
Package (0x02) | |
{ | |
0xFF, | |
0x03 | |
} | |
} | |
} | |
}) | |
Name (BCCD, Package (0x05) | |
{ | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SAT0", | |
Package (0x01) | |
{ | |
Package (0x03) | |
{ | |
Package (0x05) | |
{ | |
One, | |
0x08, | |
Zero, | |
One, | |
0xB2 | |
}, | |
Package (0x03) | |
{ | |
Zero, | |
0xCD, | |
One | |
}, | |
0x3E80 | |
} | |
} | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SAT0.PRT0", | |
Package (0x01) | |
{ | |
Package (0x03) | |
{ | |
Package (0x05) | |
{ | |
One, | |
0x08, | |
Zero, | |
One, | |
0xB2 | |
}, | |
Package (0x03) | |
{ | |
Zero, | |
0xCD, | |
One | |
}, | |
0x3E80 | |
} | |
} | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SAT0.PRT1", | |
Package (0x01) | |
{ | |
Package (0x03) | |
{ | |
Package (0x05) | |
{ | |
One, | |
0x08, | |
Zero, | |
One, | |
0xB2 | |
}, | |
Package (0x03) | |
{ | |
Zero, | |
0xCD, | |
One | |
}, | |
0x3E80 | |
} | |
} | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SAT0.PRT2", | |
Package (0x01) | |
{ | |
Package (0x03) | |
{ | |
Package (0x05) | |
{ | |
One, | |
0x08, | |
Zero, | |
One, | |
0xB2 | |
}, | |
Package (0x03) | |
{ | |
Zero, | |
0xCD, | |
One | |
}, | |
0x3E80 | |
} | |
} | |
}, | |
Package (0x02) | |
{ | |
"\\_SB.PCI0.SAT0.PRT3", | |
Package (0x01) | |
{ | |
Package (0x03) | |
{ | |
Package (0x05) | |
{ | |
One, | |
0x08, | |
Zero, | |
One, | |
0xB2 | |
}, | |
Package (0x03) | |
{ | |
Zero, | |
0xCD, | |
One | |
}, | |
0x3E80 | |
} | |
} | |
} | |
}) | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LGreaterEqual (OSYS, 0x07DC)) | |
{ | |
If (LEqual (And (CDID, 0xF000), 0x9000)) | |
{ | |
If (LEqual (S0ID, One)) | |
{ | |
Return (0x0F) | |
} | |
} | |
} | |
Return (Zero) | |
} | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xE0, 0xBF, 0xFE, 0xB8, 0xF8, 0xBA, 0x4B, 0x45, | |
/* 0008 */ 0xAE, 0xCD, 0x49, 0xFB, 0x91, 0x13, 0x7B, 0x21 | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Store (One, PEPP) | |
Return (0x0F) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
If (LEqual (Arg1, Zero)) | |
{ | |
While (One) | |
{ | |
Store (PEPY, _T_0) | |
If (LEqual (_T_0, One)) | |
{ | |
Return (Package (0x02) | |
{ | |
One, | |
Package (0x01) | |
{ | |
"\\_SB.PCI0.GFX0" | |
} | |
}) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Return (Package (0x02) | |
{ | |
One, | |
Package (0x01) | |
{ | |
"\\_SB.PCI0.SAT0.PRT1" | |
} | |
}) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03)) | |
{ | |
Return (DEVS) | |
} | |
Else | |
{ | |
Return (Package (0x01) | |
{ | |
Zero | |
}) | |
} | |
} | |
} | |
Break | |
} | |
} | |
If (LEqual (Arg1, One)) | |
{ | |
If (LNot (And (PEPY, One))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, Zero)), One)) | |
} | |
If (LNot (And (PEPY, 0x02))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, One)), One)) | |
} | |
If (LNot (And (PEPY, 0x04))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, 0x02)), One)) | |
} | |
If (LNot (And (PEPY, 0x08))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, 0x03)), One)) | |
} | |
If (LNot (And (PEPY, 0x10))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, 0x04)), One)) | |
} | |
If (LNot (And (PEPY, 0x20))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, 0x05)), One)) | |
} | |
If (LNot (And (PEPY, 0x40))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, 0x06)), One)) | |
} | |
If (LNot (And (PEPY, 0x80))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVX, 0x07)), One)) | |
} | |
Return (DEVX) | |
} | |
} | |
} | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xA0, 0x40, 0xEB, 0xC4, 0xD2, 0x6C, 0xE2, 0x11, | |
/* 0008 */ 0xBC, 0xFD, 0x08, 0x00, 0x20, 0x0C, 0x9A, 0x66 | |
})) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x07 | |
}) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
If (LNotEqual (And (PEPC, 0x03), One)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x06)), One)) | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x07)), One)) | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x08)), One)) | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x09)), One)) | |
} | |
If (LNotEqual (And (PEPC, 0x03), 0x02)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x05)), One)) | |
If (LNot (And (SPST, One))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x06)), One)) | |
} | |
If (LNot (And (SPST, 0x02))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x07)), One)) | |
} | |
If (LNot (And (SPST, 0x04))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x08)), One)) | |
} | |
If (LNot (And (SPST, 0x08))) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x09)), One)) | |
} | |
} | |
If (LEqual (And (PEPC, 0x04), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x0A)), One)) | |
} | |
If (LEqual (And (PEPC, 0x08), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x0B)), One)) | |
} | |
If (LEqual (And (PEPC, 0x10), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x0C)), One)) | |
} | |
If (LEqual (And (PEPC, 0x20), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x0D)), One)) | |
} | |
If (LEqual (And (PEPC, 0x40), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x0E)), One)) | |
} | |
If (LEqual (And (PEPC, 0x80), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x0F)), One)) | |
} | |
If (LEqual (And (PEPC, 0x0100), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x10)), One)) | |
} | |
If (LEqual (And (PEPC, 0x0200), Zero)) | |
{ | |
Store (Zero, Index (DerefOf (Index (DEVY, 0x11)), One)) | |
} | |
Return (DEVY) | |
} | |
If (LEqual (Arg2, 0x02)) | |
{ | |
Return (BCCD) | |
} | |
} | |
Return (One) | |
} | |
} | |
} | |
Scope (_SB) | |
{ | |
Device (BTKL) | |
{ | |
Name (_HID, "INT3420") // _HID: Hardware ID | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (_OSI ("Windows 2012")) | |
{ | |
If (LEqual (BID, BW2C)) | |
{ | |
Return (0x0F) | |
} | |
} | |
Return (Zero) | |
} | |
Method (_PS0, 0, Serialized) // _PS0: Power State 0 | |
{ | |
And (GL0A, 0x7F, GL0A) | |
} | |
Method (_PS3, 0, Serialized) // _PS3: Power State 3 | |
{ | |
Or (GL0A, 0x80, GL0A) | |
} | |
Method (PSTS, 0, NotSerialized) | |
{ | |
Return (RDGP (0x57)) | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (PDRC) | |
{ | |
Name (_HID, EisaId ("PNP0C02")) // _HID: Hardware ID | |
Name (_UID, One) // _UID: Unique ID | |
Name (BUF0, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00004000, // Address Length | |
_Y2F) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00008000, // Address Length | |
_Y32) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y33) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y34) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00000000, // Address Length | |
_Y35) | |
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 | |
_Y30) | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00010000, // Address Length | |
_Y31) | |
}) | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y2F._BAS, RBR0) // _BAS: Base Address | |
ShiftLeft (^^LPCB.RCBA, 0x0E, RBR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y30._BAS, TBR0) // _BAS: Base Address | |
Store (TBAB, TBR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y30._LEN, TBLN) // _LEN: Length | |
If (LEqual (TBAB, Zero)) | |
{ | |
Store (Zero, TBLN) | |
} | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y31._BAS, SNR0) // _BAS: Base Address | |
Store (SRMB, SNR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y32._BAS, MBR0) // _BAS: Base Address | |
ShiftLeft (MHBR, 0x0F, MBR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y33._BAS, DBR0) // _BAS: Base Address | |
ShiftLeft (DIBR, 0x0C, DBR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y34._BAS, EBR0) // _BAS: Base Address | |
ShiftLeft (EPBR, 0x0C, EBR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y35._BAS, XBR0) // _BAS: Base Address | |
ShiftLeft (PXBR, 0x1A, XBR0) | |
CreateDWordField (BUF0, \_SB.PCI0.PDRC._Y35._LEN, XSZ0) // _LEN: Length | |
ShiftRight (0x10000000, PXSZ, XSZ0) | |
Return (BUF0) | |
} | |
} | |
} | |
Scope (_GPE) | |
{ | |
Method (_L69, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
If (LAnd (LEqual (RP1D, Zero), LEqual (\_SB.PCI0.RP01.RPAV, One))) | |
{ | |
\_SB.PCI0.RP01.HPME () | |
Notify (\_SB.PCI0.RP01, 0x02) | |
} | |
If (LAnd (LEqual (RP4D, Zero), LEqual (\_SB.PCI0.RP04.RPAV, One))) | |
{ | |
\_SB.PCI0.RP04.HPME () | |
Notify (\_SB.PCI0.RP04, 0x02) | |
} | |
} | |
Method (_L6D, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
If (LAnd (\_SB.PCI0.EHC1.PMEE, \_SB.PCI0.EHC1.PMES)) | |
{ | |
Notify (\_SB.PCI0.EHC1, 0x02) | |
} | |
If (LAnd (\_SB.PCI0.EHC2.PMEE, \_SB.PCI0.EHC2.PMES)) | |
{ | |
Notify (\_SB.PCI0.EHC2, 0x02) | |
} | |
If (LAnd (\_SB.PCI0.XHC.PMEE, \_SB.PCI0.XHC.PMES)) | |
{ | |
Notify (\_SB.PCI0.XHC, 0x02) | |
} | |
If (LAnd (\_SB.PCI0.HDEF.PMEE, \_SB.PCI0.HDEF.PMES)) | |
{ | |
Notify (\_SB.PCI0.HDEF, 0x02) | |
} | |
If (CondRefOf (\_SB.PCI0.RP03.GLAN)) | |
{ | |
Notify (\_SB.PCI0.RP03.GLAN, 0x02) | |
} | |
} | |
Method (_L61, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
Add (L01C, One, L01C) | |
P8XH (Zero, One) | |
P8XH (One, L01C) | |
If (LAnd (LEqual (RP1D, Zero), \_SB.PCI0.RP01.HPSX)) | |
{ | |
Sleep (0x64) | |
If (\_SB.PCI0.RP01.PDCX) | |
{ | |
Store (One, \_SB.PCI0.RP01.PDCX) | |
Store (One, \_SB.PCI0.RP01.HPSX) | |
If (LNot (\_SB.PCI0.RP01.PDSX)) | |
{ | |
Store (Zero, \_SB.PCI0.RP01.L0SE) | |
} | |
Notify (\_SB.PCI0.RP01, Zero) | |
} | |
Else | |
{ | |
Store (One, \_SB.PCI0.RP01.HPSX) | |
} | |
} | |
If (LAnd (LEqual (RP4D, Zero), \_SB.PCI0.RP04.HPSX)) | |
{ | |
Sleep (0x64) | |
If (\_SB.PCI0.RP04.PDCX) | |
{ | |
Store (One, \_SB.PCI0.RP04.PDCX) | |
Store (One, \_SB.PCI0.RP04.HPSX) | |
If (LNot (\_SB.PCI0.RP04.PDSX)) | |
{ | |
Store (Zero, \_SB.PCI0.RP04.L0SE) | |
} | |
Notify (\_SB.PCI0.RP04, Zero) | |
} | |
Else | |
{ | |
Store (One, \_SB.PCI0.RP04.HPSX) | |
} | |
} | |
} | |
Method (_L62, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
Store (Zero, GPEC) | |
If (CondRefOf (DTSE)) | |
{ | |
If (LGreaterEqual (DTSE, One)) | |
{ | |
Notify (\_TZ.THRM, 0x80) | |
} | |
} | |
If (CondRefOf (\_SB.PCCD.PENB)) | |
{ | |
If (LEqual (\_SB.PCCD.PENB, One)) | |
{ | |
Notify (\_SB.PCCD, 0x80) | |
} | |
} | |
} | |
Method (_L66, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
If (LAnd (\_SB.PCI0.GFX0.GSSE, LNot (GSMI))) | |
{ | |
\_SB.PCI0.GFX0.GSCI () | |
} | |
} | |
Method (_L67, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
Store (0x20, \_SB.PCI0.SBUS.HSTS) | |
} | |
Method (_L00, 0, NotSerialized) // _Lxx: Level-Triggered GPE | |
{ | |
If (LEqual (BID, BRH)) | |
{ | |
ADBG ("Rotation Lock") | |
Sleep (0x03E8) | |
\_SB.PCI0.GFX0.IUEH (0x04) | |
} | |
} | |
} | |
Device (WCAM) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities | |
{ | |
Name (UPCP, Package (0x04) | |
{ | |
Zero, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Return (UPCP) | |
} | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Name (PLDP, Package (0x01) | |
{ | |
Buffer (0x14) | |
{ | |
/* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x24, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0010 */ 0xC8, 0x00, 0xA0, 0x00 | |
} | |
}) | |
Return (PLDP) | |
} | |
} | |
Device (_SB.PCI0.LPCB.TPM) | |
{ | |
Name (_STR, Unicode ("TPM 1.2 Device")) // _STR: Description String | |
Name (_UID, One) // _UID: Unique ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
Memory32Fixed (ReadOnly, | |
0xFED40000, // Address Base | |
0x00005000, // Address Length | |
) | |
}) | |
OperationRegion (TMMB, SystemMemory, 0xFED40000, 0x5000) | |
Field (TMMB, ByteAcc, Lock, Preserve) | |
{ | |
ACCS, 8, | |
Offset (0x18), | |
TSTA, 8, | |
TBCA, 8, | |
Offset (0xF00), | |
TVID, 16, | |
TDID, 16 | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (TPMF) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
} | |
Scope (_SB.PCI0.LPCB.TPM) | |
{ | |
OperationRegion (ASMI, SystemIO, SMIA, One) | |
Field (ASMI, ByteAcc, NoLock, Preserve) | |
{ | |
INQ, 8 | |
} | |
OperationRegion (BSMI, SystemIO, SMIB, One) | |
Field (BSMI, ByteAcc, NoLock, Preserve) | |
{ | |
DAT, 8 | |
} | |
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method | |
{ | |
Name (_T_1, Zero) // _T_x: Emitted by ASL Compiler | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xA6, 0xFA, 0xDD, 0x3D, 0x1B, 0x36, 0xB4, 0x4E, | |
/* 0008 */ 0xA4, 0x24, 0x8D, 0x10, 0x08, 0x9D, 0x16, 0x53 | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_0) | |
If (LEqual (_T_0, Zero)) | |
{ | |
Return (Buffer (0x02) | |
{ | |
0xFF, 0x01 | |
}) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, One)) | |
{ | |
Return ("1.2") | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
ToInteger (DerefOf (Index (Arg3, Zero)), TMF2) | |
Store (0x12, TMF1) | |
Store (TMF1, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
Store (TMF2, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
If (LEqual (DAT, 0xF1)) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x03)) | |
{ | |
Name (PPI1, Package (0x02) | |
{ | |
Zero, | |
Zero | |
}) | |
Store (0x11, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (One) | |
} | |
Store (DAT, Index (PPI1, One)) | |
Return (PPI1) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x04)) | |
{ | |
Return (TRST) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x05)) | |
{ | |
Name (PPI2, Package (0x03) | |
{ | |
Zero, | |
Zero, | |
Zero | |
}) | |
Store (0x21, DAT) | |
Store (OFST, INQ) | |
Store (DAT, Index (PPI2, One)) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
Store (0x31, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
If (LEqual (DAT, 0xF0)) | |
{ | |
Store (0x51, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Store (0xFFFFFFF0, Index (PPI2, 0x02)) | |
Return (PPI2) | |
} | |
} | |
Else | |
{ | |
If (LEqual (DAT, 0xF1)) | |
{ | |
Store (0x51, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Store (0xFFFFFFF1, Index (PPI2, 0x02)) | |
Return (PPI2) | |
} | |
} | |
Else | |
{ | |
Store (DAT, Index (PPI2, 0x02)) | |
} | |
} | |
Return (PPI2) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x06)) | |
{ | |
Return (0x03) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x07)) | |
{ | |
ToInteger (DerefOf (Index (Arg3, Zero)), TMF2) | |
Store (0x12, TMF1) | |
Store (TMF1, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
Store (TMF2, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
If (LEqual (DAT, 0xF1)) | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x08)) | |
{ | |
ToInteger (DerefOf (Index (Arg3, Zero)), TMF2) | |
Store (0x43, TMF1) | |
Store (TMF1, DAT) | |
Store (OFST, INQ) | |
Store (TMF2, DAT) | |
Store (OFST, INQ) | |
Return (DAT) | |
} | |
Else | |
{ | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
Break | |
} | |
} | |
Else | |
{ | |
If (LEqual (Arg0, Buffer (0x10) | |
{ | |
/* 0000 */ 0xED, 0x54, 0x60, 0x37, 0x13, 0xCC, 0x75, 0x46, | |
/* 0008 */ 0x90, 0x1C, 0x47, 0x56, 0xD7, 0xF2, 0xD4, 0x5D | |
})) | |
{ | |
While (One) | |
{ | |
Store (ToInteger (Arg2), _T_1) | |
If (LEqual (_T_1, Zero)) | |
{ | |
Return (Buffer (One) | |
{ | |
0x03 | |
}) | |
} | |
Else | |
{ | |
If (LEqual (_T_1, One)) | |
{ | |
Store (0x22, TMF1) | |
Store (TMF1, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
ToInteger (DerefOf (Index (Arg3, Zero)), TMF1) | |
Store (TMF1, DAT) | |
Store (OFST, INQ) | |
If (LEqual (DAT, 0xFF)) | |
{ | |
Return (0x02) | |
} | |
Return (Zero) | |
} | |
Else | |
{ | |
} | |
} | |
Break | |
} | |
} | |
} | |
Return (Buffer (One) | |
{ | |
0x00 | |
}) | |
} | |
} | |
Scope (_SB.PCI0.LPCB) | |
{ | |
Device (EC0) | |
{ | |
Name (_HID, EisaId ("PNP0C09")) // _HID: Hardware ID | |
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings | |
{ | |
IO (Decode16, | |
0x0062, // Range Minimum | |
0x0062, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
IO (Decode16, | |
0x0066, // Range Minimum | |
0x0066, // Range Maximum | |
0x00, // Alignment | |
0x01, // Length | |
) | |
}) | |
Method (_GPE, 0, NotSerialized) // _GPE: General Purpose Events | |
{ | |
Store (0x0A, Local0) | |
Return (Local0) | |
} | |
Mutex (MUEC, 0x00) | |
Mutex (MU4T, 0x00) | |
Name (ECFL, Ones) | |
Method (ECAV, 0, NotSerialized) | |
{ | |
If (LGreaterEqual (SLPT, 0x04)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (NVLK, One)) | |
{ | |
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) // _T_x: Emitted by ASL Compiler | |
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) // _INI: Initialize | |
{ | |
If (LLessEqual (MSOS (), OSME)) | |
{ | |
Store (One, ECFL) | |
} | |
KINI () | |
} | |
Method (_REG, 2, NotSerialized) // _REG: Region Availability | |
{ | |
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, | |
, 1, | |
FSTG, 4, | |
WLDP, 1, | |
BTDP, 1, | |
WRST, 1, | |
BRST, 1, | |
WRPS, 1, | |
BRPS, 1, | |
Offset (0x52), | |
SYNA, 1, | |
ALPS, 1, | |
ELAN, 1, | |
STLC, 1, | |
FOLT, 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, | |
GSDT, 1, | |
PBAF, 1, | |
Offset (0x66), | |
PA3D, 1, | |
, 3, | |
TCCA, 4, | |
S4TF, 1, | |
BECF, 1, | |
MMOD, 4, | |
Offset (0x68) | |
} | |
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, | |
OPAD, 16, | |
OCAD, 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, | |
RSKY, 8, | |
WOLO, 8, | |
INSK, 8, | |
FPBA, 32, | |
FPTR, 32, | |
NVLK, 8, | |
NVLP, 64, | |
ACPI, 8, | |
NRS3, 16, | |
DPS3, 16, | |
S4FG, 8, | |
MODE, 8, | |
S4TM, 32, | |
EVET, 32, | |
ALSA, 16, | |
LSTP, 8, | |
EZFU, 8, | |
ISDF, 8, | |
NDTE, 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) | |
Name (OS13, 0x0110) | |
Name (OS14, 0x0120) | |
Name (OS15, 0x0130) | |
Name (OS16, 0x0140) | |
Name (OS17, 0x0150) | |
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 (LGreaterEqual (OSYS, 0x07DC)) | |
{ | |
Store (OSW8, OSFG) | |
} | |
Else | |
{ | |
If (LEqual (OSYS, 0x07D9)) | |
{ | |
Store (OSW7, OSFG) | |
} | |
Else | |
{ | |
If (LEqual (OSYS, 0x07D6)) | |
{ | |
Store (OSVT, OSFG) | |
} | |
Else | |
{ | |
If (LAnd (LGreaterEqual (OSYS, 0x07D1), LLessEqual (OSYS, 0x07D3))) | |
{ | |
Store (OSXP, OSFG) | |
} | |
Else | |
{ | |
If (LEqual (OSYS, 0x07D0)) | |
{ | |
Store (OSME, OSFG) | |
} | |
Else | |
{ | |
If (LEqual (OSYS, 0x07CE)) | |
{ | |
Store (OS98, OSFG) | |
} | |
Else | |
{ | |
Store (OSW8, 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) | |
Name (FNIV, Zero) | |
Device (ATKD) | |
{ | |
Name (_HID, "PNP0C14") // _HID: Hardware ID | |
Name (_UID, "ATK") // _UID: Unique ID | |
Name (ATKQ, Package (0x10) | |
{ | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
Name (AQHI, Zero) | |
Name (AQTI, 0x0F) | |
Name (AQNO, Zero) | |
Name (BSTD, Package (0x05) | |
{ | |
0x00010000, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
Name (PCHP, Package (0x05) | |
{ | |
0x00010000, | |
0x2698, | |
0x2A7B, | |
0x3F75, | |
0x2E22 | |
}) | |
Name (PCBS, Package (0x05) | |
{ | |
0x00010000, | |
0x2076, | |
0x29B3, | |
0x3DEF, | |
0x2D28 | |
}) | |
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) | |
} | |
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, 0xFFFFFFFF, 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 (SPEC (IIA0)) | |
} | |
If (LEqual (Local0, 0x494E424B)) | |
{ | |
Return (KBNI ()) | |
} | |
If (LEqual (Local0, 0x5256534F)) | |
{ | |
OSVR (IIA0) | |
Return (Zero) | |
} | |
If (LEqual (Local0, 0x53545344)) | |
{ | |
If (LEqual (IIA0, 0x00020017)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00060023)) | |
{ | |
Name (LASV, Zero) | |
If (LEqual (NVLK, One)) | |
{ | |
Return (LASV) | |
} | |
Store (Zero, Local0) | |
Store (0xFFFF, FSTA) | |
Store (0x55534243, FADR) | |
FSMI (0x05) | |
If (LEqual (FSTA, 0x03)) | |
{ | |
Store (And (^^PCI0.LPCB.EC0.STA8 (Zero), 0x03), Local0) | |
} | |
If (Ones) | |
{ | |
Or (0x04, Local0, Local0) | |
} | |
Store (Local0, LASV) | |
Return (Local0) | |
} | |
If (LEqual (IIA0, 0x00060024)) | |
{ | |
Return (Package (0x05) | |
{ | |
0x9C318086, | |
One, | |
0x9C268086, | |
0x0101, | |
0xFFFFFFFF | |
}) | |
} | |
If (LEqual (IIA0, 0x00060026)) | |
{ | |
Store (^^PCI0.LPCB.EC0.STA8 (Zero), Local0) | |
And (Local0, 0x04, Local0) | |
If (LEqual (Local0, 0x04)) | |
{ | |
Return (0x00010001) | |
} | |
Else | |
{ | |
If (LEqual (Local0, Zero)) | |
{ | |
Return (0x00010000) | |
} | |
} | |
} | |
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, 0x00050001)) | |
{ | |
If (LNot (ALSP)) | |
{ | |
Return (0x02) | |
} | |
And (GALS (), 0x10, Local0) | |
If (Local0) | |
{ | |
Return (0x00050001) | |
} | |
Else | |
{ | |
Return (0x00050000) | |
} | |
} | |
If (LEqual (IIA0, 0x00050013)) | |
{ | |
And (GALS (), 0x0F0F, Local0) | |
Return (Local0) | |
} | |
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, 0x00010001)) | |
{ | |
Return (0x00040000) | |
} | |
If (LEqual (IIA0, 0x00120012)) | |
{ | |
Return (PSTC (Zero)) | |
} | |
If (LEqual (IIA0, 0x00120015)) | |
{ | |
Subtract (SLMT, One, Local0) | |
Return (Or (Local0, 0x00010000)) | |
} | |
If (LEqual (IIA0, 0x00050021)) | |
{ | |
If (GLKB (One)) | |
{ | |
Store (GLKB (0x03), Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (GLKB (0x02), Local0, Local0) | |
Or (Local0, 0x00050000, Local0) | |
Return (Local0) | |
} | |
Return (0x8000) | |
} | |
If (LEqual (IIA0, 0x00120031)) | |
{ | |
If (DP3S) | |
{ | |
Return (0x00010001) | |
} | |
Else | |
{ | |
Return (0x00010000) | |
} | |
} | |
If (LEqual (IIA0, 0x00120032)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00120037)) | |
{ | |
Return (0x00010000) | |
} | |
If (LEqual (IIA0, 0x00120038)) | |
{ | |
Return (0x00010000) | |
} | |
If (LEqual (IIA0, 0x00120041)) | |
{ | |
Store (^^PCI0.LPCB.EC0.ST8E (0x16, Zero), Local0) | |
Store (^^PCI0.LPCB.EC0.ST8E (0x17, Zero), Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
If (LEqual (And (Local1, 0x8000), 0x8000)) | |
{ | |
Return (Add (Local1, Local0)) | |
} | |
Else | |
{ | |
Subtract (0x00010000, 0x06, Local2) | |
And (Local2, 0xFFFF, Local2) | |
Return (Local2) | |
} | |
} | |
If (LEqual (IIA0, 0x00120042)) | |
{ | |
Store (^^PCI0.LPCB.EC0.ST8E (0x18, Zero), Local0) | |
Store (^^PCI0.LPCB.EC0.ST8E (0x19, Zero), Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
If (LEqual (And (Local1, 0x8000), 0x8000)) | |
{ | |
Return (Add (Local1, Local0)) | |
} | |
Else | |
{ | |
Subtract (0x00010000, 0x05, Local2) | |
And (Local2, 0xFFFF, Local2) | |
Return (Local2) | |
} | |
} | |
If (LEqual (IIA0, 0x00120043)) | |
{ | |
Store (^^PCI0.LPCB.EC0.BIFW (0x13), Local0) | |
Return (Local0) | |
} | |
If (LEqual (IIA0, 0x00120044)) | |
{ | |
If (And (^^PCI0.LPCB.EC0.EPWS, 0x06)) | |
{ | |
And (^^PCI0.LPCB.EC0.EPWS, 0x06, Local0) | |
Store (Zero, Local1) | |
If (LEqual (Local0, 0x02)) | |
{ | |
Store (^^PCI0.LPCB.EC0.B0RC, Local1) | |
} | |
Else | |
{ | |
If (LEqual (Local0, 0x04)) | |
{ | |
Store (^^PCI0.LPCB.EC0.B1RC, Local1) | |
} | |
Else | |
{ | |
Store (Add (^^PCI0.LPCB.EC0.B0RC, ^^PCI0.LPCB.EC0.B1RC), Local1) | |
} | |
} | |
Return (Add (Local1, 0x00010000)) | |
} | |
Return (0x0001FFFF) | |
} | |
If (LEqual (IIA0, 0x00120045)) | |
{ | |
If (And (^^PCI0.LPCB.EC0.EPWS, 0x02)) | |
{ | |
Store (^^PCI0.LPCB.EC0.ST8E (0x24, Zero), Local0) | |
Store (^^PCI0.LPCB.EC0.ST8E (0x25, Zero), Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
Store (Add (Local1, Local0), Local2) | |
If (LEqual (Local2, Zero)) | |
{ | |
Store (0x4A38, Local2) | |
} | |
Return (Add (Local2, 0x00010000)) | |
} | |
Return (0x0001FFFF) | |
} | |
If (LEqual (IIA0, 0x00120046)) | |
{ | |
If (And (^^PCI0.LPCB.EC0.EPWS, 0x02)) | |
{ | |
Store (^^PCI0.LPCB.EC0.ST8E (0x26, Zero), Local0) | |
Store (^^PCI0.LPCB.EC0.ST8E (0x27, Zero), Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
Store (Add (Local1, Local0), Local2) | |
If (LEqual (Local2, Zero)) | |
{ | |
Store (0x2EE0, Local2) | |
} | |
Return (Add (Local2, 0x00010000)) | |
} | |
Return (0x0001FFFF) | |
} | |
If (LEqual (IIA0, 0x00120047)) | |
{ | |
If (And (^^PCI0.LPCB.EC0.EPWS, 0x06)) | |
{ | |
Store (Zero, Local1) | |
If (LEqual (Local0, 0x02)) | |
{ | |
Store (^^PCI0.LPCB.EC0.B0DV, Local1) | |
} | |
Else | |
{ | |
If (LEqual (Local0, 0x04)) | |
{ | |
Store (^^PCI0.LPCB.EC0.B1DV, Local1) | |
} | |
Else | |
{ | |
Store (Add (^^PCI0.LPCB.EC0.B0DV, ^^PCI0.LPCB.EC0.B1DV), Local1) | |
} | |
} | |
Return (Add (Local1, 0x00010000)) | |
} | |
Return (0x0001FFFF) | |
} | |
If (LEqual (IIA0, 0x00120049)) | |
{ | |
If (And (^^PCI0.LPCB.EC0.EPWS, 0x06)) | |
{ | |
Store (Zero, Local1) | |
If (LEqual (Local0, 0x02)) | |
{ | |
Store (^^PCI0.LPCB.EC0.B0FC, Local1) | |
} | |
Else | |
{ | |
If (LEqual (Local0, 0x04)) | |
{ | |
Store (^^PCI0.LPCB.EC0.B1FC, Local1) | |
} | |
Else | |
{ | |
Store (Add (^^PCI0.LPCB.EC0.B0FC, ^^PCI0.LPCB.EC0.B1FC), Local1) | |
} | |
} | |
Return (Add (Local1, 0x00010000)) | |
} | |
Return (0x0001FFFF) | |
} | |
If (LEqual (IIA0, 0x00080041)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00080042)) | |
{ | |
Return (0x00010000) | |
} | |
If (LEqual (IIA0, 0x00080043)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00080044)) | |
{ | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00120048)) | |
{ | |
Store (0x08, Local1) | |
Return (Add (Local1, 0x00010000)) | |
} | |
If (LEqual (IIA0, 0x0012004A)) | |
{ | |
Store (0xAD, Local1) | |
Return (Add (Local1, 0x00010000)) | |
} | |
If (LEqual (IIA0, 0x00120050)) | |
{ | |
Store (Zero, Index (BSTD, One)) | |
Store (Ones, Index (BSTD, 0x02)) | |
Store (Ones, Index (BSTD, 0x03)) | |
Store (Ones, Index (BSTD, 0x04)) | |
If (LNot (^^PCI0.LPCB.EC0.BATP (Zero))) | |
{ | |
Return (Package (0x05) | |
{ | |
0x0001FFFF, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
} | |
^^PCI0.BAT0._BST () | |
Store (0x00010000, Index (BSTD, Zero)) | |
Store (DerefOf (Index (^^PCI0.BAT0.PBST, Zero)), Index (BSTD, One)) | |
Store (DerefOf (Index (^^PCI0.BAT0.PBST, One)), Index (BSTD, 0x02)) | |
Store (DerefOf (Index (^^PCI0.BAT0.PBST, 0x02)), Index (BSTD, 0x03)) | |
Store (DerefOf (Index (^^PCI0.BAT0.PBST, 0x03)), Index (BSTD, 0x04)) | |
Return (BSTD) | |
} | |
If (LEqual (IIA0, 0x00120051)) | |
{ | |
If (LNot (^^PCI0.LPCB.EC0.BATP (Zero))) | |
{ | |
Return (Package (0x05) | |
{ | |
0x0001FFFF, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
} | |
Return (PCHP) | |
} | |
If (LEqual (IIA0, 0x00120052)) | |
{ | |
If (LNot (^^PCI0.LPCB.EC0.BATP (Zero))) | |
{ | |
Return (Package (0x05) | |
{ | |
0x0001FFFF, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
} | |
Return (PCBS) | |
} | |
} | |
If (LEqual (Local0, 0x53564544)) | |
{ | |
If (LEqual (IIA0, 0x00020018)) | |
{ | |
If (LEqual (IIA1, One)) | |
{ | |
Or (EGC2, One, EGC2) | |
Return (One) | |
} | |
If (LEqual (IIA1, 0x02)) | |
{ | |
Or (EGC2, 0x02, EGC2) | |
Return (One) | |
} | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00060023)) | |
{ | |
If (LEqual (NVLK, One)) | |
{ | |
Return (Zero) | |
} | |
Store (Zero, Local0) | |
Store (0xFFFF, FSTA) | |
Store (0x55534243, FADR) | |
FSMI (0x05) | |
ShiftRight (IIA1, 0x09, Local0) | |
If (LEqual (And (Local0, One), One)) | |
{ | |
Store (One, VBOF) | |
ShiftRight (IIA1, 0x18, Local0) | |
Multiply (Local0, 0x0100, Local0) | |
Or (Local0, VBOF, VBOF) | |
} | |
Else | |
{ | |
Store (Zero, VBOF) | |
} | |
And (IIA1, 0xFF, Local0) | |
^^PCI0.LPCB.EC0.STA9 (One, Local0) | |
ShiftRight (IIA1, 0x08, Local0) | |
Store (^^PCI0.LPCB.EC0.STA8 (Zero), Local1) | |
If (LEqual (And (Local0, One), One)) | |
{ | |
Or (Local1, 0x02, Local1) | |
And (Local1, 0x0F, Local2) | |
Store (Local2, USBC) | |
^^PCI0.LPCB.EC0.STA9 (Zero, Local1) | |
} | |
Else | |
{ | |
And (Local1, 0xFD, Local1) | |
And (Local1, 0x0F, Local2) | |
Store (Local2, USBC) | |
^^PCI0.LPCB.EC0.STA9 (Zero, Local1) | |
} | |
Store (0xFFFF, FSTA) | |
Store (0x55534243, FADR) | |
FSMI (0x04) | |
If (LEqual (FSTA, 0x03)) | |
{ | |
Store (0xFFFF, FSTA) | |
FSMI (0x06) | |
If (LNotEqual (FSTA, Zero)) | |
{ | |
Return (Zero) | |
} | |
} | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00060026)) | |
{ | |
Store (Zero, Local0) | |
Store (0xFFFF, FSTA) | |
Store (0x55534243, FADR) | |
FSMI (0x05) | |
Store (^^PCI0.LPCB.EC0.STA8 (Zero), Local0) | |
If (LEqual (IIA1, One)) | |
{ | |
Or (0x04, USBC, Local2) | |
Store (Local2, USBC) | |
Or (Local0, 0x04, Local0) | |
^^PCI0.LPCB.EC0.STA9 (Zero, Local0) | |
} | |
Else | |
{ | |
And (0xFB, USBC, Local2) | |
Store (Local2, USBC) | |
And (Local0, 0xFB, Local0) | |
^^PCI0.LPCB.EC0.STA9 (Zero, Local0) | |
} | |
Store (0xFFFF, FSTA) | |
Store (0x55534243, FADR) | |
FSMI (0x04) | |
If (LEqual (FSTA, 0x03)) | |
{ | |
Store (0xFFFF, FSTA) | |
FSMI (0x06) | |
If (LNotEqual (FSTA, Zero)) | |
{ | |
Return (Zero) | |
} | |
} | |
Return (One) | |
} | |
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, 0x00050011)) | |
{ | |
If (LEqual (IIA1, 0x02)) | |
{ | |
^^PCI0.LPCB.EC0.SPIN (0x72, One) | |
Store (One, ^^PCI0.LPCB.EC0.BLCT) | |
} | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00050012)) | |
{ | |
SPLV (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00050001)) | |
{ | |
Return (ALSC (IIA1)) | |
} | |
If (LEqual (IIA0, 0x00050013)) | |
{ | |
Return (ALSL (IIA1)) | |
} | |
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))) | |
} | |
If (LEqual (IIA0, 0x00050021)) | |
{ | |
SLKB (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00120031)) | |
{ | |
DESP (IIA1) | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00120037)) | |
{ | |
Store (S4FG, Local0) | |
If (LEqual (IIA1, One)) | |
{ | |
Store (One, MODE) | |
} | |
Else | |
{ | |
Store (Zero, MODE) | |
} | |
Return (0x00010000) | |
} | |
If (LEqual (IIA0, 0x00120038)) | |
{ | |
Store (IIA1, S4TM) | |
Return (0x00010000) | |
} | |
If (LEqual (IIA0, 0x00100021)) | |
{ | |
^^PCI0.LPCB.EC0._Q0B () | |
Return (One) | |
} | |
If (LEqual (IIA0, 0x00100022)) | |
{ | |
If (And (IIA1, 0x02)) | |
{ | |
^^PCI0.LPCB.EC0.STB1 (0x04) | |
^^PCI0.LPCB.EC0.STB1 (0x05) | |
Store (One, FNIV) | |
Return (One) | |
} | |
Else | |
{ | |
KINI () | |
Return (One) | |
} | |
Return (Zero) | |
} | |
If (LEqual (IIA0, 0x00120053)) | |
{ | |
If (And (IIA1, One)) | |
{ | |
BATF (One) | |
Return (One) | |
} | |
Else | |
{ | |
BATF (Zero) | |
Return (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, 0x57504346)) | |
{ | |
Return (FCPW (IIA0)) | |
} | |
If (LEqual (Local0, 0x50504346)) | |
{ | |
Return (FCPP ()) | |
} | |
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 (0x0118) | |
} | |
If (LEqual (Local0, 0x59454B48)) | |
{ | |
Store (^^PCI0.LPCB.EC0.CDT1, Local0) | |
Return (One) | |
} | |
If (LEqual (Local0, 0x5446424B)) | |
{ | |
Store (IIA0, ^^PCI0.LPCB.EC0.HKEN) | |
Return (One) | |
} | |
Return (0xFFFFFFFE) | |
} | |
Method (_WED, 1, NotSerialized) // _Wxx: Wake Event | |
{ | |
If (LEqual (Arg0, 0xFF)) | |
{ | |
Return (GANQ ()) | |
} | |
Return (Ones) | |
} | |
Method (IANE, 1, Serialized) | |
{ | |
IANQ (Arg0) | |
Notify (ATKD, 0xFF) | |
} | |
Method (INIT, 1, NotSerialized) | |
{ | |
Store (One, ATKP) | |
Return (MNAM) | |
} | |
Method (BSTS, 0, NotSerialized) | |
{ | |
Store (IKFG, Local0) | |
Or (Local0, ShiftLeft (IKF2, 0x08), Local0) | |
Store (^^PCI0.LPCB.EC0.RRAM (0x04FE), Local1) | |
Store (Zero, Local2) | |
If (LEqual (Local1, 0x35)) | |
{ | |
Store (One, Local2) | |
} | |
Else | |
{ | |
If (LEqual (Local1, 0x37)) | |
{ | |
Store (One, Local2) | |
} | |
} | |
If (LEqual (Local2, One)) | |
{ | |
If (S4TF) | |
{ | |
If (LEqual (MODE, One)) | |
{ | |
Store (0x08, Local1) | |
Return (Local1) | |
} | |
} | |
} | |
If (ACPF) | |
{ | |
Store (Zero, Local0) | |
Return (Local0) | |
} | |
Else | |
{ | |
Store (^^PCI0.LPCB.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) | |
If (ALSP) | |
{ | |
Or (Local0, 0x2000, Local0) | |
} | |
Or (Local0, 0x00020000, Local0) | |
Or (Local0, 0x00080000, Local0) | |
Or (Local0, 0x00400000, Local0) | |
Return (Local0) | |
} | |
Method (SPEC, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (0x00070009) | |
} | |
Else | |
{ | |
If (LEqual (Arg0, One)) | |
{ | |
Return (One) | |
} | |
} | |
Return (0xFFFFFFFE) | |
} | |
Method (OSVR, 1, NotSerialized) | |
{ | |
If (LEqual (OSFG, Zero)) | |
{ | |
Store (Arg0, OSFG) | |
} | |
} | |
Method (GPLV, 0, NotSerialized) | |
{ | |
Return (LBTN) | |
} | |
Method (SPLV, 1, NotSerialized) | |
{ | |
Store (Arg0, LBTN) | |
^^PCI0.LPCB.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 (DESP, 1, NotSerialized) | |
{ | |
ODSP (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 (ALSC, 1, NotSerialized) | |
{ | |
If (Arg0) | |
{ | |
^^PCI0.LPCB.EC0.TALS (One) | |
Store (^^PCI0.LPCB.EC0.RALS (), Local0) | |
} | |
Else | |
{ | |
^^PCI0.LPCB.EC0.TALS (Zero) | |
Store (0x0190, Local0) | |
} | |
Store (Arg0, ALAE) | |
If (LEqual (MSOS (), OSW7)) | |
{ | |
^^PCI0.GFX0.AINT (Zero, Local0) | |
} | |
Else | |
{ | |
Notify (ALS, 0x80) | |
} | |
Return (One) | |
} | |
Method (ALSL, 1, NotSerialized) | |
{ | |
Return (One) | |
} | |
Method (GALS, 0, NotSerialized) | |
{ | |
And (LBTN, 0x0F, Local0) | |
Or (Local0, 0x20, Local0) | |
If (ALAE) | |
{ | |
Or (Local0, 0x10, Local0) | |
} | |
Subtract (0x0B, One, Local1) | |
ShiftLeft (Local1, 0x08, Local1) | |
Or (Local0, Local1, Local0) | |
Return (Local0) | |
} | |
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)) | |
{ | |
^^PCI0.LPCB.EC0.ST98 (QFAN) | |
} | |
If (LEqual (Arg0, 0x02)) | |
{ | |
^^PCI0.LPCB.EC0.ST98 (0xFF) | |
} | |
Return (One) | |
} | |
Method (ANVI, 1, Serialized) | |
{ | |
Store (ASMI (Arg0), Local0) | |
Return (Local0) | |
} | |
Method (PSTC, 1, Serialized) | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (CPUP, Local0) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (CPUP, Local0, Local0) | |
Return (Local0) | |
} | |
If (LGreater (Arg0, CPUP)) | |
{ | |
Return (0xFFFFFFFE) | |
} | |
Store (Arg0, SLMT) | |
Store (Subtract (CPUP, Arg0), \_PR.CPU0._PPC) | |
While (One) | |
{ | |
Store (TCNT, _T_0) | |
If (LEqual (_T_0, 0x08)) | |
{ | |
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) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x04)) | |
{ | |
Notify (\_PR.CPU0, 0x80) | |
Notify (\_PR.CPU1, 0x80) | |
Notify (\_PR.CPU2, 0x80) | |
Notify (\_PR.CPU3, 0x80) | |
} | |
Else | |
{ | |
If (LEqual (_T_0, 0x02)) | |
{ | |
Notify (\_PR.CPU0, 0x80) | |
Notify (\_PR.CPU1, 0x80) | |
} | |
Else | |
{ | |
Notify (\_PR.CPU0, 0x80) | |
} | |
} | |
} | |
Break | |
} | |
If (CondRefOf (\_SB.PCCD.PENB)) | |
{ | |
If (LEqual (^^PCCD.PENB, One)) | |
{ | |
Notify (PCCD, 0x82) | |
} | |
} | |
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.LPCB.EC0.MUEC, 0xFFFF) | |
Store (Local0, ^^PCI0.LPCB.EC0.CDT3) | |
Store (Local1, ^^PCI0.LPCB.EC0.CDT2) | |
Store (Local2, ^^PCI0.LPCB.EC0.CDT1) | |
Store (Local3, ^^PCI0.LPCB.EC0.CMD1) | |
Store (0x05, Local0) | |
While (LAnd (Local0, ^^PCI0.LPCB.EC0.CMD1)) | |
{ | |
Sleep (One) | |
Decrement (Local0) | |
} | |
Store (^^PCI0.LPCB.EC0.CDT3, Local0) | |
Store (^^PCI0.LPCB.EC0.CDT2, Local1) | |
Store (^^PCI0.LPCB.EC0.CDT1, Local2) | |
Store (^^PCI0.LPCB.EC0.CMD1, Local3) | |
Release (^^PCI0.LPCB.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 (GLKB, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, One)) | |
{ | |
Store (^^PCI0.LPCB.EC0.RRAM (0x04B0), Local0) | |
And (Local0, 0x80, Local0) | |
If (Local0) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
Else | |
{ | |
If (LEqual (Arg0, 0x02)) | |
{ | |
Return (KBLV) | |
} | |
Else | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
If (ALAE) | |
{ | |
And (LSTP, One, Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
Store (^^PCI0.LPCB.EC0.ST8E (0x31, Zero), Local0) | |
} | |
Else | |
{ | |
Store (^^PCI0.LPCB.EC0.RRAM (0x04C9), Local0) | |
} | |
If (LLessEqual (Local0, 0x03)) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
If (LAnd (LLessEqual (Local0, 0x05), LGreater (Local0, 0x03))) | |
{ | |
Return (One) | |
} | |
Else | |
{ | |
If (LGreater (Local0, 0x05)) | |
{ | |
Return (0x02) | |
} | |
Else | |
{ | |
Return (0x80) | |
} | |
} | |
} | |
} | |
Return (0x80) | |
} | |
} | |
} | |
Return (Ones) | |
} | |
Name (PWKB, Buffer (0x04) | |
{ | |
0x00, 0x55, 0xAA, 0xFF | |
}) | |
Method (SLKB, 1, NotSerialized) | |
{ | |
Store (And (Arg0, 0x7F), KBLV) | |
If (And (Arg0, 0x80)) | |
{ | |
Store (DerefOf (Index (PWKB, KBLV)), Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
^^PCI0.LPCB.EC0.WRAM (0x04B1, Local0) | |
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) | |
{ | |
Device (ASHS) | |
{ | |
Name (_HID, "ATK4001") // _HID: Hardware ID | |
Method (HSWC, 1, Serialized) | |
{ | |
If (LLess (Arg0, 0x02)) | |
{ | |
OWGD (Arg0) | |
Return (One) | |
} | |
If (LEqual (Arg0, 0x02)) | |
{ | |
Return (OWGS ()) | |
} | |
If (LEqual (Arg0, 0x03)) | |
{ | |
Return (0xFF) | |
} | |
If (LEqual (Arg0, 0x80)) | |
{ | |
Return (One) | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
Return (0x0F) | |
} | |
Else | |
{ | |
Return (Zero) | |
} | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (AC0) | |
{ | |
Name (_HID, "ACPI0003") // _HID: Hardware ID | |
Method (_PSR, 0, NotSerialized) // _PSR: Power Source | |
{ | |
Return (^^LPCB.EC0.ACAP ()) | |
} | |
Name (_PCL, Package (0x01) // _PCL: Power Consumer List | |
{ | |
PCI0 | |
}) | |
} | |
} | |
Scope (_SB.PCI0.LPCB.EC0) | |
{ | |
Method (ACAP, 0, Serialized) | |
{ | |
Return (ACPF) | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Device (BAT0) | |
{ | |
Name (_HID, EisaId ("PNP0C0A")) // _HID: Hardware ID | |
Name (_UID, Zero) // _UID: Unique ID | |
Name (_PCL, Package (0x01) // _PCL: Power Consumer List | |
{ | |
PCI0 | |
}) | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If (^^LPCB.EC0.BATP (Zero)) | |
{ | |
Return (0x1F) | |
} | |
Else | |
{ | |
Return (0x0F) | |
} | |
} | |
Name (LOW2, 0x012C) | |
Name (PUNT, One) | |
Name (LFCC, 0x1770) | |
Name (NBIF, Package (0x0D) | |
{ | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
One, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
"", | |
"", | |
"", | |
"" | |
}) | |
Name (PBIF, Package (0x0D) | |
{ | |
One, | |
0x1770, | |
0x1770, | |
One, | |
0x39D0, | |
0x0258, | |
0x012C, | |
0x3C, | |
0x3C, | |
"M3N", | |
" ", | |
"LIon", | |
"ASUSTeK" | |
}) | |
Name (PBST, Package (0x04) | |
{ | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
Name (BIXT, Package (0x14) | |
{ | |
Zero, | |
Zero, | |
0x1770, | |
0x1770, | |
One, | |
0x39D0, | |
0x0258, | |
0x012C, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0x3C, | |
0x3C, | |
"M3N", | |
" ", | |
"LIon", | |
"ASUSTeK" | |
}) | |
Name (NBIX, Package (0x14) | |
{ | |
Zero, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
One, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
Zero, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
"", | |
"", | |
"", | |
"" | |
}) | |
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) | |
Store (Zero, Index (PBIF, Zero)) | |
Multiply (DerefOf (Index (PBIF, One)), Local0, Index (PBIF, One | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x02)), Local0, Index (PBIF, 0x02 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x05)), Local0, Index (PBIF, 0x05 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x06)), Local0, Index (PBIF, 0x06 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x07)), Local0, Index (PBIF, 0x07 | |
)) | |
Multiply (DerefOf (Index (PBIF, 0x08)), Local0, Index (PBIF, 0x08 | |
)) | |
Divide (DerefOf (Index (PBIF, One)), 0x03E8, Local2, Index (PBIF, | |
One)) | |
Divide (DerefOf (Index (PBIF, 0x02)), 0x03E8, Local2, Index (PBIF, | |
0x02)) | |
Divide (DerefOf (Index (PBIF, 0x05)), 0x03E8, Local2, Index (PBIF, | |
0x05)) | |
Divide (DerefOf (Index (PBIF, 0x06)), 0x03E8, Local2, Index (PBIF, | |
0x06)) | |
Divide (DerefOf (Index (PBIF, 0x07)), 0x03E8, Local2, Index (PBIF, | |
0x07)) | |
Divide (DerefOf (Index (PBIF, 0x08)), 0x03E8, Local2, Index (PBIF, | |
0x08)) | |
} | |
} | |
Method (_BIF, 0, NotSerialized) // _BIF: Battery Information | |
{ | |
If (LNot (^^LPCB.EC0.BATP (Zero))) | |
{ | |
Return (NBIF) | |
} | |
If (LEqual (^^LPCB.EC0.GBTT (Zero), 0xFF)) | |
{ | |
Return (NBIF) | |
} | |
BATO () | |
BATS (Zero) | |
Store (^^LPCB.EC0.BIF9 (), Index (PBIF, 0x09)) | |
Store (ONAM, Index (PBIF, 0x0C)) | |
Store (^^LPCB.EC0.BIF0 (), Local0) | |
Store (^^LPCB.EC0.BIF1 (), Local1) | |
Store (^^LPCB.EC0.BIF2 (), Local2) | |
Store (^^LPCB.EC0.BIF3 (), Local3) | |
Store (^^LPCB.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 (^^LPCB.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 (And (^^LPCB.EC0.EB0S, 0x08)) | |
{ | |
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, ^^LPCB.EC0.B0DV, 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 (^^LPCB.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) | |
{ | |
Store (^^LPCB.EC0.B0DV, Index (PBST, 0x03)) | |
Store (DerefOf (Index (PBST, 0x03)), Local0) | |
Multiply (DerefOf (Index (PBST, One)), Local0, Index (PBST, One | |
)) | |
Divide (DerefOf (Index (PBST, One)), 0x03E8, Local1, Index (PBST, | |
One)) | |
Multiply (DerefOf (Index (PBST, 0x02)), Local0, Index (PBST, 0x02 | |
)) | |
Divide (DerefOf (Index (PBST, 0x02)), 0x03E8, Local1, Index (PBST, | |
0x02)) | |
} | |
} | |
Method (_BST, 0, NotSerialized) // _BST: Battery Status | |
{ | |
Store (Zero, Index (PBST, Zero)) | |
Store (Ones, Index (PBST, One)) | |
Store (Ones, Index (PBST, 0x02)) | |
Store (Ones, Index (PBST, 0x03)) | |
If (LNot (^^LPCB.EC0.BATP (Zero))) | |
{ | |
Return (PBST) | |
} | |
If (LEqual (^^LPCB.EC0.GBTT (Zero), 0xFF)) | |
{ | |
Return (PBST) | |
} | |
If (MES4) | |
{ | |
Decrement (MES4) | |
Return (PBST) | |
} | |
BATO () | |
BATS (Zero) | |
Store (^^LPCB.EC0.BSTS (), Local0) | |
Store (^^LPCB.EC0.BCRT (), Local1) | |
Store (^^LPCB.EC0.BRCP (), Local2) | |
Store (^^LPCB.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) | |
} | |
Method (_BIX, 0, NotSerialized) // _BIX: Battery Information Extended | |
{ | |
If (LNot (^^LPCB.EC0.BATP (Zero))) | |
{ | |
Return (NBIX) | |
} | |
If (LEqual (^^LPCB.EC0.GBTT (Zero), 0xFF)) | |
{ | |
Return (NBIX) | |
} | |
_BIF () | |
Store (DerefOf (Index (PBIF, Zero)), Index (BIXT, One)) | |
Store (DerefOf (Index (PBIF, One)), Index (BIXT, 0x02)) | |
Store (DerefOf (Index (PBIF, 0x02)), Index (BIXT, 0x03)) | |
Store (DerefOf (Index (PBIF, 0x03)), Index (BIXT, 0x04)) | |
Store (DerefOf (Index (PBIF, 0x04)), Index (BIXT, 0x05)) | |
Store (DerefOf (Index (PBIF, 0x05)), Index (BIXT, 0x06)) | |
Store (DerefOf (Index (PBIF, 0x06)), Index (BIXT, 0x07)) | |
Store (DerefOf (Index (PBIF, 0x07)), Index (BIXT, 0x0E)) | |
Store (DerefOf (Index (PBIF, 0x08)), Index (BIXT, 0x0F)) | |
Store (DerefOf (Index (PBIF, 0x09)), Index (BIXT, 0x10)) | |
Store (DerefOf (Index (PBIF, 0x0A)), Index (BIXT, 0x11)) | |
Store (DerefOf (Index (PBIF, 0x0B)), Index (BIXT, 0x12)) | |
Store (DerefOf (Index (PBIF, 0x0C)), Index (BIXT, 0x13)) | |
If (LEqual (DerefOf (Index (BIXT, One)), One)) | |
{ | |
Store (Zero, Index (BIXT, One)) | |
Store (DerefOf (Index (BIXT, 0x05)), Local0) | |
Multiply (DerefOf (Index (BIXT, 0x02)), Local0, Index (BIXT, 0x02 | |
)) | |
Multiply (DerefOf (Index (BIXT, 0x03)), Local0, Index (BIXT, 0x03 | |
)) | |
Multiply (DerefOf (Index (BIXT, 0x06)), Local0, Index (BIXT, 0x06 | |
)) | |
Multiply (DerefOf (Index (BIXT, 0x07)), Local0, Index (BIXT, 0x07 | |
)) | |
Multiply (DerefOf (Index (BIXT, 0x0E)), Local0, Index (BIXT, 0x0E | |
)) | |
Multiply (DerefOf (Index (BIXT, 0x0F)), Local0, Index (BIXT, 0x0F | |
)) | |
Divide (DerefOf (Index (BIXT, 0x02)), 0x03E8, Local0, Index (BIXT, | |
0x02)) | |
Divide (DerefOf (Index (BIXT, 0x03)), 0x03E8, Local0, Index (BIXT, | |
0x03)) | |
Divide (DerefOf (Index (BIXT, 0x06)), 0x03E8, Local0, Index (BIXT, | |
0x06)) | |
Divide (DerefOf (Index (BIXT, 0x07)), 0x03E8, Local0, Index (BIXT, | |
0x07)) | |
Divide (DerefOf (Index (BIXT, 0x0E)), 0x03E8, Local0, Index (BIXT, | |
0x0E)) | |
Divide (DerefOf (Index (BIXT, 0x0F)), 0x03E8, Local0, Index (BIXT, | |
0x0F)) | |
} | |
Store (^^LPCB.EC0.B0C3, Index (BIXT, 0x08)) | |
Store (0x0001869F, Index (BIXT, 0x09)) | |
Return (BIXT) | |
} | |
Method (_BTP, 1, NotSerialized) // _BTP: Battery Trip Point | |
{ | |
^^LPCB.EC0.ST8E (0x29, 0xFF) | |
^^LPCB.EC0.ST8E (0x2A, 0xFF) | |
^^LPCB.EC0.ST8E (0x28, 0x0F) | |
If (LNotEqual (Arg0, Zero)) | |
{ | |
Store (DerefOf (Index (PBIF, 0x04)), Local0) | |
Multiply (Arg0, 0x03E8, Local1) | |
Divide (Local1, Local0, Local2, Local3) | |
^^LPCB.EC0.ST9E (0x29, 0xFF, And (Local3, 0xFF)) | |
ShiftRight (Local3, 0x08, Local2) | |
And (Local2, 0xFF, Local2) | |
^^LPCB.EC0.ST9E (0x2A, 0xFF, Local2) | |
} | |
} | |
} | |
} | |
Scope (_SB.PCI0) | |
{ | |
Name (B0CR, Zero) | |
Name (B1CR, Zero) | |
Method (GGCC, 1, Serialized) | |
{ | |
BATO () | |
BATS (Arg0) | |
Store (^LPCB.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.LPCB.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 (BSLF) | |
{ | |
Store (B1ST, Local0) | |
} | |
Else | |
{ | |
Store (B0ST, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BCRT, 0, NotSerialized) | |
{ | |
If (BSLF) | |
{ | |
Store (B1CC, Local0) | |
} | |
Else | |
{ | |
Store (B0CC, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BRCP, 0, NotSerialized) | |
{ | |
If (BSLF) | |
{ | |
Store (B1RC, Local0) | |
} | |
Else | |
{ | |
Store (B0RC, Local0) | |
} | |
If (LEqual (Local0, 0xFFFF)) | |
{ | |
Store (Ones, Local0) | |
} | |
Return (Local0) | |
} | |
Method (BVOT, 0, NotSerialized) | |
{ | |
If (BSLF) | |
{ | |
Store (B1VL, Local0) | |
} | |
Else | |
{ | |
Store (B0VL, Local0) | |
} | |
Return (Local0) | |
} | |
} | |
Scope (\) | |
{ | |
Method (CHGS, 1, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.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.LPCB.EC0) | |
{ | |
Method (_QA1, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
Store (DCPS (Zero), DCPF) | |
If (DCPF) | |
{ | |
Sleep (0x07D0) | |
} | |
Notify (BAT0, 0x80) | |
Notify (BAT0, 0x81) | |
} | |
Method (_QA5, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
Store (One, BLLO) | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x6E) | |
} | |
Else | |
{ | |
If (BATP (Zero)) | |
{ | |
Notify (BAT0, 0x80) | |
} | |
} | |
} | |
Method (_QA3, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
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.LPCB.EC0.EC0S (Arg0) | |
Store (Arg0, \_SB.SLPN) | |
DIAG (Add (Arg0, 0xD0)) | |
PPRJ (Arg0) | |
Store (Arg0, \_SB.SLPT) | |
If (Arg0) | |
{ | |
STRP (One) | |
} | |
PRJS (Arg0) | |
If (LEqual (Arg0, 0x03)) | |
{ | |
\_SB.PCI0.LPCB.EC0.ST8E (0x12, 0xFF) | |
\_SB.PCI0.LPCB.EC0.ST9E (0x12, 0x05, One) | |
If (LAnd (LEqual (\_SB.DP3S, One), LEqual (\_SB.ACPF, Zero))) | |
{ | |
\_SB.PCI0.LPCB.EC0.ST9E (Zero, 0x08, One) | |
} | |
Else | |
{ | |
\_SB.PCI0.LPCB.EC0.ST8E (Zero, 0x08) | |
} | |
} | |
ISMI (0x9D) | |
} | |
Method (OEMW, 1, NotSerialized) | |
{ | |
ISMI (0xAA) | |
Store (Zero, \_SB.SLPT) | |
\_SB.PCI0.LPCB.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.PCI0.LPCB.TPM) | |
{ | |
Method (_HID, 0, NotSerialized) // _HID: Hardware ID | |
{ | |
Return (OTID ()) | |
} | |
Name (_CID, EisaId ("PNP0C31")) // _CID: Compatible ID | |
OperationRegion (\TCMM, SystemMemory, 0xFED40000, 0x5000) | |
Field (TCMM, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0xF00), | |
VDID, 32 | |
} | |
Method (OTID, 0, Serialized) | |
{ | |
Store (ACCS, Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
If (LEqual (VDID, 0x687119FA)) | |
{ | |
Return (0x0435CF4D) | |
} | |
Else | |
{ | |
If (LEqual (VDID, 0x000B15D1)) | |
{ | |
Return (0x0201D824) | |
} | |
Else | |
{ | |
Return (0x310CD041) | |
} | |
} | |
} | |
Else | |
{ | |
Return (0x310CD041) | |
} | |
} | |
} | |
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")) // _HID: Hardware ID | |
Name (_CID, EisaId ("PNP0C02")) // _CID: Compatible ID | |
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.LPCB.EC0.ECPU, TMPC) | |
Store (TMPC, Index (TMPV, Zero)) | |
Store (^^PCI0.LPCB.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, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0x1A, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF, | |
0xFFFFFFFF | |
}) | |
Name (PADD, Package (0x0A) | |
{ | |
0x02, | |
0x0271, | |
0x0270, | |
0x1A, | |
0x62, | |
0x63, | |
0x60, | |
0x61, | |
0x65, | |
0x64 | |
}) | |
Method (PADT, 0, NotSerialized) | |
{ | |
And (^^PCI0.LPCB.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 (0xFFFFFFFF) | |
} | |
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.LPCB.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 (One, 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.LPCB.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.LPCB.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.LPCB.EC0.SMBR (^^PCI0.LPCB.EC0.RDWD, ^^PCI0.LPCB.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.LPCB.EC0.SMBW (^^PCI0.LPCB.EC0.WRWD, ^^PCI0.LPCB.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.LPCB.EC0.SMBR (^^PCI0.LPCB.EC0.RDBL, ^^PCI0.LPCB.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.LPCB.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.LPCB.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.LPCB.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.LPCB.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.LPCB.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) | |
} | |
If (LEqual (Arg2, 0x04)) | |
{ | |
Store (GFII (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 (GFII, 2, NotSerialized) | |
{ | |
If (LLess (Arg1, 0x10)) | |
{ | |
Return (0x02) | |
} | |
OperationRegion (\F174, SystemMemory, Arg0, Arg1) | |
Field (F174, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
SFII, 8 | |
} | |
Store (BECF, SFII) | |
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 (NVIN, 2, NotSerialized) | |
{ | |
OperationRegion (FM1F, SystemMemory, Arg0, Arg1) | |
Field (FM1F, DWordAcc, NoLock, Preserve) | |
{ | |
Offset (0x08), | |
AM1F, 32 | |
} | |
Return (ANVI (AM1F)) | |
} | |
Method (BATF, 1, NotSerialized) | |
{ | |
Store (GNBF, Local0) | |
OperationRegion (FMAD, SystemMemory, Local0, 0x10) | |
Field (FMAD, DWordAcc, NoLock, Preserve) | |
{ | |
MFUN, 16, | |
SFUN, 16, | |
LEN, 16, | |
SM1X, 8, | |
EM1X, 8, | |
BATE, 8, | |
Offset (0x10) | |
} | |
Store (0x1F, MFUN) | |
Store (0x14, SFUN) | |
Store (0x10, LEN) | |
If (Arg0) | |
{ | |
Store (One, BATE) | |
} | |
Else | |
{ | |
Store (Zero, BATE) | |
} | |
Store (Zero, EM1X) | |
Store (One, SM1X) | |
MF1X (Local0, LEN, MFUN, SFUN) | |
} | |
Method (MF1F, 3, NotSerialized) | |
{ | |
If (LEqual (Arg2, 0x11)) | |
{ | |
Return (NVIN (Arg0, Arg1)) | |
} | |
BSMI (Arg0) | |
Return (Zero) | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (AGLN, 4, NotSerialized) | |
{ | |
} | |
} | |
Scope (_SB.ATKD) | |
{ | |
Method (OFBD, 1, NotSerialized) | |
{ | |
Name (FBDT, Package (0x52) | |
{ | |
0x88, | |
0x89, | |
0x8A, | |
0x8B, | |
0x8C, | |
0x8D, | |
0x8E, | |
0x8F, | |
0x70, | |
0x71, | |
0x72, | |
0x73, | |
0x74, | |
0x75, | |
0x76, | |
0x77, | |
0x78, | |
0x79, | |
0x7A, | |
0x7B, | |
0x7C, | |
0x7D, | |
0x7E, | |
0x7F, | |
0x60, | |
0x61, | |
0x62, | |
0x63, | |
0x64, | |
0x65, | |
0x66, | |
0x67, | |
0x91, | |
0x92, | |
0x93, | |
0x96, | |
0xE0, | |
0xE1, | |
0xE2, | |
0xE3, | |
0xE4, | |
0xE5, | |
0xE6, | |
0xE7, | |
0xE8, | |
0xE9, | |
0xEA, | |
0xEB, | |
0xEC, | |
0xED, | |
0xEE, | |
0xEF, | |
0xD0, | |
0xD1, | |
0xD2, | |
0xD3, | |
0xD4, | |
0xD5, | |
0xD6, | |
0xD7, | |
0xD8, | |
0xD9, | |
0xDA, | |
0xDB, | |
0xDC, | |
0xDD, | |
0xDE, | |
0xDF, | |
0xC0, | |
0xC1, | |
0xC2, | |
0xC3, | |
0xC4, | |
0xC5, | |
0xC6, | |
0xC7, | |
0xF1, | |
0xF2, | |
0xF3, | |
0xF6, | |
0xF7, | |
0xFA | |
}) | |
Store (Match (FBDT, MEQ, Arg0, MTR, Zero, Zero), Local0) | |
Increment (Local0) | |
Return (Local0) | |
} | |
Method (GBRV, 0, NotSerialized) | |
{ | |
Store ("204", Local0) | |
Return (Local0) | |
} | |
Method (GBMN, 0, NotSerialized) | |
{ | |
Store ("UX301LAA", 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.LPCB.EC0) | |
{ | |
OperationRegion (ECID, SystemIO, 0x0257, One) | |
Field (ECID, ByteAcc, NoLock, Preserve) | |
{ | |
EC4D, 8 | |
} | |
OperationRegion (ECIC, SystemIO, 0x0258, One) | |
Field (ECIC, ByteAcc, NoLock, Preserve) | |
{ | |
EC4C, 8 | |
} | |
OperationRegion (ECAD, SystemMemory, GNBF, 0x10) | |
Field (ECAD, DWordAcc, NoLock, Preserve) | |
{ | |
MFUN, 16, | |
SFUN, 16, | |
LEN, 16, | |
STAS, 8, | |
EROR, 8, | |
CMD, 8, | |
EDA1, 8, | |
EDA2, 8, | |
EDA3, 8, | |
EDA4, 8, | |
EDA5, 8, | |
Offset (0x10) | |
} | |
Method (WEIE, 0, Serialized) | |
{ | |
Store (One, EDA1) | |
ECAC () | |
If (LEqual (EDA1, 0xFF)) | |
{ | |
Return (Ones) | |
} | |
Return (Zero) | |
} | |
Method (WEOF, 0, Serialized) | |
{ | |
Store (0x02, EDA1) | |
ECAC () | |
If (LEqual (EDA1, 0xFF)) | |
{ | |
Return (Ones) | |
} | |
Return (Zero) | |
} | |
Method (WEOE, 0, NotSerialized) | |
{ | |
Store (0x03, EDA1) | |
ECAC () | |
If (LEqual (EDA1, 0xFF)) | |
{ | |
Return (Ones) | |
} | |
Return (Zero) | |
} | |
Method (ST83, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x83, EDA1) | |
Store (Arg0, EDA2) | |
ECAC () | |
Release (MU4T) | |
Return (EDA1) | |
} | |
Return (Ones) | |
} | |
Method (ST84, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x84, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST85, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x85, EDA1) | |
Store (Arg0, EDA2) | |
ECAC () | |
Release (MU4T) | |
Return (EDA1) | |
} | |
Return (Ones) | |
} | |
Method (ST86, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x86, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST87, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x87, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (EDA1) | |
} | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST8E, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x8E, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
Return (EDA1) | |
} | |
Return (Ones) | |
} | |
Method (ST95, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x95, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
If (LEqual (Arg0, Zero)) | |
{ | |
Return (EDA1) | |
} | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST98, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x98, EDA1) | |
Store (Arg0, EDA2) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (ST9E, 3, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x9E, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
Store (Arg2, EDA4) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STA8, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0xA8, EDA1) | |
Store (Arg0, EDA2) | |
ECAC () | |
Release (MU4T) | |
Return (EDA1) | |
} | |
Return (Ones) | |
} | |
Method (ST9F, 3, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0x9F, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
Store (Arg2, EDA4) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STA9, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0xA9, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STB0, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xB0, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STB1, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xB1, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (STB2, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
If (LNotEqual (WEOE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (0xB2, EC4C) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Store (Arg0, EC4D) | |
If (LNotEqual (WEIE (), Zero)) | |
{ | |
Release (MU4T) | |
Return (Ones) | |
} | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (GBTT, 1, Serialized) | |
{ | |
If (LEqual (Arg0, Zero)) | |
{ | |
Store (EB0T, Local0) | |
} | |
Else | |
{ | |
Store (EB1T, 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 (MU4T, 0xFFFF) | |
Store (Arg0, Local0) | |
And (Local0, 0xFF, Local1) | |
ShiftRight (Local0, 0x08, Local0) | |
And (Local0, 0xFF, Local0) | |
Store (0xFF, CMD) | |
Store (0x80, EDA1) | |
Store (Local0, EDA2) | |
Store (Local1, EDA3) | |
ECAC () | |
Release (MU4T) | |
Return (EDA1) | |
} | |
Return (Ones) | |
} | |
Method (WRAM, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (Arg0, Local0) | |
And (Local0, 0xFF, Local1) | |
ShiftRight (Local0, 0x08, Local0) | |
And (Local0, 0xFF, Local0) | |
Store (0xFF, CMD) | |
Store (0x81, EDA1) | |
Store (Local0, EDA2) | |
Store (Local1, EDA3) | |
Store (Arg1, EDA4) | |
ECAC () | |
Release (MU4T) | |
Return (One) | |
} | |
Return (Ones) | |
} | |
Method (STBR, 0, Serialized) | |
{ | |
Store (Zero, Local0) | |
Store (Zero, Local1) | |
Store (Zero, Local2) | |
If (And (VGAF, One)) | |
{ | |
Store (One, Local0) | |
} | |
If (LAnd (Local0, ALDE)) | |
{ | |
Store (One, Local1) | |
} | |
If (Local0) | |
{ | |
Store (One, Local2) | |
} | |
If (Local1) | |
{ | |
ISMI (0x9A) | |
} | |
Else | |
{ | |
If (LEqual (Local2, One)) | |
{ | |
If (LNotEqual (MSOS (), OSEG)) | |
{ | |
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 | |
{ | |
If (LEqual (Local2, Zero)) | |
{ | |
If (LNot (ALAE)) | |
{ | |
ECCB () | |
} | |
} | |
Else | |
{ | |
If (LEqual (Local2, 0x02)) | |
{ | |
ISMI (0x9A) | |
} | |
Else | |
{ | |
} | |
} | |
} | |
} | |
} | |
Method (ECCB, 0, Serialized) | |
{ | |
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) | |
} | |
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) | |
{ | |
Return (ST86 (Zero, Arg0)) | |
} | |
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) | |
Return (Ones) | |
} | |
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) | |
Return (Ones) | |
} | |
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) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (Package (0x06) | |
{ | |
0x10, | |
Zero, | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}, Local0) | |
Store (Arg0, CMD) | |
Store (Arg1, EDA1) | |
Store (Arg2, EDA2) | |
Store (Arg3, EDA3) | |
Store (Arg4, EDA4) | |
Store (Arg5, EDA5) | |
ECAC () | |
Store (CMD, Index (Local0, Zero)) | |
Store (EDA1, Index (Local0, One)) | |
Store (EDA2, Index (Local0, 0x02)) | |
Store (EDA3, Index (Local0, 0x03)) | |
Store (EDA4, Index (Local0, 0x04)) | |
Store (EDA5, Index (Local0, 0x05)) | |
Release (MU4T) | |
Return (Local0) | |
} | |
} | |
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) | |
If (LOr (LEqual (Arg1, 0x0A), LEqual (Arg1, 0x0B))) | |
{ | |
Store (DerefOf (Index (Arg6, Zero)), BCNT) | |
Store (DerefOf (Index (Arg6, One)), BDAT) | |
} | |
Else | |
{ | |
Store (Arg4, DAT0) | |
Store (Arg5, DAT1) | |
} | |
Store (Arg1, PRTC) | |
} | |
Else | |
{ | |
Store (Arg2, ADD2) | |
Store (Arg3, CMD2) | |
If (LOr (LEqual (Arg1, 0x0A), LEqual (Arg1, 0x0B))) | |
{ | |
Store (DerefOf (Index (Arg6, Zero)), BCN2) | |
Store (DerefOf (Index (Arg6, One)), BDA2) | |
} | |
Else | |
{ | |
Store (Arg4, DA20) | |
Store (Arg5, DA21) | |
} | |
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) | |
} | |
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) | |
} | |
Method (TALS, 1, NotSerialized) | |
{ | |
And (LSTP, One, Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
If (Arg0) | |
{ | |
Store (ST8E (0x30, Zero), Local0) | |
Or (Local0, 0x90, Local0) | |
ST9E (0x30, 0xFF, Local0) | |
} | |
Else | |
{ | |
Store (ST8E (0x30, Zero), Local0) | |
And (Local0, 0x6F, Local0) | |
ST9E (0x30, 0xFF, Local0) | |
} | |
} | |
Else | |
{ | |
If (Arg0) | |
{ | |
Store (RRAM (0x04CD), Local0) | |
And (Local0, 0xF1, Local0) | |
Or (Local0, 0x02, Local0) | |
WRAM (0x04CD, Local0) | |
} | |
Else | |
{ | |
Store (RRAM (0x04CD), Local0) | |
And (Local0, 0xFD, Local0) | |
WRAM (0x04CD, Local0) | |
} | |
} | |
} | |
Method (RALS, 0, NotSerialized) | |
{ | |
And (LSTP, One, Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
If (ALAE) | |
{ | |
Store (RRAM (0x02A3), Local0) | |
Store (RRAM (0x02A4), Local1) | |
ShiftLeft (Local0, 0x08, Local0) | |
Add (Local0, Local1, Local0) | |
Multiply (Local0, 0x03E8, Local1) | |
Divide (Local1, ALSA, Local2, Local3) | |
Return (Local3) | |
} | |
Else | |
{ | |
Return (0x012C) | |
} | |
} | |
Else | |
{ | |
If (ALAE) | |
{ | |
Store (RRAM (0x04C9), Local0) | |
If (LLessEqual (Local0, One)) | |
{ | |
Store (0x32, Local1) | |
} | |
Else | |
{ | |
If (LLessEqual (Local0, 0x06)) | |
{ | |
Store (0xC8, Local1) | |
} | |
Else | |
{ | |
If (LLessEqual (Local0, 0x0A)) | |
{ | |
Store (0x0190, Local1) | |
} | |
Else | |
{ | |
If (LLessEqual (Local0, 0x0E)) | |
{ | |
Store (0x0258, Local1) | |
} | |
Else | |
{ | |
Store (0x0320, Local1) | |
} | |
} | |
} | |
} | |
Return (Local1) | |
} | |
Else | |
{ | |
Return (0xC8) | |
} | |
} | |
} | |
Method (ECAC, 0, NotSerialized) | |
{ | |
Store (GNBF, BIPA) | |
Store (0x30, MFUN) | |
Store (One, SFUN) | |
Store (0x10, LEN) | |
Store (Zero, EROR) | |
Store (One, STAS) | |
ISMI (0xA1) | |
} | |
Method (CSEE, 1, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (Arg0, CMD) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
Method (SCTF, 2, Serialized) | |
{ | |
If (ECAV ()) | |
{ | |
Acquire (MU4T, 0xFFFF) | |
Store (0xFF, CMD) | |
Store (0xB3, EDA1) | |
Store (Arg0, EDA2) | |
Store (Arg1, EDA3) | |
ECAC () | |
Release (MU4T) | |
Return (Zero) | |
} | |
Return (Ones) | |
} | |
} | |
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) // _CRT: Critical Temperature | |
{ | |
RCRT () | |
Return (KELV (\_SB.TCRT)) | |
} | |
Method (_TMP, 0, NotSerialized) // _TMP: Temperature | |
{ | |
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) // _PSL: Passive List | |
{ | |
\_PR.CPU0, | |
\_PR.CPU1, | |
\_PR.CPU2, | |
\_PR.CPU3 | |
}) | |
Method (_TSP, 0, NotSerialized) // _TSP: Thermal Sampling Period | |
{ | |
Multiply (TSP, 0x0A, Local0) | |
Return (Local0) | |
} | |
Method (_TC1, 0, NotSerialized) // _TC1: Thermal Constant 1 | |
{ | |
Return (TC1) | |
} | |
Method (_TC2, 0, NotSerialized) // _TC2: Thermal Constant 2 | |
{ | |
Return (TC2) | |
} | |
Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature | |
{ | |
RPSV () | |
If (PLCY) | |
{ | |
Return (KELV (\_SB.PPSV)) | |
} | |
Else | |
{ | |
Return (KELV (\_SB.TPSV)) | |
} | |
} | |
Method (_SCP, 1, NotSerialized) // _SCP: Set Cooling Policy | |
{ | |
Store (Zero, PLCY) | |
Notify (THRM, 0x81) | |
} | |
} | |
} | |
Scope (_TZ) | |
{ | |
Name (ATMP, 0x3C) | |
Name (LTMP, 0x3C) | |
Name (FANS, Zero) | |
Method (RTMP, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.LPCB.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.ECPU, Local0) | |
If (LLess (Local0, 0x80)) | |
{ | |
Store (Local0, LTMP) | |
} | |
} | |
Return (LTMP) | |
} | |
Method (RCRT, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.LPCB.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.ECRT, Local0) | |
If (LLess (Local0, 0x80)) | |
{ | |
Store (Local0, \_SB.TCRT) | |
} | |
} | |
} | |
Method (RPSV, 0, NotSerialized) | |
{ | |
If (\_SB.PCI0.LPCB.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.EPSV, Local0) | |
If (LLess (Local0, 0x80)) | |
{ | |
Store (Local0, \_SB.TPSV) | |
} | |
} | |
} | |
Method (RFAN, 1, NotSerialized) | |
{ | |
If (\_SB.PCI0.LPCB.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.ST83 (Arg0), Local0) | |
If (LEqual (Local0, 0xFF)) | |
{ | |
Return (Local0) | |
} | |
Store (\_SB.PCI0.LPCB.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.LPCB.EC0.ECAV ()) | |
{ | |
Store (\_SB.PCI0.LPCB.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.LPCB.EC0) | |
{ | |
Name (PWAC, Buffer (0x40) | |
{ | |
/* 0000 */ 0x1B, 0x2E, 0x3B, 0x48, 0x55, 0x61, 0x6E, 0x7B, | |
/* 0008 */ 0x9A, 0xC5, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | |
/* 0010 */ 0x0E, 0x21, 0x2F, 0x40, 0x4E, 0x5F, 0x6D, 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 | |
}) | |
Name (F8FG, Zero) | |
Name (BLCT, Zero) | |
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) | |
{ | |
Store (EB1S, Local0) | |
And (Local0, 0xFF, Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
And (Local0, 0x02, Local0) | |
} | |
Else | |
{ | |
Store (Zero, Local0) | |
} | |
Return (Local0) | |
} | |
Else | |
{ | |
Store (EB0S, Local0) | |
And (Local0, 0xFF, Local0) | |
If (LNotEqual (Local0, 0xFF)) | |
{ | |
And (Local0, 0x02, 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) // _T_x: Emitted by ASL Compiler | |
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) | |
Name (KBST, Zero) | |
Name (KBBR, Zero) | |
Name (ALST, Zero) | |
Method (EC0S, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
Store (RRAM (0x04B0), KBST) | |
Store (RRAM (0x04B1), KBBR) | |
} | |
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) | |
{ | |
Store (RRAM (0x04B0), Local0) | |
And (Local0, 0x80, Local1) | |
If (Local1) | |
{ | |
WRAM (0x04B1, Zero) | |
} | |
Store (RRAM (0x04CD), ALST) | |
} | |
If (LEqual (Arg0, 0x05)) | |
{ | |
Store (RRAM (0x04B0), Local0) | |
And (Local0, 0x07, Local1) | |
If (Local1) | |
{ | |
WRAM (0x04B1, Zero) | |
} | |
} | |
If (LGreater (Arg0, 0x04)) {} | |
Store (HKEN, HKFG) | |
} | |
Method (EC0W, 1, NotSerialized) | |
{ | |
If (LEqual (Arg0, 0x03)) | |
{ | |
WRAM (0x04B0, KBST) | |
WRAM (0x04B1, KBBR) | |
} | |
If (LLessEqual (Arg0, 0x04)) | |
{ | |
Store (DCPS (Zero), DCPF) | |
Store (ACPS (), Local0) | |
If (LNotEqual (Local0, ACPF)) | |
{ | |
Store (ACPS (), ACPF) | |
PNOT () | |
} | |
} | |
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) | |
{ | |
And (LSTP, One, Local0) | |
If (LEqual (Local0, Zero)) | |
{ | |
If (ALAE) | |
{ | |
TALS (One) | |
If (LEqual (MSOS (), OSW7)) | |
{ | |
Store (RALS (), Local0) | |
^^^GFX0.AINT (Zero, Local0) | |
} | |
Else | |
{ | |
Notify (ALS, 0x80) | |
} | |
} | |
} | |
Else | |
{ | |
WRAM (0x04CD, ALST) | |
Store (RRAM (0x04CD), Local0) | |
And (Local0, 0xFE, Local0) | |
WRAM (0x04CD, Local0) | |
} | |
} | |
If (LEqual (Arg0, 0x05)) {} | |
Store (HKFG, HKEN) | |
If (And (WOLO, One)) | |
{ | |
Store (0x0580, Local0) | |
Add (Local0, Zero, Local0) | |
Store (RRAM (Local0), Local1) | |
Or (Local1, 0x05, Local1) | |
WRAM (Local0, Local1) | |
} | |
If (And (DSYN, One)) | |
{ | |
ST9F (0x2B, 0x20, 0x20) | |
} | |
} | |
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) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x52) | |
} | |
} | |
Method (_Q02, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x53) | |
} | |
} | |
Method (_Q03, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x54) | |
} | |
} | |
Method (_Q04, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x55) | |
} | |
} | |
Method (_Q05, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x56) | |
} | |
} | |
Method (_Q0A, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
Notify (SLPB, 0x80) | |
} | |
Method (_Q0B, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
Notify (ASHS, 0x88) | |
} | |
Else | |
{ | |
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 (0x74) | |
OWLD (Zero) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
} | |
If (LEqual (Local1, One)) | |
{ | |
^^^^ATKD.IANE (0x73) | |
OWLD (One) | |
Sleep (0x0DAC) | |
OBTD (One) | |
} | |
If (LEqual (Local1, 0x02)) | |
{ | |
^^^^ATKD.IANE (0x74) | |
OWLD (Zero) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
} | |
If (LEqual (Local1, 0x03)) | |
{ | |
^^^^ATKD.IANE (0x74) | |
OWLD (Zero) | |
Sleep (0x0DAC) | |
OBTD (Zero) | |
} | |
} | |
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) {} | |
If (LAnd (WLDP, BTDP)) | |
{ | |
Sleep (0x0DAC) | |
} | |
If (BTDP) | |
{ | |
^^^^ATKD.IANE (0x7E) | |
} | |
} | |
} | |
} | |
} | |
Name (WBTL, Package (0x04) | |
{ | |
Zero, | |
One, | |
0x02, | |
0x03 | |
}) | |
Method (_Q0C, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
^^^^ATKD.IANE (0xC5) | |
} | |
Method (_Q0D, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
^^^^ATKD.IANE (0xC4) | |
} | |
Name (ASBN, Zero) | |
Method (SBRN, 0, Serialized) | |
{ | |
If (^^^GFX0.PRST) | |
{ | |
Store (^^^GFX0.GCBL, ^^^GFX0.CBLV) | |
Store (^^^GFX0.GCBL, Local0) | |
Subtract (0x0A, Local0, Local1) | |
If (LNotEqual (Local1, LBTN)) | |
{ | |
Store (Local1, LBTN) | |
} | |
} | |
} | |
Method (_Q0E, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x20) | |
} | |
} | |
Method (_Q0F, 0, NotSerialized) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x11) | |
} | |
} | |
Method (_Q10, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (LEqual (BLCT, Zero)) | |
{ | |
Store (One, Local0) | |
Store (RPIN (0x72), Local0) | |
XOr (Local0, One, Local0) | |
SPIN (0x72, Local0) | |
If (ATKP) | |
{ | |
Subtract (0x34, Local0, Local0) | |
^^^^ATKD.IANE (Local0) | |
} | |
} | |
Else | |
{ | |
If (LEqual (BLCT, One)) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x35) | |
} | |
} | |
} | |
} | |
Method (_Q11, 0, Serialized) // _Qxx: EC Query | |
{ | |
Name (_T_0, Zero) // _T_x: Emitted by ASL Compiler | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
If (LEqual (F8FG, Zero)) | |
{ | |
Store (One, F8FG) | |
STB2 (0xE0) | |
STB2 (0x5B) | |
} | |
STB2 (0x19) | |
STB2 (0x99) | |
Return (One) | |
} | |
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) // _Qxx: EC Query | |
{ | |
If (LNot (And (DSYN, One))) | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x6B) | |
} | |
} | |
Else | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x6F) | |
} | |
} | |
} | |
Method (_Q13, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
STB2 (0xE0) | |
STB2 (0x20) | |
STB2 (0xE0) | |
STB2 (0xA0) | |
Return (One) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x32) | |
} | |
} | |
Method (_Q14, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
STB2 (0xE0) | |
STB2 (0x2E) | |
STB2 (0xE0) | |
STB2 (0xAE) | |
Return (One) | |
} | |
If (LLess (AVOL, 0x0F)) | |
{ | |
Increment (AVOL) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x31) | |
} | |
} | |
Method (_Q15, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
STB2 (0xE0) | |
STB2 (0x30) | |
STB2 (0xE0) | |
STB2 (0xB0) | |
Return (One) | |
} | |
If (LGreater (AVOL, Zero)) | |
{ | |
Decrement (AVOL) | |
} | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x30) | |
} | |
} | |
Method (_Q6F, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x45) | |
} | |
} | |
Method (_Q6E, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x43) | |
} | |
} | |
Method (_Q6C, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x40) | |
} | |
} | |
Method (_Q6D, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x41) | |
} | |
} | |
Method (_Q70, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
} | |
Method (_Q71, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x5C) | |
} | |
} | |
Method (_Q72, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x8A) | |
} | |
} | |
Method (_Q73, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x99) | |
} | |
} | |
Method (_Q74, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x82) | |
} | |
} | |
Method (_Q76, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x7A) | |
} | |
} | |
Method (_Q77, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0xB5) | |
} | |
} | |
Method (_Q78, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (ATKP) | |
{ | |
^^^^ATKD.IANE (0x84) | |
} | |
} | |
Name (OLUX, 0xFF) | |
Method (_QCD, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
Store (RALS (), Local0) | |
Store (ST8E (0x31, Zero), Local1) | |
If (LNotEqual (OLUX, Local1)) | |
{ | |
If (LEqual (MSOS (), OSW7)) | |
{ | |
^^^GFX0.AINT (Zero, Local0) | |
} | |
Else | |
{ | |
Store (Local0, ^^^^ALS.LUXL) | |
Notify (ALS, 0x80) | |
} | |
If (ATKP) | |
{ | |
Store (Zero, Local2) | |
If (LAnd (LLessEqual (OLUX, 0x03), LGreater (Local1, 0x03))) | |
{ | |
Store (One, Local2) | |
} | |
Else | |
{ | |
If (LAnd (LLessEqual (OLUX, 0x05), LGreater (Local1, 0x05))) | |
{ | |
Store (One, Local2) | |
} | |
Else | |
{ | |
If (LAnd (LGreaterEqual (OLUX, 0x05), LLess (Local1, 0x05))) | |
{ | |
Store (One, Local2) | |
} | |
Else | |
{ | |
If (LAnd (LGreaterEqual (OLUX, 0x03), LLess (Local1, 0x03))) | |
{ | |
Store (One, Local2) | |
} | |
} | |
} | |
} | |
If (Local2) | |
{ | |
^^^^ATKD.IANE (0xC6) | |
} | |
} | |
Store (Local1, OLUX) | |
} | |
} | |
Method (_QB0, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
Notify (\_TZ.THRM, 0x80) | |
} | |
Method (_QA0, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
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) // _Qxx: EC Query | |
{ | |
If (CDFG) | |
{ | |
Store (One, SMBF) | |
Store (Zero, CDFG) | |
} | |
If (ALFG) | |
{ | |
Store (Zero, ALFG) | |
} | |
} | |
Method (_QB3, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
^^^^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 (_QAC, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
Store (ST8E (0x28, Zero), Local0) | |
If (LEqual (And (Local0, One), One)) | |
{ | |
Notify (BAT0, 0x80) | |
} | |
} | |
Method (_QD3, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
} | |
Method (_QD4, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (LEqual (F8FG, One)) | |
{ | |
Store (Zero, F8FG) | |
STB2 (0xE0) | |
STB2 (0xDB) | |
} | |
} | |
} | |
Scope (_SB) | |
{ | |
Device (ALS) | |
{ | |
Method (_HID, 0, NotSerialized) // _HID: Hardware ID | |
{ | |
If (LGreaterEqual (MSOS (), OSW7)) | |
{ | |
Return ("ACPI0008") | |
} | |
Else | |
{ | |
Return ("PNP0C02") | |
} | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
Return (0x0B) | |
} | |
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device | |
{ | |
} | |
Name (LUXL, Zero) | |
Method (_ALI, 0, NotSerialized) // _ALI: Ambient Light Illuminance | |
{ | |
Return (^^PCI0.LPCB.EC0.RALS ()) | |
} | |
Method (_ALR, 0, NotSerialized) // _ALR: Ambient Light Response | |
{ | |
Return (OALR) | |
} | |
} | |
} | |
Scope (_SB) | |
{ | |
Device (LID) | |
{ | |
Name (_HID, EisaId ("PNP0C0D")) // _HID: Hardware ID | |
Method (_LID, 0, NotSerialized) // _LID: Lid Status | |
{ | |
Store (One, Local0) | |
Store (^^PCI0.LPCB.EC0.RPIN (0x11), Local0) | |
If (LEqual (Local0, Ones)) | |
{ | |
Store (One, Local0) | |
} | |
If (And (VGAF, One)) | |
{ | |
Store (One, ^^PCI0.GFX0.CLID) | |
} | |
Return (Local0) | |
} | |
} | |
} | |
Scope (_GPE) | |
{ | |
} | |
Scope (_SB.PCI0.LPCB.EC0) | |
{ | |
Name (KLDT, Zero) | |
Method (_Q80, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
If (GLID ()) | |
{ | |
WRAM (0x04B1, KLDT) | |
WRAM (0x0533, 0x69) | |
WRAM (0x0534, 0x64) | |
} | |
Else | |
{ | |
Store (RRAM (0x04B1), KLDT) | |
WRAM (0x04B1, Zero) | |
WRAM (0x0533, 0x5A) | |
WRAM (0x0534, 0x50) | |
} | |
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")) // _HID: Hardware ID | |
Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
{ | |
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 (FCPW, 1, NotSerialized) | |
{ | |
Store (Arg0, FADR) | |
Store (0x1000, FSIZ) | |
Return (FSMI (0x0D)) | |
} | |
Method (FCPP, 0, NotSerialized) | |
{ | |
Store (Zero, FSIZ) | |
Return (FSMI (0x0D)) | |
} | |
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.PCI0.LPCB.EC0) | |
{ | |
Method (_Q79, 0, NotSerialized) // _Qxx: EC Query | |
{ | |
^^^^ATKD.IANE (0xB1) | |
Return (One) | |
} | |
} | |
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, 0xFFFFFFFF)) | |
{ | |
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")) // _HID: Hardware ID | |
Name (_UID, 0x09) // _UID: Unique ID | |
Name (BUF0, ResourceTemplate () | |
{ | |
Memory32Fixed (ReadWrite, | |
0x00000000, // Address Base | |
0x00001000, // Address Length | |
_Y36) | |
}) | |
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings | |
{ | |
CreateDWordField (BUF0, \_SB.PCI0.RESC._Y36._BAS, PTB0) // _BAS: Base Address | |
Store (PTAB, PTB0) | |
CreateDWordField (BUF0, \_SB.PCI0.RESC._Y36._LEN, PTLN) // _LEN: Length | |
If (LEqual (PTAB, Zero)) | |
{ | |
Store (Zero, PTLN) | |
} | |
Return (BUF0) | |
} | |
} | |
} | |
Scope (\) | |
{ | |
OperationRegion (PMIO, SystemIO, PMBS, 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, PMBS, 0x50) | |
Field (GPIS, ByteAcc, NoLock, Preserve) | |
{ | |
Offset (0x22), | |
GS00, 16 | |
} | |
OperationRegion (GP01, SystemIO, GPBS, 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, GPBS, 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) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, ByteAcc, NoLock, Preserve) | |
{ | |
, 2, | |
GPSL, 1, | |
, 27, | |
GPIL, 1, | |
TEMP, 1 | |
} | |
If (LLessEqual (GPSL, One)) | |
{ | |
Return (GPIL) | |
} | |
Return (TEMP) | |
} | |
} | |
Method (SGPL, 3, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.LPCB.GPLK) | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, ByteAcc, NoLock, Preserve) | |
{ | |
, 31, | |
TEMP, 1 | |
} | |
Store (Arg2, TEMP) | |
} | |
Store (Local7, \_SB.PCI0.LPCB.GPLK) | |
} | |
Method (RGPP, 1, Serialized) | |
{ | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, ByteAcc, NoLock, Preserve) | |
{ | |
, 3, | |
TEMP, 1 | |
} | |
Return (TEMP) | |
} | |
} | |
Method (TGPP, 1, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.LPCB.GPLK) | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, ByteAcc, NoLock, Preserve) | |
{ | |
, 3, | |
TEMP, 1 | |
} | |
XOr (TEMP, TEMP, TEMP) | |
} | |
Store (Local7, \_SB.PCI0.LPCB.GPLK) | |
} | |
Method (SGPP, 2, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.GPLK, Local7) | |
Store (Zero, \_SB.PCI0.LPCB.GPLK) | |
If (LLessEqual (Arg0, 0x5E)) | |
{ | |
Store (Add (Add (GPBS, 0x0100), Multiply (Arg0, 0x08) | |
), Local0) | |
OperationRegion (LGPI, SystemIO, Local0, 0x04) | |
Field (LGPI, ByteAcc, NoLock, Preserve) | |
{ | |
, 3, | |
TEMP, 1 | |
} | |
Store (Arg1, TEMP) | |
} | |
Store (Local7, \_SB.PCI0.LPCB.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 (_SB.PCI0.LPCB) | |
{ | |
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 (_SB.PCI0.EHC1) | |
{ | |
Device (RHUB) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Device (PRT1) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities | |
{ | |
Zero, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Device (PRT1) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (Zero) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (Zero) | |
Return (BPLD) | |
} | |
} | |
Device (PRT2) | |
{ | |
Name (_ADR, 0x02) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (One) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (One) | |
Return (BPLD) | |
} | |
} | |
Device (PRT3) | |
{ | |
Name (_ADR, 0x03) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x02) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x02) | |
Return (BPLD) | |
} | |
} | |
Device (PRT4) | |
{ | |
Name (_ADR, 0x04) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x03) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x03) | |
Return (BPLD) | |
} | |
} | |
Device (PRT5) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x04) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x04) | |
Return (BPLD) | |
} | |
} | |
Device (PRT6) | |
{ | |
Name (_ADR, 0x06) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x05) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x05) | |
Return (BPLD) | |
} | |
} | |
Device (PRT7) | |
{ | |
Name (_ADR, 0x07) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x06) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x06) | |
Return (BPLD) | |
} | |
} | |
Device (PRT8) | |
{ | |
Name (_ADR, 0x08) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x07) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x07) | |
Return (BPLD) | |
} | |
} | |
} | |
} | |
} | |
Scope (_SB.PCI0.EHC2) | |
{ | |
Device (RHUB) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Device (PRT1) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Name (_UPC, Package (0x04) // _UPC: USB Port Capabilities | |
{ | |
Zero, | |
0xFF, | |
Zero, | |
Zero | |
}) | |
Device (PRT1) | |
{ | |
Name (_ADR, One) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x08) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x08) | |
Return (BPLD) | |
} | |
} | |
Device (PRT2) | |
{ | |
Name (_ADR, 0x02) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x09) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x09) | |
Return (BPLD) | |
} | |
} | |
Device (PRT3) | |
{ | |
Name (_ADR, 0x03) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x0A) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x0A) | |
Return (BPLD) | |
} | |
} | |
Device (PRT4) | |
{ | |
Name (_ADR, 0x04) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x0B) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x0B) | |
Return (BPLD) | |
} | |
} | |
Device (PRT5) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x0C) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x0C) | |
Return (BPLD) | |
} | |
} | |
Device (PRT6) | |
{ | |
Name (_ADR, 0x06) // _ADR: Address | |
Method (_UPC, 0, NotSerialized) // _UPC: USB Port Capabilities | |
{ | |
OUPC (0x0D) | |
Return (BUPC) | |
} | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
OPLD (0x0D) | |
Return (BPLD) | |
} | |
} | |
} | |
} | |
} | |
Scope (\) | |
{ | |
Name (CNTB, Buffer (0x0E) | |
{ | |
/* 0000 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | |
}) | |
Name (VISB, Buffer (0x0E) | |
{ | |
/* 0000 */ 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 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) | |
} | |
Method (NCPS, 1, Serialized) | |
{ | |
Notify (\_PR.CPU0, Arg0) | |
Notify (\_PR.CPU1, Arg0) | |
If (LGreaterEqual (\_SB.CPUN, 0x04)) | |
{ | |
Notify (\_PR.CPU2, Arg0) | |
Notify (\_PR.CPU3, Arg0) | |
} | |
If (LGreaterEqual (\_SB.CPUN, 0x08)) | |
{ | |
Notify (\_PR.CPU4, Arg0) | |
Notify (\_PR.CPU5, Arg0) | |
Notify (\_PR.CPU6, Arg0) | |
Notify (\_PR.CPU7, Arg0) | |
} | |
} | |
Name (LCDB, Zero) | |
Method (PPRJ, 1, Serialized) | |
{ | |
} | |
Method (PRJS, 1, Serialized) | |
{ | |
SGPL (0x2E, One, Zero) | |
} | |
Method (PRJW, 1, Serialized) | |
{ | |
KINI () | |
\_SB.PCI0.LPCB.EC0.STBR () | |
If (LEqual (Arg0, 0x03)) | |
{ | |
If (CondRefOf (\_SB.IAOE)) | |
{ | |
If (LEqual (\_SB.IAOE.IIST, One)) {} | |
Else | |
{ | |
} | |
} | |
Else | |
{ | |
} | |
} | |
} | |
Method (GLID, 0, Serialized) | |
{ | |
Return (\_SB.PCI0.LPCB.EC0.RPIN (0x11)) | |
} | |
Method (TLID, 0, Serialized) | |
{ | |
} | |
Method (TGAC, 0, Serialized) | |
{ | |
} | |
Method (TGDC, 1, Serialized) | |
{ | |
} | |
Method (FCTR, 3, Serialized) | |
{ | |
} | |
Method (OWGD, 1, Serialized) | |
{ | |
If (CondRefOf (\_SB.IAOE.IBT1)) | |
{ | |
If (LEqual (And (\_SB.IAOE.IBT1, One), One)) | |
{ | |
SGPL (0x2E, One, Zero) | |
} | |
Else | |
{ | |
SGPL (0x2E, One, Arg0) | |
} | |
} | |
Else | |
{ | |
SGPL (0x2E, One, Arg0) | |
} | |
} | |
Method (OWGS, 0, Serialized) | |
{ | |
Store (RGPL (0x2E, One), Local0) | |
Return (Local0) | |
} | |
Method (OWLD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.WRST) | |
XOr (Arg0, One, Arg0) | |
If (LEqual (LAnd (\_SB.ATKD.WAPF, 0x05), Zero)) | |
{ | |
SGPL (0x19, One, Arg0) | |
} | |
} | |
Method (OBTD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.BRST) | |
SGPL (0x57, One, Arg0) | |
SGPL (0x2E, One, Arg0) | |
} | |
Method (ODSP, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.DP3S) | |
} | |
Method (OUWD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.UWST) | |
Return (One) | |
} | |
Method (OWMD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.WMST) | |
Return (One) | |
} | |
Method (OGPD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.GPST) | |
Return (One) | |
} | |
Method (OTGD, 1, Serialized) | |
{ | |
Store (Arg0, \_SB.TGST) | |
If (Arg0) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.ST87 (0x40, 0xFF), Local0) | |
} | |
Else | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.ST87 (0x20, 0xFF), Local0) | |
} | |
Return (One) | |
} | |
Method (OHWS, 0, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.RPIN (0x27), Local0) | |
If (Local0) | |
{ | |
Return (Zero) | |
} | |
Else | |
{ | |
Return (One) | |
} | |
Return (Zero) | |
} | |
Method (OHWR, 0, Serialized) | |
{ | |
Store (Zero, Local0) | |
If (LEqual (OHWS (), Zero)) | |
{ | |
And (Local0, 0xFFFE, Local0) | |
} | |
Else | |
{ | |
Or (Local0, One, Local0) | |
} | |
If (\_SB.PCI0.RP04.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.LPCB.EC0.RPIN (0x73)) | |
} | |
Method (SBTL, 1, Serialized) | |
{ | |
\_SB.PCI0.LPCB.EC0.SPIN (0x73, Arg0) | |
} | |
Method (BL2C, 0, NotSerialized) | |
{ | |
Return (Zero) | |
} | |
Method (STCF, 1, Serialized) | |
{ | |
If (LEqual (Arg0, One)) | |
{ | |
\_SB.PCI0.LPCB.EC0.FNCT (0x84, Zero) | |
} | |
} | |
Method (OTGB, 0, Serialized) | |
{ | |
Store (One, Local0) | |
Return (Local0) | |
} | |
Method (DCPS, 1, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.RPIN (0x26), Local0) | |
XOr (Local0, One, Local0) | |
Return (Local0) | |
} | |
Method (ACPS, 0, Serialized) | |
{ | |
Store (\_SB.PCI0.LPCB.EC0.RPIN (0x10), Local0) | |
XOr (Local0, One, Local0) | |
Return (Local0) | |
} | |
Method (KINI, 0, Serialized) | |
{ | |
If (LGreaterEqual (MSOS (), OSW8)) | |
{ | |
\_SB.PCI0.LPCB.EC0.STB1 (0x02) | |
\_SB.PCI0.LPCB.EC0.STB1 (0x04) | |
Store (Zero, \_SB.FNIV) | |
} | |
Else | |
{ | |
\_SB.PCI0.LPCB.EC0.STB1 (0x02) | |
\_SB.PCI0.LPCB.EC0.STB1 (0x03) | |
Store (Zero, \_SB.FNIV) | |
} | |
} | |
} | |
Scope (_GPE) | |
{ | |
} | |
Scope (_SB.PCI0.LPCB.EC0) | |
{ | |
} | |
Scope (_SB.PCI0.XHC.RHUB.HS05) | |
{ | |
Name (CAPD, Package (0x01) | |
{ | |
Buffer (0x14) | |
{ | |
/* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x14, 0x00, 0x14, 0x00, | |
/* 0008 */ 0x25, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
/* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF | |
} | |
}) | |
Device (DCAM) | |
{ | |
Name (_ADR, 0x05) // _ADR: Address | |
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device | |
{ | |
Return (CAPD) | |
} | |
} | |
} | |
Name (OALR, Package (0x10) | |
{ | |
Package (0x02) | |
{ | |
0x14, | |
Zero | |
}, | |
Package (0x02) | |
{ | |
0x14, | |
0x19 | |
}, | |
Package (0x02) | |
{ | |
0x28, | |
0x32 | |
}, | |
Package (0x02) | |
{ | |
0x32, | |
0x64 | |
}, | |
Package (0x02) | |
{ | |
0x41, | |
0x96 | |
}, | |
Package (0x02) | |
{ | |
0x50, | |
0xC8 | |
}, | |
Package (0x02) | |
{ | |
0x64, | |
0x012C | |
}, | |
Package (0x02) | |
{ | |
0x7D, | |
0x0190 | |
}, | |
Package (0x02) | |
{ | |
0x9B, | |
0x01F4 | |
}, | |
Package (0x02) | |
{ | |
0xC3, | |
0x0258 | |
}, | |
Package (0x02) | |
{ | |
0xF0, | |
0x02BC | |
}, | |
Package (0x02) | |
{ | |
0x0127, | |
0x0320 | |
}, | |
Package (0x02) | |
{ | |
0x0168, | |
0x0384 | |
}, | |
Package (0x02) | |
{ | |
0x01B8, | |
0x03E8 | |
}, | |
Package (0x02) | |
{ | |
0x0217, | |
0x04E2 | |
}, | |
Package (0x02) | |
{ | |
0x0294, | |
0x05DC | |
} | |
}) | |
Name (_S0, Package (0x04) // _S0_: S0 System State | |
{ | |
Zero, | |
Zero, | |
Zero, | |
Zero | |
}) | |
If (SS3) | |
{ | |
Name (_S3, Package (0x04) // _S3_: S3 System State | |
{ | |
0x05, | |
Zero, | |
Zero, | |
Zero | |
}) | |
} | |
If (SS4) | |
{ | |
Name (_S4, Package (0x04) // _S4_: S4 System State | |
{ | |
0x06, | |
Zero, | |
Zero, | |
Zero | |
}) | |
} | |
Name (_S5, Package (0x04) // _S5_: S5 System State | |
{ | |
0x07, | |
Zero, | |
Zero, | |
Zero | |
}) | |
Method (PTS, 1, NotSerialized) | |
{ | |
If (Arg0) | |
{ | |
\_SB.PCI0.NPTS (Arg0) | |
\_SB.PCI0.GFX0.OPTS (Arg0, OEMS (Arg0)) | |
} | |
} | |
Method (WAK, 1, NotSerialized) | |
{ | |
\_SB.PCI0.NWAK (Arg0) | |
\_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
Jonte?
For what did you fixed it? We can work together on the UX301LAA
Show at my GitHub:
https://github.com/Ramalama2/UX301_DSDT
Or contact me [email protected]
Im working to get Mac OSX Running...
And so far i got everything fixed...
Backlight, Graphics, Audio, FN Keys, KeyBacklight, etc...
The only last thing left is sleep and wake...
And it seems i can read all ssdts out (external Symlinking) but one ssdt i cant read out, and this is where
Method PS0X and PS3X stays...
however contact me... maybe we can help us together...
Cheers :-)