← Back to team overview

hybrid-graphics-linux team mailing list archive

Alienware m11x R1

 

Computer Specifications:
Intel Core 2 Duo SU7300 @1.3GhZ
NVidia GT335m switchable with Intel Graphics card (pre-Optimus)

I looked at the estimated battery life before running the commands and it
was estimated at about 2hrs. After running the commands it was 4 hours. I
installed ubuntu without installing the NVidia drivers i.e. my BIOS is set
to switchable meaning the Intel card is being used.

Hope this helps. :)
/*
 * Intel ACPI Component Architecture
 * AML Disassembler version 20090521
 *
 * Disassembly of DSDT.dat, Sun Sep 19 23:41:05 2010
 *
 *
 * Original Table Header:
 *     Signature        "DSDT"
 *     Length           0x000078F9 (30969)
 *     Revision         0x02
 *     Checksum         0x76
 *     OEM ID           "Intel "
 *     OEM Table ID     "CANTIGA "
 *     OEM Revision     0x06040000 (100925440)
 *     Compiler ID      "INTL"
 *     Compiler Version 0x20060608 (537265672)
 */
DefinitionBlock ("DSDT.aml", "DSDT", 2, "Intel ", "CANTIGA ", 0x06040000)
{
    External (PDC1)
    External (PDC0)
    External (CFGD)
    External (\_PR_.CPU0._PPC)
    External (\_SB_.PCI0.TMEM.GPEH, MethodObj)    // 0 Arguments

    Name (Z000, One)
    Name (Z001, 0x02)
    Name (Z002, 0x04)
    Name (Z003, 0x08)
    Name (Z004, Zero)
    Name (Z005, 0x0F)
    Name (Z006, 0x0D)
    Name (Z007, 0x0B)
    Name (Z008, 0x09)
    Name (ECDY, 0x07)
    Name (WFLG, Zero)
    Name (FLID, Zero)
    Name (SP2O, 0x4E)
    Name (SP1O, 0x164E)
    Name (IO1B, 0x0600)
    Name (IO1L, 0x70)
    Name (IO2B, 0x06B0)
    Name (IO2L, 0x20)
    Name (IO3B, 0x0290)
    Name (IO3L, 0x10)
    Name (MCHB, 0xFED10000)
    Name (MCHL, 0x4000)
    Name (EGPB, 0xFED19000)
    Name (EGPL, 0x1000)
    Name (DMIB, 0xFED18000)
    Name (DMIL, 0x1000)
    Name (IFPB, 0xFED13000)
    Name (IFPL, 0x1000)
    Name (PEBS, 0xE0000000)
    Name (PELN, 0x10000000)
    Name (TTTB, 0xFED20000)
    Name (TTTL, 0x00020000)
    Name (SMBS, 0x18C0)
    Name (PBLK, 0x0410)
    Name (PMBS, 0x0400)
    Name (PMLN, 0x80)
    Name (LVL2, 0x0414)
    Name (LVL3, 0x0415)
    Name (LVL4, 0x0416)
    Name (SMIP, 0xB2)
    Name (GPBS, 0x1180)
    Name (GPLN, 0x80)
    Name (APCB, 0xFEC00000)
    Name (APCL, 0x1000)
    Name (PM30, 0x0430)
    Name (SRCB, 0xFED1C000)
    Name (SRCL, 0x4000)
    Name (SUSW, 0xFF)
    Name (ACPH, 0xDE)
    Name (ASSB, Zero)
    Name (AOTB, Zero)
    Name (AAXB, Zero)
    Name (PEHP, One)
    Name (SHPC, One)
    Name (PEPM, One)
    Name (PEER, One)
    Name (PECS, One)
    Name (ITKE, Zero)
    Name (TRTP, One)
    Name (TRTD, 0x02)
    Name (TRTI, 0x03)
    Name (GCDD, One)
    Name (DSTA, 0x0A)
    Name (DSLO, 0x0C)
    Name (DSLC, 0x0E)
    Name (PITS, 0x10)
    Name (SBCS, 0x12)
    Name (SALS, 0x13)
    Name (LSSS, 0x2A)
    Name (PSSS, 0x2B)
    Name (SOOT, 0x35)
    Name (ESCS, 0x48)
    Name (PDBR, 0x4D)
    Name (SMBL, 0x10)
    OperationRegion (GNVS, SystemMemory, 0x99F8DD3C, 0x0200)
    Field (GNVS, AnyAcc, Lock, Preserve)
    {
        OSYS,   16, 
        SMIF,   8, 
        PRM0,   8, 
        PRM1,   8, 
        SCIF,   8, 
        PRM2,   8, 
        PRM3,   8, 
        LCKF,   8, 
        PRM4,   8, 
        PRM5,   8, 
        P80D,   32, 
        LIDS,   8, 
        PWRS,   8, 
        DBGS,   8, 
        THOF,   8, 
        ACT1,   8, 
        ACTT,   8, 
        PSVT,   8, 
        TC1V,   8, 
        TC2V,   8, 
        TSPV,   8, 
        CRTT,   8, 
        DTSE,   8, 
        DTS1,   8, 
        DTS2,   8, 
        DTSF,   8, 
                Offset (0x28), 
        APIC,   8, 
        MPEN,   8, 
        PCP0,   8, 
        PCP1,   8, 
        PPCM,   8, 
        PPMF,   32, 
                Offset (0x3C), 
        IGDS,   8, 
        TLST,   8, 
        CADL,   8, 
        PADL,   8, 
        CSTE,   16, 
        NSTE,   16, 
        SSTE,   16, 
        NDID,   8, 
        DID1,   32, 
        DID2,   32, 
        DID3,   32, 
        DID4,   32, 
        DID5,   32, 
        KSV0,   32, 
        KSV1,   8, 
        BDSP,   8, 
        PTY1,   8, 
        PTY2,   8, 
        PSCL,   8, 
        TVF1,   8, 
        TVF2,   8, 
        GETM,   8, 
        BLCS,   8, 
        BRTL,   8, 
        ALSE,   8, 
        ALAF,   8, 
        LLOW,   8, 
        LHIH,   8, 
                Offset (0x6E), 
        EMAE,   8, 
        EMAP,   16, 
        EMAL,   16, 
                Offset (0x74), 
        MEFE,   8, 
        DSTS,   8, 
                Offset (0x82), 
        GTF0,   56, 
        GTF2,   56, 
        IDEM,   8, 
        GTF1,   56, 
        BID,    8, 
                Offset (0xAA), 
        ASLB,   32, 
        IBTT,   8, 
        IPAT,   8, 
        ITVF,   8, 
        ITVM,   8, 
        IPSC,   8, 
        IBLC,   8, 
        IBIA,   8, 
        ISSC,   8, 
        I409,   8, 
        I509,   8, 
        I609,   8, 
        I709,   8, 
        IDMM,   8, 
        IDMS,   8, 
        IF1E,   8, 
        HVCO,   8, 
        NXD1,   32, 
        NXD2,   32, 
        NXD3,   32, 
        NXD4,   32, 
        NXD5,   32, 
        NXD6,   32, 
        NXD7,   32, 
        NXD8,   32, 
        GSMI,   8, 
        PAVP,   8, 
                Offset (0xEB), 
        DSEN,   8, 
        ECON,   8, 
        GPIC,   8, 
        CTYP,   8, 
        L01C,   8, 
        VFN0,   8, 
        VFN1,   8, 
                Offset (0x100), 
        OEMN,   16, 
        BRAD,   8, 
        VVEN,   8, 
        BGU1,   8, 
        BST1,   8, 
        BFC1,   16, 
        WKLN,   8, 
        WAKF,   8, 
        HORZ,   16, 
        VERT,   16, 
        OES1,   8, 
        OES2,   8, 
        HDPT,   8, 
        TVFM,   8, 
        TOUD,   8, 
                Offset (0x144), 
        PMID,   16, 
        PPID,   16, 
                Offset (0x14A), 
        ALMF,   8, 
        ALMM,   8, 
        ALMH,   8, 
        ALMD,   8, 
        ALMO,   8, 
        ALMY,   8, 
        LED1,   8, 
        LED2,   8, 
        USBW,   8, 
                Offset (0x154), 
        TBLS,   8, 
        TB1S,   8, 
        TBCS,   8, 
        RESV,   40, 
                Offset (0x15E), 
        HBEN,   8
    }

    Scope (_SB)
    {
        Name (PR00, Package (0x16)
        {
            Package (0x04)
            {
                0x0001FFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x03, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x0002FFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                Zero, 
                LNKF, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x03, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                Zero, 
                LNKH, 
                Zero
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                0x03, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                One, 
                LNKF, 
                Zero
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                0x03, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x001BFFFF, 
                Zero, 
                LNKG, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                Zero, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                One, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR00, Package (0x16)
        {
            Package (0x04)
            {
                0x0001FFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x0001FFFF, 
                0x03, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x0002FFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                Zero, 
                Zero, 
                0x15
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x001FFFFF, 
                0x03, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                Zero, 
                Zero, 
                0x17
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x001DFFFF, 
                0x03, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                One, 
                Zero, 
                0x15
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0x001AFFFF, 
                0x03, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x001BFFFF, 
                Zero, 
                Zero, 
                0x16
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                Zero, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                One, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0x001CFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR02, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR02, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR04, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR04, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR05, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKA, 
                Zero
            }
        })
        Name (AR05, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x10
            }
        })
        Name (PR06, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKC, 
                Zero
            }
        })
        Name (AR06, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x11
            }
        })
        Name (PR07, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKD, 
                Zero
            }
        })
        Name (AR07, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x12
            }
        })
        Name (PR08, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKB, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKA, 
                Zero
            }
        })
        Name (AR08, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x10
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x13
            }
        })
        Name (PR09, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                LNKC, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                LNKD, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                LNKA, 
                Zero
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                LNKB, 
                Zero
            }
        })
        Name (AR09, Package (0x04)
        {
            Package (0x04)
            {
                0xFFFF, 
                Zero, 
                Zero, 
                0x11
            }, 

            Package (0x04)
            {
                0xFFFF, 
                One, 
                Zero, 
                0x12
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x02, 
                Zero, 
                0x13
            }, 

            Package (0x04)
            {
                0xFFFF, 
                0x03, 
                Zero, 
                0x10
            }
        })
        Name (AR01, Package (0x01)
        {
            Package (0x04)
            {
                0x0005FFFF, 
                Zero, 
                Zero, 
                0x16
            }
        })
        Name (PR01, Package (0x01)
        {
            Package (0x04)
            {
                0x0005FFFF, 
                Zero, 
                LNKG, 
                Zero
            }
        })
        Name (PRSA, ResourceTemplate ()
        {
            IRQ (Level, ActiveLow, Shared, )
                {3,4,5,6,7,10,11,12,14,15}
        })
        Alias (PRSA, PRSB)
        Alias (PRSA, PRSC)
        Alias (PRSA, PRSD)
        Alias (PRSA, PRSE)
        Alias (PRSA, PRSF)
        Alias (PRSA, PRSG)
        Alias (PRSA, PRSH)
        Device (PCI0)
        {
            Name (_HID, EisaId ("PNP0A08"))
            Name (_CID, EisaId ("PNP0A03"))
            Name (_ADR, Zero)
            Method (^BN00, 0, NotSerialized)
            {
                Return (Zero)
            }

            Method (_BBN, 0, NotSerialized)
            {
                Return (BN00 ())
            }

            Name (_UID, Zero)
            Method (_PRT, 0, NotSerialized)
            {
                If (PICM)
                {
                    Return (AR00)
                }

                Return (PR00)
            }

            OperationRegion (ROM1, SystemMemory, 0x99F8EFBC, 0x00010000)
            Field (ROM1, AnyAcc, Lock, Preserve)
            {
                VBF1,   262144, 
                VBF2,   262144
            }

            Method (GETB, 3, Serialized)
            {
                Multiply (Arg0, 0x08, Local0)
                Multiply (Arg1, 0x08, Local1)
                CreateField (Arg2, Local0, Local1, TBF3)
                Return (TBF3)
            }

            OperationRegion (HBUS, PCI_Config, 0x40, 0xC0)
            Field (HBUS, DWordAcc, NoLock, Preserve)
            {
                EPEN,   1, 
                    ,   11, 
                EPBR,   20, 
                        Offset (0x08), 
                MHEN,   1, 
                    ,   13, 
                MHBR,   18, 
                        Offset (0x14), 
                    ,   1, 
                D1EN,   1, 
                    ,   1, 
                D2F0,   1, 
                D2F1,   1, 
                        Offset (0x20), 
                PXEN,   1, 
                PXSZ,   2, 
                    ,   23, 
                PXBR,   6, 
                        Offset (0x28), 
                DIEN,   1, 
                    ,   11, 
                DIBR,   20, 
                        Offset (0x30), 
                IPEN,   1, 
                    ,   11, 
                IPBR,   20, 
                        Offset (0x50), 
                    ,   4, 
                PM0H,   2, 
                        Offset (0x51), 
                PM1L,   2, 
                    ,   2, 
                PM1H,   2, 
                        Offset (0x52), 
                PM2L,   2, 
                    ,   2, 
                PM2H,   2, 
                        Offset (0x53), 
                PM3L,   2, 
                    ,   2, 
                PM3H,   2, 
                        Offset (0x54), 
                PM4L,   2, 
                    ,   2, 
                PM4H,   2, 
                        Offset (0x55), 
                PM5L,   2, 
                    ,   2, 
                PM5H,   2, 
                        Offset (0x56), 
                PM6L,   2, 
                    ,   2, 
                PM6H,   2, 
                        Offset (0x57), 
                    ,   7, 
                HENA,   1, 
                        Offset (0x62), 
                TUUD,   16, 
                        Offset (0x70), 
                    ,   4, 
                TLUD,   12, 
                        Offset (0x89), 
                    ,   3, 
                GTSE,   1, 
                        Offset (0x8A)
            }

            OperationRegion (MCHC, SystemMemory, 0xFED14000, 0x4000)
            Field (MCHC, DWordAcc, Lock, Preserve)
            {
                        Offset (0xC14), 
                CLKD,   6, 
                        Offset (0xFC0), 
                    ,   25, 
                FC25,   1, 
                FC26,   1
            }

            OperationRegion (MCHT, SystemMemory, 0xFED11000, 0xFF)
            Field (MCHT, ByteAcc, NoLock, Preserve)
            {
                        Offset (0x1E), 
                T0IS,   16, 
                        Offset (0x5E), 
                T1IS,   16, 
                        Offset (0xEF), 
                ESCS,   8
            }

            Name (BUF0, ResourceTemplate ()
            {
                WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
                    0x0000,             // Granularity
                    0x0000,             // Range Minimum
                    0x00FF,             // Range Maximum
                    0x0000,             // Translation Offset
                    0x0100,             // Length
                    ,, )
                DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
                    0x00000000,         // Granularity
                    0x00000000,         // Range Minimum
                    0x00000CF7,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00000CF8,         // Length
                    ,, , TypeStatic)
                IO (Decode16,
                    0x0CF8,             // Range Minimum
                    0x0CF8,             // Range Maximum
                    0x01,               // Alignment
                    0x08,               // Length
                    )
                DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
                    0x00000000,         // Granularity
                    0x00000D00,         // Range Minimum
                    0x0000FFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x0000F300,         // Length
                    ,, , TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000A0000,         // Range Minimum
                    0x000BFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00020000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000C0000,         // Range Minimum
                    0x000C3FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000C4000,         // Range Minimum
                    0x000C7FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000C8000,         // Range Minimum
                    0x000CBFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000CC000,         // Range Minimum
                    0x000CFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000D0000,         // Range Minimum
                    0x000D3FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000D4000,         // Range Minimum
                    0x000D7FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000D8000,         // Range Minimum
                    0x000DBFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000DC000,         // Range Minimum
                    0x000DFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000E0000,         // Range Minimum
                    0x000E3FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000E4000,         // Range Minimum
                    0x000E7FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000E8000,         // Range Minimum
                    0x000EBFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000EC000,         // Range Minimum
                    0x000EFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00004000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x000F0000,         // Range Minimum
                    0x000FFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00010000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x00000000,         // Range Minimum
                    0xDFFFFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00000000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0xF0000000,         // Range Minimum
                    0xFEBFFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x0EC00000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0xFED40000,         // Range Minimum
                    0xFED44FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00000000,         // Length
                    ,, , AddressRangeMemory, TypeStatic)
            })
            Method (_CRS, 0, Serialized)
            {
                If (PM1L)
                {
                    CreateDWordField (BUF0, 0x7C, C0LN)
                    Store (Zero, C0LN)
                }

                If (LEqual (PM1L, One))
                {
                    CreateBitField (BUF0, 0x0358, C0RW)
                    Store (Zero, C0RW)
                }

                If (PM1H)
                {
                    CreateDWordField (BUF0, 0x96, C4LN)
                    Store (Zero, C4LN)
                }

                If (LEqual (PM1H, One))
                {
                    CreateBitField (BUF0, 0x0428, C4RW)
                    Store (Zero, C4RW)
                }

                If (PM2L)
                {
                    CreateDWordField (BUF0, 0xB0, C8LN)
                    Store (Zero, C8LN)
                }

                If (LEqual (PM2L, One))
                {
                    CreateBitField (BUF0, 0x04F8, C8RW)
                    Store (Zero, C8RW)
                }

                If (PM2H)
                {
                    CreateDWordField (BUF0, 0xCA, CCLN)
                    Store (Zero, CCLN)
                }

                If (LEqual (PM2H, One))
                {
                    CreateBitField (BUF0, 0x05C8, CCRW)
                    Store (Zero, CCRW)
                }

                If (PM3L)
                {
                    CreateDWordField (BUF0, 0xE4, D0LN)
                    Store (Zero, D0LN)
                }

                If (LEqual (PM3L, One))
                {
                    CreateBitField (BUF0, 0x0698, D0RW)
                    Store (Zero, D0RW)
                }

                If (PM3H)
                {
                    CreateDWordField (BUF0, 0xFE, D4LN)
                    Store (Zero, D4LN)
                }

                If (LEqual (PM3H, One))
                {
                    CreateBitField (BUF0, 0x0768, D4RW)
                    Store (Zero, D4RW)
                }

                If (PM4L)
                {
                    CreateDWordField (BUF0, 0x0118, D8LN)
                    Store (Zero, D8LN)
                }

                If (LEqual (PM4L, One))
                {
                    CreateBitField (BUF0, 0x0838, D8RW)
                    Store (Zero, D8RW)
                }

                If (PM4H)
                {
                    CreateDWordField (BUF0, 0x0132, DCLN)
                    Store (Zero, DCLN)
                }

                If (LEqual (PM4H, One))
                {
                    CreateBitField (BUF0, 0x0908, DCRW)
                    Store (Zero, DCRW)
                }

                If (PM5L)
                {
                    CreateDWordField (BUF0, 0x014C, E0LN)
                    Store (Zero, E0LN)
                }

                If (LEqual (PM5L, One))
                {
                    CreateBitField (BUF0, 0x09D8, E0RW)
                    Store (Zero, E0RW)
                }

                If (PM5H)
                {
                    CreateDWordField (BUF0, 0x0166, E4LN)
                    Store (Zero, E4LN)
                }

                If (LEqual (PM5H, One))
                {
                    CreateBitField (BUF0, 0x0AA8, E4RW)
                    Store (Zero, E4RW)
                }

                If (PM6L)
                {
                    CreateDWordField (BUF0, 0x0180, E8LN)
                    Store (Zero, E8LN)
                }

                If (LEqual (PM6L, One))
                {
                    CreateBitField (BUF0, 0x0B78, E8RW)
                    Store (Zero, E8RW)
                }

                If (PM6H)
                {
                    CreateDWordField (BUF0, 0x019A, ECLN)
                    Store (Zero, ECLN)
                }

                If (LEqual (PM6H, One))
                {
                    CreateBitField (BUF0, 0x0C48, ECRW)
                    Store (Zero, ECRW)
                }

                If (PM0H)
                {
                    CreateDWordField (BUF0, 0x01B4, F0LN)
                    Store (Zero, F0LN)
                }

                If (LEqual (PM0H, One))
                {
                    CreateBitField (BUF0, 0x0D18, F0RW)
                    Store (Zero, F0RW)
                }

                CreateDWordField (BUF0, 0x01C2, M1MN)
                CreateDWordField (BUF0, 0x01C6, M1MX)
                CreateDWordField (BUF0, 0x01CE, M1LN)
                CreateDWordField (BUF0, 0x01DC, M2MN)
                CreateDWordField (BUF0, 0x01E0, M2MX)
                CreateDWordField (BUF0, 0x01E8, M2LN)
                ShiftLeft (PXBR, 0x1A, M1MX)
                ShiftRight (0x10000000, PXSZ, Local0)
                Add (M1MX, Local0, M2MN)
                Add (Subtract (M2MX, M2MN), One, M2LN)
                Subtract (M1MX, One, M1MX)
                ShiftLeft (TLUD, 0x14, M1MN)
                Add (Subtract (M1MX, M1MN), One, M1LN)
                Return (BUF0)
            }

            Device (P0P2)
            {
                Name (_ADR, 0x00010000)
                Name (_PRW, Package (0x02)
                {
                    0x09, 
                    0x04
                })
                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR02)
                    }

                    Return (PR02)
                }

                OperationRegion (PCIX, SystemMemory, 0xE0008000, 0x4000)
                Field (PCIX, DWordAcc, Lock, Preserve)
                {
                            Offset (0x3E), 
                        ,   6, 
                    SRST,   1, 
                            Offset (0xA0), 
                            Offset (0xA2), 
                            Offset (0xA3), 
                    SLIM,   1, 
                            Offset (0xB0), 
                    ASPM,   2, 
                        ,   3, 
                    RETL,   1, 
                    RCCC,   1, 
                            Offset (0xB2), 
                        ,   10, 
                    LTER,   1, 
                    LTST,   1, 
                    RSCC,   1, 
                            Offset (0xB4), 
                    SLCP,   7, 
                    SPLV,   8, 
                    SPLS,   2, 
                        ,   2, 
                    PHSN,   13, 
                    RSCL,   8, 
                    RSCH,   8, 
                        ,   1, 
                    ATBP,   1, 
                        ,   2, 
                    CMDC,   1, 
                    MRSS,   1, 
                    PRDS,   1, 
                            Offset (0xF0), 
                            Offset (0xF3), 
                    RXSD,   2, 
                            Offset (0xF4), 
                        ,   4, 
                    LCGC,   1, 
                            Offset (0xFC), 
                    LCGE,   1, 
                    CPRT,   1, 
                        ,   2, 
                    SCDL,   1, 
                            Offset (0x150), 
                    LNKV,   1, 
                            Offset (0x158), 
                    L1EA,   32, 
                            Offset (0x200), 
                        ,   13, 
                    CGEL,   2, 
                            Offset (0x214), 
                            Offset (0x216), 
                    LNKS,   4, 
                            Offset (0x224), 
                            Offset (0x225), 
                    DQDA,   1, 
                        ,   12, 
                    SDLY,   4, 
                            Offset (0x308), 
                    PRC0,   32, 
                            Offset (0x314), 
                    NRC0,   32, 
                            Offset (0xA04), 
                        ,   22, 
                    A422,   1, 
                            Offset (0xA84), 
                            Offset (0xA85), 
                    A848,   1, 
                            Offset (0xB00), 
                        ,   3, 
                    B003,   3, 
                            Offset (0xB01), 
                    B008,   2, 
                            Offset (0xB04), 
                        ,   23, 
                    B239,   9, 
                            Offset (0xB14), 
                        ,   17, 
                    B147,   1
                }

                OperationRegion (XPCI, SystemMemory, 0xE0100000, 0x4000)
                Field (XPCI, DWordAcc, Lock, Preserve)
                {
                    R000,   32, 
                    R004,   32, 
                    R008,   32, 
                    R00C,   32, 
                    R010,   32, 
                    R014,   32, 
                    R018,   32, 
                    R01C,   32, 
                    R020,   32, 
                    R024,   32, 
                    R028,   32, 
                    R02C,   32, 
                    R030,   32, 
                    R034,   32, 
                    R038,   32, 
                    R03C,   32, 
                    R040,   32, 
                            Offset (0x80), 
                    R080,   32, 
                    R084,   32, 
                    DAPM,   2, 
                        ,   3, 
                    ERTL,   1, 
                    ECCC,   1, 
                            Offset (0x8A), 
                        ,   12, 
                    ESCC,   1, 
                            Offset (0x100), 
                            Offset (0x114), 
                    TCVC,   8
                }

                Method (_STA, 0, NotSerialized)
                {
                    If (LEqual (D1EN, Zero))
                    {
                        Return (One)
                    }
                    Else
                    {
                        Return (0x0F)
                    }
                }

                Device (PEGP)
                {
                    Name (_ADR, Zero)
                    Name (_IRC, Zero)
                    Name (TEMP, One)
                    Method (_STA, 0, NotSerialized)
                    {
                        If (LEqual (TEMP, One))
                        {
                            Return (0x0F)
                        }
                        Else
                        {
                            Return (One)
                        }
                    }

                    Method (_ON, 0, NotSerialized)
                    {
                        Store (One, TEMP)
                        If (LEqual (GP18, Zero))
                        {
                            Store (One, D1EN)
                            Store (Zero, GP20)
                            Sleep (0x64)
                            Store (One, GP18)
                            Store (One, GP49)
                            Sleep (0x64)
                            Store (One, GP20)
                            Sleep (0xC8)
                            Store (Zero, DQDA)
                            Sleep (0x64)
                            P8XH (Zero, 0x55)
                            Store (0x00100006, R004)
                            Store (0x030000A2, R008)
                            Store (0x00800010, R00C)
                            Store (0xF0000000, R010)
                            Store (0xC000000C, R014)
                            Store (Zero, R018)
                            Store (0xBE00000C, R01C)
                            Store (Zero, R020)
                            Store (0x2C81, R024)
                            Store (Zero, R028)
                            Store (Zero, R030)
                            Store (0x60, R034)
                            Store (Zero, R038)
                            Store (0x0110, R03C)
                            Store (0x04431028, R040)
                            Store (0x00012910, R080)
                            Store (0x00064D02, R084)
                            IPBR ()
                            Notify (PCI0, Zero)
                        }
                    }

                    Method (_OFF, 0, NotSerialized)
                    {
                        Store (Zero, TEMP)
                        If (LEqual (GP18, One))
                        {
                            Or (CLKD, 0x21, CLKD)
                            Store (One, SRST)
                            Store (One, DQDA)
                            Store (Zero, SRST)
                            Store (Zero, GP20)
                            Sleep (0x64)
                            Store (Zero, GP18)
                            Store (Zero, GP49)
                            Sleep (0xC8)
                            Store (Zero, D1EN)
                            Sleep (0x02EE)
                            P8XH (Zero, 0x56)
                        }
                    }

                    Method (MXDS, 1, NotSerialized)
                    {
                        If (And (Arg0, Zero))
                        {
                            If (TEMP)
                            {
                                Return (One)
                            }
                            Else
                            {
                                Return (Zero)
                            }
                        }
                        Else
                        {
                            If (And (Arg0, One))
                            {
                                Store (Zero, IGDS)
                                Store (Zero, GP33)
                                Store (Zero, GP34)
                                Store (Zero, GP52)
                            }
                        }
                    }

                    Method (MXMX, 1, NotSerialized)
                    {
                        Return (One)
                    }

                    Method (_ROM, 2, NotSerialized)
                    {
                        If (LGreater (Add (Arg0, Arg1), 0x00010000))
                        {
                            Subtract (Arg0, 0x00010000, Arg0)
                        }

                        If (LGreaterEqual (Arg0, 0x8000))
                        {
                            Return (GETB (Subtract (Arg0, 0x8000), Arg1, VBF2))
                        }

                        If (LGreater (Add (Arg0, Arg1), 0x8000))
                        {
                            Subtract (0x8000, Arg0, Local0)
                            Subtract (Arg1, Local0, Local1)
                            Store (GETB (Arg0, Local0, VBF1), Local3)
                            Store (GETB (Zero, Local1, VBF2), Local4)
                            Concatenate (Local3, Local4, Local5)
                            Return (Local5)
                        }

                        Return (GETB (Arg0, Arg1, VBF1))
                    }

                    Method (_DSM, 4, NotSerialized)
                    {
                        Return (^^^GFX0._DSM (Arg0, Arg1, Arg2, Arg3))
                    }

                    Method (IPBR, 0, NotSerialized)
                    {
                        Store (One, TCVC)
                        If (LEqual (ESCC, One))
                        {
                            Store (One, ECCC)
                            Store (One, RCCC)
                        }
                    }

                    Name (SWIT, One)
                    Name (CRTA, One)
                    Name (LCDA, One)
                    Name (TVAA, One)
                    Name (Z009, One)
                    Name (VLDF, One)
                    Name (FKEY, Zero)
                    OperationRegion (VIDS, PCI_Config, Zero, 0xC8)
                    Field (VIDS, DWordAcc, NoLock, Preserve)
                    {
                        VDID,   32
                    }

                    Name (_PSC, Zero)
                    Method (_PS0, 0, NotSerialized)
                    {
                        Store (Zero, _PSC)
                    }

                    Method (_PS1, 0, NotSerialized)
                    {
                        Store (One, _PSC)
                    }

                    Method (_PS3, 0, NotSerialized)
                    {
                        Store (0x03, _PSC)
                    }

                    Method (_DOS, 1, NotSerialized)
                    {
                        Store (And (Arg0, 0x03), SWIT)
                    }

                    Method (_DOD, 0, NotSerialized)
                    {
                        If (HBEN)
                        {
                            Return (Package (0x08)
                            {
                                0x80000100, 
                                0x0400, 
                                0x80007330, 
                                0x80006340, 
                                0x80000100, 
                                0x80000240, 
                                0x80000320, 
                                0x80000410
                            })
                        }
                        Else
                        {
                            Return (Package (0x04)
                            {
                                0x00010100, 
                                0x00010110, 
                                0x0200, 
                                0x0120
                            })
                        }
                    }

                    Device (CRT)
                    {
                        Method (_ADR, 0, NotSerialized)
                        {
                            If (HBEN)
                            {
                                Return (0x80000100)
                            }
                            Else
                            {
                                Return (0x00010100)
                            }
                        }

                        Method (_DCS, 0, NotSerialized)
                        {
                            Return (0x1F)
                        }

                        Method (_DGS, 0, NotSerialized)
                        {
                            Return (One)
                        }

                        Method (_DSS, 1, NotSerialized)
                        {
                        }

                        Method (MXDS, 1, NotSerialized)
                        {
                            Return (^^MXDS (Arg0))
                        }

                        Method (MXMX, 1, NotSerialized)
                        {
                            Return (One)
                        }
                    }

                    Device (LCD)
                    {
                        Method (_ADR, 0, NotSerialized)
                        {
                            If (HBEN)
                            {
                                Return (0x0400)
                            }
                            Else
                            {
                                Return (0x0110)
                            }
                        }

                        Method (_DCS, 0, NotSerialized)
                        {
                            Return (0x1F)
                        }

                        Method (_DGS, 0, NotSerialized)
                        {
                            Return (One)
                        }

                        Method (_DSS, 1, NotSerialized)
                        {
                        }

                        Method (_BCL, 0, NotSerialized)
                        {
                            Return (Package (0x0A)
                            {
                                0x64, 
                                0x3C, 
                                0x09, 
                                0x1C, 
                                0x28, 
                                0x32, 
                                0x3C, 
                                0x46, 
                                0x55, 
                                0x64
                            })
                        }

                        Method (_BCM, 1, NotSerialized)
                        {
                            Store (BVLC (Arg0), Local1)
                            Store (Local1, ^^^^LPCB.EC0.BRTS)
                        }

                        Method (_BQC, 0, NotSerialized)
                        {
                            Store (^^^^LPCB.EC0.BRTS, P80H)
                            Return (BLVC (P80H))
                        }

                        Method (BLVC, 1, NotSerialized)
                        {
                            If (LEqual (Arg0, Zero))
                            {
                                Store (0x09, Local0)
                            }
                            Else
                            {
                                If (LEqual (Arg0, One))
                                {
                                    Store (0x1C, Local0)
                                }
                                Else
                                {
                                    If (LEqual (Arg0, 0x02))
                                    {
                                        Store (0x28, Local0)
                                    }
                                    Else
                                    {
                                        If (LEqual (Arg0, 0x03))
                                        {
                                            Store (0x32, Local0)
                                        }
                                        Else
                                        {
                                            If (LEqual (Arg0, 0x04))
                                            {
                                                Store (0x3C, Local0)
                                            }
                                            Else
                                            {
                                                If (LEqual (Arg0, 0x05))
                                                {
                                                    Store (0x46, Local0)
                                                }
                                                Else
                                                {
                                                    If (LEqual (Arg0, 0x06))
                                                    {
                                                        Store (0x55, Local0)
                                                    }
                                                    Else
                                                    {
                                                        If (LEqual (Arg0, 0x07))
                                                        {
                                                            Store (0x64, Local0)
                                                        }
                                                        Else
                                                        {
                                                            Store (0xA1, P80H)
                                                            Sleep (0x03E8)
                                                            Store (0x32, Local0)
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }

                            Return (Local0)
                        }

                        Method (BVLC, 1, NotSerialized)
                        {
                            If (LEqual (Arg0, 0x09))
                            {
                                Store (Zero, Local0)
                            }
                            Else
                            {
                                If (LEqual (Arg0, 0x1C))
                                {
                                    Store (One, Local0)
                                }
                                Else
                                {
                                    If (LEqual (Arg0, 0x28))
                                    {
                                        Store (0x02, Local0)
                                    }
                                    Else
                                    {
                                        If (LEqual (Arg0, 0x32))
                                        {
                                            Store (0x03, Local0)
                                        }
                                        Else
                                        {
                                            If (LEqual (Arg0, 0x3C))
                                            {
                                                Store (0x04, Local0)
                                            }
                                            Else
                                            {
                                                If (LEqual (Arg0, 0x46))
                                                {
                                                    Store (0x05, Local0)
                                                }
                                                Else
                                                {
                                                    If (LEqual (Arg0, 0x55))
                                                    {
                                                        Store (0x06, Local0)
                                                    }
                                                    Else
                                                    {
                                                        If (LEqual (Arg0, 0x64))
                                                        {
                                                            Store (0x07, Local0)
                                                        }
                                                        Else
                                                        {
                                                            Store (0xB1, P80H)
                                                            Sleep (0x03E8)
                                                            Store (0x03, Local0)
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }

                            Return (Local0)
                        }

                        Method (MXDS, 1, NotSerialized)
                        {
                            Return (^^MXDS (Arg0))
                        }

                        Method (MXMX, 1, NotSerialized)
                        {
                            Return (One)
                        }
                    }

                    Device (HDMI)
                    {
                        Method (_ADR, 0, NotSerialized)
                        {
                            If (HBEN)
                            {
                                Return (0x7330)
                            }
                            Else
                            {
                                Return (0x0200)
                            }
                        }

                        Method (_DCS, 0, NotSerialized)
                        {
                            ^^^^LPCB.PHSS (0x0C)
                            Store (CADL, Local0)
                            Store (CSTE, Local1)
                            And (Local0, 0x08, Local0)
                            And (Local1, 0x08, Local1)
                            If (Local0)
                            {
                                Store (One, Z009)
                            }
                            Else
                            {
                                Store (Zero, Z009)
                            }

                            If (Z009)
                            {
                                If (LEqual (Local1, 0x08))
                                {
                                    Return (0x1F)
                                }
                                Else
                                {
                                    Return (0x1D)
                                }
                            }
                            Else
                            {
                                If (LEqual (Local1, 0x08))
                                {
                                    Return (0x0F)
                                }
                                Else
                                {
                                    Return (0x0D)
                                }
                            }
                        }

                        Method (_DGS, 0, NotSerialized)
                        {
                            If (Z009)
                            {
                                Return (One)
                            }
                            Else
                            {
                                Return (Zero)
                            }
                        }

                        Method (_DSS, 1, NotSerialized)
                        {
                        }
                    }

                    Method (DSSW, 0, NotSerialized)
                    {
                        If (LEqual (SWIT, Zero))
                        {
                            ^^^LPCB.PHSS (0x0C)
                            Store (CADL, Local0)
                            Store (CSTE, Local1)
                            If (LGreater (Local1, One))
                            {
                                And (Local0, Local1, VLDF)
                                And (VLDF, 0xFE, VLDF)
                            }

                            If (VLDF)
                            {
                                If (LEqual (Local0, 0x03))
                                {
                                    If (LEqual (Local1, One))
                                    {
                                        STBL (0x04)
                                    }

                                    If (LEqual (Local1, 0x03))
                                    {
                                        STBL (0x02)
                                    }

                                    If (LEqual (Local1, 0x02))
                                    {
                                        STBL (One)
                                    }
                                }

                                If (LEqual (Local0, 0x09))
                                {
                                    If (LEqual (Local1, 0x09))
                                    {
                                        STBL (0x03)
                                    }

                                    If (LEqual (Local1, 0x08))
                                    {
                                        STBL (One)
                                    }

                                    If (LEqual (Local1, One))
                                    {
                                        STBL (0x05)
                                    }
                                }

                                If (LEqual (Local0, 0x0B))
                                {
                                    If (LEqual (Local1, 0x0B))
                                    {
                                        STBL (0x04)
                                    }

                                    If (LEqual (Local1, 0x03))
                                    {
                                        STBL (0x02)
                                    }

                                    If (LEqual (Local1, 0x02))
                                    {
                                        STBL (0x03)
                                    }

                                    If (LEqual (Local1, 0x08))
                                    {
                                        STBL (One)
                                    }

                                    If (LEqual (Local1, One))
                                    {
                                        STBL (0x05)
                                    }

                                    If (LEqual (Local1, 0x09))
                                    {
                                        STBL (0x08)
                                    }

                                    If (LEqual (Local1, 0x0A))
                                    {
                                        STBL (0x04)
                                    }
                                }
                            }
                            Else
                            {
                                Store (One, VLDF)
                                STBL (One)
                            }
                        }
                        Else
                        {
                            If (LEqual (SWIT, One))
                            {
                                ^^^LPCB.PHSS (One)
                            }
                        }
                    }

                    Method (STBL, 1, NotSerialized)
                    {
                        If (LEqual (Arg0, One))
                        {
                            Store (0x33, P80H)
                            Store (Zero, CRTA)
                            Store (One, LCDA)
                            Store (Zero, Z009)
                        }

                        If (LEqual (Arg0, 0x02))
                        {
                            Store (One, CRTA)
                            Store (Zero, LCDA)
                            Store (Zero, Z009)
                        }

                        If (LEqual (Arg0, 0x03))
                        {
                            Store (Zero, CRTA)
                            Store (Zero, LCDA)
                            Store (One, Z009)
                        }

                        If (LEqual (Arg0, 0x04))
                        {
                            Store (One, CRTA)
                            Store (One, LCDA)
                            Store (Zero, Z009)
                        }

                        If (LEqual (Arg0, 0x05))
                        {
                            Store (0x33, P80H)
                            Store (Zero, CRTA)
                            Store (One, LCDA)
                            Store (One, Z009)
                        }

                        If (LEqual (Arg0, 0x06))
                        {
                            Store (One, CRTA)
                            Store (Zero, LCDA)
                            Store (One, Z009)
                        }

                        If (LEqual (Arg0, 0x07))
                        {
                            Store (One, CRTA)
                            Store (One, LCDA)
                            Store (One, Z009)
                        }

                        If (LEqual (Arg0, 0x08))
                        {
                            Store (One, CRTA)
                            Store (Zero, LCDA)
                            Store (One, Z009)
                        }

                        Notify (PEGP, 0x80)
                    }
                }
            }

            Device (GFX0)
            {
                Name (_ADR, 0x00020000)
                Method (_DOS, 1, NotSerialized)
                {
                    Store (And (Arg0, 0x07), DSEN)
                }

                Method (_DOD, 0, NotSerialized)
                {
                    If (SCIP ())
                    {
                        Store (Zero, NDID)
                        If (LNotEqual (DIDL, Zero))
                        {
                            Store (SDDL (DID1), DID1)
                        }

                        If (LNotEqual (DDL2, Zero))
                        {
                            Store (SDDL (DID2), DID2)
                        }

                        If (LNotEqual (DDL3, Zero))
                        {
                            Store (SDDL (DID3), DID3)
                        }

                        If (LNotEqual (DDL4, Zero))
                        {
                            Store (SDDL (DID4), DID4)
                        }

                        If (LNotEqual (DDL5, Zero))
                        {
                            Store (SDDL (DID5), DID5)
                        }
                    }

                    If (LEqual (NDID, One))
                    {
                        Name (TMP1, Package (0x01)
                        {
                            0xFFFFFFFF
                        })
                        Store (Or (0x00010000, DID1), Index (TMP1, Zero))
                        Return (TMP1)
                    }

                    If (LEqual (NDID, 0x02))
                    {
                        Name (TMP2, Package (0x06)
                        {
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0x80000100, 
                            0x0400, 
                            0x80007330, 
                            0x80006340
                        })
                        Store (Or (0x00010000, DID1), Index (TMP2, Zero))
                        Store (Or (0x00010000, DID2), Index (TMP2, One))
                        Return (TMP2)
                    }

                    If (LEqual (NDID, 0x03))
                    {
                        Name (TMP3, Package (0x03)
                        {
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF
                        })
                        Store (Or (0x00010000, DID1), Index (TMP3, Zero))
                        Store (Or (0x00010000, DID2), Index (TMP3, One))
                        Store (Or (0x00010000, DID3), Index (TMP3, 0x02))
                        Return (TMP3)
                    }

                    If (LEqual (NDID, 0x04))
                    {
                        Name (TMP4, Package (0x04)
                        {
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF
                        })
                        Store (Or (0x00010000, DID1), Index (TMP4, Zero))
                        Store (Or (0x00010000, DID2), Index (TMP4, One))
                        Store (Or (0x00010000, DID3), Index (TMP4, 0x02))
                        Store (Or (0x00010000, DID4), Index (TMP4, 0x03))
                        Return (TMP4)
                    }

                    If (LGreater (NDID, 0x04))
                    {
                        Name (TMP5, Package (0x05)
                        {
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF
                        })
                        Store (Or (0x00010000, DID1), Index (TMP5, Zero))
                        Store (Or (0x00010000, DID2), Index (TMP5, One))
                        Store (Or (0x00010000, DID3), Index (TMP5, 0x02))
                        Store (Or (0x00010000, DID4), Index (TMP5, 0x03))
                        Store (Or (0x00010000, DID4), Index (TMP5, 0x04))
                        Return (TMP5)
                    }

                    Return (Package (0x01)
                    {
                        0x0400
                    })
                }

                Device (DD01)
                {
                    Method (_ADR, 0, Serialized)
                    {
                        If (LEqual (DID1, Zero))
                        {
                            Return (One)
                        }
                        Else
                        {
                            Return (And (0xFFFF, DID1))
                        }
                    }

                    Method (_DCS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (CDDS (DID1))
                        }
                        Else
                        {
                            TRAP (TRTI, GCDD)
                            If (And (CSTE, One))
                            {
                                Return (0x1F)
                            }

                            Return (0x1D)
                        }
                    }

                    Method (_DGS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (NDDS (DID1))
                        }
                        Else
                        {
                            If (And (NSTE, One))
                            {
                                Return (One)
                            }

                            Return (Zero)
                        }
                    }

                    Method (_DSS, 1, NotSerialized)
                    {
                        If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                        {
                            Store (NSTE, CSTE)
                        }
                    }
                }

                Device (DD02)
                {
                    Method (_ADR, 0, Serialized)
                    {
                        If (LEqual (DID2, Zero))
                        {
                            Return (0x02)
                        }
                        Else
                        {
                            Return (And (0xFFFF, DID2))
                        }
                    }

                    Method (_DCS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (CDDS (DID2))
                        }
                        Else
                        {
                            TRAP (TRTI, GCDD)
                            If (And (CSTE, 0x02))
                            {
                                Return (0x1F)
                            }

                            Return (0x1D)
                        }
                    }

                    Method (_DGS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (NDDS (DID2))
                        }
                        Else
                        {
                            If (And (NSTE, 0x02))
                            {
                                Return (One)
                            }

                            Return (Zero)
                        }
                    }

                    Method (_DSS, 1, NotSerialized)
                    {
                        If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                        {
                            Store (NSTE, CSTE)
                        }
                    }
                }

                Device (DD03)
                {
                    Method (_ADR, 0, Serialized)
                    {
                        If (LEqual (DID3, Zero))
                        {
                            Return (0x03)
                        }
                        Else
                        {
                            Return (And (0xFFFF, DID3))
                        }
                    }

                    Method (_DCS, 0, NotSerialized)
                    {
                        If (LEqual (DID3, Zero))
                        {
                            Return (0x0B)
                        }
                        Else
                        {
                            If (SCIP ())
                            {
                                Return (CDDS (DID3))
                            }
                            Else
                            {
                                TRAP (TRTI, GCDD)
                                If (And (CSTE, 0x04))
                                {
                                    Return (0x1F)
                                }

                                Return (0x1D)
                            }
                        }
                    }

                    Method (_DGS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (NDDS (DID3))
                        }
                        Else
                        {
                            If (And (NSTE, 0x04))
                            {
                                Return (One)
                            }

                            Return (Zero)
                        }
                    }

                    Method (_DSS, 1, NotSerialized)
                    {
                        If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                        {
                            Store (NSTE, CSTE)
                        }
                    }
                }

                Device (DD04)
                {
                    Method (_ADR, 0, Serialized)
                    {
                        If (LEqual (DID4, Zero))
                        {
                            Return (0x04)
                        }
                        Else
                        {
                            Return (And (0xFFFF, DID4))
                        }
                    }

                    Method (_DCS, 0, NotSerialized)
                    {
                        If (LEqual (DID4, Zero))
                        {
                            Return (0x0B)
                        }
                        Else
                        {
                            If (SCIP ())
                            {
                                Return (CDDS (DID4))
                            }
                            Else
                            {
                                TRAP (TRTI, GCDD)
                                If (And (CSTE, 0x08))
                                {
                                    Return (0x1F)
                                }

                                Return (0x1D)
                            }
                        }
                    }

                    Method (_DGS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (NDDS (DID4))
                        }
                        Else
                        {
                            If (And (NSTE, 0x08))
                            {
                                Return (One)
                            }

                            Return (Zero)
                        }
                    }

                    Method (_DSS, 1, NotSerialized)
                    {
                        If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                        {
                            Store (NSTE, CSTE)
                        }
                    }
                }

                Device (DD05)
                {
                    Method (_ADR, 0, Serialized)
                    {
                        If (LEqual (DID5, Zero))
                        {
                            Return (0x05)
                        }
                        Else
                        {
                            Return (And (0xFFFF, DID5))
                        }
                    }

                    Method (_DCS, 0, NotSerialized)
                    {
                        If (LEqual (DID5, Zero))
                        {
                            Return (0x0B)
                        }
                        Else
                        {
                            If (SCIP ())
                            {
                                Return (CDDS (DID5))
                            }
                            Else
                            {
                                TRAP (TRTI, GCDD)
                                If (And (CSTE, 0x10))
                                {
                                    Return (0x1F)
                                }

                                Return (0x1D)
                            }
                        }
                    }

                    Method (_DGS, 0, NotSerialized)
                    {
                        If (SCIP ())
                        {
                            Return (NDDS (DID5))
                        }
                        Else
                        {
                            If (And (NSTE, 0x10))
                            {
                                Return (One)
                            }

                            Return (Zero)
                        }
                    }

                    Method (_DSS, 1, NotSerialized)
                    {
                        If (LEqual (And (Arg0, 0xC0000000), 0xC0000000))
                        {
                            Store (NSTE, CSTE)
                        }
                    }
                }

                Method (SDDL, 1, NotSerialized)
                {
                    Increment (NDID)
                    Store (And (Arg0, 0x0F0F), Local0)
                    Or (0x80000000, Local0, Local1)
                    If (LEqual (DIDL, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL2, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL3, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL4, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL5, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL6, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL7, Local0))
                    {
                        Return (Local1)
                    }

                    If (LEqual (DDL8, Local0))
                    {
                        Return (Local1)
                    }

                    Return (Zero)
                }

                Method (CDDS, 1, NotSerialized)
                {
                    Store (And (Arg0, 0x0F0F), Local0)
                    If (LEqual (Zero, Local0))
                    {
                        Return (0x1D)
                    }

                    If (LEqual (CADL, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL2, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL3, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL4, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL5, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL6, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL7, Local0))
                    {
                        Return (0x1F)
                    }

                    If (LEqual (CAL8, Local0))
                    {
                        Return (0x1F)
                    }

                    Return (0x1D)
                }

                Method (NDDS, 1, NotSerialized)
                {
                    Store (And (Arg0, 0x0F0F), Local0)
                    If (LEqual (Zero, Local0))
                    {
                        Return (Zero)
                    }

                    If (LEqual (NADL, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL2, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL3, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL4, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL5, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL6, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL7, Local0))
                    {
                        Return (One)
                    }

                    If (LEqual (NDL8, Local0))
                    {
                        Return (One)
                    }

                    Return (Zero)
                }

                Method (BRTN, 1, Serialized)
                {
                    If (LEqual (And (DID1, 0x0F00), 0x0400))
                    {
                        Notify (DD01, Arg0)
                    }

                    If (LEqual (And (DID2, 0x0F00), 0x0400))
                    {
                        Notify (DD02, Arg0)
                    }

                    If (LEqual (And (DID3, 0x0F00), 0x0400))
                    {
                        Notify (DD03, Arg0)
                    }

                    If (LEqual (And (DID4, 0x0F00), 0x0400))
                    {
                        Notify (DD04, Arg0)
                    }

                    If (LEqual (And (DID5, 0x0F00), 0x0400))
                    {
                        Notify (DD05, Arg0)
                    }
                }

                Name (MXIF, Package (0x04)
                {
                    0x03, 
                    Package (0x02)
                    {
                        0x80010100, 
                        Buffer (0x04)
                        {
                            0x01, 0x03, 0x03, 0x00
                        }
                    }, 

                    Package (0x02)
                    {
                        0x80000410, 
                        Buffer (0x04)
                        {
                            0x02, 0x03, 0x03, 0x00
                        }
                    }, 

                    Package (0x02)
                    {
                        0x80007330, 
                        Buffer (0x04)
                        {
                            0x04, 0x03, 0x03, 0x03
                        }
                    }
                })
                Scope (^^PCI0)
                {
                    OperationRegion (MCHP, PCI_Config, 0x40, 0xC0)
                    Field (MCHP, AnyAcc, NoLock, Preserve)
                    {
                                Offset (0x60), 
                        TASM,   10, 
                                Offset (0x62)
                    }
                }

                OperationRegion (IGDP, PCI_Config, 0x40, 0xC0)
                Field (IGDP, AnyAcc, NoLock, Preserve)
                {
                            Offset (0x12), 
                        ,   1, 
                    GIVD,   1, 
                        ,   2, 
                    GUMA,   3, 
                            Offset (0x14), 
                        ,   4, 
                    GMFN,   1, 
                            Offset (0x18), 
                            Offset (0xA4), 
                    ASLE,   8, 
                            Offset (0xA8), 
                    GSSE,   1, 
                    GSSB,   14, 
                    GSES,   1, 
                            Offset (0xB0), 
                        ,   12, 
                    CDVL,   1, 
                            Offset (0xB2), 
                            Offset (0xB5), 
                    LBPC,   8, 
                            Offset (0xBC), 
                    ASLS,   32
                }

                OperationRegion (IGDM, SystemMemory, ASLB, 0x2000)
                Field (IGDM, AnyAcc, NoLock, Preserve)
                {
                    SIGN,   128, 
                    SIZE,   32, 
                    OVER,   32, 
                    SVER,   256, 
                    VVER,   128, 
                    GVER,   128, 
                    MBOX,   32, 
                    DMOD,   32, 
                            Offset (0x100), 
                    DRDY,   32, 
                    CSTS,   32, 
                    CEVT,   32, 
                            Offset (0x120), 
                    DIDL,   32, 
                    DDL2,   32, 
                    DDL3,   32, 
                    DDL4,   32, 
                    DDL5,   32, 
                    DDL6,   32, 
                    DDL7,   32, 
                    DDL8,   32, 
                    CPDL,   32, 
                    CPL2,   32, 
                    CPL3,   32, 
                    CPL4,   32, 
                    CPL5,   32, 
                    CPL6,   32, 
                    CPL7,   32, 
                    CPL8,   32, 
                    CADL,   32, 
                    CAL2,   32, 
                    CAL3,   32, 
                    CAL4,   32, 
                    CAL5,   32, 
                    CAL6,   32, 
                    CAL7,   32, 
                    CAL8,   32, 
                    NADL,   32, 
                    NDL2,   32, 
                    NDL3,   32, 
                    NDL4,   32, 
                    NDL5,   32, 
                    NDL6,   32, 
                    NDL7,   32, 
                    NDL8,   32, 
                    ASLP,   32, 
                    TIDX,   32, 
                    CHPD,   32, 
                    CLID,   32, 
                    CDCK,   32, 
                    SXSW,   32, 
                    EVTS,   32, 
                    CNOT,   32, 
                    NRDY,   32, 
                            Offset (0x200), 
                    SCIE,   1, 
                    GEFC,   4, 
                    GXFC,   3, 
                    GESF,   8, 
                            Offset (0x204), 
                    PARM,   32, 
                    DSLP,   32, 
                            Offset (0x300), 
                    ARDY,   32, 
                    ASLC,   32, 
                    TCHE,   32, 
                    ALSI,   32, 
                    BCLP,   32, 
                    PFIT,   32, 
                    CBLV,   32, 
                    BCLM,   320, 
                    CPFM,   32, 
                    EPFM,   32, 
                    PLUT,   592, 
                    PFMB,   32, 
                    CCDV,   32, 
                    PCFT,   32, 
                            Offset (0x400), 
                    GVD1,   49152, 
                    PHED,   32, 
                    BDDC,   2048
                }

                Name (DBTB, Package (0x15)
                {
                    Zero, 
                    0x07, 
                    0x38, 
                    0x01C0, 
                    0x0E00, 
                    0x3F, 
                    0x01C7, 
                    0x0E07, 
                    0x01F8, 
                    0x0E38, 
                    0x0FC0, 
                    Zero, 
                    Zero, 
                    Zero, 
                    Zero, 
                    Zero, 
                    0x7000, 
                    0x7007, 
                    0x7038, 
                    0x71C0, 
                    0x7E00
                })
                Name (CDCT, Package (0x05)
                {
                    Package (0x02)
                    {
                        0xE4, 
                        0x0140
                    }, 

                    Package (0x02)
                    {
                        0xDE, 
                        0x014D
                    }, 

                    Package (0x02)
                    {
                        0xDE, 
                        0x014D
                    }, 

                    Package (0x02)
                    {
                        Zero, 
                        Zero
                    }, 

                    Package (0x02)
                    {
                        0xDE, 
                        0x014D
                    }
                })
                Name (SUCC, One)
                Name (NVLD, 0x02)
                Name (CRIT, 0x04)
                Name (NCRT, 0x06)
                Method (GSCI, 0, Serialized)
                {
                    Method (GBDA, 0, Serialized)
                    {
                        If (LEqual (GESF, Zero))
                        {
                            Store (0x0679, PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, One))
                        {
                            Store (0x0240, PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x04))
                        {
                            And (PARM, 0xEFFF0000, PARM)
                            And (PARM, ShiftLeft (DerefOf (Index (DBTB, IBTT)), 0x10), 
                                PARM)
                            Or (IBTT, PARM, PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x05))
                        {
                            Store (IPSC, PARM)
                            Or (PARM, ShiftLeft (IPAT, 0x08), PARM)
                            Add (PARM, 0x0100, PARM)
                            Or (PARM, ShiftLeft (LIDS, 0x10), PARM)
                            Add (PARM, 0x00010000, PARM)
                            Or (PARM, ShiftLeft (IBIA, 0x14), PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x06))
                        {
                            Store (ITVF, PARM)
                            Or (PARM, ShiftLeft (ITVM, 0x04), PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x07))
                        {
                            Store (GIVD, PARM)
                            XOr (PARM, One, PARM)
                            Or (PARM, ShiftLeft (GMFN, One), PARM)
                            Or (PARM, 0x1800, PARM)
                            Or (PARM, ShiftLeft (IDMS, 0x11), PARM)
                            Or (ShiftLeft (DerefOf (Index (DerefOf (Index (CDCT, HVCO)), CDVL
                                )), 0x15), PARM, PARM)
                            Store (One, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x0A))
                        {
                            Store (Zero, PARM)
                            If (ISSC)
                            {
                                Or (PARM, 0x03, PARM)
                            }

                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x0B))
                        {
                            Store (KSV0, PARM)
                            Store (KSV1, GESF)
                            Return (SUCC)
                        }

                        Store (Zero, GESF)
                        Return (CRIT)
                    }

                    Method (SBCB, 0, Serialized)
                    {
                        If (LEqual (GESF, Zero))
                        {
                            Store (Zero, PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, One))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x03))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x04))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x05))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x06))
                        {
                            Store (And (PARM, 0x0F), ITVF)
                            Store (ShiftRight (And (PARM, 0xF0), 0x04), ITVM)
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x07))
                        {
                            If (LEqual (PARM, Zero))
                            {
                                Store (CLID, Local0)
                                If (And (0x80000000, Local0))
                                {
                                    And (CLID, 0x0F, CLID)
                                    GLID (CLID)
                                }
                            }

                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x08))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x09))
                        {
                            And (PARM, 0xFF, IBTT)
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x0A))
                        {
                            And (PARM, 0xFF, IPSC)
                            If (And (ShiftRight (PARM, 0x08), 0xFF))
                            {
                                And (ShiftRight (PARM, 0x08), 0xFF, IPAT)
                                Decrement (IPAT)
                            }

                            And (ShiftRight (PARM, 0x14), 0x07, IBIA)
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x0B))
                        {
                            And (ShiftRight (PARM, One), One, IF1E)
                            If (And (PARM, 0x0001E000))
                            {
                                And (ShiftRight (PARM, 0x0D), 0x0F, IDMS)
                            }
                            Else
                            {
                                And (ShiftRight (PARM, 0x11), 0x0F, IDMS)
                            }

                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x10))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x11))
                        {
                            Store (ShiftLeft (LIDS, 0x08), PARM)
                            Add (PARM, 0x0100, PARM)
                            Store (Zero, GESF)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x12))
                        {
                            If (And (PARM, One))
                            {
                                If (LEqual (ShiftRight (PARM, One), One))
                                {
                                    Store (One, ISSC)
                                }
                                Else
                                {
                                    Store (Zero, GESF)
                                    Return (CRIT)
                                }
                            }
                            Else
                            {
                                Store (Zero, ISSC)
                            }

                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x13))
                        {
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        If (LEqual (GESF, 0x14))
                        {
                            And (PARM, 0x0F, PAVP)
                            Store (Zero, GESF)
                            Store (Zero, PARM)
                            Return (SUCC)
                        }

                        Store (Zero, GESF)
                        Return (SUCC)
                    }

                    If (LEqual (GEFC, 0x04))
                    {
                        Store (GBDA (), GXFC)
                    }

                    If (LEqual (GEFC, 0x06))
                    {
                        Store (SBCB (), GXFC)
                    }

                    Store (Zero, GEFC)
                    Store (One, SCIS)
                    Store (Zero, GSSE)
                    Store (Zero, SCIE)
                    Return (Zero)
                }

                Method (PDRD, 0, NotSerialized)
                {
                    If (LNot (DRDY))
                    {
                        Sleep (ASLP)
                    }

                    Return (LNot (DRDY))
                }

                Method (PSTS, 0, NotSerialized)
                {
                    If (LGreater (CSTS, 0x02))
                    {
                        Sleep (ASLP)
                    }

                    Return (LEqual (CSTS, 0x03))
                }

                Method (GNOT, 2, NotSerialized)
                {
                    If (PDRD ())
                    {
                        Return (One)
                    }

                    Store (Arg0, CEVT)
                    Store (0x03, CSTS)
                    If (LAnd (LEqual (CHPD, Zero), LEqual (Arg1, Zero)))
                    {
                        If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                        {
                            Notify (PCI0, Arg1)
                        }
                        Else
                        {
                            Notify (GFX0, Arg1)
                        }
                    }

                    Notify (GFX0, 0x80)
                    Return (Zero)
                }

                Method (GHDS, 1, NotSerialized)
                {
                    Store (Arg0, TIDX)
                    Return (GNOT (One, Zero))
                }

                Method (GLID, 1, NotSerialized)
                {
                    Store (Arg0, CLID)
                    Return (GNOT (0x02, Zero))
                }

                Method (GDCK, 1, NotSerialized)
                {
                    Store (Arg0, CDCK)
                    Return (GNOT (0x04, Zero))
                }

                Method (PARD, 0, NotSerialized)
                {
                    If (LNot (ARDY))
                    {
                        Sleep (ASLP)
                    }

                    Return (LNot (ARDY))
                }

                Method (AINT, 2, NotSerialized)
                {
                    If (LNot (And (TCHE, ShiftLeft (One, Arg0))))
                    {
                        Return (One)
                    }

                    If (PARD ())
                    {
                        Return (One)
                    }

                    If (LEqual (Arg0, 0x02))
                    {
                        If (CPFM)
                        {
                            And (CPFM, 0x0F, Local0)
                            And (EPFM, 0x0F, Local1)
                            If (LEqual (Local0, One))
                            {
                                If (And (Local1, 0x06))
                                {
                                    Store (0x06, PFIT)
                                }
                                Else
                                {
                                    If (And (Local1, 0x08))
                                    {
                                        Store (0x08, PFIT)
                                    }
                                    Else
                                    {
                                        Store (One, PFIT)
                                    }
                                }
                            }

                            If (LEqual (Local0, 0x06))
                            {
                                If (And (Local1, 0x08))
                                {
                                    Store (0x08, PFIT)
                                }
                                Else
                                {
                                    If (And (Local1, One))
                                    {
                                        Store (One, PFIT)
                                    }
                                    Else
                                    {
                                        Store (0x06, PFIT)
                                    }
                                }
                            }

                            If (LEqual (Local0, 0x08))
                            {
                                If (And (Local1, One))
                                {
                                    Store (One, PFIT)
                                }
                                Else
                                {
                                    If (And (Local1, 0x06))
                                    {
                                        Store (0x06, PFIT)
                                    }
                                    Else
                                    {
                                        Store (0x08, PFIT)
                                    }
                                }
                            }
                        }
                        Else
                        {
                            XOr (PFIT, 0x07, PFIT)
                        }

                        Or (PFIT, 0x80000000, PFIT)
                        Store (0x04, ASLC)
                    }
                    Else
                    {
                        If (LEqual (Arg0, One))
                        {
                            Store (Divide (Multiply (Arg1, 0xFF), 0x64, ), BCLP)
                            Or (BCLP, 0x80000000, BCLP)
                            Store (0x02, ASLC)
                        }
                        Else
                        {
                            If (LEqual (Arg0, Zero))
                            {
                                Store (Arg1, ALSI)
                                Store (One, ASLC)
                            }
                            Else
                            {
                                Return (One)
                            }
                        }
                    }

                    Store (Zero, LBPC)
                    Return (Zero)
                }

                Method (SCIP, 0, NotSerialized)
                {
                    If (LNotEqual (OVER, Zero))
                    {
                        Return (LNot (GSMI))
                    }

                    Return (Zero)
                }

                Name (_IRC, Zero)
                Method (UCMP, 2, NotSerialized)
                {
                    If (LNotEqual (0x10, SizeOf (Arg0)))
                    {
                        Return (Zero)
                    }

                    If (LNotEqual (0x10, SizeOf (Arg1)))
                    {
                        Return (Zero)
                    }

                    Store (Zero, Local0)
                    While (LLess (Local0, 0x10))
                    {
                        If (LNotEqual (DerefOf (Index (Arg0, Local0)), DerefOf (Index (
                            Arg1, Local0))))
                        {
                            Return (Zero)
                        }

                        Increment (Local0)
                    }

                    Return (One)
                }

                Method (_DSM, 4, NotSerialized)
                {
                    If (LEqual (Arg0, Buffer (0x10)
                            {
                                /* 0000 */    0xD3, 0x73, 0xD8, 0x7E, 0xD0, 0xC2, 0x4F, 0x4E, 
                                /* 0008 */    0xA8, 0x54, 0x0F, 0x13, 0x17, 0xB0, 0x1C, 0x2C
                            }))
                    {
                        Name (_T_0, Zero)
                        Store (Arg2, _T_0)
                        If (LEqual (_T_0, Zero))
                        {
                            Return (0x03)
                        }
                        Else
                        {
                            If (LEqual (_T_0, One))
                            {
                                Return (MXIF)
                            }
                        }
                    }

                    If (LEqual (UCMP (Arg0, Buffer (0x10)
                                {
                                    /* 0000 */    0xA0, 0xA0, 0x95, 0x9D, 0x60, 0x00, 0x48, 0x4D, 
                                    /* 0008 */    0xB3, 0x4D, 0x7E, 0x5F, 0xEA, 0x12, 0x9F, 0xD4
                                }), One))
                    {
                        Name (_T_1, Zero)
                        Store (Arg2, _T_1)
                        If (LEqual (_T_1, Zero))
                        {
                            Return (Buffer (0x04)
                            {
                                0x7F, 0x00, 0x00, 0x00
                            })
                        }
                        Else
                        {
                            If (LEqual (_T_1, One))
                            {
                                Return (Buffer (0x04)
                                {
                                    0xFF, 0x00, 0x00, 0x00
                                })
                            }
                            Else
                            {
                                If (LEqual (_T_1, 0x02))
                                {
                                    CreateByteField (Arg3, Zero, DSM2)
                                    If (And (DSM2, 0x10))
                                    {
                                        And (DSM2, 0x0F, Local0)
                                        CMSW (0x7A, Local0)
                                        Notify (GFX0, 0xD9)
                                        Return (Local0)
                                    }
                                    Else
                                    {
                                        Store (CMSR (0x7A), Local0)
                                        If (LEqual (^^P0P2.PEGP.FKEY, One))
                                        {
                                            Increment (Local0)
                                            If (LGreater (Local0, 0x02))
                                            {
                                                Store (One, Local0)
                                            }
                                        }

                                        Store (Zero, ^^P0P2.PEGP.FKEY)
                                        Return (Local0)
                                    }
                                }
                                Else
                                {
                                    If (LEqual (_T_1, 0x03))
                                    {
                                        CreateByteField (Arg3, Zero, PWFC)
                                        And (PWFC, 0x03, Local0)
                                        If (LEqual (Local0, One))
                                        {
                                            ^^P0P2.PEGP._ON ()
                                            Return (GP49)
                                            Return (GP18)
                                        }
                                        Else
                                        {
                                            If (LEqual (Local0, 0x02))
                                            {
                                                ^^P0P2.PEGP._OFF ()
                                                Return (GP49)
                                                Return (GP18)
                                            }
                                            Else
                                            {
                                                If (LEqual (^^P0P2.PEGP._STA (), 0x0F))
                                                {
                                                    Return (GP49)
                                                    Return (GP18)
                                                }
                                                Else
                                                {
                                                    Return (GP49)
                                                    Return (GP18)
                                                }
                                            }
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_1, 0x04))
                                        {
                                            Return (0x00012000)
                                        }
                                        Else
                                        {
                                            If (LEqual (_T_1, 0x05))
                                            {
                                                If (And (DerefOf (Index (Arg3, 0x03)), One))
                                                {
                                                    Store (DerefOf (Index (Arg3, One)), Local0)
                                                    ShiftRight (Local0, 0x04, Local0)
                                                    And (Local0, 0x0F, Local0)
                                                    Store (DerefOf (Index (Arg3, 0x02)), Local1)
                                                    ShiftLeft (Local1, 0x04, Local1)
                                                    And (Local1, 0xF0, Local1)
                                                    Or (Local0, Local1, Local0)
                                                    Store (DerefOf (Index (Arg3, Zero)), Local1)
                                                    And (Local1, 0x3F, Local1)
                                                    Store (Local1, Local2)
                                                    Store (GATD (Local1, Local0), Local1)
                                                    ShiftLeft (Local1, 0x08, Local1)
                                                    If (QURY)
                                                    {
                                                        Store (0x00F00021, Local3)
                                                        Store (Local2, CDSP)
                                                        Store (Zero, DTRD)
                                                        Store (GETD (Local0), Local0)
                                                        ShiftLeft (Local0, 0x08, Local0)
                                                        Or (Local3, Local0, Local3)
                                                        Store (Zero, QURY)
                                                        Return (Local3)
                                                    }

                                                    If (SDSP)
                                                    {
                                                        Store (0x00F00021, Local3)
                                                        Store (GETD (SDSP), Local4)
                                                        ShiftLeft (Local4, 0x08, Local4)
                                                        Or (Local3, Local4, Local3)
                                                        Store (Zero, SDSP)
                                                        Return (Local3)
                                                    }

                                                    Store (0x00F00021, Local3)
                                                    Or (Local3, Local1, Local3)
                                                    Return (Local3)
                                                }
                                            }
                                            Else
                                            {
                                                If (LEqual (_T_1, 0x06))
                                                {
                                                    Return (Package (0x1A)
                                                    {
                                                        0x80007330, 
                                                        0x2C, 
                                                        0x80000100, 
                                                        0x2C, 
                                                        0x80006340, 
                                                        0x2C, 
                                                        0x0400, 
                                                        0x2C, 
                                                        0x80007330, 
                                                        0x80000100, 
                                                        0x2C, 
                                                        0x80007330, 
                                                        0x80006340, 
                                                        0x2C, 
                                                        0x80007330, 
                                                        0x0400, 
                                                        0x2C, 
                                                        0x80000100, 
                                                        0x80006340, 
                                                        0x2C, 
                                                        0x80000100, 
                                                        0x0400, 
                                                        0x2C, 
                                                        0x0400, 
                                                        0x80006340, 
                                                        0x2C
                                                    })
                                                }
                                                Else
                                                {
                                                    If (LEqual (_T_1, 0x0C)) {}
                                                    Else
                                                    {
                                                        If (LEqual (_T_1, 0x0D)) {}
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        Return (Buffer (0x04)
                        {
                            0x02, 0x00, 0x00, 0x80
                        })
                    }
                }

                Method (GATD, 2, NotSerialized)
                {
                    If (LEqual (Arg0, 0x1A))
                    {
                        Name (_T_0, Zero)
                        Store (Arg1, _T_0)
                        If (LEqual (_T_0, 0x0A))
                        {
                            Return (0x07)
                        }
                        Else
                        {
                            If (LEqual (_T_0, 0x1A))
                            {
                                Return (One)
                            }
                            Else
                            {
                                Return (0x04)
                            }
                        }
                    }
                    Else
                    {
                        If (LEqual (Arg0, 0x0F))
                        {
                            Name (_T_1, Zero)
                            Store (Arg1, _T_1)
                            If (LEqual (_T_1, 0x0A))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                If (LEqual (_T_1, 0x0F))
                                {
                                    Return (0x02)
                                }
                                Else
                                {
                                    Return (0x04)
                                }
                            }
                        }
                        Else
                        {
                            If (LEqual (Arg0, 0x0C))
                            {
                                Name (_T_2, Zero)
                                Store (Arg1, _T_2)
                                If (LEqual (_T_2, 0x0A))
                                {
                                    Return (0x0A)
                                }
                                Else
                                {
                                    If (LEqual (_T_2, 0x2A))
                                    {
                                        Return (0x03)
                                    }
                                    Else
                                    {
                                        Return (0x04)
                                    }
                                }
                            }
                            Else
                            {
                                If (LEqual (Arg0, 0x03))
                                {
                                    Name (_T_3, Zero)
                                    Store (Arg1, _T_3)
                                    If (LEqual (_T_3, 0x02))
                                    {
                                        Return (0x09)
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_3, 0x03))
                                        {
                                            Return (0x02)
                                        }
                                        Else
                                        {
                                            Return (0x04)
                                        }
                                    }
                                }
                                Else
                                {
                                    If (LEqual (Arg0, 0x1F))
                                    {
                                        Name (_T_4, Zero)
                                        Store (Arg1, _T_4)
                                        If (LEqual (_T_4, 0x0A))
                                        {
                                            Return (0x02)
                                        }
                                        Else
                                        {
                                            If (LEqual (_T_4, 0x05))
                                            {
                                                Return (One)
                                            }
                                            Else
                                            {
                                                If (LEqual (_T_4, 0x10))
                                                {
                                                    Return (0x09)
                                                }
                                                Else
                                                {
                                                    If (LEqual (_T_4, 0x0F))
                                                    {
                                                        Return (0x07)
                                                    }
                                                    Else
                                                    {
                                                        Return (0x04)
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    Else
                                    {
                                        If (LEqual (Arg0, 0x2F))
                                        {
                                            Name (_T_5, Zero)
                                            Store (Arg1, _T_5)
                                            If (LEqual (_T_5, 0x0A))
                                            {
                                                Return (0x02)
                                            }
                                            Else
                                            {
                                                If (LEqual (_T_5, 0x05))
                                                {
                                                    Return (0x03)
                                                }
                                                Else
                                                {
                                                    If (LEqual (_T_5, 0x20))
                                                    {
                                                        Return (0x09)
                                                    }
                                                    Else
                                                    {
                                                        If (LEqual (_T_5, 0x0F))
                                                        {
                                                            Return (0x0A)
                                                        }
                                                        Else
                                                        {
                                                            Return (0x04)
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                        Else
                                        {
                                            If (LEqual (Arg0, 0x3A))
                                            {
                                                Name (_T_6, Zero)
                                                Store (Arg1, _T_6)
                                                If (LEqual (_T_6, 0x0A))
                                                {
                                                    Return (One)
                                                }
                                                Else
                                                {
                                                    If (LEqual (_T_6, 0x10))
                                                    {
                                                        Return (0x03)
                                                    }
                                                    Else
                                                    {
                                                        If (LEqual (_T_6, 0x20))
                                                        {
                                                            Return (0x07)
                                                        }
                                                        Else
                                                        {
                                                            If (LEqual (_T_6, 0x1A))
                                                            {
                                                                Return (0x0A)
                                                            }
                                                            Else
                                                            {
                                                                Return (0x04)
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            Else
                                            {
                                                If (LEqual (Arg0, 0x3F))
                                                {
                                                    Name (_T_7, Zero)
                                                    Store (Arg1, _T_7)
                                                    If (LEqual (_T_7, 0x0A))
                                                    {
                                                        Return (0x02)
                                                    }
                                                    Else
                                                    {
                                                        If (LEqual (_T_7, 0x05))
                                                        {
                                                            Return (One)
                                                        }
                                                        Else
                                                        {
                                                            If (LEqual (_T_7, 0x10))
                                                            {
                                                                Return (0x03)
                                                            }
                                                            Else
                                                            {
                                                                If (LEqual (_T_7, 0x20))
                                                                {
                                                                    Return (0x09)
                                                                }
                                                                Else
                                                                {
                                                                    If (LEqual (_T_7, 0x0F))
                                                                    {
                                                                        Return (0x07)
                                                                    }
                                                                    Else
                                                                    {
                                                                        If (LEqual (_T_7, 0x1A))
                                                                        {
                                                                            Return (0x0A)
                                                                        }
                                                                        Else
                                                                        {
                                                                            Return (0x04)
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                                Else
                                                {
                                                    Return (0x04)
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                Method (GETD, 1, NotSerialized)
                {
                    Name (_T_0, Zero)
                    Store (Arg0, _T_0)
                    If (LEqual (_T_0, One))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        If (LEqual (_T_0, 0x02))
                        {
                            Return (0x04)
                        }
                        Else
                        {
                            If (LEqual (_T_0, 0x03))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                If (LEqual (_T_0, 0x04))
                                {
                                    Return (0x02)
                                }
                                Else
                                {
                                    If (LEqual (_T_0, 0x05))
                                    {
                                        Return (0x02)
                                    }
                                    Else
                                    {
                                        If (LEqual (_T_0, 0x08))
                                        {
                                            Return (0x04)
                                        }
                                        Else
                                        {
                                            If (LEqual (_T_0, 0x0A))
                                            {
                                                Return (0x04)
                                            }
                                            Else
                                            {
                                                If (LEqual (_T_0, 0x0F))
                                                {
                                                    Return (0x09)
                                                }
                                                Else
                                                {
                                                    If (LEqual (_T_0, 0x1A))
                                                    {
                                                        Return (0x07)
                                                    }
                                                    Else
                                                    {
                                                        If (LEqual (_T_0, 0x15))
                                                        {
                                                            Return (0x05)
                                                        }
                                                        Else
                                                        {
                                                            If (LEqual (_T_0, 0x10))
                                                            {
                                                                Return (One)
                                                            }
                                                            Else
                                                            {
                                                                If (LEqual (_T_0, 0x20))
                                                                {
                                                                    Return (0x03)
                                                                }
                                                                Else
                                                                {
                                                                    If (LEqual (_T_0, 0x2A))
                                                                    {
                                                                        Return (0x0A)
                                                                    }
                                                                    Else
                                                                    {
                                                                        If (LEqual (_T_0, 0x25))
                                                                        {
                                                                            Return (0x08)
                                                                        }
                                                                        Else
                                                                        {
                                                                            If (LEqual (_T_0, 0x30))
                                                                            {
                                                                                Return (0x06)
                                                                            }
                                                                            Else
                                                                            {
                                                                                Return (0x04)
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                Method (MXDS, 1, NotSerialized)
                {
                    If (And (Arg0, Zero))
                    {
                        If (^^P0P2.PEGP.TEMP)
                        {
                            Return (Zero)
                        }
                        Else
                        {
                            Return (One)
                        }
                    }
                    Else
                    {
                        If (And (Arg0, One))
                        {
                            Store (One, IGDS)
                            Store (One, GP33)
                            Store (One, GP34)
                            Store (One, GP52)
                        }
                    }
                }

                Method (MXMX, 1, NotSerialized)
                {
                    Return (One)
                }
            }

            Device (P0P1)
            {
                Name (_ADR, 0x001E0000)
                Name (_PRW, Package (0x02)
                {
                    0x0B, 
                    0x04
                })
                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR01)
                    }

                    Return (PR01)
                }
            }

            Device (LPCB)
            {
                Name (_ADR, 0x001F0000)
                Scope (\_SB)
                {
                    OperationRegion (PCI0.LPCB.LPC1, PCI_Config, 0x40, 0xC0)
                    Field (PCI0.LPCB.LPC1, AnyAcc, NoLock, Preserve)
                    {
                                Offset (0x20), 
                        PARC,   8, 
                        PBRC,   8, 
                        PCRC,   8, 
                        PDRC,   8, 
                                Offset (0x28), 
                        PERC,   8, 
                        PFRC,   8, 
                        PGRC,   8, 
                        PHRC,   8
                    }

                    Device (LID0)
                    {
                        Name (_HID, EisaId ("PNP0C0D"))
                        Method (_LID, 0, NotSerialized)
                        {
                            Return (LPOL)
                        }

                        Name (_PRW, Package (0x02)
                        {
                            0x1B, 
                            0x03
                        })
                        Method (_PSW, 1, NotSerialized)
                        {
                            Store (Arg0, SLID)
                        }
                    }

                    Device (PWRB)
                    {
                        Name (_HID, EisaId ("PNP0C0C"))
                    }

                    Device (AMW0)
                    {
                        Mutex (WMIX, 0x01)
                        Name (_HID, "PNP0C14")
                        Name (_UID, Zero)
                        Method (STBY, 3, NotSerialized)
                        {
                            CreateByteField (Arg0, Arg1, TMP)
                            Store (Arg2, TMP)
                        }

                        Method (STWD, 3, NotSerialized)
                        {
                            CreateWordField (Arg0, Arg1, TMP)
                            Store (Arg2, TMP)
                        }

                        Method (STDW, 3, NotSerialized)
                        {
                            CreateDWordField (Arg0, Arg1, TMP)
                            Store (Arg2, TMP)
                        }

                        Method (CLBY, 1, NotSerialized)
                        {
                            Store (Zero, Local0)
                            While (LLess (Local0, SizeOf (Arg0)))
                            {
                                STBY (Arg0, Local0, Zero)
                                Increment (Local0)
                            }
                        }

                        Name (_WDG, Buffer (0x64)
                        {
                            /* 0000 */    0xBC, 0xDC, 0x9D, 0x8D, 0x97, 0xA9, 0xDA, 0x11, 
                            /* 0008 */    0xB0, 0x12, 0xB6, 0x22, 0xA1, 0xEF, 0x54, 0x92, 
                            /* 0010 */    0x41, 0x41, 0x01, 0x00, 0xCE, 0x93, 0x05, 0xA8, 
                            /* 0018 */    0x97, 0xA9, 0xDA, 0x11, 0xB0, 0x12, 0xB6, 0x22, 
                            /* 0020 */    0xA1, 0xEF, 0x54, 0x92, 0x42, 0x41, 0x01, 0x02, 
                            /* 0028 */    0x94, 0x59, 0xBB, 0x9D, 0x97, 0xA9, 0xDA, 0x11, 
                            /* 0030 */    0xB0, 0x12, 0xB6, 0x22, 0xA1, 0xEF, 0x54, 0x92, 
                            /* 0038 */    0xD0, 0x00, 0x01, 0x08, 0xE0, 0x6C, 0x77, 0xA3, 
                            /* 0040 */    0x88, 0x1E, 0xDB, 0x11, 0xA9, 0x8B, 0x08, 0x00, 
                            /* 0048 */    0x20, 0x0C, 0x9A, 0x66, 0x42, 0x43, 0x01, 0x00, 
                            /* 0050 */    0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11, 
                            /* 0058 */    0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10, 
                            /* 0060 */    0x4D, 0x4F, 0x01, 0x00
                        })
                        Name (INFO, Buffer (0x80) {})
                        Name (ECD0, Zero)
                        Method (WED0, 1, NotSerialized)
                        {
                            Store (Arg0, ECD0)
                            Return (Arg0)
                        }

                        Method (WCAA, 1, NotSerialized)
                        {
                            Return (Arg0)
                        }

                        Method (WQAA, 1, NotSerialized)
                        {
                            Acquire (WMIX, 0xFFFF)
                            CLBY (INFO)
                            If (LNotEqual (Arg0, Zero))
                            {
                                Store (INFO, Local1)
                            }
                            Else
                            {
                                STDW (INFO, Zero, 0x4C4C4544)
                                STDW (INFO, 0x04, 0x494D5720)
                                STDW (INFO, 0x08, Zero)
                                STDW (INFO, 0x0C, 0x1000)
                                Store (INFO, Local1)
                            }

                            Release (WMIX)
                            Return (Local1)
                        }

                        Method (WSAA, 2, NotSerialized)
                        {
                            Return (Arg1)
                        }

                        Method (WMI, 2, NotSerialized)
                        {
                            Return (PHWM (Arg0, Arg1))
                        }

                        Method (WMBA, 3, NotSerialized)
                        {
                            CreateDWordField (Arg2, 0x28, WBUF)
                            Add (WBUF, 0x2C, Local1)
                            If (LLessEqual (Local1, 0x1000))
                            {
                                Store (WMI (Arg2, Local1), Local0)
                            }

                            Return (Local0)
                        }

                        Method (_WED, 1, NotSerialized)
                        {
                            CLBY (INFO)
                            Store (Arg0, INFO)
                            Return (INFO)
                        }

                        Name (WQMO, Buffer (0x079B)
                        {
                            /* 0000 */    0x46, 0x4F, 0x4D, 0x42, 0x01, 0x00, 0x00, 0x00, 
                            /* 0008 */    0x8B, 0x07, 0x00, 0x00, 0x60, 0x2C, 0x00, 0x00, 
                            /* 0010 */    0x44, 0x53, 0x00, 0x01, 0x1A, 0x7D, 0xDA, 0x54, 
                            /* 0018 */    0x28, 0xD1, 0x95, 0x00, 0x01, 0x06, 0x18, 0x42, 
                            /* 0020 */    0x10, 0x13, 0x10, 0x22, 0x21, 0x04, 0x12, 0x01, 
                            /* 0028 */    0xA1, 0xC8, 0x2C, 0x0C, 0x86, 0x10, 0x38, 0x2E, 
                            /* 0030 */    0x84, 0x1C, 0x40, 0x48, 0x1C, 0x14, 0x4A, 0x08, 
                            /* 0038 */    0x84, 0xFA, 0x13, 0xC8, 0xAF, 0x00, 0x84, 0x0E, 
                            /* 0040 */    0x05, 0xC8, 0x14, 0x60, 0x50, 0x80, 0x53, 0x04, 
                            /* 0048 */    0x11, 0xF4, 0x2A, 0xC0, 0xA6, 0x00, 0x93, 0x02, 
                            /* 0050 */    0x2C, 0x0A, 0xD0, 0x2E, 0xC0, 0xB2, 0x00, 0xDD, 
                            /* 0058 */    0x02, 0xA4, 0xC3, 0x12, 0x91, 0xE0, 0x28, 0x31, 
                            /* 0060 */    0xE0, 0x28, 0x9D, 0xD8, 0xC2, 0x0D, 0x1B, 0xBC, 
                            /* 0068 */    0x50, 0x14, 0xCD, 0x20, 0x4A, 0x82, 0x72, 0x11, 
                            /* 0070 */    0xA4, 0x0B, 0x42, 0xCA, 0x05, 0xF8, 0x46, 0xD0, 
                            /* 0078 */    0x00, 0xA2, 0xF4, 0x2E, 0xC0, 0xB6, 0x00, 0xD3, 
                            /* 0080 */    0xF0, 0x44, 0xEA, 0x10, 0x50, 0x72, 0x86, 0x80, 
                            /* 0088 */    0x1A, 0x40, 0xAB, 0x13, 0x10, 0x7E, 0xA5, 0x53, 
                            /* 0090 */    0x42, 0x12, 0x84, 0x33, 0x56, 0xF1, 0x33, 0xD0, 
                            /* 0098 */    0x1C, 0x4E, 0xE0, 0x9C, 0x3A, 0xC7, 0x90, 0xE3, 
                            /* 00A0 */    0x71, 0xA1, 0x07, 0xC1, 0x03, 0x29, 0x00, 0x61, 
                            /* 00A8 */    0xE1, 0x21, 0x14, 0x01, 0x06, 0x25, 0x61, 0x2C, 
                            /* 00B0 */    0xD4, 0xC5, 0xA8, 0x51, 0x23, 0x65, 0x03, 0x32, 
                            /* 00B8 */    0x44, 0x69, 0xA3, 0x46, 0x0F, 0xE8, 0xEC, 0x8E, 
                            /* 00C0 */    0xA4, 0x61, 0x01, 0xB2, 0x47, 0x22, 0x02, 0xA3, 
                            /* 00C8 */    0x1E, 0xD3, 0x11, 0x16, 0x36, 0x23, 0xA1, 0xC6, 
                            /* 00D0 */    0x68, 0x0E, 0x8A, 0x40, 0xE3, 0x06, 0x6D, 0x89, 
                            /* 00D8 */    0xB0, 0x1A, 0x57, 0xEC, 0x33, 0xB3, 0xF0, 0x61, 
                            /* 00E0 */    0x09, 0xE3, 0x08, 0x0E, 0x2C, 0x41, 0xA3, 0x68, 
                            /* 00E8 */    0x9A, 0xE3, 0xD9, 0x86, 0x48, 0x70, 0x10, 0xA1, 
                            /* 00F0 */    0x31, 0x32, 0x20, 0xE4, 0x59, 0x80, 0x75, 0x50, 
                            /* 00F8 */    0x49, 0x06, 0x22, 0xEE, 0x11, 0xA5, 0x10, 0x41, 
                            /* 0100 */    0xF3, 0x3D, 0x91, 0x1A, 0x05, 0x68, 0xC3, 0x90, 
                            /* 0108 */    0xAD, 0xB3, 0x81, 0x86, 0x1A, 0xAB, 0x31, 0x14, 
                            /* 0110 */    0x41, 0x44, 0x08, 0x1A, 0xC5, 0x60, 0x11, 0x42, 
                            /* 0118 */    0x85, 0xF8, 0xFF, 0x47, 0x89, 0x7A, 0x4A, 0x41, 
                            /* 0120 */    0xA2, 0x56, 0x06, 0x22, 0xB4, 0x60, 0x46, 0x60, 
                            /* 0128 */    0xF6, 0x07, 0x41, 0x62, 0x9C, 0x19, 0x74, 0x58, 
                            /* 0130 */    0xB0, 0x0C, 0x10, 0x19, 0x11, 0x34, 0x1A, 0x76, 
                            /* 0138 */    0x16, 0xF0, 0x70, 0x3C, 0x93, 0xE6, 0x27, 0xA6, 
                            /* 0140 */    0xC1, 0x99, 0x60, 0x6C, 0x08, 0x69, 0x80, 0x90, 
                            /* 0148 */    0xA8, 0x83, 0x03, 0x25, 0xB0, 0x94, 0x81, 0x93, 
                            /* 0150 */    0xCB, 0x81, 0xC7, 0x77, 0xC6, 0x51, 0x43, 0x9C, 
                            /* 0158 */    0xFA, 0x99, 0xF9, 0x1F, 0xE1, 0x2D, 0xF8, 0x08, 
                            /* 0160 */    0xC0, 0xC7, 0xE0, 0xC1, 0x1E, 0x42, 0xC0, 0x23, 
                            /* 0168 */    0x64, 0x67, 0x00, 0x03, 0xE2, 0xAF, 0x0B, 0x27, 
                            /* 0170 */    0xED, 0xB9, 0xF8, 0x2C, 0x00, 0x63, 0xF8, 0x70, 
                            /* 0178 */    0x8D, 0x8F, 0x42, 0xE3, 0x61, 0xE7, 0x03, 0x36, 
                            /* 0180 */    0x2E, 0x0E, 0xEF, 0x43, 0xC1, 0x09, 0x17, 0x0B, 
                            /* 0188 */    0xA2, 0x00, 0x10, 0x92, 0x75, 0x3E, 0x40, 0xCF, 
                            /* 0190 */    0xFA, 0xD8, 0x02, 0x3E, 0x0C, 0x34, 0x7B, 0x87, 
                            /* 0198 */    0x20, 0x04, 0x2F, 0x02, 0x3E, 0x3A, 0xF8, 0xB8, 
                            /* 01A0 */    0xE1, 0x71, 0x3F, 0x6F, 0x80, 0xE1, 0x70, 0xE0, 
                            /* 01A8 */    0xE1, 0xF8, 0xB4, 0x01, 0x5C, 0x46, 0xC0, 0xA5, 
                            /* 01B0 */    0x3D, 0x29, 0x4C, 0x20, 0xC9, 0x4F, 0x00, 0x89, 
                            /* 01B8 */    0x81, 0x41, 0x1D, 0x08, 0x7C, 0xB0, 0x80, 0x2B, 
                            /* 01C0 */    0x09, 0x0E, 0x35, 0x3C, 0x4F, 0xEC, 0x01, 0xE1, 
                            /* 01C8 */    0xFF, 0x7F, 0x94, 0x67, 0x76, 0x20, 0x9E, 0xFE, 
                            /* 01D0 */    0x63, 0x00, 0x8C, 0x03, 0x82, 0xA7, 0x75, 0x4A, 
                            /* 01D8 */    0xBE, 0x79, 0x3C, 0x48, 0xF8, 0x22, 0x10, 0x26, 
                            /* 01E0 */    0x81, 0x4F, 0x09, 0x0C, 0x8D, 0x1F, 0x37, 0xC0, 
                            /* 01E8 */    0x3A, 0x6A, 0xFC, 0x01, 0x01, 0xDE, 0x49, 0xE2, 
                            /* 01F0 */    0xFC, 0xFA, 0x1C, 0x80, 0x0E, 0x0D, 0xA7, 0xC8, 
                            /* 01F8 */    0x40, 0x5E, 0x03, 0x9E, 0x09, 0x4E, 0xC9, 0xE3, 
                            /* 0200 */    0x4B, 0xE0, 0x33, 0x07, 0xEC, 0xBB, 0xC1, 0x61, 
                            /* 0208 */    0x1C, 0x4C, 0x88, 0x08, 0xEF, 0x01, 0x4F, 0x1D, 
                            /* 0210 */    0xBE, 0x6B, 0x3C, 0x0A, 0x04, 0x8A, 0xD0, 0xDB, 
                            /* 0218 */    0x99, 0x83, 0x9E, 0x42, 0x8C, 0x12, 0xED, 0xAC, 
                            /* 0220 */    0xC2, 0x3C, 0x70, 0x44, 0xF1, 0x91, 0xC3, 0x08, 
                            /* 0228 */    0xEF, 0x1E, 0xBE, 0x13, 0x3C, 0x80, 0xB4, 0x36, 
                            /* 0230 */    0x39, 0xE1, 0x06, 0x7A, 0xE6, 0x60, 0xD1, 0xCE, 
                            /* 0238 */    0x2C, 0xB2, 0x00, 0xA2, 0x48, 0xA3, 0x41, 0x9D, 
                            /* 0240 */    0x11, 0x7C, 0x1A, 0xF0, 0xB4, 0x9E, 0x62, 0x7C, 
                            /* 0248 */    0x94, 0x30, 0xC8, 0x19, 0x1E, 0xD8, 0x73, 0xC2, 
                            /* 0250 */    0x63, 0x80, 0x07, 0xCC, 0x6E, 0x0C, 0x3E, 0x4E, 
                            /* 0258 */    0xF8, 0x5C, 0x80, 0x77, 0x0D, 0xA8, 0x19, 0xFA, 
                            /* 0260 */    0xB0, 0x01, 0xE7, 0xD0, 0x81, 0x3F, 0x4D, 0xE0, 
                            /* 0268 */    0x0F, 0x16, 0xF8, 0xF1, 0xF8, 0x9A, 0xC3, 0x26, 
                            /* 0270 */    0x9C, 0xC0, 0xF2, 0x07, 0x81, 0x1A, 0x99, 0xA1, 
                            /* 0278 */    0x3D, 0xCB, 0xD3, 0x7A, 0x0D, 0xF0, 0x69, 0xC7, 
                            /* 0280 */    0x04, 0x3E, 0x6F, 0xF8, 0xFF, 0xFF, 0xCF, 0xF1, 
                            /* 0288 */    0x78, 0xC0, 0xAF, 0xF8, 0x6C, 0x41, 0xEE, 0x0A, 
                            /* 0290 */    0x9E, 0xAF, 0xCF, 0x2E, 0xCC, 0xC6, 0x78, 0x50, 
                            /* 0298 */    0xA3, 0xF0, 0x01, 0x07, 0x77, 0x76, 0xF1, 0x11, 
                            /* 02A0 */    0xC0, 0x67, 0x17, 0xE0, 0x39, 0x89, 0x67, 0x09, 
                            /* 02A8 */    0xF0, 0x1E, 0x02, 0xAC, 0x19, 0x4F, 0x87, 0x2D, 
                            /* 02B0 */    0x18, 0x23, 0xC6, 0x43, 0x9E, 0x71, 0xD5, 0xC3, 
                            /* 02B8 */    0xD0, 0x45, 0xC0, 0xEA, 0xEE, 0x2B, 0xA8, 0xA3, 
                            /* 02C0 */    0x17, 0x98, 0xA0, 0x5E, 0x33, 0x70, 0xA7, 0x17, 
                            /* 02C8 */    0xE0, 0x73, 0xCA, 0x82, 0xF7, 0xFF, 0x3F, 0x65, 
                            /* 02D0 */    0x01, 0xF7, 0xAB, 0x02, 0x3F, 0xA2, 0x80, 0x01, 
                            /* 02D8 */    0xB2, 0xB3, 0xD3, 0x89, 0x10, 0xDE, 0x4B, 0x9E, 
                            /* 02E0 */    0x43, 0x7C, 0xBB, 0xF2, 0xC1, 0x24, 0xC8, 0x73, 
                            /* 02E8 */    0x40, 0x84, 0xA7, 0x2C, 0x7E, 0x1F, 0x88, 0x12, 
                            /* 02F0 */    0xF3, 0x80, 0x22, 0x45, 0x31, 0x62, 0x90, 0x27, 
                            /* 02F8 */    0x2C, 0x5F, 0x4F, 0x62, 0x18, 0x3A, 0x58, 0xB8, 
                            /* 0300 */    0xF0, 0x11, 0x9E, 0xB2, 0x00, 0x8B, 0x97, 0x2C, 
                            /* 0308 */    0xCC, 0x29, 0x0B, 0xE6, 0xDB, 0xC0, 0xA7, 0x2C, 
                            /* 0310 */    0x70, 0xFC, 0xFF, 0x4F, 0x59, 0xE0, 0x1A, 0xF7, 
                            /* 0318 */    0x53, 0x16, 0x30, 0x93, 0xFE, 0x14, 0xF0, 0xA9, 
                            /* 0320 */    0xC6, 0x4F, 0x00, 0x45, 0x3F, 0x58, 0x50, 0x18, 
                            /* 0328 */    0x9F, 0xB2, 0x00, 0x57, 0xF2, 0x0E, 0x08, 0xA0, 
                            /* 0330 */    0x39, 0x3B, 0xF9, 0xB6, 0x60, 0xB0, 0xE7, 0x98, 
                            /* 0338 */    0x93, 0x78, 0xC9, 0xF0, 0x29, 0x11, 0x0C, 0x87, 
                            /* 0340 */    0x0C, 0xDF, 0xA9, 0x0E, 0xE5, 0x91, 0xE3, 0x29, 
                            /* 0348 */    0xC0, 0x47, 0x2C, 0xB0, 0xC7, 0x39, 0x06, 0xE8, 
                            /* 0350 */    0xB8, 0xE2, 0x23, 0x96, 0xFF, 0xFF, 0x47, 0x2C, 
                            /* 0358 */    0x80, 0x1B, 0x07, 0x10, 0xFC, 0xA9, 0x03, 0xD6, 
                            /* 0360 */    0x3D, 0x20, 0xAC, 0x0F, 0x1D, 0xC0, 0x43, 0xF6, 
                            /* 0368 */    0x43, 0x40, 0x67, 0x18, 0x4B, 0x06, 0x91, 0x8D, 
                            /* 0370 */    0x73, 0x0D, 0x1D, 0xA3, 0xC5, 0x2F, 0x54, 0x37, 
                            /* 0378 */    0x85, 0xB8, 0x07, 0xC3, 0x65, 0x03, 0x09, 0xD4, 
                            /* 0380 */    0xC3, 0xB5, 0x60, 0x0A, 0x89, 0xA2, 0xD1, 0x68, 
                            /* 0388 */    0x0C, 0x4C, 0x60, 0x04, 0x67, 0x10, 0x03, 0x3A, 
                            /* 0390 */    0x23, 0x84, 0x0E, 0x65, 0x38, 0x15, 0xE7, 0x21, 
                            /* 0398 */    0xD4, 0xFF, 0x9F, 0x60, 0xA8, 0x1B, 0x13, 0x9D, 
                            /* 03A0 */    0x9D, 0xE7, 0xCF, 0x6F, 0x23, 0x3E, 0x11, 0x18, 
                            /* 03A8 */    0xD8, 0x57, 0x88, 0xB7, 0x0C, 0xB0, 0x0C, 0xCB, 
                            /* 03B0 */    0x8B, 0x7B, 0x02, 0x78, 0xBC, 0x78, 0xCB, 0x48, 
                            /* 03B8 */    0x50, 0xCD, 0xB1, 0x06, 0x35, 0x07, 0x5F, 0x05, 
                            /* 03C0 */    0xDE, 0xC8, 0x4C, 0xE0, 0x2B, 0x18, 0xD8, 0x4E, 
                            /* 03C8 */    0x33, 0x18, 0x7D, 0x77, 0x02, 0x50, 0x00, 0xF9, 
                            /* 03D0 */    0x28, 0xE0, 0xFB, 0xF2, 0xDB, 0x00, 0x9B, 0xC5, 
                            /* 03D8 */    0x2B, 0xB3, 0xD1, 0x7C, 0xFE, 0x44, 0x0C, 0x1D, 
                            /* 03E0 */    0x25, 0x66, 0xE8, 0x14, 0xC4, 0x43, 0x77, 0xD0, 
                            /* 03E8 */    0xA1, 0xA3, 0x8F, 0x03, 0x3E, 0x59, 0xE1, 0x82, 
                            /* 03F0 */    0x1D, 0xBE, 0xA0, 0x4D, 0xEE, 0x68, 0x4F, 0xCC, 
                            /* 03F8 */    0xB3, 0xF0, 0x3C, 0x71, 0x73, 0x07, 0xD3, 0x11, 
                            /* 0400 */    0x09, 0xC6, 0xE0, 0x31, 0x93, 0x07, 0xB3, 0xC0, 
                            /* 0408 */    0xC9, 0x83, 0xE2, 0xFF, 0x3F, 0x79, 0x98, 0xF0, 
                            /* 0410 */    0x98, 0xB0, 0x87, 0x43, 0x7A, 0xE8, 0xF0, 0xC8, 
                            /* 0418 */    0xF8, 0x38, 0x7D, 0xFA, 0x61, 0xD8, 0xA7, 0x73, 
                            /* 0420 */    0x2E, 0x45, 0xCF, 0x48, 0x57, 0x91, 0x67, 0x2E, 
                            /* 0428 */    0x0C, 0xAC, 0x47, 0xCE, 0x61, 0x8D, 0x16, 0xF6, 
                            /* 0430 */    0x80, 0x9F, 0x43, 0x7C, 0x87, 0xF1, 0x81, 0x87, 
                            /* 0438 */    0xC1, 0xFA, 0xF4, 0x02, 0x8E, 0xE3, 0x17, 0xFC, 
                            /* 0440 */    0xD3, 0x00, 0x78, 0x0E, 0x20, 0x1E, 0xC3, 0x0B, 
                            /* 0448 */    0x08, 0x3F, 0xBE, 0xE8, 0xFC, 0x4B, 0x85, 0x2E, 
                            /* 0450 */    0x4E, 0xF2, 0x60, 0x50, 0xA7, 0x29, 0xC0, 0xD5, 
                            /* 0458 */    0xE9, 0x0D, 0x3C, 0x57, 0x7D, 0xDC, 0x59, 0x0A, 
                            /* 0460 */    0xF7, 0xFF, 0x3F, 0x4B, 0xC1, 0x38, 0xFC, 0xFA, 
                            /* 0468 */    0x02, 0xEF, 0xBB, 0x94, 0x11, 0x0E, 0xE4, 0x59, 
                            /* 0470 */    0x0A, 0xEC, 0xB1, 0x9F, 0x21, 0x3A, 0x04, 0xF8, 
                            /* 0478 */    0x2C, 0x05, 0xF0, 0xE3, 0xF5, 0xE1, 0xF3, 0x0C, 
                            /* 0480 */    0xDC, 0xC0, 0xA7, 0x5F, 0xA0, 0xF5, 0xFF, 0x3F, 
                            /* 0488 */    0x85, 0x80, 0xFF, 0x18, 0xE1, 0x23, 0x0E, 0xEE, 
                            /* 0490 */    0xE8, 0x0B, 0xDC, 0x0E, 0xC6, 0xFC, 0x8C, 0x81, 
                            /* 0498 */    0x3B, 0x8E, 0x01, 0x8F, 0x93, 0x33, 0xEE, 0x34, 
                            /* 04A0 */    0xE1, 0x21, 0xF0, 0x01, 0xB4, 0x3A, 0x3D, 0x72, 
                            /* 04A8 */    0xEA, 0x39, 0x25, 0xDC, 0x71, 0x80, 0x4F, 0x09, 
                            /* 04B0 */    0x37, 0x00, 0x4C, 0x80, 0x33, 0x26, 0xA0, 0xEA, 
                            /* 04B8 */    0xFF, 0x7F, 0xC6, 0x04, 0xC6, 0x20, 0x11, 0xDE, 
                            /* 04C0 */    0x15, 0xA2, 0xBE, 0x23, 0x1B, 0xE2, 0x19, 0x99, 
                            /* 04C8 */    0xE1, 0xBC, 0x35, 0x3C, 0xBE, 0x3C, 0x23, 0x83, 
                            /* 04D0 */    0xF3, 0x8C, 0x09, 0xF0, 0xE7, 0xFF, 0x7F, 0xA4, 
                            /* 04D8 */    0xC7, 0xDE, 0x14, 0x82, 0x3F, 0x85, 0x00, 0x13, 
                            /* 04E0 */    0xF1, 0x67, 0x4C, 0x2A, 0xFC, 0x8C, 0x09, 0x6D, 
                            /* 04E8 */    0x2E, 0x9E, 0xB6, 0xCF, 0x98, 0x00, 0xF7, 0xFE, 
                            /* 04F0 */    0xFF, 0x67, 0x4C, 0xC0, 0x77, 0xE4, 0x33, 0x26, 
                            /* 04F8 */    0xA0, 0xE7, 0x48, 0x85, 0x3B, 0x63, 0x82, 0x61, 
                            /* 0500 */    0x9C, 0xEF, 0x4F, 0x06, 0x79, 0x5E, 0xF2, 0x81, 
                            /* 0508 */    0xC0, 0x47, 0x19, 0x16, 0xE3, 0x8C, 0x49, 0xCF, 
                            /* 0510 */    0x3D, 0x16, 0x0E, 0x83, 0x3A, 0x50, 0xC1, 0xF9, 
                            /* 0518 */    0xFF, 0x1F, 0xA8, 0x00, 0x2F, 0x01, 0x86, 0x0C, 
                            /* 0520 */    0x9A, 0x03, 0xC3, 0x19, 0x9C, 0x42, 0xB4, 0x08, 
                            /* 0528 */    0x67, 0x7C, 0xC0, 0x31, 0x5E, 0x09, 0x8C, 0x12, 
                            /* 0530 */    0xF0, 0xBC, 0x0D, 0x11, 0xF5, 0xA8, 0x7C, 0x81, 
                            /* 0538 */    0x30, 0x48, 0xA0, 0x77, 0x03, 0xDF, 0x13, 0x38, 
                            /* 0540 */    0xB0, 0x27, 0x60, 0x8C, 0x78, 0x21, 0x82, 0x3E, 
                            /* 0548 */    0x5F, 0xF9, 0xBC, 0x14, 0xE3, 0x05, 0xE0, 0xA8, 
                            /* 0550 */    0xD8, 0x09, 0x0B, 0xF6, 0x41, 0xE2, 0xC5, 0xD3, 
                            /* 0558 */    0xE3, 0x39, 0xB7, 0xE7, 0x8D, 0xA7, 0x98, 0x20, 
                            /* 0560 */    0x6F, 0x56, 0x8F, 0x19, 0xCF, 0x12, 0x2F, 0x9C, 
                            /* 0568 */    0x3E, 0x61, 0x71, 0x14, 0x1F, 0xAE, 0x0C, 0xF5, 
                            /* 0570 */    0xA2, 0x65, 0xC4, 0xB3, 0x0C, 0xF2, 0xE8, 0x69, 
                            /* 0578 */    0x90, 0x68, 0xC1, 0x8C, 0xC0, 0x4E, 0x58, 0x2C, 
                            /* 0580 */    0xEA, 0xE3, 0x44, 0xA7, 0x0A, 0x9F, 0xB0, 0x80, 
                            /* 0588 */    0xF3, 0xFF, 0xFF, 0x84, 0x05, 0xB8, 0x92, 0x73, 
                            /* 0590 */    0xC2, 0x90, 0x91, 0x23, 0x14, 0x3D, 0xE5, 0x70, 
                            /* 0598 */    0xDC, 0x37, 0x12, 0x1F, 0x10, 0x12, 0x38, 0xFE, 
                            /* 05A0 */    0xC1, 0x88, 0x9E, 0x3C, 0x81, 0xE7, 0xD9, 0x04, 
                            /* 05A8 */    0x3C, 0x23, 0x7B, 0x9A, 0x78, 0xA4, 0xF0, 0x8C, 
                            /* 05B0 */    0x9E, 0x36, 0x3C, 0x8B, 0x77, 0x00, 0x5F, 0x7D, 
                            /* 05B8 */    0xC2, 0x3D, 0xFB, 0xC0, 0x19, 0xF0, 0x3B, 0xC0, 
                            /* 05C0 */    0x03, 0x80, 0x61, 0x7C, 0x3A, 0xC3, 0x0F, 0x1C, 
                            /* 05C8 */    0x7F, 0xA9, 0xF0, 0x7D, 0xC6, 0xA7, 0x20, 0x9F, 
                            /* 05D0 */    0xCE, 0x70, 0x07, 0x35, 0x98, 0x67, 0x15, 0x43, 
                            /* 05D8 */    0x1D, 0x14, 0xEE, 0xFF, 0x3F, 0xA8, 0x27, 0xD2, 
                            /* 05E0 */    0x43, 0x88, 0xE3, 0xCB, 0x83, 0xCF, 0x6B, 0xC0, 
                            /* 05E8 */    0xE4, 0x30, 0x84, 0x78, 0x98, 0xF9, 0x40, 0x43, 
                            /* 05F0 */    0xC5, 0x2E, 0x95, 0x9E, 0x69, 0x00, 0x6E, 0x8D, 
                            /* 05F8 */    0xEB, 0x99, 0x06, 0x6C, 0xFF, 0xFF, 0x33, 0x0D, 
                            /* 0600 */    0x3E, 0xDE, 0x21, 0x14, 0xA0, 0xC9, 0xF1, 0xE1, 
                            /* 0608 */    0x61, 0x04, 0x4C, 0xC7, 0x82, 0xD0, 0x46, 0x7A, 
                            /* 0610 */    0x61, 0xF0, 0xA9, 0xC1, 0x90, 0xEF, 0x0A, 0x1E, 
                            /* 0618 */    0xA3, 0x27, 0xE1, 0xC3, 0x28, 0x50, 0xF1, 0x30, 
                            /* 0620 */    0x56, 0x96, 0xED, 0x30, 0x8A, 0x3A, 0x14, 0x38, 
                            /* 0628 */    0x0F, 0x95, 0x6E, 0xD8, 0x0F, 0x15, 0xC6, 0x3E, 
                            /* 0630 */    0x86, 0xC7, 0x09, 0x8F, 0xE1, 0x24, 0x22, 0x1D, 
                            /* 0638 */    0x96, 0xFF, 0xFF, 0x63, 0x74, 0x82, 0x03, 0x29, 
                            /* 0640 */    0x4A, 0x3B, 0x85, 0x94, 0x1D, 0x23, 0x51, 0x5A, 
                            /* 0648 */    0x8E, 0x91, 0x14, 0xC4, 0xC7, 0x48, 0xAE, 0xE4, 
                            /* 0650 */    0x34, 0x80, 0xD2, 0x71, 0xEC, 0x21, 0xE3, 0xC4, 
                            /* 0658 */    0x10, 0xCC, 0x75, 0x22, 0x85, 0x3E, 0x9B, 0xB7, 
                            /* 0660 */    0x48, 0xF0, 0xCC, 0xCB, 0x87, 0x8B, 0xE3, 0xC0, 
                            /* 0668 */    0x6C, 0xF2, 0x05, 0x13, 0x73, 0x2A, 0x85, 0x39, 
                            /* 0670 */    0xEF, 0xB7, 0x1F, 0xB0, 0x9C, 0x37, 0xDE, 0x59, 
                            /* 0678 */    0x7D, 0x25, 0x05, 0x16, 0x02, 0x27, 0x8F, 0x92, 
                            /* 0680 */    0x34, 0x79, 0x0A, 0xE2, 0xC9, 0x3B, 0xEE, 0xE4, 
                            /* 0688 */    0xD1, 0x33, 0xF1, 0xE4, 0xB1, 0x04, 0xC3, 0xDD, 
                            /* 0690 */    0x49, 0x41, 0x71, 0x73, 0xC0, 0x0F, 0x1F, 0xAC, 
                            /* 0698 */    0x97, 0x29, 0xFC, 0xFF, 0xFF, 0x5E, 0x8A, 0xBD, 
                            /* 06A0 */    0x71, 0xC0, 0x1F, 0x3F, 0xF6, 0x56, 0x0A, 0x4C, 
                            /* 06A8 */    0x24, 0x8C, 0x5D, 0xB7, 0x52, 0xC0, 0x0D, 0xAA, 
                            /* 06B0 */    0xCF, 0x03, 0xE0, 0xB8, 0x87, 0xB0, 0xD3, 0x92, 
                            /* 06B8 */    0x2F, 0x62, 0x06, 0x89, 0xF8, 0xAA, 0xC2, 0x06, 
                            /* 06C0 */    0xC5, 0x8E, 0x4A, 0xEC, 0xBA, 0xF6, 0xA8, 0x04, 
                            /* 06C8 */    0x2B, 0xDD, 0xED, 0x04, 0x35, 0x12, 0xA7, 0x79, 
                            /* 06D0 */    0x3F, 0x68, 0xEA, 0xAF, 0x00, 0x2F, 0x27, 0xC0, 
                            /* 06D8 */    0xEE, 0xFF, 0x7F, 0x39, 0x01, 0xF8, 0xFF, 0xFF, 
                            /* 06E0 */    0xBF, 0x9C, 0x80, 0x57, 0xC6, 0xE5, 0x04, 0x74, 
                            /* 06E8 */    0xC7, 0x00, 0x5F, 0x4E, 0x80, 0xEB, 0xE9, 0x0F, 
                            /* 06F0 */    0x77, 0x1E, 0x80, 0x3B, 0xCC, 0x53, 0xF3, 0xCC, 
                            /* 06F8 */    0x83, 0x3D, 0x10, 0xFA, 0x78, 0x02, 0x4E, 0x82, 
                            /* 0700 */    0x0A, 0x6D, 0xFA, 0xD4, 0x68, 0xD4, 0xAA, 0x41, 
                            /* 0708 */    0x99, 0x1A, 0x65, 0x1A, 0xD4, 0xEA, 0x53, 0xA9, 
                            /* 0710 */    0x31, 0x63, 0x86, 0xC6, 0xE3, 0x55, 0x6B, 0xD8, 
                            /* 0718 */    0x0E, 0xB5, 0x72, 0x81, 0x58, 0xD2, 0x67, 0x43, 
                            /* 0720 */    0x20, 0x16, 0x75, 0x32, 0x13, 0x88, 0xE3, 0x9A, 
                            /* 0728 */    0x00, 0x61, 0xC2, 0xD7, 0x27, 0x10, 0xC7, 0x06, 
                            /* 0730 */    0xA1, 0x62, 0xFF, 0x25, 0x32, 0x32, 0x58, 0x83, 
                            /* 0738 */    0x08, 0xC8, 0x21, 0x7C, 0x00, 0xB1, 0x48, 0x20, 
                            /* 0740 */    0x02, 0x27, 0xCF, 0x0A, 0x81, 0x12, 0x27, 0x20, 
                            /* 0748 */    0x4C, 0xE8, 0x73, 0x53, 0x20, 0x96, 0xE7, 0x05, 
                            /* 0750 */    0x84, 0x85, 0x03, 0xA1, 0x92, 0xCC, 0x80, 0x33, 
                            /* 0758 */    0x7D, 0x20, 0x02, 0xB2, 0xD4, 0xFF, 0x88, 0x80, 
                            /* 0760 */    0x2C, 0x1C, 0x44, 0x87, 0x03, 0xA2, 0x07, 0x84, 
                            /* 0768 */    0xFD, 0xFF, 0xE5, 0x83, 0xD0, 0x38, 0x7E, 0x40, 
                            /* 0770 */    0x58, 0x0C, 0x45, 0x20, 0x4C, 0x84, 0xA3, 0x41, 
                            /* 0778 */    0xD0, 0x27, 0xA9, 0xC0, 0x9D, 0x14, 0x44, 0x40, 
                            /* 0780 */    0x4E, 0x6E, 0x09, 0x88, 0xE9, 0xD0, 0x04, 0xC4, 
                            /* 0788 */    0x54, 0xBF, 0x85, 0x05, 0xE4, 0x08, 0x20, 0x02, 
                            /* 0790 */    0x72, 0x24, 0x53, 0x40, 0x2C, 0x20, 0x88, 0x80, 
                            /* 0798 */    0xFC, 0xFF, 0x07
                        })
                    }

                    OperationRegion (SMI2, SystemMemory, 0x99F8DF3D, 0x00001010)
                    Field (SMI2, AnyAcc, NoLock, Preserve)
                    {
                        WCMD,   8, 
                        TPID,   8, 
                        WDID,   32, 
                        DI00,   32768
                    }

                    Field (SMI2, AnyAcc, NoLock, Preserve)
                    {
                                AccessAs (ByteAcc, 0x00), 
                                Offset (0x06), 
                        WCCL,   16, 
                        WCSE,   16, 
                        WCA1,   32, 
                        WCA2,   32, 
                        WCA3,   32, 
                        WCA4,   32, 
                        WCR1,   32, 
                        WCR2,   32, 
                        WCR3,   32, 
                        WCR4,   32
                    }

                    Mutex (PSMX, 0x00)
                    Method (PHWM, 2, NotSerialized)
                    {
                        Acquire (PSMX, 0xFFFF)
                        Store (0xE0, WCMD)
                        Store (0x57, TPID)
                        Store (Arg1, WDID)
                        Store (Arg0, DI00)
                        Store (Zero, ^PCI0.LPCB.SMIC)
                        Release (PSMX)
                        Name (RETB, Buffer (0x1000) {})
                        Store (DI00, RETB)
                        Return (RETB)
                    }

                    Device (LNKA)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, One)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PARC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,10,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLA, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLA, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PARC, 0x0F), IRQ0)
                            Return (RTLA)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PARC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PARC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKB)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x02)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PBRC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,11,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLB, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLB, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PBRC, 0x0F), IRQ0)
                            Return (RTLB)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PBRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PBRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKC)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x03)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PCRC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,10,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLC, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLC, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PCRC, 0x0F), IRQ0)
                            Return (RTLC)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PCRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PCRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKD)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x04)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PDRC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,11,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLD, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLD, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PDRC, 0x0F), IRQ0)
                            Return (RTLD)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PDRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PDRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKE)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x05)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PERC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,10,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLE, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLE, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PERC, 0x0F), IRQ0)
                            Return (RTLE)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PERC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PERC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKF)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x06)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PFRC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,11,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLF, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLF, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PFRC, 0x0F), IRQ0)
                            Return (RTLF)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PFRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PFRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKG)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x07)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PGRC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,10,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLG, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLG, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PGRC, 0x0F), IRQ0)
                            Return (RTLG)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PGRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PGRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }

                    Device (LNKH)
                    {
                        Name (_HID, EisaId ("PNP0C0F"))
                        Name (_UID, 0x08)
                        Method (_DIS, 0, Serialized)
                        {
                            Store (0x80, PHRC)
                        }

                        Name (_PRS, ResourceTemplate ()
                        {
                            IRQ (Level, ActiveLow, Shared, )
                                {1,3,4,5,6,7,11,12,14,15}
                        })
                        Method (_CRS, 0, Serialized)
                        {
                            Name (RTLH, ResourceTemplate ()
                            {
                                IRQ (Level, ActiveLow, Shared, )
                                    {}
                            })
                            CreateWordField (RTLH, One, IRQ0)
                            Store (Zero, IRQ0)
                            ShiftLeft (One, And (PHRC, 0x0F), IRQ0)
                            Return (RTLH)
                        }

                        Method (_SRS, 1, Serialized)
                        {
                            CreateWordField (Arg0, One, IRQ0)
                            FindSetRightBit (IRQ0, Local0)
                            Decrement (Local0)
                            Store (Local0, PHRC)
                        }

                        Method (_STA, 0, Serialized)
                        {
                            If (And (PHRC, 0x80))
                            {
                                Return (0x09)
                            }
                            Else
                            {
                                Return (0x0B)
                            }
                        }
                    }
                }

                OperationRegion (LPC0, PCI_Config, 0x40, 0xC0)
                Field (LPC0, AnyAcc, NoLock, Preserve)
                {
                            Offset (0x40), 
                    IOD0,   8, 
                    IOD1,   8, 
                            Offset (0xB0), 
                    RAEN,   1, 
                        ,   13, 
                    RCBA,   18
                }

                Method (ECOK, 0, NotSerialized)
                {
                    If (LEqual (^EC0.Z00A, One))
                    {
                        Return (One)
                    }
                    Else
                    {
                        Return (Zero)
                    }
                }

                Device (EC0)
                {
                    Name (_HID, EisaId ("PNP0C09"))
                    Name (_GPE, 0x1C)
                    Name (Z00A, Zero)
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0062,             // Range Minimum
                            0x0062,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0066,             // Range Minimum
                            0x0066,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                    })
                    Method (_REG, 2, NotSerialized)
                    {
                        If (LEqual (Arg0, 0x03))
                        {
                            Store (Arg1, Z00A)
                            Store (Zero, OSTY)
                            If (LEqual (OSYS, 0x07D6))
                            {
                                Store (One, OSTY)
                            }

                            If (LEqual (OSYS, 0x03E8))
                            {
                                Store (0x02, OSTY)
                            }

                            If (LEqual (OSYS, 0x07D9))
                            {
                                Store (0x03, OSTY)
                            }
                        }
                    }

                    OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
                    Field (ERAM, ByteAcc, Lock, Preserve)
                    {
                                Offset (0x10), 
                        BATN,   128, 
                                Offset (0x60), 
                        SMPR,   8, 
                        SMST,   8, 
                        SMAD,   8, 
                        SMCM,   8, 
                        SMD0,   256, 
                        BCNT,   8, 
                        SMAA,   24, 
                                Offset (0x90), 
                        CHGM,   16, 
                        CHGS,   16, 
                        ENID,   8, 
                        ENIB,   8, 
                        ENDD,   8, 
                        CHGV,   8, 
                        CHGA,   16, 
                        BAL0,   1, 
                        BAL1,   1, 
                        BAL2,   1, 
                        BAL3,   1, 
                        BBC0,   1, 
                        BBC1,   1, 
                        BBC2,   1, 
                        BBC3,   1, 
                                Offset (0x9C), 
                        PHDD,   1, 
                        IFDD,   1, 
                        IODD,   1, 
                        SHDD,   1, 
                        S120,   1, 
                        EFDD,   1, 
                        CRTD,   1, 
                        SPWR,   1, 
                        SBTN,   1, 
                        VIDO,   1, 
                        VOLD,   1, 
                        VOLU,   1, 
                        MUTE,   1, 
                        CONT,   1, 
                        BRGT,   1, 
                        HBTN,   1, 
                        S4ST,   1, 
                        SKEY,   1, 
                        BKEY,   1, 
                        TOUP,   1, 
                        FNBN,   1, 
                        LIDF,   1, 
                        PWSH,   1, 
                        UWAK,   1, 
                            ,   1, 
                        LIDP,   1, 
                                Offset (0xA0), 
                        DKSP,   1, 
                        DKIN,   1, 
                        DKID,   1, 
                        DKOK,   1, 
                                Offset (0xA1), 
                        DKPW,   1, 
                                Offset (0xA2), 
                        BTNS,   8, 
                        OSTY,   3, 
                        PCMQ,   1, 
                        PCMR,   1, 
                        ADPT,   1, 
                        SLLS,   1, 
                        SYS7,   1, 
                        PWAK,   1, 
                        MWAK,   1, 
                            ,   1, 
                        SLPN,   1, 
                        LWAK,   1, 
                                Offset (0xAA), 
                        TCNL,   8, 
                        TMPI,   8, 
                        TMSD,   8, 
                        FASN,   4, 
                        FASU,   4, 
                        PCVL,   3, 
                        PSTE,   3, 
                        SWTO,   1, 
                        HWTO,   1, 
                        MODE,   1, 
                        FANS,   2, 
                        INIT,   1, 
                        FAN1,   1, 
                        FAN2,   1, 
                        FANT,   1, 
                        SKNM,   1, 
                        CTMP,   8, 
                        LIDE,   1, 
                        PMEE,   1, 
                        PWBE,   1, 
                        RNGE,   1, 
                        BTWE,   1, 
                        DCKE,   1, 
                                Offset (0xB2), 
                                Offset (0xB3), 
                        SKTC,   8, 
                        SKTB,   8, 
                        SKTA,   8, 
                                Offset (0xB7), 
                        HAPL,   2, 
                        HAPR,   1, 
                                Offset (0xB8), 
                        BTDT,   1, 
                        BTPW,   1, 
                        BTDS,   1, 
                        BTPS,   1, 
                        BTSW,   1, 
                        BTWK,   1, 
                        BTLD,   1, 
                                Offset (0xB9), 
                        BRTS,   8, 
                        CNTS,   8, 
                        WLAT,   1, 
                        BTAT,   1, 
                        WLEX,   1, 
                        BTEX,   1, 
                        KLSW,   1, 
                        WLOK,   1, 
                                Offset (0xBC), 
                        PTID,   8, 
                        CPUT,   8, 
                        LIDW,   1, 
                                Offset (0xBF), 
                            ,   5, 
                        NMAT,   1, 
                                Offset (0xC0), 
                            ,   4, 
                        BMF0,   3, 
                        BTY0,   1, 
                        BST0,   8, 
                        BRC0,   16, 
                        BSN0,   16, 
                        BPV0,   16, 
                        BDV0,   16, 
                        BDC0,   16, 
                        BFC0,   16, 
                        GAU0,   8, 
                        CYC0,   8, 
                        BPC0,   16, 
                        BAC0,   16, 
                        BAT0,   8, 
                        BTW0,   8, 
                        BTS0,   8, 
                        BDN0,   8, 
                                Offset (0xF2), 
                            ,   4, 
                        DBCD,   1, 
                                Offset (0xFA), 
                            ,   7, 
                        BPU0,   1
                    }

                    Method (_Q11, 0, NotSerialized)
                    {
                        Store (0x87, P80H)
                        If (IGDS)
                        {
                            ^^^GFX0.BRTN (0x87)
                        }
                        Else
                        {
                            Notify (^^^P0P2.PEGP.LCD, 0x87)
                        }
                    }

                    Method (_Q12, 0, NotSerialized)
                    {
                        Store (0x86, P80H)
                        If (IGDS)
                        {
                            ^^^GFX0.BRTN (0x86)
                        }
                        Else
                        {
                            Notify (^^^P0P2.PEGP.LCD, 0x86)
                        }
                    }

                    Method (_Q13, 0, NotSerialized)
                    {
                    }

                    Method (_Q24, 0, NotSerialized)
                    {
                        Store ("=====QUERY_24=====", Debug)
                        Notify (MBTN, 0x80)
                    }

                    Method (_Q1C, 0, NotSerialized)
                    {
                        Store ("=====QUERY_1C=====", Debug)
                        Store (0x1C, P80H)
                        If (VIDO)
                        {
                            Notify (GFX0, 0x80)
                            Store (Zero, VIDO)
                        }
                    }

                    Method (_Q1D, 0, NotSerialized)
                    {
                        Store ("=====QUERY_1D=====", Debug)
                        PCLK ()
                        Store (PSTE, Local1)
                        Sleep (0x14)
                        If (LAnd (LEqual (NMAT, One), LEqual (Local1, 0x05)))
                        {
                            Store (TBLS, PPCA)
                            TPAF ()
                        }

                        If (LEqual (Local1, One))
                        {
                            If (LEqual (TBCS, TBLS))
                            {
                                Store (0x05, PSTE)
                                Sleep (0x14)
                            }
                            Else
                            {
                                Add (TBCS, One, TBCS)
                                Store (TBCS, PPCA)
                                TPAF ()
                            }
                        }

                        If (LEqual (Local1, 0x02))
                        {
                            Sleep (0x14)
                            If (LEqual (TBCS, TB1S))
                            {
                                Store (0x06, PSTE)
                                Sleep (0x14)
                                Store (Zero, PPCA)
                                TPAF ()
                            }
                            Else
                            {
                                Subtract (TBCS, One, TBCS)
                                Store (TBCS, PPCA)
                                TPAF ()
                            }
                        }
                    }

                    Method (_Q1E, 0, NotSerialized)
                    {
                        Store ("=====QUERY_1E=====", Debug)
                        PCLK ()
                    }

                    Method (_Q25, 0, NotSerialized)
                    {
                        Store ("=====QUERY_25=====", Debug)
                        Sleep (0x03E8)
                        Notify (BAT1, 0x81)
                        Sleep (0x03E8)
                        Notify (BAT1, 0x80)
                    }

                    Method (_Q34, 0, NotSerialized)
                    {
                        Store ("=====QUERY_34=====", Debug)
                        If (BKEY)
                        {
                            Store (Zero, BKEY)
                        }
                    }

                    Method (_Q37, 0, NotSerialized)
                    {
                        Store ("=====QUERY_37=====", Debug)
                        Notify (ACAD, 0x80)
                        Sleep (0x03E8)
                        Notify (BAT1, 0x80)
                    }

                    Method (_Q38, 0, NotSerialized)
                    {
                        Store ("=====QUERY_38=====", Debug)
                        Notify (ACAD, 0x80)
                        Sleep (0x03E8)
                        Notify (BAT1, 0x80)
                    }

                    Method (_Q61, 0, NotSerialized)
                    {
                        Store (0x61, P80H)
                        Store (One, ^^^P0P2.PEGP.FKEY)
                        Notify (GFX0, 0xD0)
                    }

                    OperationRegion (CCLK, SystemIO, 0x0410, 0x04)
                    Field (CCLK, DWordAcc, NoLock, Preserve)
                    {
                            ,   1, 
                        DUTY,   3, 
                        THEN,   1, 
                                Offset (0x01), 
                        FTT,    1, 
                            ,   8, 
                        TSTS,   1
                    }

                    OperationRegion (ECRM, EmbeddedControl, Zero, 0xFF)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                                Offset (0x94), 
                        ERIB,   16, 
                        ERBD,   8, 
                                Offset (0xAC), 
                        SDTM,   8, 
                        FSSN,   4, 
                        FANU,   4, 
                        PTVL,   3, 
                            ,   4, 
                        TTHR,   1, 
                                Offset (0xBC), 
                        PJID,   8, 
                                Offset (0xBE), 
                                Offset (0xF9), 
                        RFRD,   16
                    }

                    Mutex (FAMX, 0x00)
                    Method (FANG, 1, NotSerialized)
                    {
                        Acquire (FAMX, 0xFFFF)
                        Store (Arg0, ERIB)
                        Store (ERBD, Local0)
                        Release (FAMX)
                        Return (Local0)
                    }

                    Method (FANW, 2, NotSerialized)
                    {
                        Acquire (FAMX, 0xFFFF)
                        Store (Arg0, ERIB)
                        Store (Arg1, ERBD)
                        Release (FAMX)
                        Return (Arg1)
                    }

                    Method (TUVR, 1, NotSerialized)
                    {
                        Return (0x03)
                    }

                    Method (THRO, 1, NotSerialized)
                    {
                        If (LEqual (Arg0, Zero))
                        {
                            Return (THEN)
                        }
                        Else
                        {
                            If (LEqual (Arg0, One))
                            {
                                Return (DUTY)
                            }
                            Else
                            {
                                If (LEqual (Arg0, 0x02))
                                {
                                    Return (TTHR)
                                }
                                Else
                                {
                                    Return (0xFF)
                                }
                            }
                        }
                    }

                    Method (CLCK, 1, NotSerialized)
                    {
                        If (LEqual (Arg0, Zero))
                        {
                            Store (Zero, THEN)
                            Store (Zero, FTT)
                        }
                        Else
                        {
                            Store (Arg0, DUTY)
                            Store (One, THEN)
                        }

                        Return (THEN)
                    }

                    Method (PCLK, 0, NotSerialized)
                    {
                        Store (PTVL, Local0)
                        If (LEqual (Local0, Zero))
                        {
                            Store (Zero, THEN)
                            Store (Zero, FTT)
                        }
                        Else
                        {
                            Decrement (Local0)
                            Store (Not (Local0), Local1)
                            And (Local1, 0x07, Local1)
                            Store (Local1, DUTY)
                            Store (One, THEN)
                        }
                    }

                    Method (TPAF, 0, NotSerialized)
                    {
                        OPPC ()
                        Notify (\_PR.CPU0, 0x80)
                        Notify (\_PR.CPU1, 0x80)
                    }

                    Scope (\_SB)
                    {
                        Name (PPCA, Zero)
                        Method (OPPC, 0, NotSerialized)
                        {
                            If (LAnd (And (CFGD, One), And (PDC0, One)))
                            {
                                Store (PPCA, \_PR.CPU0._PPC)
                            }
                        }
                    }
                }

                OperationRegion (SMI0, SystemIO, 0x0000FE00, 0x00000002)
                Field (SMI0, AnyAcc, NoLock, Preserve)
                {
                    SMIC,   8
                }

                OperationRegion (SMI1, SystemMemory, 0x99F8DF3D, 0x00001010)
                Field (SMI1, AnyAcc, NoLock, Preserve)
                {
                    BCMD,   8, 
                    DID,    32, 
                    INFO,   1024
                }

                Field (SMI1, AnyAcc, NoLock, Preserve)
                {
                            AccessAs (ByteAcc, 0x00), 
                            Offset (0x05), 
                    INF,    8, 
                    INF1,   32
                }

                Mutex (PSMX, 0x00)
                Method (PHSS, 1, NotSerialized)
                {
                    Acquire (PSMX, 0xFFFF)
                    Store (0x80, BCMD)
                    Store (Arg0, DID)
                    Store (Zero, SMIC)
                    Release (PSMX)
                }

                Device (ACAD)
                {
                    Name (_HID, "ACPI0003")
                    Name (_PCL, Package (0x01)
                    {
                        _SB
                    })
                    Method (_PSR, 0, NotSerialized)
                    {
                        If (LAnd (ECOK (), LEqual (ECDY, Zero)))
                        {
                            Store (^^EC0.BST0, Local0)
                            And (Local0, 0x80, Local0)
                            If (LEqual (Local0, 0x80))
                            {
                                Return (One)
                            }

                            Return (Zero)
                        }

                        Return (One)
                    }
                }

                Device (BAT1)
                {
                    Name (_HID, EisaId ("PNP0C0A"))
                    Name (_UID, One)
                    Name (_PCL, Package (0x01)
                    {
                        _SB
                    })
                    Name (SBDC, Zero)
                    Method (_STA, 0, NotSerialized)
                    {
                        If (ECOK ())
                        {
                            If (^^EC0.BAL0)
                            {
                                Sleep (0x14)
                                Return (0x1F)
                            }
                            Else
                            {
                                Sleep (0x14)
                                Return (0x0F)
                            }
                        }
                        Else
                        {
                            Sleep (0x14)
                            Return (0x1F)
                        }
                    }

                    Method (_BIF, 0, NotSerialized)
                    {
                        Name (STAT, Package (0x0D)
                        {
                            Zero, 
                            0x0FA0, 
                            0x0FA0, 
                            One, 
                            0x2B5C, 
                            0x01A4, 
                            0x9C, 
                            0x0108, 
                            0x0EC4, 
                            "", 
                            "11", 
                            "Lion", 
                            "Dell"
                        })
                        If (ECOK ())
                        {
                            Store (^^EC0.BPU0, Index (STAT, Zero))
                            Sleep (0x14)
                            Store (^^EC0.BDC0, Local0)
                            Store (Local0, SBDC)
                            Sleep (0x14)
                            Store (^^EC0.BFC0, Local1)
                            Sleep (0x14)
                            If (LEqual (^^EC0.BPU0, Zero))
                            {
                                Multiply (Local0, 0x0A, Local0)
                                Multiply (Local1, 0x0A, Local1)
                                Sleep (0x14)
                            }

                            Store (Local0, Index (STAT, One))
                            Store (Local1, Index (STAT, 0x02))
                            Store (^^EC0.BDV0, Index (STAT, 0x04))
                            Sleep (0x14)
                            Divide (Multiply (Local1, 0x0A, Local2), 0x64, , Local2)
                            Store (Local2, Index (STAT, 0x05))
                            Divide (Multiply (Local1, 0x03, Local3), 0x64, , Local3)
                            Store (Local3, Index (STAT, 0x06))
                            Store (^^EC0.BATN, Index (STAT, 0x09))
                            Store (^^EC0.BMF0, Local0)
                            If (LEqual (Local0, One))
                            {
                                Store ("SANYO", Index (STAT, 0x0C))
                            }
                            Else
                            {
                                If (LEqual (Local0, 0x02))
                                {
                                    Store ("SONY", Index (STAT, 0x0C))
                                }
                                Else
                                {
                                    If (LEqual (Local0, 0x03))
                                    {
                                        Store ("SDI", Index (STAT, 0x0C))
                                    }
                                    Else
                                    {
                                        If (LEqual (Local0, 0x04))
                                        {
                                            Store ("PANASONIC", Index (STAT, 0x0C))
                                        }
                                        Else
                                        {
                                            If (LEqual (Local0, 0x05))
                                            {
                                                Store ("Samsung", Index (STAT, 0x0C))
                                            }
                                            Else
                                            {
                                                If (LEqual (Local0, 0x06))
                                                {
                                                    Store ("Simplo", Index (STAT, 0x0C))
                                                }
                                                Else
                                                {
                                                    If (LEqual (Local0, 0x07))
                                                    {
                                                        Store ("Dynapack", Index (STAT, 0x0C))
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        Return (STAT)
                    }

                    Method (_BST, 0, NotSerialized)
                    {
                        Name (PBST, Package (0x04)
                        {
                            Zero, 
                            0xFFFFFFFF, 
                            0xFFFFFFFF, 
                            0x2B5C
                        })
                        If (ECOK ())
                        {
                            Sleep (0x14)
                            Store (^^EC0.BST0, Local0)
                            And (Local0, 0x07, Local0)
                            Sleep (0x14)
                            Store (^^EC0.BAC0, Local1)
                            Sleep (0x14)
                            Store (^^EC0.BRC0, Local2)
                            Sleep (0x14)
                            Store (^^EC0.BPV0, Local3)
                            Sleep (0x14)
                            And (Local1, 0x8000, Local4)
                            If (LEqual (Local4, 0x8000))
                            {
                                And (Not (Local1, Local1), 0xFFFF, Local1)
                                Add (Local1, One, Local1)
                            }

                            If (LEqual (^^EC0.BPU0, Zero))
                            {
                                Sleep (0x14)
                                Divide (Multiply (Local1, Local3, Local1), 0x03E8, , Local1)
                                Multiply (Local2, 0x0A, Local2)
                            }

                            Store (Local0, Index (PBST, Zero))
                            Store (Local1, Index (PBST, One))
                            Store (Local2, Index (PBST, 0x02))
                            Store (Local3, Index (PBST, 0x03))
                            If (LNotEqual (^^EC0.BDC0, SBDC))
                            {
                                Notify (BAT1, 0x81)
                            }
                        }
                        Else
                        {
                            Store (Zero, Index (PBST, One))
                            Store (0x0FA0, Index (PBST, 0x02))
                        }

                        If (LGreater (ECDY, Zero))
                        {
                            Decrement (ECDY)
                            If (LEqual (ECDY, Zero))
                            {
                                Notify (BAT1, 0x81)
                            }
                        }

                        Return (PBST)
                    }
                }

                Device (DMAC)
                {
                    Name (_HID, EisaId ("PNP0200"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0000,             // Range Minimum
                            0x0000,             // Range Maximum
                            0x01,               // Alignment
                            0x20,               // Length
                            )
                        IO (Decode16,
                            0x0081,             // Range Minimum
                            0x0081,             // Range Maximum
                            0x01,               // Alignment
                            0x11,               // Length
                            )
                        IO (Decode16,
                            0x0093,             // Range Minimum
                            0x0093,             // Range Maximum
                            0x01,               // Alignment
                            0x0D,               // Length
                            )
                        IO (Decode16,
                            0x00C0,             // Range Minimum
                            0x00C0,             // Range Maximum
                            0x01,               // Alignment
                            0x20,               // Length
                            )
                        DMA (Compatibility, NotBusMaster, Transfer8_16, )
                            {4}
                    })
                }

                Device (HPET)
                {
                    Name (_HID, EisaId ("PNP0103"))
                    Name (_CID, EisaId ("PNP0C01"))
                    Name (BUF0, ResourceTemplate ()
                    {
                        Memory32Fixed (ReadOnly,
                            0xFED00000,         // Address Base
                            0x00000400,         // Address Length
                            )
                    })
                    Method (_STA, 0, NotSerialized)
                    {
                        If (LGreaterEqual (OSYS, 0x07D1))
                        {
                            If (HPAE)
                            {
                                Return (0x0F)
                            }
                        }
                        Else
                        {
                            If (HPAE)
                            {
                                Return (0x0B)
                            }
                        }

                        Return (Zero)
                    }

                    Method (_CRS, 0, Serialized)
                    {
                        If (HPAE)
                        {
                            CreateDWordField (BUF0, 0x04, HPT0)
                            If (LEqual (HPAS, One))
                            {
                                Store (0xFED01000, HPT0)
                            }

                            If (LEqual (HPAS, 0x02))
                            {
                                Store (0xFED02000, HPT0)
                            }

                            If (LEqual (HPAS, 0x03))
                            {
                                Store (0xFED03000, HPT0)
                            }
                        }

                        Return (BUF0)
                    }
                }

                Device (IPIC)
                {
                    Name (_HID, EisaId ("PNP0000"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0020,             // Range Minimum
                            0x0020,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0024,             // Range Minimum
                            0x0024,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0028,             // Range Minimum
                            0x0028,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x002C,             // Range Minimum
                            0x002C,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0030,             // Range Minimum
                            0x0030,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0034,             // Range Minimum
                            0x0034,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0038,             // Range Minimum
                            0x0038,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x003C,             // Range Minimum
                            0x003C,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00A0,             // Range Minimum
                            0x00A0,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00A4,             // Range Minimum
                            0x00A4,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00A8,             // Range Minimum
                            0x00A8,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00AC,             // Range Minimum
                            0x00AC,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00B0,             // Range Minimum
                            0x00B0,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00B4,             // Range Minimum
                            0x00B4,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00B8,             // Range Minimum
                            0x00B8,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x00BC,             // Range Minimum
                            0x00BC,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x04D0,             // Range Minimum
                            0x04D0,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IRQNoFlags ()
                            {2}
                    })
                }

                Device (MATH)
                {
                    Name (_HID, EisaId ("PNP0C04"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x00F0,             // Range Minimum
                            0x00F0,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IRQNoFlags ()
                            {13}
                    })
                }

                Device (LDRC)
                {
                    Name (_HID, EisaId ("PNP0C02"))
                    Name (_UID, 0x02)
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x002E,             // Range Minimum
                            0x002E,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x004E,             // Range Minimum
                            0x004E,             // Range Maximum
                            0x01,               // Alignment
                            0x02,               // Length
                            )
                        IO (Decode16,
                            0x0061,             // Range Minimum
                            0x0061,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0063,             // Range Minimum
                            0x0063,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0065,             // Range Minimum
                            0x0065,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0067,             // Range Minimum
                            0x0067,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0068,             // Range Minimum
                            0x0068,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x006C,             // Range Minimum
                            0x006C,             // 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,
                            0x0480,             // Range Minimum
                            0x0480,             // Range Maximum
                            0x01,               // Alignment
                            0x10,               // Length
                            )
                        IO (Decode16,
                            0xFFFF,             // Range Minimum
                            0xFFFF,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0xFFFF,             // Range Minimum
                            0xFFFF,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0400,             // Range Minimum
                            0x0400,             // Range Maximum
                            0x01,               // Alignment
                            0x80,               // Length
                            )
                        IO (Decode16,
                            0x1180,             // Range Minimum
                            0x1180,             // Range Maximum
                            0x01,               // Alignment
                            0x80,               // Length
                            )
                        IO (Decode16,
                            0xFE00,             // Range Minimum
                            0xFE00,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0xFF2C,             // Range Minimum
                            0xFF2C,             // Range Maximum
                            0x01,               // Alignment
                            0x54,               // Length
                            )
                    })
                }

                Device (RTC)
                {
                    Name (_HID, EisaId ("PNP0B00"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0070,             // Range Minimum
                            0x0070,             // Range Maximum
                            0x01,               // Alignment
                            0x08,               // Length
                            )
                        IRQNoFlags ()
                            {8}
                    })
                }

                Device (TIMR)
                {
                    Name (_HID, EisaId ("PNP0100"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0040,             // Range Minimum
                            0x0040,             // Range Maximum
                            0x01,               // Alignment
                            0x04,               // Length
                            )
                        IO (Decode16,
                            0x0050,             // Range Minimum
                            0x0050,             // Range Maximum
                            0x10,               // Alignment
                            0x04,               // Length
                            )
                        IRQNoFlags ()
                            {0}
                    })
                }

                Device (PS2K)
                {
                    Name (_HID, EisaId ("PNP0303"))
                    Name (_CRS, ResourceTemplate ()
                    {
                        IO (Decode16,
                            0x0060,             // Range Minimum
                            0x0060,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IO (Decode16,
                            0x0064,             // Range Minimum
                            0x0064,             // Range Maximum
                            0x01,               // Alignment
                            0x01,               // Length
                            )
                        IRQ (Edge, ActiveHigh, Exclusive, )
                            {1}
                    })
                    Name (_PRS, ResourceTemplate ()
                    {
                        StartDependentFn (0x00, 0x00)
                        {
                            FixedIO (
                                0x0060,             // Address
                                0x01,               // Length
                                )
                            FixedIO (
                                0x0064,             // Address
                                0x01,               // Length
                                )
                            IRQNoFlags ()
                                {1}
                        }
                        EndDependentFn ()
                    })
                }

                Device (PS2M)
                {
                    Name (_HID, EisaId ("SYN071B"))
                    Name (_CID, Package (0x03)
                    {
                        EisaId ("SYN0700"), 
                        EisaId ("SYN0002"), 
                        EisaId ("PNP0F13")
                    })
                    Name (_CRS, ResourceTemplate ()
                    {
                        IRQ (Edge, ActiveHigh, Exclusive, )
                            {12}
                    })
                    Name (_PRS, ResourceTemplate ()
                    {
                        StartDependentFn (0x00, 0x00)
                        {
                            IRQNoFlags ()
                                {12}
                        }
                        EndDependentFn ()
                    })
                }

                Device (MBTN)
                {
                    Name (_HID, EisaId ("PNP0C32"))
                    Name (_UID, One)
                    Method (_STA, 0, NotSerialized)
                    {
                        Return (0x0F)
                    }

                    Method (GHID, 0, NotSerialized)
                    {
                        Return (Buffer (One)
                        {
                            0x01
                        })
                    }
                }
            }

            Device (USB0)
            {
                Name (_ADR, 0x001D0000)
                Method (_PRW, 0, NotSerialized)
                {
                    If (USBW)
                    {
                        Return (Package (0x02)
                        {
                            0x03, 
                            0x03
                        })
                    }
                    Else
                    {
                        Return (Package (0x02)
                        {
                            0x03, 
                            Zero
                        })
                    }
                }

                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        If (^^LPCB.EC0.ADPT)
                        {
                            Store (0x03, U1EN)
                            Store (One, ^^LPCB.EC0.UWAK)
                        }
                        Else
                        {
                            Store (Zero, U1EN)
                        }
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }

                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }
            }

            Device (USB1)
            {
                Name (_ADR, 0x001D0001)
                Method (_PRW, 0, NotSerialized)
                {
                    If (USBW)
                    {
                        Return (Package (0x02)
                        {
                            0x04, 
                            0x03
                        })
                    }
                    Else
                    {
                        Return (Package (0x02)
                        {
                            0x04, 
                            Zero
                        })
                    }
                }

                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        If (^^LPCB.EC0.ADPT)
                        {
                            Store (One, U1EN)
                            Store (One, ^^LPCB.EC0.UWAK)
                        }
                        Else
                        {
                            Store (Zero, U1EN)
                        }
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }

                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }
            }

            Device (USB2)
            {
                Name (_ADR, 0x001D0002)
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Name (_PRW, Package (0x02)
                {
                    0x0C, 
                    Zero
                })
            }

            Device (USBR)
            {
                Name (_ADR, 0x001D0003)
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Name (_PRW, Package (0x02)
                {
                    0x20, 
                    Zero
                })
            }

            Device (EHC1)
            {
                Name (_ADR, 0x001D0007)
                OperationRegion (U7CS, PCI_Config, 0x54, 0x04)
                Field (U7CS, DWordAcc, NoLock, Preserve)
                {
                        ,   15, 
                    PMES,   1
                }

                Method (_PRW, 0, NotSerialized)
                {
                    If (USBW)
                    {
                        Return (Package (0x02)
                        {
                            0x0D, 
                            0x03
                        })
                    }
                    Else
                    {
                        Return (Package (0x02)
                        {
                            0x0D, 
                            Zero
                        })
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        If (^^LPCB.EC0.ADPT)
                        {
                            Store (One, ^^LPCB.EC0.UWAK)
                        }
                        Else
                        {
                            Store (Zero, ^^LPCB.EC0.UWAK)
                        }
                    }
                    Else
                    {
                        Store (Zero, ^^LPCB.EC0.UWAK)
                    }
                }

                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }
            }

            Device (USB3)
            {
                Name (_ADR, 0x001A0000)
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Name (_PRW, Package (0x02)
                {
                    0x0E, 
                    Zero
                })
            }

            Device (USB4)
            {
                Name (_ADR, 0x001A0001)
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Name (_PRW, Package (0x02)
                {
                    0x05, 
                    Zero
                })
            }

            Device (USB5)
            {
                Name (_ADR, 0x001A0002)
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Name (_PRW, Package (0x02)
                {
                    0x20, 
                    Zero
                })
            }

            Device (EHC2)
            {
                Name (_ADR, 0x001A0007)
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x03)
                }

                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x03)
                }
            }

            Device (HDEF)
            {
                Name (_ADR, 0x001B0000)
                OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
                Field (HDAR, WordAcc, NoLock, Preserve)
                {
                    DCKA,   1, 
                            Offset (0x01), 
                    DCKM,   1, 
                        ,   6, 
                    DCKS,   1, 
                            Offset (0x08), 
                        ,   15, 
                    PMES,   1
                }
            }

            Device (RP01)
            {
                Name (_ADR, 0x001C0000)
                OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
                Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
                {
                            Offset (0x12), 
                        ,   13, 
                    LASX,   1, 
                            Offset (0x1A), 
                    ABPX,   1, 
                        ,   2, 
                    PDCX,   1, 
                        ,   2, 
                    PDSX,   1, 
                            Offset (0x1B), 
                    LSCX,   1, 
                            Offset (0x20), 
                            Offset (0x22), 
                    PSPX,   1, 
                            Offset (0x9C), 
                        ,   30, 
                    HPSX,   1, 
                    PMSX,   1
                }

                Device (PXSX)
                {
                    Name (_ADR, Zero)
                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        0x04
                    })
                    Method (_PSW, 1, NotSerialized)
                    {
                        Store (Arg0, WFLG)
                    }
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR04)
                    }

                    Return (PR04)
                }
            }

            Device (RP02)
            {
                Name (_ADR, 0x001C0001)
                OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
                Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
                {
                            Offset (0x12), 
                        ,   13, 
                    LASX,   1, 
                            Offset (0x1A), 
                    ABPX,   1, 
                        ,   2, 
                    PDCX,   1, 
                        ,   2, 
                    PDSX,   1, 
                            Offset (0x1B), 
                    LSCX,   1, 
                            Offset (0x20), 
                            Offset (0x22), 
                    PSPX,   1, 
                            Offset (0x9C), 
                        ,   30, 
                    HPSX,   1, 
                    PMSX,   1
                }

                Device (PXSX)
                {
                    Name (_ADR, Zero)
                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        Zero
                    })
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR05)
                    }

                    Return (PR05)
                }
            }

            Device (RP03)
            {
                Name (_ADR, 0x001C0002)
                OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
                Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
                {
                            Offset (0x12), 
                        ,   13, 
                    LASX,   1, 
                            Offset (0x1A), 
                    ABPX,   1, 
                        ,   2, 
                    PDCX,   1, 
                        ,   2, 
                    PDSX,   1, 
                            Offset (0x1B), 
                    LSCX,   1, 
                            Offset (0x20), 
                            Offset (0x22), 
                    PSPX,   1, 
                            Offset (0x9C), 
                        ,   30, 
                    HPSX,   1, 
                    PMSX,   1
                }

                Device (PXSX)
                {
                    Name (_ADR, Zero)
                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        Zero
                    })
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR06)
                    }

                    Return (PR06)
                }
            }

            Device (RP04)
            {
                Name (_ADR, 0x001C0003)
                OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
                Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
                {
                            Offset (0x12), 
                        ,   13, 
                    LASX,   1, 
                            Offset (0x1A), 
                    ABPX,   1, 
                        ,   2, 
                    PDCX,   1, 
                        ,   2, 
                    PDSX,   1, 
                            Offset (0x1B), 
                    LSCX,   1, 
                            Offset (0x20), 
                            Offset (0x22), 
                    PSPX,   1, 
                            Offset (0x9C), 
                        ,   30, 
                    HPSX,   1, 
                    PMSX,   1
                }

                Device (PXSX)
                {
                    Name (_ADR, Zero)
                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        Zero
                    })
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR07)
                    }

                    Return (PR07)
                }
            }

            Device (RP05)
            {
                Name (_ADR, 0x001C0004)
                OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
                Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
                {
                            Offset (0x12), 
                        ,   13, 
                    LASX,   1, 
                            Offset (0x1A), 
                    ABPX,   1, 
                        ,   2, 
                    PDCX,   1, 
                        ,   2, 
                    PDSX,   1, 
                            Offset (0x1B), 
                    LSCX,   1, 
                            Offset (0x20), 
                            Offset (0x22), 
                    PSPX,   1, 
                            Offset (0x9C), 
                        ,   30, 
                    HPSX,   1, 
                    PMSX,   1
                }

                Device (PXSX)
                {
                    Name (_ADR, Zero)
                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        Zero
                    })
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR08)
                    }

                    Return (PR08)
                }
            }

            Device (RP06)
            {
                Name (_ADR, 0x001C0005)
                OperationRegion (PXCS, PCI_Config, 0x40, 0xC0)
                Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
                {
                            Offset (0x12), 
                        ,   13, 
                    LASX,   1, 
                            Offset (0x1A), 
                    ABPX,   1, 
                        ,   2, 
                    PDCX,   1, 
                        ,   2, 
                    PDSX,   1, 
                            Offset (0x1B), 
                    LSCX,   1, 
                            Offset (0x20), 
                            Offset (0x22), 
                    PSPX,   1, 
                            Offset (0x9C), 
                        ,   30, 
                    HPSX,   1, 
                    PMSX,   1
                }

                Device (PXSX)
                {
                    Name (_ADR, Zero)
                    Name (_PRW, Package (0x02)
                    {
                        0x09, 
                        Zero
                    })
                }

                Method (_PRT, 0, NotSerialized)
                {
                    If (PICM)
                    {
                        Return (AR09)
                    }

                    Return (PR09)
                }
            }

            Device (ACC)
            {
                Name (_HID, EisaId ("SMO8800"))
                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Name (_UID, One)
                Name (BUF2, ResourceTemplate ()
                {
                    Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, ,, )
                    {
                        0x00000014,
                    }
                })
                Method (_CRS, 0, Serialized)
                {
                    Return (BUF2)
                }

                Method (_SRS, 1, Serialized)
                {
                    Return (BUF2)
                }
            }
        }

        Name (QURY, Zero)
        Name (CDSP, 0x08)
        Name (SDSP, Zero)
        Name (DTRD, One)
        Device (EMSC)
        {
            Name (_HID, "CPL0002")
            Method (NTFY, 0, NotSerialized)
            {
                Return (Zero)
            }

            Method (GOPS, 1, NotSerialized)
            {
                If (IGDS)
                {
                    ^^PCI0.LPCB.PHSS (0x0C)
                    Return (TOSD (And (CADL, 0x09)))
                }

                Store (0x14, Local0)
                Store (One, QURY)
                Store (One, DTRD)
                Notify (^^PCI0.GFX0, 0x80)
                While (Local0)
                {
                    If (LEqual (DTRD, One))
                    {
                        Sleep (0x64)
                    }
                    Else
                    {
                        Decrement (Local0)
                    }
                }

                Store (Zero, DTRD)
                Store (TOSD (CDSP), CDSP)
                Return (CDSP)
            }

            Method (SOPS, 1, NotSerialized)
            {
                Store (Arg0, SDSP)
                Store (TDRY (SDSP), SDSP)
                Notify (^^PCI0.GFX0, 0x80)
                Return (Zero)
            }

            Method (TOSD, 1, NotSerialized)
            {
                Store (Zero, Local0)
                If (And (Arg0, One))
                {
                    Or (Local0, 0x02, Local0)
                }

                If (And (Arg0, 0x02))
                {
                    Or (Local0, 0x08, Local0)
                }

                If (And (Arg0, 0x04))
                {
                    Or (Local0, 0x02, Local0)
                }

                If (And (Arg0, 0x08))
                {
                    Or (Local0, 0x08, Local0)
                }

                If (And (Arg0, 0x10))
                {
                    Or (Local0, One, Local0)
                }

                If (And (Arg0, 0x20))
                {
                    Or (Local0, 0x04, Local0)
                }

                Return (Local0)
            }

            Method (TDRY, 1, NotSerialized)
            {
                Store (Zero, Local0)
                If (IGDS)
                {
                    If (And (Arg0, 0x02))
                    {
                        Or (Local0, One, Local0)
                    }

                    If (And (Arg0, 0x08))
                    {
                        Or (Local0, 0x02, Local0)
                    }
                }
                Else
                {
                    If (And (Arg0, 0x02))
                    {
                        Or (Local0, 0x05, Local0)
                    }

                    If (And (Arg0, 0x08))
                    {
                        Or (Local0, 0x0A, Local0)
                    }

                    If (And (Arg0, One))
                    {
                        Or (Local0, 0x10, Local0)
                    }

                    If (And (Arg0, 0x04))
                    {
                        Or (Local0, 0x20, Local0)
                    }
                }

                Return (Local0)
            }
        }
    }

    Scope (_PR)
    {
        Processor (CPU0, 0x00, 0x00000410, 0x06) {}
        Processor (CPU1, 0x01, 0x00000410, 0x06) {}
        Processor (CPU2, 0x02, 0x00000410, 0x06) {}
        Processor (CPU3, 0x03, 0x00000410, 0x06) {}
    }

    Mutex (MUTX, 0x00)
    Name (SLID, Zero)
    OperationRegion (PRT0, SystemIO, 0x80, 0x04)
    Field (PRT0, DWordAcc, Lock, Preserve)
    {
        P80H,   32
    }

    Method (P8XH, 2, Serialized)
    {
        If (LEqual (Arg0, Zero))
        {
            Store (Or (And (P80D, 0xFFFFFF00), Arg1), P80D)
        }

        If (LEqual (Arg0, One))
        {
            Store (Or (And (P80D, 0xFFFF00FF), ShiftLeft (Arg1, 0x08)
                ), P80D)
        }

        If (LEqual (Arg0, 0x02))
        {
            Store (Or (And (P80D, 0xFF00FFFF), ShiftLeft (Arg1, 0x10)
                ), P80D)
        }

        If (LEqual (Arg0, 0x03))
        {
            Store (Or (And (P80D, 0x00FFFFFF), ShiftLeft (Arg1, 0x18)
                ), P80D)
        }

        Store (P80D, P80H)
    }

    OperationRegion (SPRT, SystemIO, 0xB2, 0x02)
    Field (SPRT, ByteAcc, Lock, Preserve)
    {
        SSMP,   8
    }

    Method (_PIC, 1, NotSerialized)
    {
        Store (Arg0, GPIC)
        Store (Arg0, PICM)
    }

    Method (_PTS, 1, NotSerialized)
    {
        Store (Zero, P80D)
        P8XH (Zero, Arg0)
        If (LEqual (Arg0, 0x03))
        {
            Store (One, \_SB.PCI0.LPCB.EC0.SLPN)
            Store (One, \_SB.PCI0.LPCB.EC0.PWAK)
            Store (WFLG, \_SB.PCI0.LPCB.EC0.LWAK)
            Store (SLID, \_SB.PCI0.LPCB.EC0.LIDW)
            If (LEqual (USBW, 0x03))
            {
                Store (One, \_SB.PCI0.LPCB.EC0.UWAK)
            }
        }

        If (LEqual (Arg0, 0x04))
        {
            Store (Zero, \_SB.PCI0.LPCB.EC0.SLPN)
            Store (\_SB.PCI0.LPCB.EC0.SYS7, \_SB.PCI0.LPCB.EC0.PWAK)
            \_SB.PCI0.LPCB.PHSS (0x0E)
            \_SB.PCI0.LPCB.PHSS (0x13)
        }

        If (LEqual (Arg0, 0x05))
        {
            Store (Zero, \_SB.PCI0.LPCB.EC0.SLPN)
            Store (\_SB.PCI0.LPCB.EC0.SYS7, \_SB.PCI0.LPCB.EC0.PWAK)
            \_SB.PCI0.LPCB.PHSS (0x13)
        }

        If (IGDS)
        {
            If (LEqual (Arg0, 0x05))
            {
                \_SB.PCI0.LPCB.PHSS (0x8F)
            }
        }
    }

    Method (_WAK, 1, NotSerialized)
    {
        P8XH (One, 0xAB)
        If (LEqual (RP1D, Zero))
        {
            Notify (\_SB.PCI0.RP01, Zero)
        }

        If (LEqual (RP5D, Zero))
        {
            Notify (\_SB.PCI0.RP05, Zero)
        }

        If (LEqual (Arg0, 0x03))
        {
            \_SB.PCI0.LPCB.EC0.PCLK ()
            P8XH (Zero, 0x33)
        }

        If (LEqual (Arg0, 0x04))
        {
            P8XH (Zero, 0x40)
            \_SB.PCI0.LPCB.PHSS (0x0F)
            Store (WAKF, Local0)
            Store (Zero, WAKF)
            And (Local0, 0x05, Local0)
            If (LEqual (Local0, One))
            {
                P8XH (Zero, 0x41)
                Notify (\_SB.PWRB, 0x02)
            }

            Store (Zero, \_SB.PCI0.LPCB.EC0.OSTY)
            If (LEqual (OSYS, 0x07D6))
            {
                Store (One, \_SB.PCI0.LPCB.EC0.OSTY)
            }

            If (LEqual (OSYS, 0x03E8))
            {
                Store (0x02, \_SB.PCI0.LPCB.EC0.OSTY)
            }

            If (LEqual (OSYS, 0x07D9))
            {
                Store (0x03, \_SB.PCI0.LPCB.EC0.OSTY)
            }

            If (LEqual (\_SB.PCI0.LPCB.EC0.LIDP, One))
            {
                Store (Zero, LPOL)
            }
            Else
            {
                Store (One, LPOL)
            }

            If (IGDS)
            {
                \_SB.PCI0.GFX0.GLID (LPOL)
            }
        }

        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 (MPEN)
        {
            If (And (PDC0, 0x08))
            {
                Notify (\_PR.CPU0, 0x80)
                If (And (PDC0, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU0, 0x81)
                }
            }

            If (And (PDC1, 0x08))
            {
                Notify (\_PR.CPU1, 0x80)
                If (And (PDC1, 0x10))
                {
                    Sleep (0x64)
                    Notify (\_PR.CPU1, 0x81)
                }
            }
        }
        Else
        {
            Notify (\_PR.CPU0, 0x80)
            Sleep (0x64)
            Notify (\_PR.CPU0, 0x81)
        }
    }

    Method (TRAP, 2, Serialized)
    {
        Store (Arg1, SMIF)
        If (LEqual (Arg0, TRTP))
        {
            Store (Zero, TRPI)
        }

        If (LEqual (Arg0, TRTD))
        {
            Store (Arg1, DTSF)
            Store (Zero, TRPD)
            Return (DTSF)
        }

        If (LEqual (Arg0, TRTI))
        {
            Store (Zero, TRP0)
        }

        Return (SMIF)
    }

    OperationRegion (CMS1, SystemIO, 0x72, 0x02)
    Field (CMS1, ByteAcc, NoLock, Preserve)
    {
        CMSI,   8, 
        CMSD,   8
    }

    Method (CMSW, 2, NotSerialized)
    {
        Store (Arg0, CMSI)
        Store (Arg1, CMSD)
    }

    Method (CMSR, 1, NotSerialized)
    {
        Store (Arg0, CMSI)
        Return (CMSD)
    }

    Scope (_SB.PCI0)
    {
        Method (_INI, 0, NotSerialized)
        {
            Store (0x3412, OEMN)
            Store (LIDS, ^GFX0.CLID)
            Store (0x07D0, OSYS)
            If (CondRefOf (_OSI, Local0))
            {
                If (_OSI ("Linux"))
                {
                    Store (0x03E8, OSYS)
                }

                If (_OSI ("Windows 2001"))
                {
                    Store (0x07D1, OSYS)
                }

                If (_OSI ("Windows 2001 SP1"))
                {
                    Store (0x07D1, OSYS)
                }

                If (_OSI ("Windows 2001 SP2"))
                {
                    Store (0x07D2, OSYS)
                }

                If (_OSI ("Windows 2006"))
                {
                    Store (0x07D6, OSYS)
                }

                If (_OSI ("Windows 2009"))
                {
                    Store (0x07D9, OSYS)
                }

                If (LAnd (MPEN, LEqual (OSYS, 0x07D1)))
                {
                    TRAP (TRTP, \ESCS)
                }

                TRAP (TRTI, SOOT)
            }
        }
    }

    Scope (\)
    {
        Name (PICM, Zero)
    }

    Scope (_SB.PCI0)
    {
        Device (PDRC)
        {
            Name (_HID, EisaId ("PNP0C02"))
            Name (_UID, One)
            Name (BUF0, ResourceTemplate ()
            {
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00004000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00004000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00001000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00001000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0x00000000,         // Address Base
                    0x00000000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0xFED20000,         // Address Base
                    0x00020000,         // Address Length
                    )
                Memory32Fixed (ReadWrite,
                    0xFED45000,         // Address Base
                    0x0004B000,         // Address Length
                    )
            })
            Method (_CRS, 0, Serialized)
            {
                CreateDWordField (BUF0, 0x04, RBR0)
                ShiftLeft (^^LPCB.RCBA, 0x0E, RBR0)
                CreateDWordField (BUF0, 0x10, MBR0)
                ShiftLeft (MHBR, 0x0E, MBR0)
                CreateDWordField (BUF0, 0x1C, DBR0)
                ShiftLeft (DIBR, 0x0C, DBR0)
                CreateDWordField (BUF0, 0x28, EBR0)
                ShiftLeft (EPBR, 0x0C, EBR0)
                CreateDWordField (BUF0, 0x34, XBR0)
                ShiftLeft (PXBR, 0x1A, XBR0)
                CreateDWordField (BUF0, 0x38, XSZ0)
                ShiftRight (0x10000000, PXSZ, XSZ0)
                Return (BUF0)
            }
        }
    }

    Method (BRTW, 1, Serialized)
    {
        Store (Arg0, Local1)
        If (LEqual (ALSE, 0x02))
        {
            Store (Divide (Multiply (ALAF, Arg0), 0x64, ), Local1)
            If (LGreater (Local1, 0x64))
            {
                Store (0x64, Local1)
            }
        }

        Store (Divide (Multiply (0xFF, Local1), 0x64, ), Local0)
        Store (Local0, PRM0)
        Store (Arg0, BRTL)
        If (LEqual (TRAP (TRTI, SBCS), Zero))
        {
            P8XH (0x02, Local0)
        }
    }

    Method (HKDS, 1, Serialized)
    {
        If (LEqual (Zero, And (0x03, DSEN)))
        {
            If (LEqual (TRAP (TRTI, Arg0), Zero))
            {
                If (LNotEqual (CADL, PADL))
                {
                    Store (CADL, PADL)
                    If (LOr (LGreater (OSYS, 0x07D0), LLess (OSYS, 0x07D6)))
                    {
                        Notify (\_SB.PCI0, Zero)
                    }
                    Else
                    {
                        Notify (\_SB.PCI0.GFX0, Zero)
                    }

                    Sleep (0x02EE)
                }

                Notify (\_SB.PCI0.GFX0, 0x80)
            }
        }

        If (LEqual (One, And (0x03, DSEN)))
        {
            If (LEqual (TRAP (TRTI, Increment (Arg0)), Zero))
            {
                Notify (\_SB.PCI0.GFX0, 0x81)
            }
        }
    }

    Method (LSDS, 1, Serialized)
    {
        If (Arg0)
        {
            HKDS (DSLO)
        }
        Else
        {
            HKDS (DSLC)
        }

        If (LNotEqual (And (0x03, DSEN), One))
        {
            Sleep (0x32)
            While (LEqual (And (0x03, DSEN), 0x02))
            {
                Sleep (0x32)
            }
        }
    }

    Method (BRTN, 1, Serialized)
    {
        If (LEqual (And (DID1, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD01, Arg0)
        }

        If (LEqual (And (DID2, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD02, Arg0)
        }

        If (LEqual (And (DID3, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD03, Arg0)
        }

        If (LEqual (And (DID4, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD04, Arg0)
        }

        If (LEqual (And (DID5, 0x0F00), 0x0400))
        {
            Notify (\_SB.PCI0.GFX0.DD05, Arg0)
        }
    }

    Scope (\)
    {
        OperationRegion (IO_T, SystemIO, 0x0480, 0x10)
        Field (IO_T, ByteAcc, NoLock, Preserve)
        {
            TRPI,   16, 
                    Offset (0x04), 
                    Offset (0x06), 
                    Offset (0x08), 
            TRP0,   8, 
                    Offset (0x0A), 
                    Offset (0x0B), 
                    Offset (0x0C), 
                    Offset (0x0D), 
                    Offset (0x0E), 
                    Offset (0x0F), 
                    Offset (0x10)
        }

        OperationRegion (IO_D, SystemIO, 0x0900, 0x04)
        Field (IO_D, ByteAcc, NoLock, Preserve)
        {
            TRPD,   8
        }

        OperationRegion (IO_H, SystemIO, 0x0400, 0x04)
        Field (IO_H, ByteAcc, NoLock, Preserve)
        {
            TRPH,   8
        }

        OperationRegion (PMIO, SystemIO, PMBS, 0x80)
        Field (PMIO, ByteAcc, NoLock, Preserve)
        {
                    Offset (0x22), 
            SPS,    1, 
                ,   5, 
            ACPW,   1, 
                    Offset (0x42), 
                ,   1, 
            GPEC,   1, 
                    Offset (0x64), 
                ,   9, 
            SCIS,   1, 
                    Offset (0x66)
        }

        OperationRegion (GPIO, SystemIO, GPBS, 0x3C)
        Field (GPIO, ByteAcc, NoLock, Preserve)
        {
            GU00,   8, 
            GU01,   8, 
            GU02,   8, 
            GU03,   8, 
            GIO0,   8, 
            GIO1,   8, 
            GIO2,   8, 
            GIO3,   8, 
                    Offset (0x0C), 
                ,   1, 
            GP01,   1, 
            IRS0,   1, 
            IRS1,   1, 
                    Offset (0x0D), 
                ,   1, 
            GP09,   1, 
                ,   4, 
            ORGL,   1, 
                    Offset (0x0E), 
                ,   1, 
            GP17,   1, 
            GP18,   1, 
                ,   1, 
            GP20,   1, 
                ,   1, 
            BTEN,   1, 
            FCPP,   1, 
                ,   3, 
            GP27,   1, 
            GP28,   1, 
                    Offset (0x10), 
                    Offset (0x18), 
            GB00,   8, 
            GB01,   8, 
            GB02,   8, 
            GB03,   8, 
                    Offset (0x2C), 
                ,   1, 
            INV1,   1, 
            IRI0,   1, 
            IRI1,   1, 
                    Offset (0x2D), 
                ,   1, 
            INV9,   1, 
                ,   1, 
            LPOL,   1, 
                    Offset (0x2E), 
            GIV2,   8, 
            GIV3,   8, 
            GU04,   8, 
            GU05,   8, 
            GU06,   8, 
            GU07,   8, 
            GIO4,   8, 
            GIO5,   8, 
            GIO6,   8, 
            GIO7,   8, 
                ,   1, 
            GP33,   1, 
            GP34,   1, 
                ,   1, 
            BTPR,   1, 
            BTRS,   1, 
                    Offset (0x39), 
            GL05,   8, 
                ,   1, 
            GP49,   1, 
                ,   2, 
            GP52,   1, 
                    Offset (0x3B), 
            RECL,   1, 
            GL07,   7
        }

        OperationRegion (RCRB, SystemMemory, 0xFED1C000, 0x4000)
        Field (RCRB, DWordAcc, Lock, Preserve)
        {
                    Offset (0x1000), 
                    Offset (0x3000), 
                    Offset (0x3404), 
            HPAS,   2, 
                ,   5, 
            HPAE,   1, 
                    Offset (0x3418), 
                ,   1, 
                ,   1, 
            SATD,   1, 
            SMBD,   1, 
            HDAD,   1, 
                    Offset (0x341A), 
            RP1D,   1, 
            RP2D,   1, 
            RP3D,   1, 
            RP4D,   1, 
            RP5D,   1, 
            RP6D,   1
        }

        Method (GETP, 1, Serialized)
        {
            If (LEqual (And (Arg0, 0x09), Zero))
            {
                Return (0xFFFFFFFF)
            }

            If (LEqual (And (Arg0, 0x09), 0x08))
            {
                Return (0x0384)
            }

            ShiftRight (And (Arg0, 0x0300), 0x08, Local0)
            ShiftRight (And (Arg0, 0x3000), 0x0C, Local1)
            Return (Multiply (0x1E, Subtract (0x09, Add (Local0, Local1))
                ))
        }

        Method (GDMA, 5, Serialized)
        {
            If (Arg0)
            {
                If (LAnd (Arg1, Arg4))
                {
                    Return (0x14)
                }

                If (LAnd (Arg2, Arg4))
                {
                    Return (Multiply (Subtract (0x04, Arg3), 0x0F))
                }

                Return (Multiply (Subtract (0x04, Arg3), 0x1E))
            }

            Return (0xFFFFFFFF)
        }

        Method (GETT, 1, Serialized)
        {
            Return (Multiply (0x1E, Subtract (0x09, Add (And (ShiftRight (Arg0, 0x02
                ), 0x03), And (Arg0, 0x03)))))
        }

        Method (GETF, 3, Serialized)
        {
            Name (TMPF, Zero)
            If (Arg0)
            {
                Or (TMPF, One, TMPF)
            }

            If (And (Arg2, 0x02))
            {
                Or (TMPF, 0x02, TMPF)
            }

            If (Arg1)
            {
                Or (TMPF, 0x04, TMPF)
            }

            If (And (Arg2, 0x20))
            {
                Or (TMPF, 0x08, TMPF)
            }

            If (And (Arg2, 0x4000))
            {
                Or (TMPF, 0x10, TMPF)
            }

            Return (TMPF)
        }

        Method (SETP, 3, Serialized)
        {
            If (LGreater (Arg0, 0xF0))
            {
                Return (0x08)
            }
            Else
            {
                If (And (Arg1, 0x02))
                {
                    If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
                    {
                        Return (0x2301)
                    }

                    If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
                    {
                        Return (0x2101)
                    }
                }

                Return (0x1001)
            }
        }

        Method (SDMA, 1, Serialized)
        {
            If (LLessEqual (Arg0, 0x14))
            {
                Return (One)
            }

            If (LLessEqual (Arg0, 0x1E))
            {
                Return (0x02)
            }

            If (LLessEqual (Arg0, 0x2D))
            {
                Return (One)
            }

            If (LLessEqual (Arg0, 0x3C))
            {
                Return (0x02)
            }

            If (LLessEqual (Arg0, 0x5A))
            {
                Return (One)
            }

            Return (Zero)
        }

        Method (SETT, 3, Serialized)
        {
            If (And (Arg1, 0x02))
            {
                If (LAnd (LLessEqual (Arg0, 0x78), And (Arg2, 0x02)))
                {
                    Return (0x0B)
                }

                If (LAnd (LLessEqual (Arg0, 0xB4), And (Arg2, One)))
                {
                    Return (0x09)
                }
            }

            Return (0x04)
        }
    }

    Scope (_SB.PCI0)
    {
        Device (SAT0)
        {
            Name (_ADR, 0x001F0002)
            OperationRegion (SACS, PCI_Config, 0x40, 0xC0)
            Field (SACS, DWordAcc, NoLock, Preserve)
            {
                PRIT,   16, 
                SECT,   16, 
                PSIT,   4, 
                SSIT,   4, 
                        Offset (0x08), 
                SYNC,   4, 
                        Offset (0x0A), 
                SDT0,   2, 
                    ,   2, 
                SDT1,   2, 
                        Offset (0x0B), 
                SDT2,   2, 
                    ,   2, 
                SDT3,   2, 
                        Offset (0x14), 
                ICR0,   4, 
                ICR1,   4, 
                ICR2,   4, 
                ICR3,   4, 
                ICR4,   4, 
                ICR5,   4, 
                        Offset (0x50), 
                MAPV,   2
            }
        }

        Device (SAT1)
        {
            Name (_ADR, 0x001F0005)
            OperationRegion (SACS, PCI_Config, 0x40, 0xC0)
            Field (SACS, DWordAcc, NoLock, Preserve)
            {
                PRIT,   16, 
                SECT,   16, 
                PSIT,   4, 
                SSIT,   4, 
                        Offset (0x08), 
                SYNC,   4, 
                        Offset (0x0A), 
                SDT0,   2, 
                    ,   2, 
                SDT1,   2, 
                        Offset (0x0B), 
                SDT2,   2, 
                    ,   2, 
                SDT3,   2, 
                        Offset (0x14), 
                ICR0,   4, 
                ICR1,   4, 
                ICR2,   4, 
                ICR3,   4, 
                ICR4,   4, 
                ICR5,   4, 
                        Offset (0x50), 
                MAPV,   2
            }
        }

        Device (SBUS)
        {
            Name (_ADR, 0x001F0003)
            OperationRegion (SMBP, PCI_Config, 0x40, 0xC0)
            Field (SMBP, DWordAcc, NoLock, Preserve)
            {
                    ,   2, 
                I2CE,   1
            }

            OperationRegion (SMBI, SystemIO, 0x18C0, 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, DAT0)
                And (ShiftRight (Arg2, 0x08), 0xFF, DAT1)
                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 (DAT1, 0x08), DAT0))
                }

                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)
            }
        }
    }

    Scope (_GPE)
    {
        Method (_L01, 0, NotSerialized)
        {
            Add (L01C, 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)
                    Notify (\_SB.PCI0.RP01, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP01.HPSX)
                }
            }

            If (LAnd (LEqual (RP2D, Zero), \_SB.PCI0.RP02.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP02.PDCX)
                {
                    Store (One, \_SB.PCI0.RP02.PDCX)
                    Store (One, \_SB.PCI0.RP02.HPSX)
                    Notify (\_SB.PCI0.RP02, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP02.HPSX)
                }
            }

            If (LAnd (LEqual (RP3D, Zero), \_SB.PCI0.RP03.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP03.PDCX)
                {
                    Store (One, \_SB.PCI0.RP03.PDCX)
                    Store (One, \_SB.PCI0.RP03.HPSX)
                    Notify (\_SB.PCI0.RP03, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP03.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)
                    Notify (\_SB.PCI0.RP04, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP04.HPSX)
                }
            }

            If (LAnd (LEqual (RP5D, Zero), \_SB.PCI0.RP05.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP05.PDCX)
                {
                    Store (One, \_SB.PCI0.RP05.PDCX)
                    Store (One, \_SB.PCI0.RP05.HPSX)
                    Sleep (0x64)
                    If (\_SB.PCI0.RP05.PDSX)
                    {
                        \_SB.PCI0.LPCB.PHSS (0x79)
                    }

                    Notify (\_SB.PCI0.RP05, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP05.HPSX)
                }
            }

            If (LAnd (LEqual (RP6D, Zero), \_SB.PCI0.RP06.HPSX))
            {
                Sleep (0x64)
                If (\_SB.PCI0.RP06.PDCX)
                {
                    Store (One, \_SB.PCI0.RP06.PDCX)
                    Store (One, \_SB.PCI0.RP06.HPSX)
                    Notify (\_SB.PCI0.RP06, Zero)
                }
                Else
                {
                    Store (One, \_SB.PCI0.RP06.HPSX)
                }
            }
        }

        Method (_L06, 0, NotSerialized)
        {
            If (LAnd (\_SB.PCI0.GFX0.GSSE, LNot (GSMI)))
            {
                \_SB.PCI0.GFX0.GSCI ()
            }
            Else
            {
                If (LEqual (And (\_SB.PCI0.ESCS, 0x08), 0x08))
                {
                    Store (One, Local0)
                    Store (\_SB.PCI0.T0IS, \_SB.PCI0.T0IS)
                    Store (\_SB.PCI0.T0IS, Local0)
                    Store (\_SB.PCI0.T1IS, \_SB.PCI0.T1IS)
                    Store (\_SB.PCI0.T1IS, Local0)
                    Store (One, SCIS)
                    Store (One, \_SB.PCI0.GTSE)
                    If (CondRefOf (\_SB.PCI0.TMEM.GPEH))
                    {
                        \_SB.PCI0.TMEM.GPEH ()
                    }
                }
                Else
                {
                    Store (One, SCIS)
                }
            }
        }

        Method (_L07, 0, NotSerialized)
        {
            Store (0x20, \_SB.PCI0.SBUS.HSTS)
        }

        Method (_L08, 0, NotSerialized)
        {
        }

        Method (_L09, 0, NotSerialized)
        {
            Store (One, \_SB.PCI0.RP01.PSPX)
            Store (One, \_SB.PCI0.RP01.PMSX)
            Notify (\_SB.PCI0.RP01, 0x02)
        }

        Method (_L0B, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.P0P1, 0x02)
        }

        Method (_L03, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB0, 0x02)
        }

        Method (_L04, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB1, 0x02)
        }

        Method (_L0C, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB2, 0x02)
        }

        Method (_L20, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USBR, 0x02)
            Notify (\_SB.PCI0.USB5, 0x02)
        }

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.EHC1, 0x02)
            Notify (\_SB.PCI0.EHC2, 0x02)
            Notify (\_SB.PCI0.HDEF, 0x02)
        }

        Method (_L0E, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB3, 0x02)
        }

        Method (_L05, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB4, 0x02)
        }

        Method (_L1B, 0, NotSerialized)
        {
            Store (\_SB.PCI0.LPCB.EC0.LIDP, Local0)
            If (LEqual (Local0, One))
            {
                Store (Zero, LPOL)
            }
            Else
            {
                Store (One, LPOL)
            }

            \_SB.PCI0.LPCB.PHSS (0x0C)
            If (IGDS)
            {
                If (\_SB.PCI0.GFX0.SCIP ())
                {
                    \_SB.PCI0.GFX0.GLID (LPOL)
                }
                Else
                {
                    LSDS (LPOL)
                }
            }

            Notify (\_SB.LID0, 0x80)
        }

        Method (_L19, 0, NotSerialized)
        {
            If (LGreaterEqual (OSYS, 0x07D6))
            {
                If (GP09)
                {
                    Store (One, INV9)
                }
                Else
                {
                    Store (Zero, INV9)
                }

                If (LNot (INV9))
                {
                    If (IGDS)
                    {
                        Store (One, \_SB.PCI0.P0P2.PEGP.FKEY)
                        Notify (\_SB.PCI0.GFX0, 0xD0)
                    }
                }
            }
        }

        Method (_L11, 0, NotSerialized)
        {
            If (LGreaterEqual (OSYS, 0x07D6))
            {
                If (LNot (GP01))
                {
                    Store (Zero, INV1)
                }
                Else
                {
                    Store (One, INV1)
                }

                If (INV1)
                {
                    If (IGDS)
                    {
                        Store (One, \_SB.PCI0.P0P2.PEGP.FKEY)
                        Notify (\_SB.PCI0.GFX0, 0xD0)
                    }
                }
            }
        }
    }

    Scope (_SB.PCI0.USB2)
    {
        Device (RHUB)
        {
            Name (_ADR, Zero)
            Device (PRT2)
            {
                Name (_ADR, 0x02)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Package (0x01)
                {
                    Buffer (0x10)
                    {
                        0x81, 0x00, 0x30, 0x00
                    }
                })
            }
        }
    }

    Scope (_SB.PCI0.USB3)
    {
        Device (RHUB)
        {
            Name (_ADR, Zero)
            Device (PRT1)
            {
                Name (_ADR, One)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Package (0x01)
                {
                    Buffer (0x10)
                    {
                        0x81, 0x00, 0x30, 0x00
                    }
                })
            }

            Device (PRT2)
            {
                Name (_ADR, 0x02)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Package (0x01)
                {
                    Buffer (0x10)
                    {
                        0x81, 0x00, 0x30, 0x00
                    }
                })
            }
        }
    }

    Scope (_SB.PCI0.EHC1)
    {
        Device (RHUB)
        {
            Name (_ADR, Zero)
            Device (PRT6)
            {
                Name (_ADR, 0x06)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Package (0x01)
                {
                    Buffer (0x10)
                    {
                        0x81, 0x00, 0x30, 0x00
                    }
                })
            }
        }
    }

    Scope (_SB.PCI0.EHC2)
    {
        Device (RHUB)
        {
            Name (_ADR, Zero)
            Device (PRT1)
            {
                Name (_ADR, One)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Package (0x01)
                {
                    Buffer (0x10)
                    {
                        0x81, 0x00, 0x30, 0x00
                    }
                })
            }

            Device (PRT2)
            {
                Name (_ADR, 0x02)
                Name (_UPC, Package (0x04)
                {
                    0xFF, 
                    0xFF, 
                    Zero, 
                    Zero
                })
                Name (_PLD, Package (0x01)
                {
                    Buffer (0x10)
                    {
                        0x81, 0x00, 0x30, 0x00
                    }
                })
            }
        }
    }

    Name (_S0, Package (0x04)
    {
        Zero, 
        Zero, 
        Zero, 
        Zero
    })
    Name (_S3, Package (0x04)
    {
        0x05, 
        Zero, 
        Zero, 
        Zero
    })
    Name (_S4, Package (0x04)
    {
        0x06, 
        Zero, 
        Zero, 
        Zero
    })
    Name (_S5, Package (0x04)
    {
        0x07, 
        Zero, 
        Zero, 
        Zero
    })
}