/* * Intel ACPI Component Architecture * AML Disassembler version 20050624 * * Disassembly of dsdt.dat, Fri Jul 15 23:42:32 2005 */ DefinitionBlock ("DSDT.aml", "DSDT", 1, "NVIDIA", "CK8", 100925440) { OperationRegion (MNVS, SystemMemory, 0x1FF7FFAC, 0x10) Field (MNVS, AnyAcc, Lock, Preserve) { OSYS, 16, CMAP, 8, CMBP, 8, FDCP, 8, LPTP, 8, BTEN, 8, THRT, 8 } Name (\_S0, Package (0x04) { 0x00, 0x00, 0x00, 0x00 }) Name (\_S3, Package (0x04) { 0x05, 0x05, 0x00, 0x00 }) Name (\_S4, Package (0x04) { 0x06, 0x06, 0x00, 0x00 }) Name (\_S5, Package (0x04) { 0x07, 0x07, 0x00, 0x00 }) Name (SX, 0x00) Name (OSSD, 0x00) Method (\_WAK, 1, NotSerialized) { If (LEqual (Arg0, 0x04)) { Notify (\_SB.PWRB, 0x02) } Return(Package(0x02){0x00, 0x00}) } Scope (\_PR) { Processor (CPU0, 0x00, 0x00008010, 0x06) {} } Name (ECDY, 0x00) Scope (_GPE) { Method (_L05, 0, NotSerialized) { Notify (\_SB.PCI0.USB2, 0x02) } Method (_L07, 0, NotSerialized) { Notify (\_SB.PCI0.MODM, 0x02) } Method (_L0C, 0, NotSerialized) { Notify (\_SB.PCI0.USB1, 0x02) } Method (_L0D, 0, NotSerialized) { Notify (\_SB.PCI0.USB0, 0x02) } Method (_L22, 0, NotSerialized) { Store (0x01, \_SB.PCI0.LPC0.LPOR) XOr (\_SB.PCI0.LPC0.INVT, 0x01, \_SB.PCI0.LPC0.INVT) Notify (\_SB.LID, 0x80) } } Scope (\_SB) { Device (WMID) { Name (_HID, "PNP0C14") Name (_UID, 0x00) Method (WQBC, 1, NotSerialized) { Store ("=====QUERY_WQBC=====", Debug) \_SB.PCI0.LPC0.PHSS (0x0C) Store (\_SB.PCI0.LPC0.INF, Local0) Return (Local0) } Method (WSBC, 2, NotSerialized) { Store ("=====QUERY_WSBC=====", Debug) Store (DerefOf (Index (Arg1, 0x00)), Local0) If (LEqual (Local0, 0x01)) { \_SB.PCI0.AGP0.VGA.STBL (0x01) } If (LEqual (Local0, 0x02)) { \_SB.PCI0.AGP0.VGA.STBL (0x02) } If (LEqual (Local0, 0x03)) { \_SB.PCI0.AGP0.VGA.STBL (0x03) } If (LEqual (Local0, 0x04)) { \_SB.PCI0.AGP0.VGA.STBL (0x04) } If (LEqual (Local0, 0x05)) { \_SB.PCI0.AGP0.VGA.STBL (0x05) } If (LEqual (Local0, 0x06)) { \_SB.PCI0.AGP0.VGA.STBL (0x06) } } } Scope (\_SB) { Name (OSTB, Ones) OperationRegion (OSTY, SystemMemory, 0x1FF7FF3C, 0x00000001) Field (OSTY, AnyAcc, NoLock, Preserve) { TPOS, 8 } Method (OSTP, 0, NotSerialized) { If (LEqual (^OSTB, Ones)) { If (CondRefOf (\_OSI, Local0)) { If (\_OSI ("Windows 2001.1")) { Store (0x20, ^OSTB) Store (0x20, ^TPOS) } Else { If (\_OSI ("Windows 2001 SP1")) { Store (0x10, ^OSTB) Store (0x10, ^TPOS) } Else { If (\_OSI ("Windows 2001")) { Store (0x08, ^OSTB) Store (0x08, ^TPOS) } Else { Store (0x00, ^OSTB) Store (0x00, ^TPOS) } } } } Else { If (CondRefOf (\_OS, Local0)) { If (^SEQL (\_OS, "Microsoft Windows")) { Store (0x01, ^OSTB) Store (0x01, ^TPOS) } Else { If (^SEQL (\_OS, "Microsoft WindowsME: Millennium Edition")) { Store (0x02, ^OSTB) Store (0x02, ^TPOS) } Else { If (^SEQL (\_OS, "Microsoft Windows NT")) { Store (0x04, ^OSTB) Store (0x04, ^TPOS) } Else { Store (0x00, ^OSTB) Store (0x00, ^TPOS) } } } } Else { Store (0x00, ^OSTB) Store (0x00, ^TPOS) } } } Return (^OSTB) } Method (SEQL, 2, Serialized) { Store (SizeOf (Arg0), Local0) Store (SizeOf (Arg1), Local1) If (LNot (LEqual (Local0, Local1))) { Return (Zero) } Name (BUF0, Buffer (Local0) {}) Store (Arg0, BUF0) Name (BUF1, Buffer (Local0) {}) Store (Arg1, BUF1) Store (Zero, Local2) While (LLess (Local2, Local0)) { Store (DerefOf (Index (BUF0, Local2)), Local3) Store (DerefOf (Index (BUF1, Local2)), Local4) If (LNot (LEqual (Local3, Local4))) { Return (Zero) } Increment (Local2) } Return (One) } } Device (PWRB) { Name (_HID, EisaId ("PNP0C0C")) Method (_STA, 0, NotSerialized) { Return (0x0B) } } Device (LID) { Name (_HID, EisaId ("PNP0C0D")) Method (_LID, 0, NotSerialized) { If (\_SB.PCI0.LPC0.EC0.ECOK) { If (\_SB.PCI0.LPC0.EC0.LIDA) { Return (0x00) } Else { Return (0x01) } } Else { Return (0x01) } } } Device (PCI0) { Name (_ADR, 0x00) Name (_HID, EisaId ("PNP0A03")) Name (_UID, 0x01) Name (_BBN, 0x00) Method (_INI, 0, NotSerialized) { } Scope (\_SB) { OperationRegion (ASLD, SystemMemory, 0x1FF7FDAC, 0x00000100) Field (ASLD, AnyAcc, NoLock, Preserve) { TOM, 32 } } Method (_CRS, 0, NotSerialized) { Name (CBUF, ResourceTemplate () { WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode, 0x0000, // Address Space Granularity 0x0000, // Address Range Minimum 0x00FF, // Address Range Maximum 0x0000, // Address Translation Offset 0x0100,,,) IO (Decode16, 0x0CF8, 0x0CF8, 0x01, 0x08) WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, // Address Space Granularity 0x0000, // Address Range Minimum 0x0CF7, // Address Range Maximum 0x0000, // Address Translation Offset 0x0CF8,,, , TypeStatic) WordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x0000, // Address Space Granularity 0x0D00, // Address Range Minimum 0xFFFF, // Address Range Maximum 0x0000, // Address Translation Offset 0xF300,,, , TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000A0000, // Address Range Minimum 0x000BFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00020000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x000C0000, // Address Range Minimum 0x000DFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0x00020000,,, , AddressRangeMemory, TypeStatic) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x00100000, // Address Range Minimum 0xFEBFFFFF, // Address Range Maximum 0x00000000, // Address Translation Offset 0xFFF00000,,, , AddressRangeMemory, TypeStatic) }) CreateDWordField (CBUF, 0x76, PMMN) CreateDWordField (CBUF, 0x82, PMLN) Multiply (\_SB.TOM, 0x00100000, PMMN) Subtract (0xFEC00000, PMMN, PMLN) Return (CBUF) } Name (_PRT, Package (0x08) { Package (0x04) { 0x0001FFFF, 0x00, \_SB.PCI0.LSMB, 0x00 }, Package (0x04) { 0x0002FFFF, 0x00, \_SB.PCI0.LUS0, 0x00 }, Package (0x04) { 0x0002FFFF, 0x01, \_SB.PCI0.LUS1, 0x00 }, Package (0x04) { 0x0002FFFF, 0x02, \_SB.PCI0.LUS2, 0x00 }, Package (0x04) { 0x0006FFFF, 0x00, \_SB.PCI0.LACI, 0x00 }, Package (0x04) { 0x0006FFFF, 0x01, \_SB.PCI0.LMCI, 0x00 }, Package (0x04) { 0x0008FFFF, 0x00, \_SB.PCI0.LPID, 0x00 }, Package (0x04) { 0x0009FFFF, 0x00, \_SB.PCI0.LTID, 0x00 } }) Device (USB0) { Name (_ADR, 0x00020000) Method (_S1D, 0, NotSerialized) { Return (0x01) } Method (_S3D, 0, NotSerialized) { Return (0x02) } Name (_PRW, Package (0x02) { 0x0D, 0x03 }) } Device (USB1) { Name (_ADR, 0x00020001) Method (_S1D, 0, NotSerialized) { Return (0x01) } Method (_S3D, 0, NotSerialized) { Return (0x02) } Name (_PRW, Package (0x02) { 0x0C, 0x03 }) } Device (USB2) { Name (_ADR, 0x00020002) Name (_PRW, Package (0x02) { 0x05, 0x03 }) } Device (IDE0) { Name (SID4, 0x00) Name (SID5, 0x00) Name (SFLG, 0x00) Name (SID0, 0x00) Name (SID1, 0x00) Name (SID2, 0x00) Name (SID3, 0x00) Name (_ADR, 0x00080000) OperationRegion (A090, PCI_Config, 0x50, 0x18) Field (A090, DWordAcc, NoLock, Preserve) { ID20, 16, Offset (0x08), IDTS, 16, IDTP, 16, ID22, 32, UMSS, 16, UMSP, 16 } Name (IDEP, Buffer (0x14) {}) Name (IDES, Buffer (0x14) {}) Method (GTM, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Store (IDTP, Local0) Store (UMSP, Local1) Store (IDEP, Local2) } Else { Store (IDTS, Local0) Store (UMSS, Local1) Store (IDES, Local2) } CreateDWordField (Local2, 0x00, PIO0) CreateDWordField (Local2, 0x04, DMA0) CreateDWordField (Local2, 0x08, PIO1) CreateDWordField (Local2, 0x0C, DMA1) CreateDWordField (Local2, 0x10, FLAG) Store (0x10, FLAG) And (Local0, 0x0F00, Local3) And (Local0, 0xF000, Local4) ShiftRight (Local3, 0x08, Local3) ShiftRight (Local4, 0x0C, Local4) Add (Local3, Local4, Local3) Multiply (Add (Local3, 0x02), 0x1E, PIO0) If (LNot (LGreater (PIO0, 0xB4))) { Or (FLAG, 0x02, FLAG) } If (And (Local1, 0x4000)) { Or (FLAG, 0x01, FLAG) And (Local1, 0x0700, Local3) ShiftRight (Local3, 0x08, Local3) Store (U2T (Local3), DMA0) } Else { Store (PIO0, DMA0) } And (Local0, 0x0F, Local3) And (Local0, 0xF0, Local4) ShiftRight (Local4, 0x04, Local4) Add (Local3, Local4, Local3) Multiply (Add (Local3, 0x02), 0x1E, PIO1) If (LNot (LGreater (PIO1, 0xB4))) { Or (FLAG, 0x08, FLAG) } If (And (Local1, 0x40)) { Or (FLAG, 0x04, FLAG) And (Local1, 0x07, Local3) Store (U2T (Local3), DMA1) } Else { Store (PIO1, DMA1) } If (LEqual (Arg0, 0x00)) { Store (Local2, IDEP) Return (IDEP) } Else { Store (Local2, IDES) Return (IDES) } } Method (U2T, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x3C) } If (LEqual (Arg0, 0x01)) { Return (0x5A) } If (LEqual (Arg0, 0x02)) { Return (0x78) } If (LEqual (Arg0, 0x03)) { Return (0x96) } If (LEqual (Arg0, 0x04)) { Return (0x2D) } If (LEqual (Arg0, 0x05)) { Return (0x1E) } If (LEqual (Arg0, 0x06)) { Return (0x14) } Return (0x0F) } Method (T2U, 1, NotSerialized) { If (LGreater (Arg0, 0x78)) { Return (0x03) } If (LGreater (Arg0, 0x5A)) { Return (0x02) } If (LGreater (Arg0, 0x3C)) { Return (0x01) } If (LGreater (Arg0, 0x2D)) { Return (0x00) } If (LGreater (Arg0, 0x1E)) { Return (0x04) } If (LGreater (Arg0, 0x14)) { Return (0x05) } If (LGreater (Arg0, 0x0F)) { Return (0x06) } Return (0x07) } Method (T2D, 1, NotSerialized) { If (LGreater (Arg0, 0x01E0)) { Return (0xA8) } If (LGreater (Arg0, 0x0186)) { Return (0x77) } If (LGreater (Arg0, 0xF0)) { Return (0x47) } If (LGreater (Arg0, 0xB4)) { Return (0x33) } If (LGreater (Arg0, 0x96)) { Return (0x22) } If (LGreater (Arg0, 0x78)) { Return (0x21) } Return (0x20) } Method (STM, 4, NotSerialized) { If (SX) { Store (SID0, ID20) Store (SID1, IDTS) Store (SID2, IDTP) Store (SID3, ID22) Store (SID4, UMSS) Store (SID5, UMSP) } Else { Store (ID20, SID0) Store (IDTS, SID1) Store (IDTP, SID2) Store (ID22, SID3) Store (UMSS, SID4) Store (UMSP, SID5) } Store (0x00, SX) CreateDWordField (Arg0, 0x00, PIO0) CreateDWordField (Arg0, 0x04, DMA0) CreateDWordField (Arg0, 0x08, PIO1) CreateDWordField (Arg0, 0x0C, DMA1) CreateDWordField (Arg0, 0x10, FLAG) If (LEqual (Arg3, 0x00)) { Store (SID2, Local0) Store (SID5, Local1) } Else { Store (SID1, Local0) Store (SID4, Local1) } If (LNot (LEqual (PIO0, 0xFFFFFFFF))) { And (Local0, 0xFF, Local0) ShiftLeft (T2D (PIO0), 0x08, Local2) Or (Local0, Local2, Local0) } If (LNot (LEqual (PIO1, 0xFFFFFFFF))) { And (Local0, 0xFF00, Local0) Or (Local0, T2D (PIO1), Local0) } If (And (FLAG, 0x01)) { And (Local1, 0xFF, Local1) ShiftLeft (T2U (DMA0), 0x08, Local2) Or (0xC000, Local2, Local2) Or (Local2, Local1, Local1) } Else { If (LNot (LEqual (DMA0, 0xFFFFFFFF))) { And (Local0, 0xFF, Local0) ShiftLeft (T2D (DMA0), 0x08, Local2) Or (Local0, Local2, Local0) } } If (And (FLAG, 0x04)) { And (Local1, 0xFF00, Local1) Or (0xC0, T2U (DMA1), Local2) Or (Local2, Local1, Local1) } Else { If (LNot (LEqual (DMA1, 0xFFFFFFFF))) { And (Local0, 0xFF00, Local0) Or (Local0, T2D (DMA1), Local0) } } If (LEqual (Arg3, 0x00)) { Store (Local0, IDTP) Store (Local1, UMSP) } Else { Store (Local0, IDTS) Store (Local1, UMSS) } } Method (GTF, 2, NotSerialized) { Store (Buffer (0x07) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }, Local0) CreateByteField (Local0, 0x01, MODE) CreateByteField (Local0, 0x05, DRIV) Store (Arg1, DRIV) If (LEqual (Arg0, 0x00)) { Store (IDEP, Local1) } Else { Store (IDES, Local1) } CreateDWordField (Local1, 0x00, PIO0) CreateDWordField (Local1, 0x04, DMA0) CreateDWordField (Local1, 0x08, PIO1) CreateDWordField (Local1, 0x0C, DMA1) CreateDWordField (Local1, 0x10, FLGX) If (LEqual (Arg1, 0xA0)) { Store (PIO0, Local2) Store (DMA0, Local3) And (FLGX, 0x01, FLGX) } Else { Store (PIO1, Local2) Store (DMA1, Local3) And (FLGX, 0x04, FLGX) } Store (FLGX, Local1) If (LGreater (Local2, 0x0186)) { Store (0x00, Local2) } Else { If (LGreater (Local2, 0xF0)) { Store (0x01, Local2) } Else { If (LGreater (Local2, 0xB4)) { Store (0x02, Local2) } Else { If (LGreater (Local2, 0x78)) { Store (0x03, Local2) } Else { Store (0x04, Local2) } } } } Or (0x08, Local2, MODE) Store (Local0, Local2) If (FLGX) { If (LGreater (Local3, 0x5A)) { Store (0x00, Local3) } Else { If (LGreater (Local3, 0x3C)) { Store (0x01, Local3) } Else { If (LGreater (Local3, 0x2D)) { Store (0x02, Local3) } Else { If (LGreater (Local3, 0x1E)) { Store (0x03, Local3) } Else { If (LGreater (Local3, 0x14)) { Store (0x04, Local3) } Else { If (LGreater (Local3, 0x0F)) { Store (0x05, Local3) } Else { Store (0x06, Local3) } } } } } } Or (0x40, Local3, MODE) } Else { If (LEqual (Local3, 0xFFFFFFFF)) { Return (Local0) } Else { If (LGreater (Local3, 0x96)) { Store (0x00, Local3) } Else { If (LGreater (Local3, 0x78)) { Store (0x01, Local3) } Else { Store (0x02, Local3) } } Or (0x20, Local3, MODE) } } Concatenate (Local0, Local2, Local1) Return (Local1) } Device (PRI0) { Name (_ADR, 0x00) Method (_GTM, 0, NotSerialized) { Return (GTM (0x00)) } Method (_STM, 3, NotSerialized) { STM (Arg0, Arg1, Arg2, 0x00) } Device (MAST) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { Return (GTF (0x00, 0xA0)) } } Device (SLAV) { Name (_ADR, 0x01) Method (_GTF, 0, NotSerialized) { Return (GTF (0x00, 0xB0)) } } } Device (SEC0) { Name (_ADR, 0x01) Method (_GTM, 0, NotSerialized) { Return (GTM (0x01)) } Method (_STM, 3, NotSerialized) { STM (Arg0, Arg1, Arg2, 0x01) } Device (MAST) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { Return (GTF (0x01, 0xA0)) } } Device (SLAV) { Name (_ADR, 0x01) Method (_GTF, 0, NotSerialized) { Return (GTF (0x01, 0xB0)) } } } } Device (SIDE) { Name (TID0, 0x00) Name (TID1, 0x00) Name (TID2, 0x00) Name (TID3, 0x00) Name (TID4, 0x00) Name (TID5, 0x00) Name (TFLG, 0x00) Name (_ADR, 0x00090000) OperationRegion (ATID, PCI_Config, 0x50, 0x18) Field (ATID, DWordAcc, NoLock, Preserve) { ID20, 16, Offset (0x08), IDTS, 16, IDTP, 16, ID22, 32, UMSS, 16, UMSP, 16 } Name (IDEP, Buffer (0x14) {}) Name (IDES, Buffer (0x14) {}) Method (GTM, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Store (IDTP, Local0) Store (UMSP, Local1) Store (IDEP, Local2) } Else { Store (IDTS, Local0) Store (UMSS, Local1) Store (IDES, Local2) } CreateDWordField (Local2, 0x00, PIO0) CreateDWordField (Local2, 0x04, DMA0) CreateDWordField (Local2, 0x08, PIO1) CreateDWordField (Local2, 0x0C, DMA1) CreateDWordField (Local2, 0x10, FLAG) Store (0x10, FLAG) And (Local0, 0x0F00, Local3) And (Local0, 0xF000, Local4) ShiftRight (Local3, 0x08, Local3) ShiftRight (Local4, 0x0C, Local4) Add (Local3, Local4, Local3) Multiply (Add (Local3, 0x02), 0x1E, PIO0) If (LNot (LGreater (PIO0, 0xB4))) { Or (FLAG, 0x02, FLAG) } If (And (Local1, 0x4000)) { Or (FLAG, 0x01, FLAG) And (Local1, 0x0700, Local3) ShiftRight (Local3, 0x08, Local3) Store (U2T (Local3), DMA0) } Else { Store (PIO0, DMA0) } And (Local0, 0x0F, Local3) And (Local0, 0xF0, Local4) ShiftRight (Local4, 0x04, Local4) Add (Local3, Local4, Local3) Multiply (Add (Local3, 0x02), 0x1E, PIO1) If (LNot (LGreater (PIO1, 0xB4))) { Or (FLAG, 0x08, FLAG) } If (And (Local1, 0x40)) { Or (FLAG, 0x04, FLAG) And (Local1, 0x07, Local3) Store (U2T (Local3), DMA1) } Else { Store (PIO1, DMA1) } If (LEqual (Arg0, 0x00)) { Store (Local2, IDEP) Return (IDEP) } Else { Store (Local2, IDES) Return (IDES) } } Method (STM, 4, NotSerialized) { If (SX) { Store (TID0, ID20) Store (TID1, IDTS) Store (TID2, IDTP) Store (TID3, ID22) Store (TID4, UMSS) Store (TID5, UMSP) } Else { Store (ID20, TID0) Store (IDTS, TID1) Store (IDTP, TID2) Store (ID22, TID3) Store (UMSS, TID4) Store (UMSP, TID5) } Store (0x00, SX) CreateDWordField (Arg0, 0x00, PIO0) CreateDWordField (Arg0, 0x04, DMA0) CreateDWordField (Arg0, 0x08, PIO1) CreateDWordField (Arg0, 0x0C, DMA1) CreateDWordField (Arg0, 0x10, FLAG) If (LEqual (Arg3, 0x00)) { Store (TID2, Local0) Store (TID5, Local1) } Else { Store (TID1, Local0) Store (TID4, Local1) } If (LNot (LEqual (PIO0, 0xFFFFFFFF))) { And (Local0, 0xFF, Local0) ShiftLeft (T2D (PIO0), 0x08, Local2) Or (Local0, Local2, Local0) } If (LNot (LEqual (PIO1, 0xFFFFFFFF))) { And (Local0, 0xFF00, Local0) Or (Local0, T2D (PIO1), Local0) } If (And (FLAG, 0x01)) { And (Local1, 0xFF, Local1) ShiftLeft (T2U (DMA0), 0x08, Local2) Or (0xC000, Local2, Local2) Or (Local2, Local1, Local1) } Else { If (LNot (LEqual (DMA0, 0xFFFFFFFF))) { And (Local0, 0xFF, Local0) ShiftLeft (T2D (DMA0), 0x08, Local2) Or (Local0, Local2, Local0) } } If (And (FLAG, 0x04)) { And (Local1, 0xFF00, Local1) Or (0xC0, T2U (DMA1), Local2) Or (Local2, Local1, Local1) } Else { If (LNot (LEqual (DMA1, 0xFFFFFFFF))) { And (Local0, 0xFF00, Local0) Or (Local0, T2D (DMA1), Local0) } } If (LEqual (Arg3, 0x00)) { Store (Local0, IDTP) Store (Local1, UMSP) } Else { Store (Local0, IDTS) Store (Local1, UMSS) } } Method (GTF, 2, NotSerialized) { Store (Buffer (0x07) { 0x03, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xEF }, Local0) CreateByteField (Local0, 0x01, MODE) CreateByteField (Local0, 0x05, DRIV) Store (Arg1, DRIV) If (LEqual (Arg0, 0x00)) { Store (IDEP, Local1) } Else { Store (IDES, Local1) } CreateDWordField (Local1, 0x00, PIO0) CreateDWordField (Local1, 0x04, DMA0) CreateDWordField (Local1, 0x08, PIO1) CreateDWordField (Local1, 0x0C, DMA1) CreateDWordField (Local1, 0x10, FLGX) If (LEqual (Arg1, 0xA0)) { Store (PIO0, Local2) Store (DMA0, Local3) And (FLGX, 0x01, FLGX) } Else { Store (PIO1, Local2) Store (DMA1, Local3) And (FLGX, 0x04, FLGX) } Store (FLGX, Local1) If (LGreater (Local2, 0x0186)) { Store (0x00, Local2) } Else { If (LGreater (Local2, 0xF0)) { Store (0x01, Local2) } Else { If (LGreater (Local2, 0xB4)) { Store (0x02, Local2) } Else { If (LGreater (Local2, 0x78)) { Store (0x03, Local2) } Else { Store (0x04, Local2) } } } } Or (0x08, Local2, MODE) Store (Local0, Local2) If (FLGX) { If (LGreater (Local3, 0x5A)) { Store (0x00, Local3) } Else { If (LGreater (Local3, 0x3C)) { Store (0x01, Local3) } Else { If (LGreater (Local3, 0x2D)) { Store (0x02, Local3) } Else { If (LGreater (Local3, 0x1E)) { Store (0x03, Local3) } Else { If (LGreater (Local3, 0x14)) { Store (0x04, Local3) } Else { If (LGreater (Local3, 0x0F)) { Store (0x05, Local3) } Else { Store (0x06, Local3) } } } } } } Or (0x40, Local3, MODE) } Else { If (LEqual (Local3, 0xFFFFFFFF)) { Return (Local0) } Else { If (LGreater (Local3, 0x96)) { Store (0x00, Local3) } Else { If (LGreater (Local3, 0x78)) { Store (0x01, Local3) } Else { Store (0x02, Local3) } } Or (0x20, Local3, MODE) } } Concatenate (Local0, Local2, Local1) Return (Local1) } Method (U2T, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (0x3C) } If (LEqual (Arg0, 0x01)) { Return (0x5A) } If (LEqual (Arg0, 0x02)) { Return (0x78) } If (LEqual (Arg0, 0x03)) { Return (0x96) } If (LEqual (Arg0, 0x04)) { Return (0x2D) } If (LEqual (Arg0, 0x05)) { Return (0x1E) } If (LEqual (Arg0, 0x06)) { Return (0x14) } Return (0x0F) } Method (T2U, 1, NotSerialized) { If (LGreater (Arg0, 0x78)) { Return (0x03) } If (LGreater (Arg0, 0x5A)) { Return (0x02) } If (LGreater (Arg0, 0x3C)) { Return (0x01) } If (LGreater (Arg0, 0x2D)) { Return (0x00) } If (LGreater (Arg0, 0x1E)) { Return (0x04) } If (LGreater (Arg0, 0x14)) { Return (0x05) } If (LGreater (Arg0, 0x0F)) { Return (0x06) } Return (0x07) } Method (T2D, 1, NotSerialized) { If (LGreater (Arg0, 0x01E0)) { Return (0xA8) } If (LGreater (Arg0, 0x0186)) { Return (0x77) } If (LGreater (Arg0, 0xF0)) { Return (0x47) } If (LGreater (Arg0, 0xB4)) { Return (0x33) } If (LGreater (Arg0, 0x96)) { Return (0x22) } If (LGreater (Arg0, 0x78)) { Return (0x21) } Return (0x20) } Device (PRI0) { Name (_ADR, 0x00) Method (_GTM, 0, NotSerialized) { Return (GTM (0x00)) } Method (_STM, 3, NotSerialized) { STM (Arg0, Arg1, Arg2, 0x00) } Device (MAST) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { Return (GTF (0x00, 0xA0)) } } Device (SLAV) { Name (_ADR, 0x01) Method (_GTF, 0, NotSerialized) { Return (GTF (0x00, 0xB0)) } } } Device (SEC0) { Name (_ADR, 0x01) Method (_GTM, 0, NotSerialized) { Return (GTM (0x01)) } Method (_STM, 3, NotSerialized) { STM (Arg0, Arg1, Arg2, 0x01) } Device (MAST) { Name (_ADR, 0x00) Method (_GTF, 0, NotSerialized) { Return (GTF (0x01, 0xA0)) } } Device (SLAV) { Name (_ADR, 0x01) Method (_GTF, 0, NotSerialized) { Return (GTF (0x01, 0xB0)) } } } } Device (SMB0) { Name (_ADR, 0x00010001) OperationRegion (SBA0, PCI_Config, 0x50, 0x04) Field (SBA0, AnyAcc, NoLock, Preserve) { SB50, 16 } OperationRegion (SBA1, PCI_Config, 0x54, 0x04) Field (SBA1, AnyAcc, NoLock, Preserve) { SB54, 16 } } Device (AUD0) { Name (_ADR, 0x00060000) } Device (MODM) { Name (_ADR, 0x00060001) } Device (LPC0) { Name (_ADR, 0x00010000) OperationRegion (DCTL, PCI_Config, 0xE8, 0x02) Field (DCTL, AnyAcc, NoLock, Preserve) { Offset (0x01), , 4, DACI, 1 } Device (ACAD) { Name (_HID, "ACPI0003") Name (_PCL, Package (0x01) { \_SB }) Method (_PSR, 0, NotSerialized) { If (\_SB.PCI0.LPC0.EC0.ECOK) { Return (\_SB.PCI0.LPC0.EC0.ADP) } Else { Return (0x01) } } } OperationRegion (GP00, SystemIO, 0x8020, 0x04) Field (GP00, WordAcc, Lock, Preserve) { , 5, UB2R, 1, , 6, UB1R, 1, UB0R, 1 } OperationRegion (GPIO, SystemIO, 0x84A0, 0x30) Field (GPIO, WordAcc, Lock, Preserve) { , 2, LPOL, 1, Offset (0x22), INVT, 1, , 4, LIDS, 1, LPOR, 1, Offset (0x23), , 5, ACPW, 1 } OperationRegion (P44, PCI_Config, 0x44, 0x04) Field (P44, AnyAcc, NoLock, Preserve) { MTBA, 32 } OperationRegion (P60, PCI_Config, 0x60, 0x02) Field (P60, AnyAcc, NoLock, Preserve) { PMBR, 16 } OperationRegion (P64, PCI_Config, 0x64, 0x02) Field (P64, AnyAcc, NoLock, Preserve) { NVSB, 16 } OperationRegion (P68, PCI_Config, 0x68, 0x02) Field (P68, AnyAcc, NoLock, Preserve) { ANLG, 16 } Device (PMIO) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x03) Method (_CRS, 0, NotSerialized) { Name (IODM, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x00, 0x00) }) Name (IORT, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x80) IO (Decode16, 0x0000, 0x0000, 0x01, 0x80) IO (Decode16, 0x0000, 0x0000, 0x01, 0x80) IO (Decode16, 0x0000, 0x0000, 0x01, 0x80) IO (Decode16, 0x0000, 0x0000, 0x01, 0x80) IO (Decode16, 0x0000, 0x0000, 0x01, 0x80) IO (Decode16, 0x0000, 0x0000, 0x01, 0x40) IO (Decode16, 0x0000, 0x0000, 0x01, 0x40) }) CreateWordField (IORT, 0x02, I1MN) CreateWordField (IORT, 0x04, I1MX) CreateWordField (IORT, 0x0A, I2MN) CreateWordField (IORT, 0x0C, I2MX) CreateWordField (IORT, 0x12, I3MN) CreateWordField (IORT, 0x14, I3MX) CreateWordField (IORT, 0x1A, I4MN) CreateWordField (IORT, 0x1C, I4MX) CreateWordField (IORT, 0x22, I5MN) CreateWordField (IORT, 0x24, I5MX) CreateWordField (IORT, 0x2A, I6MN) CreateWordField (IORT, 0x2C, I6MX) CreateWordField (IORT, 0x32, I7MN) CreateWordField (IORT, 0x34, I7MX) CreateWordField (IORT, 0x3A, I8MN) CreateWordField (IORT, 0x3C, I8MX) And (PMBR, 0xFFFC, I1MN) Store (I1MN, I1MX) Add (I1MN, 0x80, Local0) Store (Local0, I2MN) Store (Local0, I2MX) And (NVSB, 0xFFFC, I3MN) Store (I3MN, I3MX) Add (I3MN, 0x80, Local0) Store (Local0, I4MN) Store (Local0, I4MX) And (ANLG, 0xFFFC, I5MN) Store (I5MN, I5MX) Add (I5MN, 0x80, Local0) Store (Local0, I6MN) Store (Local0, I6MX) And (\_SB.PCI0.SMB0.SB50, 0xFFFC, I7MN) Store (I7MN, I7MX) And (\_SB.PCI0.SMB0.SB54, 0xFFFC, I8MN) Store (I8MN, I8MX) If (I1MN) { Store (IORT, Local0) } Else { Store (IODM, Local0) } Return (Local0) } } Device (MEM0) { Name (_HID, EisaId ("PNP0C01")) Method (_CRS, 0, Serialized) { Name (MEMR, ResourceTemplate () { Memory32Fixed (ReadOnly, 0xFFF80000, 0x00080000) Memory32Fixed (ReadWrite, 0xFEC00000, 0x00001000) Memory32Fixed (ReadWrite, 0xFEE00000, 0x00100000) Memory32Fixed (ReadWrite, 0x00000000, 0x00000000) }) CreateDWordField (MEMR, 0x28, MBAS) CreateDWordField (MEMR, 0x2C, MBLE) If (\_SB.PCI0.LPC0.MTBA) { Store (\_SB.PCI0.LPC0.MTBA, MBAS) Store (0x1000, MBLE) } Return (MEMR) } } Method (ECOK, 0, NotSerialized) { If (LEqual (\_SB.PCI0.LPC0.EC0.ECOK, 0x01)) { Return (0x01) } Else { Return (0x00) } } Device (EC0) { Name (_HID, EisaId ("PNP0C09")) Name (_GPE, 0x21) Name (ECOK, Zero) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0062, 0x0062, 0x01, 0x01) IO (Decode16, 0x0066, 0x0066, 0x01, 0x01) }) Method (_REG, 2, NotSerialized) { If (LEqual (Arg0, 0x03)) { Store (Arg1, ECOK) } } OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF) Field (ERAM, ByteAcc, Lock, Preserve) { Offset (0x60), SMPR, 8, SMST, 8, SMAD, 8, SMCM, 8, SMD0, 256, BCNT, 8, SMAA, 8, Offset (0x90), CHGM, 16, CHGS, 16, CHGC, 16, CHGV, 16, CHGA, 16, BAL0, 1, BAL1, 1, BAL2, 1, BAL3, 1, Offset (0x9C), BEEP, 1, FAN1, 1, FAN2, 1, CRT, 1, EXFD, 1, PHDD, 1, SHDD, 1, FDD, 1, SBTN, 1, VIDO, 1, VOLD, 1, VOLU, 1, MUTE, 1, CONT, 1, BRGT, 1, HBTN, 1, S4S, 1, SKEY, 1, BKEY, 1, , 1, LIDA, 1, , 2, TPAD, 1, INKB, 1, Offset (0xA1), DKST, 1, , 6, DKEV, 1, Offset (0xA3), S1LD, 1, S3LD, 1, VGAQ, 1, PCMQ, 1, PCMR, 1, ADP, 1, SYS6, 1, SYS7, 1, PWAK, 1, MWAK, 1, LWAK, 1, Offset (0xA5), TST0, 8, TST1, 8, TST2, 8, TST3, 8, TST4, 8, TST5, 8, TST6, 8, TST7, 8, Offset (0xB0), CTMP, 8, Offset (0xB8), BTDT, 1, BTPW, 1, BTDS, 1, BTPS, 1, BTSW, 1, Offset (0xB9), BRTS, 8, Offset (0xBB), WLAT, 1, BTAT, 1, WLEX, 1, BTEX, 1, KLSW, 1, Offset (0xC0), , 4, BMF0, 3, BTY0, 1, BST0, 8, BRC0, 16, BSN0, 16, BPV0, 16, BDV0, 16, BDC0, 16, BFC0, 16, GAU0, 8, Offset (0xD0), , 4, BMF1, 3, BTY1, 1, BST1, 8, BRC1, 16, BSN1, 16, BPV1, 16, BDV1, 16, BDC1, 16, BFC1, 16, GAU1, 8 } Method (PCLK, 0, NotSerialized) { Store (PTVL, Local0) If (LEqual (Local0, 0x00)) { Store (0x00, THEN) } Else { Not (Local0, Local0) Add (Local0, 0x01, Local0) And (Local0, 0x07, Local0) Store (Local0, DUTY) If (LEqual (Local0, 0x00)) { Store (0x00, THEN) } Else { Store (0x01, THEN) } } } Method (_Q16, 0, NotSerialized) { Store ("=====QUERY_16=====", Debug) Notify (\_SB.LID, 0x80) } Method (_Q1C, 0, NotSerialized) { Store ("=====QUERY_1C=====", Debug) If (\_SB.PCI0.LPC0.EC0.VIDO) { \_SB.PCI0.AGP0.VGA.DSSW () Store (0x00, \_SB.PCI0.LPC0.EC0.VIDO) } } Method (_Q1D, 0, NotSerialized) { \_SB.PCI0.LPC0.EC0.PCLK () } Method (_Q1E, 0, NotSerialized) { Notify (\_TZ.THRM, 0x80) } Method (_Q22, 0, NotSerialized) { Store ("=====QUERY_22=====", Debug) Notify (\_SB.PCI0.LPC0.BAT1, 0x80) } Method (_Q25, 0, NotSerialized) { Store ("=====QUERY_25=====", Debug) Sleep (0x03E8) Notify (\_SB.PCI0.LPC0.BAT1, 0x81) Notify (\_SB.PCI0.LPC0.BAT1, 0x80) } Method (_Q27, 0, NotSerialized) { Store (0x01, OSSD) Notify (\_TZ.THRM, 0x80) } Method (_Q2A, 0, NotSerialized) { Notify (\_SB.PCI0.LPC0.SIO.UAR1, 0x00) Store (0x00, \_SB.PCI0.LPC0.EC0.DKEV) PHSS (0x7A) } Method (_Q2B, 0, NotSerialized) { Notify (\_SB.PCI0.LPC0.SIO.UAR1, 0x01) Store (0x00, \_SB.PCI0.LPC0.EC0.DKEV) PHSS (0x7A) } Method (_Q35, 0, NotSerialized) { Store ("=====QUERY_35=====", Debug) PHSS (0x11) } Method (_Q37, 0, NotSerialized) { Store ("=====QUERY_37=====", Debug) PHSS (0x0D) Notify (\_SB.PCI0.LPC0.ACAD, 0x00) Notify (\_SB.PCI0.LPC0.BAT1, 0x80) Notify (\_PR.CPU0, 0x80) } Method (_Q38, 0, NotSerialized) { Store ("=====QUERY_38=====", Debug) PHSS (0x0D) Notify (\_SB.PCI0.LPC0.ACAD, 0x00) Notify (\_SB.PCI0.LPC0.BAT1, 0x80) Notify (\_PR.CPU0, 0x80) } OperationRegion (CCLK, SystemIO, 0x8010, 0x04) Field (CCLK, DWordAcc, NoLock, Preserve) { , 1, DUTY, 3, THEN, 1 } OperationRegion (ECRM, EmbeddedControl, 0x00, 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 (Arg1, ERBD) Store (Arg0, ERIB) Release (FAMX) Return (Arg1) } Method (TUVR, 1, NotSerialized) { Return (0x03) } Method (THRO, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Return (THEN) } Else { If (LEqual (Arg0, 0x01)) { Return (DUTY) } Else { If (LEqual (Arg0, 0x02)) { Return (TTHR) } Else { Return (0xFF) } } } } Method (CLCK, 1, NotSerialized) { If (LEqual (Arg0, 0x00)) { Store (0x00, THEN) } Else { Store (Arg0, DUTY) Store (0x01, THEN) } Return (THEN) } } Device (BAT1) { Name (_HID, EisaId ("PNP0C0A")) Name (_UID, 0x01) Name (_PCL, Package (0x01) { \_SB }) Name (PBIF, Package (0x0D) { 0x01, 0x19C8, 0x19C8, 0x01, 0x39D0, 0x0294, 0xC6, 0x0108, 0x0EC4, "Primary ", "", "Lion", "Hewlett-Packard " }) Name (PBST, Package (0x04) { 0x01, 0xFFFFFFFF, 0xFFFFFFFF, 0x39D0 }) Method (_STA, 0, NotSerialized) { If (ECOK ()) { If (\_SB.PCI0.LPC0.EC0.BAL0) { Sleep (0x14) Return (0x1F) } Else { Sleep (0x14) Return (0x0F) } } Else { Sleep (0x14) Return (0x1F) } } Method (_BIF, 0, NotSerialized) { If (ECOK ()) { Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BDC0, Index (PBIF, 0x01)) Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BFC0, Index (PBIF, 0x02)) Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BDV0, Index (PBIF, 0x04)) Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BDC0, Local2) Divide (Local2, 0x64, Local6, Local2) Multiply (Local2, 0x05, Local3) Store (Local3, Index (PBIF, 0x05)) Multiply (Local2, 0x03, Local4) Store (Local4, Index (PBIF, 0x06)) } Return (PBIF) } Method (_BST, 0, NotSerialized) { If (ECOK ()) { Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BST0, Local0) And (Local0, 0x07, Local0) Store (Local0, Index (PBST, 0x00)) Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.GAU0, Local2) Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BPV0, Index (PBST, 0x03)) Sleep (0x14) Store (\_SB.PCI0.LPC0.EC0.BFC0, Local1) Sleep (0x14) If (Local2) { Multiply (Local2, Local1, Local2) Divide (Local2, 0x64, Local6, Local2) If (Local6) { Increment (Local2) } } Store (0x00, Index (PBST, 0x01)) Store (Local2, Index (PBST, 0x02)) } Return (PBST) } } OperationRegion (SMI0, SystemIO, 0x0000FE00, 0x00000002) Field (SMI0, AnyAcc, NoLock, Preserve) { SMIC, 8 } OperationRegion (SMI1, SystemMemory, 0x1FF7FEAC, 0x00000090) 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 (SYS0) { Name (_HID, EisaId ("PNP0C02")) Name (_UID, 0x01) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0010, 0x0010, 0x01, 0x10) IO (Decode16, 0x0022, 0x0022, 0x01, 0x1E) IO (Decode16, 0x0044, 0x0044, 0x01, 0x1C) IO (Decode16, 0x0062, 0x0062, 0x01, 0x02) IO (Decode16, 0x0065, 0x0065, 0x01, 0x0B) IO (Decode16, 0x0072, 0x0072, 0x01, 0x02) IO (Decode16, 0x0074, 0x0074, 0x01, 0x0C) IO (Decode16, 0x0091, 0x0091, 0x01, 0x03) IO (Decode16, 0x0097, 0x0097, 0x01, 0x09) IO (Decode16, 0x00A2, 0x00A2, 0x01, 0x1E) IO (Decode16, 0x0200, 0x0200, 0x01, 0x10) IO (Decode16, 0x0680, 0x0680, 0x01, 0x80) IO (Decode16, 0x00E0, 0x00E0, 0x01, 0x10) IO (Decode16, 0x04D0, 0x04D0, 0x01, 0x02) IO (Decode16, 0xFE00, 0xFE00, 0x01, 0x02) }) } Device (PIC0) { Name (_HID, EisaId ("PNP0000")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0020, 0x0020, 0x04, 0x02) IO (Decode16, 0x00A0, 0x00A0, 0x04, 0x02) IRQ (Edge, ActiveHigh, Exclusive) {2} }) } Device (PIT0) { Name (_HID, EisaId ("PNP0100")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0040, 0x0040, 0x10, 0x04) IRQ (Edge, ActiveHigh, Exclusive) {0} }) } Device (DMA0) { Name (_HID, EisaId ("PNP0200")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x09) IO (Decode16, 0x000A, 0x000A, 0x01, 0x06) IO (Decode16, 0x0081, 0x0081, 0x01, 0x03) IO (Decode16, 0x0087, 0x0087, 0x01, 0x01) IO (Decode16, 0x0089, 0x0089, 0x01, 0x03) IO (Decode16, 0x008F, 0x008F, 0x01, 0x01) IO (Decode16, 0x00C0, 0x00C0, 0x01, 0x12) IO (Decode16, 0x00D4, 0x00D4, 0x01, 0x0C) DMA (Compatibility, BusMaster, Transfer8) {4} }) } Device (SPK0) { Name (_HID, EisaId ("PNP0800")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0061, 0x0061, 0x01, 0x01) }) } Device (RTC0) { Name (_HID, EisaId ("PNP0B00")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0070, 0x0070, 0x01, 0x02) IRQ (Edge, ActiveHigh, Exclusive) {8} }) } Device (MTH0) { Name (_HID, EisaId ("PNP0C04")) Name (_CRS, ResourceTemplate () { IO (Decode16, 0x00F0, 0x00F0, 0x01, 0x02) IRQ (Edge, ActiveHigh, Exclusive) {13} }) } Device (PS2K) { Name (_HID, EisaId ("PNP0303")) Method (_STA, 0, NotSerialized) { Return (0x0F) } Name (_CRS, ResourceTemplate () { IO (Decode16, 0x0060, 0x0060, 0x01, 0x01) IO (Decode16, 0x0064, 0x0064, 0x01, 0x01) IRQNoFlags () {1} }) Name (_PRW, Package (0x02) { 0x05, 0x03 }) Method (_PSW, 1, NotSerialized) { Acquire (PSMX, 0xFFFF) If (ECOK ()) { Store (Arg0, \_SB.PCI0.LPC0.EC0.INKB) } Release (PSMX) } } Device (PS2M) { Name (_HID, EisaId ("PNP0F13")) Method (_STA, 0, NotSerialized) { Return (0x0F) } Name (_CRS, ResourceTemplate () { IRQNoFlags () {12} }) Name (_PRW, Package (0x02) { 0x05, 0x03 }) Method (_PSW, 1, NotSerialized) { Acquire (PSMX, 0xFFFF) If (ECOK ()) { Store (Arg0, \_SB.PCI0.LPC0.EC0.TPAD) } Release (PSMX) } } Device (SIO) { Name (_HID, EisaId ("PNP0A05")) OperationRegion (WIN1, SystemIO, 0x4E, 0x02) Field (WIN1, ByteAcc, NoLock, Preserve) { INDL, 8, DATL, 8 } IndexField (INDL, DATL, ByteAcc, NoLock, Preserve) { Offset (0x02), CFG, 8, Offset (0x07), LDNR, 8, Offset (0x20), IDHI, 8, IDLO, 8, POWC, 8, Offset (0x30), ACTR, 8, Offset (0x60), ADRH, 8, ADRL, 8, Offset (0x70), IRQN, 8, Offset (0x74), DMAN, 8, Offset (0xF0), MOD1, 8, OPT1, 8 } Method (ENFL, 0, NotSerialized) { Store (0x87, INDL) Store (0x87, INDL) } Method (EXFL, 0, NotSerialized) { Store (0xAA, INDL) } Device (FDC0) { Name (_HID, EisaId ("PNP0700")) Name (RFDC, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x06) IO (Decode16, 0x0000, 0x0000, 0x01, 0x01) IRQNoFlags () {} DMA (Compatibility, NotBusMaster, Transfer8) {} }) Method (_STA, 0, NotSerialized) { ENFL () Store (Zero, LDNR) Store (0x00, Local0) If (ACTR) { Store (0x0F, Local0) } Else { If (LOr (ADRL, ADRH)) { Store (0x0D, Local0) } } EXFL () Return (Local0) } Method (_DIS, 0, NotSerialized) { ENFL () Store (Zero, LDNR) Store (Zero, ACTR) EXFL () } Method (_CRS, 0, NotSerialized) { If (LEqual (And (_STA (), 0x04), Zero)) { Return (RFDC) } Name (BUF0, ResourceTemplate () { IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06) IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01) IRQNoFlags () {6} DMA (Compatibility, NotBusMaster, Transfer8) {2} }) CreateByteField (BUF0, 0x02, IOLO) CreateByteField (BUF0, 0x03, IOHI) CreateByteField (BUF0, 0x04, IORL) CreateByteField (BUF0, 0x05, IORH) CreateByteField (BUF0, 0x0A, DALO) CreateByteField (BUF0, 0x0B, DAHI) CreateByteField (BUF0, 0x0C, DRLO) CreateByteField (BUF0, 0x0D, DRHI) CreateWordField (BUF0, 0x11, IRQV) CreateByteField (BUF0, 0x14, DMAV) ENFL () Store (Zero, LDNR) ShiftRight (ADRH, 0x06, Local1) ShiftLeft (ADRH, 0x02, Local0) Store (Local1, IOHI) Store (Local0, IOLO) Store (Local1, IORH) Store (Local0, IORL) Or (Local0, 0x07, Local0) Store (Local1, DAHI) Store (Local0, DALO) Store (Local1, DRHI) Store (Local0, DRLO) Store (0x01, Local0) ShiftLeft (Local0, IRQN, IRQV) Store (0x01, Local0) ShiftLeft (Local0, DMAN, DMAV) EXFL () Return (BUF0) } Name (_PRS, ResourceTemplate () { StartDependentFn (0x00, 0x01) { IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06) IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01) IRQNoFlags () {6} DMA (Compatibility, NotBusMaster, Transfer8) {2} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateByteField (Arg0, 0x02, IOLO) CreateByteField (Arg0, 0x03, IOHI) CreateWordField (Arg0, 0x11, IRQW) CreateByteField (Arg0, 0x14, DMAV) ENFL () Store (Zero, LDNR) Store (One, ACTR) ShiftRight (IOLO, 0x02, Local0) ShiftLeft (IOHI, 0x06, Local1) Or (Local0, Local1, Local0) Store (Local0, ADRH) FindSetLeftBit (IRQW, Local0) If (LNot (LEqual (Local0, Zero))) { Subtract (Local0, 0x01, Local0) } Store (Local0, IRQN) FindSetLeftBit (DMAV, Local1) If (LNot (LEqual (Local1, Zero))) { Subtract (Local1, 0x01, Local1) } Store (Local1, DMAN) EXFL () } } Device (UAR1) { Name (_HID, EisaId ("PNP0501")) Name (_UID, 0x01) Name (_PRW, Package (0x02) { 0x08, 0x04 }) Name (RSRC, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x08, 0x00) IRQNoFlags () {} }) Name (DKFG, 0x00) Method (_STA, 0, NotSerialized) { If (LEqual (\_SB.PCI0.LPC0.EC0.ECOK, 0x01)) { Store (\_SB.PCI0.LPC0.EC0.DKST, Local0) If (Local0) { ENFL () Store (0x02, LDNR) If (ACTR) { EXFL () Store (0x01, DKFG) Return (0x0F) } Else { EXFL () Return (0x0D) } } Else { Store (0x00, DKFG) Return (0x00) } } Else { \_SB.PCI0.LPC0.PHSS (0x7A) Store (\_SB.PCI0.LPC0.INF, Local1) If (LEqual (Local1, 0xA6)) { Store (0x01, DKFG) Store (0x0D, Local1) } Else { Store (0x00, DKFG) Store (0x00, Local1) } Return (Local1) } } Method (_DIS, 0, NotSerialized) { ENFL () Store (0x02, LDNR) Store (Zero, ACTR) EXFL () } Method (_CRS, 0, NotSerialized) { And (_STA (), 0x04, Local0) If (LEqual (Local0, Zero)) { Return (RSRC) } Name (BUF1, ResourceTemplate () { IO (Decode16, 0x03F8, 0x03F8, 0x08, 0x08) IRQNoFlags () {4} }) CreateByteField (BUF1, 0x02, IOLO) CreateByteField (BUF1, 0x03, IOHI) CreateByteField (BUF1, 0x04, IORL) CreateByteField (BUF1, 0x05, IORH) CreateWordField (BUF1, 0x09, IRQV) ENFL () Store (0x02, LDNR) ShiftLeft (ADRH, 0x02, Local0) ShiftRight (ADRH, 0x06, Local1) Store (Local0, IOLO) Store (Local1, IOHI) Store (Local0, IORL) Store (Local1, IORH) Store (0x00, IRQV) If (LNot (LEqual (IRQN, 0x00))) { ShiftLeft (One, IRQN, IRQV) } EXFL () Return (BUF1) } Name (_PRS, ResourceTemplate () { StartDependentFn (0x00, 0x00) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {4} } StartDependentFnNoPri () { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {3} } StartDependentFnNoPri () { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {4} } StartDependentFnNoPri () { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {3} } StartDependentFn (0x02, 0x02) { IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {3} } StartDependentFn (0x02, 0x02) { IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {4} } StartDependentFn (0x02, 0x02) { IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {3} } StartDependentFn (0x02, 0x02) { IO (Decode16, 0x02E8, 0x02E8, 0x01, 0x08) IRQ (Edge, ActiveHigh, Exclusive) {4} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateByteField (Arg0, 0x02, IOLO) CreateByteField (Arg0, 0x03, IOHI) CreateWordField (Arg0, 0x09, IRQW) ENFL () Store (0x02, LDNR) Store (One, ACTR) ShiftRight (IOLO, 0x02, Local0) ShiftLeft (IOHI, 0x06, Local1) Or (Local0, Local1, ADRH) FindSetLeftBit (IRQW, Local0) If (LNot (LEqual (Local0, Zero))) { Subtract (Local0, 0x01, Local0) } Store (Local0, IRQN) EXFL () } } Device (LPT1) { Name (PIOM, Buffer (0x01) { 0x00 }) CreateByteField (PIOM, 0x00, LPTM) Name (_HID, EisaId ("PNP0400")) Method (_STA, 0, NotSerialized) { ENFL () Store (One, LDNR) Store (ACTR, Local0) And (Local0, 0x03, Local0) If (LEqual (Local0, 0x03)) { If (LNot (LEqual (DMAN, 0x00))) { Store (0x00, Local1) } Else { If (LNot (LEqual (ADRH, 0x00))) { Store (0x0D, Local1) } Else { Store (0x00, Local1) } } } Else { If (LEqual (Local0, 0x01)) { Store (0x00, Local1) } Else { Store (Local0, LPTM) Store (0x0F, Local1) } } EXFL () Return (Local1) } Method (_DIS, 0, NotSerialized) { ENFL () Store (One, LDNR) Store (0x03, ACTR) EXFL () } Method (_CRS, 0, NotSerialized) { Name (BUFL, ResourceTemplate () { IO (Decode16, 0x0378, 0x0378, 0x08, 0x08) IRQNoFlags () {7} }) CreateWordField (BUFL, 0x02, IMIN) CreateWordField (BUFL, 0x04, IMAX) CreateByteField (BUFL, 0x06, LALN) CreateByteField (BUFL, 0x07, LLEN) CreateWordField (BUFL, 0x09, IRQ0) ENFL () Store (One, LDNR) Store (ADRH, Local0) ShiftLeft (Local0, 0x02, Local0) Store (Local0, IMIN) Store (Local0, IMAX) If (LEqual (IMIN, 0x03BC)) { Store (0x04, LALN) Store (0x04, LLEN) } Else { Store (0x08, LALN) Store (0x08, LLEN) } Store (IRQN, Local0) ShiftLeft (One, Local0, IRQ0) EXFL () Return (BUFL) } Name (_PRS, ResourceTemplate () { StartDependentFnNoPri () { IO (Decode16, 0x0378, 0x0378, 0x08, 0x08) IRQNoFlags () {7} } StartDependentFnNoPri () { IO (Decode16, 0x0278, 0x0278, 0x08, 0x08) IRQNoFlags () {5} } StartDependentFnNoPri () { IO (Decode16, 0x03BC, 0x03BC, 0x04, 0x04) IRQNoFlags () {7} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateByteField (Arg0, 0x02, IOLO) CreateByteField (Arg0, 0x03, IOHI) CreateWordField (Arg0, 0x09, IRQ0) ENFL () Store (One, LDNR) Store (IOLO, Local0) ShiftRight (Local0, 0x02, Local0) Store (IOHI, Local1) ShiftLeft (Local1, 0x06, Local1) Or (Local0, Local1, Local0) Store (Local0, ADRH) FindSetRightBit (IRQ0, Local0) If (LGreater (Local0, 0x00)) { Decrement (Local0) } Store (Local0, IRQN) Store (ACTR, Local0) And (Local0, 0xFC, Local0) Store (LPTM, Local1) Or (Local0, Local1, Local1) Store (Local1, ACTR) EXFL () } } Device (ECP1) { Name (_HID, EisaId ("PNP0401")) Method (_STA, 0, NotSerialized) { ENFL () Store (One, LDNR) Store (ACTR, Local0) And (Local0, 0x03, Local0) If (LEqual (Local0, 0x01)) { Store (0x0F, Local1) } Else { If (LOr (LEqual (Local0, 0x00), LEqual (Local0, 0x02))) { Store (0x00, Local1) } Else { If (LEqual (Local0, 0x03)) { If (LNot (LEqual (DMAN, 0x00))) { Store (0x0D, Local1) } Else { Store (0x00, Local1) } } } } EXFL () Return (Local1) } Method (_DIS, 0, NotSerialized) { ENFL () Store (One, LDNR) Store (0x03, ACTR) EXFL () } Method (_CRS, 0, NotSerialized) { Name (BUFE, ResourceTemplate () { IO (Decode16, 0x0378, 0x0378, 0x08, 0x08) IO (Decode16, 0x0778, 0x0778, 0x04, 0x04) IRQNoFlags () {7} DMA (Compatibility, NotBusMaster, Transfer8) {3} }) CreateWordField (BUFE, 0x02, IMI1) CreateWordField (BUFE, 0x04, IMA1) CreateByteField (BUFE, 0x06, ALN1) CreateByteField (BUFE, 0x07, LEN1) CreateWordField (BUFE, 0x0A, IMI2) CreateWordField (BUFE, 0x0C, IMA2) CreateWordField (BUFE, 0x11, IRQ0) CreateByteField (BUFE, 0x14, DMA0) ENFL () Store (One, LDNR) Store (ADRH, Local0) ShiftLeft (Local0, 0x02, Local0) Store (Local0, IMI1) Store (Local0, IMA1) Add (Local0, 0x0400, Local0) Store (Local0, IMI2) Store (Local0, IMA2) If (LEqual (IMI1, 0x03BC)) { Store (0x04, ALN1) Store (0x04, LEN1) } Else { Store (0x08, ALN1) Store (0x08, LEN1) } Store (IRQN, Local0) ShiftLeft (One, Local0, IRQ0) Store (DMAN, Local0) And (Local0, 0x03, Local0) ShiftLeft (One, Local0, DMA0) EXFL () Return (BUFE) } Name (_PRS, ResourceTemplate () { StartDependentFnNoPri () { IO (Decode16, 0x0378, 0x0378, 0x08, 0x08) IO (Decode16, 0x0778, 0x0778, 0x04, 0x04) IRQNoFlags () {7} DMA (Compatibility, NotBusMaster, Transfer8) {1,3} } StartDependentFnNoPri () { IO (Decode16, 0x0278, 0x0278, 0x08, 0x08) IO (Decode16, 0x0678, 0x0678, 0x04, 0x04) IRQNoFlags () {5} DMA (Compatibility, NotBusMaster, Transfer8) {1,3} } StartDependentFnNoPri () { IO (Decode16, 0x03BC, 0x03BC, 0x04, 0x04) IO (Decode16, 0x07BC, 0x07BC, 0x04, 0x04) IRQNoFlags () {7} DMA (Compatibility, NotBusMaster, Transfer8) {1,3} } EndDependentFn () }) Method (_SRS, 1, NotSerialized) { CreateByteField (Arg0, 0x02, IOLO) CreateByteField (Arg0, 0x03, IOHI) CreateWordField (Arg0, 0x11, IRQ0) CreateByteField (Arg0, 0x14, DMA0) ENFL () Store (One, LDNR) Store (IOLO, Local0) ShiftRight (Local0, 0x02, Local0) Store (IOHI, Local1) ShiftLeft (Local1, 0x06, Local1) Or (Local0, Local1, Local0) Store (Local0, ADRH) FindSetRightBit (IRQ0, Local0) If (LGreater (Local0, 0x00)) { Decrement (Local0) } Store (Local0, IRQN) FindSetRightBit (DMA0, Local0) If (LGreater (Local0, 0x00)) { Decrement (Local0) } Store (Local0, DMAN) Store (ACTR, Local0) And (Local0, 0xFC, Local0) Or (Local0, 0x01, Local0) Store (Local0, ACTR) EXFL () } } Device (FIR0) { Name (_HID, EisaId ("VIA3076")) Name (RFIC, ResourceTemplate () { IO (Decode16, 0x0000, 0x0000, 0x01, 0x00) IRQNoFlags () {} DMA (Compatibility, BusMaster, Transfer16) {} }) Method (_STA, 0, NotSerialized) { If (LEqual (CMBP, 0x00)) { Return (0x00) } ENFL () Store (0x0C, LDNR) Store (0x00, Local0) If (ACTR) { Store (0x0F, Local0) } Else { If (LOr (ADRL, ADRH)) { Store (0x0D, Local0) } } EXFL () Return (Local0) } Method (_DIS, 0, NotSerialized) { ENFL () Store (0x0C, LDNR) Store (Zero, ACTR) EXFL () } Method (_CRS, 0, NotSerialized) { If (LEqual (And (_STA (), 0x02), Zero)) { Return (RFIC) } Name (BUFI, ResourceTemplate () { IO (Decode16, 0x0600, 0x0600, 0x01, 0x80) IRQNoFlags () {3} DMA (Compatibility, BusMaster, Transfer16) {6} }) CreateWordField (BUFI, 0x02, IMIN) CreateWordField (BUFI, 0x04, IMAX) CreateWordField (BUFI, 0x09, IRQ0) CreateByteField (BUFI, 0x0C, DMA0) ENFL () Store (0x0C, LDNR) Store (ADRH, Local1) Store (ADRL, Local0) ShiftLeft (Local1, 0x08, Local1) Or (Local1, Local0, Local0) Store (Local0, IMIN) Store (Local0, IMAX) Store (IRQN, Local0) And (Local0, 0x0F, Local0) Store (One, Local1) ShiftLeft (Local1, Local0, IRQ0) Store (DMAN, Local0) And (Local0, 0x03, Local0) If (LEqual (Local0, Zero)) { Store (Zero, DMA0) } Else { Add (Local0, 0x04, Local0) Store (One, Local1) ShiftLeft (Local1, Local0, DMA0) } EXFL () Return (BUFI) } Name (_PRS, ResourceTemplate () { StartDependentFnNoPri () { IO (Decode16, 0x0600, 0x0600, 0x01, 0x80) IRQNoFlags () {3} DMA (Compatibility, BusMaster, Transfer16) {6} } StartDependentFnNoPri () { IO (Decode16, 0x0800, 0x0800, 0x01, 0x80) IRQNoFlags () {3,4,5,11} DMA (Compatibility, BusMaster, Transfer16) {1,3,6} } EndDependentFn() }) Method (_SRS, 1, NotSerialized) { CreateByteField (Arg0, 0x02, IOLO) CreateByteField (Arg0, 0x03, IOHI) CreateWordField (Arg0, 0x09, IRQ0) CreateByteField (Arg0, 0x0C, DMA0) ENFL () Store (0x0C, LDNR) Store (IOHI, ADRH) Store (IOLO, ADRL) FindSetRightBit (IRQ0, Local0) If (LGreater (Local0, 0x00)) { Decrement (Local0) } Store (Local0, IRQN) FindSetRightBit (DMA0, Local0) Subtract (Local0, 0x01, Local0) If (LGreater (Local0, 0x04)) { Subtract (Local0, 0x04, Local0) } Store (Local0, Local1) ShiftLeft (Local1, 0x02, Local1) Or (Local0, Local1, Local0) Store (Local0, DMAN) Store (One, ACTR) EXFL () } } } } Device (P2P0) { Name (_ADR, 0x000A0000) Name (_UID, 0x02) OperationRegion (A080, PCI_Config, 0x19, 0x01) Field (A080, ByteAcc, NoLock, Preserve) { SECB, 8 } Method (_STA, 0, NotSerialized) { Return (0x0F) } Name (_PRT, Package (0x05) { Package (0x04) { 0xFFFF, 0x00, \_SB.PCI0.LNK1, 0x00 }, Package (0x04) { 0x0001FFFF, 0x00, \_SB.PCI0.LNK2, 0x00 }, Package (0x04) { 0x0002FFFF, 0x00, \_SB.PCI0.LNK3, 0x00 }, Package (0x04) { 0x0004FFFF, 0x00, \_SB.PCI0.LNK1, 0x00 }, Package (0x04) { 0x0004FFFF, 0x01, \_SB.PCI0.LNK2, 0x00 } }) Device (MAC0) { Name (_ADR, 0x00010000) Name (_PRW, Package (0x02) { 0x0B, 0x03 }) Method (_STA, 0, NotSerialized) { Return (0x0F) } } } Device (AGP0) { Name (_ADR, 0x000B0000) Name (_UID, 0x03) OperationRegion (A1E0, PCI_Config, 0x19, 0x01) Field (A1E0, ByteAcc, NoLock, Preserve) { SECB, 8 } Method (_STA, 0, NotSerialized) { Return (0x0F) } Name (_PRT, Package (0x01) { Package (0x04) { 0xFFFF, 0x00, \_SB.PCI0.LNK5, 0x00 } }) Device (VGA) { Name (_ADR, 0x00) Name (SWIT, 0x01) Name (CRTA, 0x01) Name (LCDA, 0x01) Name (TVAA, 0x01) Name (VLDF, 0x01) Method (_STA, 0, NotSerialized) { Return (0x0F) } Name (_PSC, 0x00) Method (_PS0, 0, NotSerialized) { Store (0x00, _PSC) } Method (_PS1, 0, NotSerialized) { Store (0x01, _PSC) } Method (_PS3, 0, NotSerialized) { Store (0x03, _PSC) } Method (_DOS, 1, NotSerialized) { Store (And (Arg0, 0x03), SWIT) } Method (_DOD, 0, NotSerialized) { Return (Package (0x03) { 0x00010100, 0x00010110, 0x0200 }) } Device (CRT) { Method (_ADR, 0, NotSerialized) { Return (0x0100) } Method (_DCS, 0, NotSerialized) { \_SB.PCI0.LPC0.PHSS (0x0C) Store (\_SB.PCI0.LPC0.INF, Local0) And (Local0, 0x02, Local0) If (Local0) { Store (0x01, CRTA) } Else { Store (0x00, CRTA) } If (CRTA) { Return (0x1F) } Else { Return (0x1D) } } Method (_DGS, 0, NotSerialized) { If (CRTA) { Return (0x01) } Else { Return (0x00) } } Method (_DSS, 1, NotSerialized) { } } Device (LCD) { Method (_ADR, 0, NotSerialized) { Return (0x0110) } Method (_DCS, 0, NotSerialized) { If (LCDA) { Return (0x1F) } Else { Return (0x1D) } } Method (_DGS, 0, NotSerialized) { If (LCDA) { Return (0x01) } Else { Return (0x00) } } Method (_DSS, 1, NotSerialized) { DSSC (Arg0) } } Device (TV) { Method (_ADR, 0, NotSerialized) { Return (0x0200) } Method (_DCS, 0, NotSerialized) { \_SB.PCI0.LPC0.PHSS (0x0C) Store (\_SB.PCI0.LPC0.INF, Local0) And (Local0, 0x04, Local0) If (Local0) { Store (0x01, TVAA) } Else { Store (0x00, TVAA) } If (TVAA) { Return (0x1F) } Else { Return (0x1D) } } Method (_DGS, 0, NotSerialized) { If (TVAA) { Return (0x01) } Else { Return (0x00) } } Method (_DSS, 1, NotSerialized) { } } Method (DSSW, 0, NotSerialized) { If (LEqual (SWIT, 0x00)) { \_SB.PCI0.LPC0.PHSS (0x90) Store (\_SB.PCI0.LPC0.INF, Local0) If (LEqual (Local0, 0x01)) { Return (0x00) } \_SB.PCI0.LPC0.PHSS (0x0C) Store (\_SB.PCI0.LPC0.INF, Local0) Store (\_SB.PCI0.LPC0.INF1, Local1) If (LGreater (Local1, 0x01)) { And (Local0, Local1, VLDF) And (VLDF, 0xFE, VLDF) } If (VLDF) { If (LEqual (Local0, 0x03)) { If (LEqual (Local1, 0x01)) { STBL (0x02) } If (LEqual (Local1, 0x02)) { STBL (0x03) } If (LEqual (Local1, 0x03)) { STBL (0x01) } If (LEqual (Local1, 0x06)) { STBL (0x01) } } If (LEqual (Local0, 0x05)) { If (LEqual (Local1, 0x01)) { STBL (0x04) } If (LEqual (Local1, 0x04)) { STBL (0x05) } If (LEqual (Local1, 0x05)) { STBL (0x01) } If (LEqual (Local1, 0x06)) { STBL (0x01) } } If (LEqual (Local0, 0x07)) { If (LEqual (Local1, 0x01)) { STBL (0x02) } If (LEqual (Local1, 0x02)) { STBL (0x03) } If (LEqual (Local1, 0x03)) { STBL (0x04) } If (LEqual (Local1, 0x04)) { STBL (0x05) } If (LEqual (Local1, 0x05)) { STBL (0x06) } If (LEqual (Local1, 0x06)) { STBL (0x01) } } } Else { Store (0x01, VLDF) STBL (0x01) } } Else { If (LEqual (SWIT, 0x01)) { \_SB.PCI0.LPC0.PHSS (0x01) } } Return (Package(0x02){0x00,0x00}) } Method (STBL, 1, NotSerialized) { If (And (Arg0, 0xF8)) { Store (Zero, CRTA) Store (One, LCDA) Store (Zero, TVAA) } Else { If (LEqual (Arg0, 0x01)) { Store (Zero, CRTA) Store (One, LCDA) Store (Zero, TVAA) } If (LEqual (Arg0, 0x02)) { Store (One, CRTA) Store (Zero, LCDA) Store (Zero, TVAA) } If (LEqual (Arg0, 0x03)) { Store (One, CRTA) Store (One, LCDA) Store (Zero, TVAA) } If (LEqual (Arg0, 0x04)) { Store (Zero, CRTA) Store (Zero, LCDA) Store (One, TVAA) } If (LEqual (Arg0, 0x05)) { Store (Zero, CRTA) Store (One, LCDA) Store (One, TVAA) } If (LEqual (Arg0, 0x06)) { Store (One, CRTA) Store (Zero, LCDA) Store (One, TVAA) } If (LEqual (Arg0, 0x07)) { Store (One, CRTA) Store (One, LCDA) Store (One, TVAA) } } Notify (\_SB.PCI0.AGP0.VGA, 0x80) } Method (DSSC, 1, NotSerialized) { If (LEqual (And (Arg0, 0x40000000), 0x00)) {} } } } } Scope (\) { Name (PICF, 0x00) Method (_PIC, 1, NotSerialized) { Store (Arg0, PICF) } OperationRegion (\_SB.PCI0.LPC0.PIRQ, PCI_Config, 0x7C, 0x0C) Field (\_SB.PCI0.LPC0.PIRQ, AnyAcc, NoLock, Preserve) { INTW, 4, INTX, 4, INTY, 4, INTZ, 4, INTE, 4, Offset (0x04), ISCI, 4, ITCO, 4, ISMB, 4, IUS2, 4, , 12, ITID, 4, IUS0, 4, IUS1, 4, IMAC, 4, Offset (0x0A), IACI, 4, IMCI, 4, IPID, 4, ISID, 4 } } Scope (\_SB.PCI0) { Name (BUFA, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {3,4,5,6,7,10,11,12,14,15} }) Name (BUFB, ResourceTemplate () { IRQ (Level, ActiveLow, Shared) {} }) CreateWordField (BUFB, 0x01, IRQV) Method (CRS, 1, Serialized) { If (Arg0) { ShiftLeft (0x01, Arg0, IRQV) } Else { Store (Zero, IRQV) } Return (BUFB) } Method (SRS, 1, Serialized) { CreateWordField (Arg0, 0x01, IRQ0) FindSetRightBit (IRQ0, Local0) Decrement (Local0) Return (Local0) } Name (BUFI, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared) { 0x00000014, 0x00000015, 0x00000016, } }) Method (CRSI, 1, Serialized) { Name (IRZ5, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared) { 0x00000007, } }) CreateWordField (IRZ5, 0x05, INZ5) Store (0x00, Local0) If (LEqual (Arg0, 0x08)) { Store (0x14, Local0) } If (LEqual (Arg0, 0x0D)) { Store (0x15, Local0) } If (LEqual (Arg0, 0x02)) { Store (0x16, Local0) } Store (Local0, INZ5) Return (IRZ5) } Method (SRSI, 1, Serialized) { CreateWordField (Arg0, 0x05, IRZ6) Store (0x00, Local0) If (LEqual (IRZ6, 0x14)) { Store (0x08, Local0) } If (LEqual (IRZ6, 0x15)) { Store (0x0D, Local0) } If (LEqual (IRZ6, 0x16)) { Store (0x02, Local0) } Return (Local0) } Name (BUFE, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared) { 0x00000010, 0x00000012, 0x00000013, } }) Name (BUFF, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared) { 0x00000011, } }) Method (CRSE, 1, Serialized) { Name (IRZ7, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, Shared) { 0x00000007, } }) CreateWordField (IRZ7, 0x05, INZ7) Store (0x00, Local0) If (LEqual (Arg0, 0x08)) { Store (0x10, Local0) } If (LEqual (Arg0, 0x01)) { Store (0x11, Local0) } If (LEqual (Arg0, 0x02)) { Store (0x12, Local0) } If (LEqual (Arg0, 0x0D)) { Store (0x13, Local0) } Store (Local0, INZ7) Return (IRZ7) } Method (SRSE, 1, Serialized) { CreateWordField (Arg0, 0x05, IRZ8) Store (0x00, Local0) If (LEqual (IRZ8, 0x10)) { Store (0x08, Local0) } If (LEqual (IRZ8, 0x11)) { Store (0x01, Local0) } If (LEqual (IRZ8, 0x12)) { Store (0x02, Local0) } If (LEqual (IRZ8, 0x13)) { Store (0x0D, Local0) } Return (Local0) } Device (LNK1) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x01) Method (_STA, 0, NotSerialized) { If (INTW) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, INTW) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFE) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (INTW)) } Else { Return (CRSE (INTW)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), INTW) } Else { Store (SRSE (Arg0), INTW) } } } Device (LNK2) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x02) Method (_STA, 0, NotSerialized) { If (INTX) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, INTX) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFE) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (INTX)) } Else { Return (CRSE (INTX)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), INTX) } Else { Store (SRSE (Arg0), INTX) } } } Device (LNK3) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x03) Method (_STA, 0, NotSerialized) { If (INTY) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, INTY) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFF) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (INTY)) } Else { Return (CRSE (INTY)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), INTY) } Else { Store (SRSE (Arg0), INTY) } } } Device (LNK4) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x04) Method (_STA, 0, NotSerialized) { If (INTZ) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, INTZ) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFE) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (INTZ)) } Else { Return (CRSE (INTZ)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), INTZ) } Else { Store (SRSE (Arg0), INTZ) } } } Device (LNK5) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x05) Method (_STA, 0, NotSerialized) { If (INTE) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, INTE) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFE) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (INTE)) } Else { Return (CRSE (INTE)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), INTE) } Else { Store (SRSE (Arg0), INTE) } } } Device (LSMB) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x06) Method (_STA, 0, NotSerialized) { If (ISMB) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, ISMB) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (ISMB)) } Else { Return (CRSI (ISMB)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), ISMB) } Else { Store (SRSI (Arg0), ISMB) } } } Device (LUS0) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x07) Method (_STA, 0, NotSerialized) { If (IUS0) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IUS0) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IUS0)) } Else { Return (CRSI (IUS0)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IUS0) } Else { Store (SRSI (Arg0), IUS0) } } } Device (LUS1) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x08) Method (_STA, 0, NotSerialized) { If (IUS1) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IUS1) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IUS1)) } Else { Return (CRSI (IUS1)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IUS1) } Else { Store (SRSI (Arg0), IUS1) } } } Device (LUS2) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x09) Method (_STA, 0, NotSerialized) { If (IUS2) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IUS2) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IUS2)) } Else { Return (CRSI (IUS2)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IUS2) } Else { Store (SRSI (Arg0), IUS2) } } } Device (LMAC) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x0A) Method (_STA, 0, NotSerialized) { If (IMAC) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IMAC) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IMAC)) } Else { Return (CRSI (IMAC)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IMAC) } Else { Store (SRSI (Arg0), IMAC) } } } Device (LACI) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x0B) Method (_STA, 0, NotSerialized) { If (IACI) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IACI) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IACI)) } Else { Return (CRSI (IACI)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IACI) } Else { Store (SRSI (Arg0), IACI) } } } Device (LMCI) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x0C) Method (_STA, 0, NotSerialized) { If (IMCI) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IMCI) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IMCI)) } Else { Return (CRSI (IMCI)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IMCI) } Else { Store (SRSI (Arg0), IMCI) } } } Device (LPID) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x0D) Method (_STA, 0, NotSerialized) { If (IPID) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, IPID) Store (0x00, ISID) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (IPID)) } Else { Return (CRSI (IPID)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), IPID) Store (SRS (Arg0), ISID) } Else { Store (SRSI (Arg0), IPID) Store (SRSI (Arg0), ISID) } } } Device (LTID) { Name (_HID, EisaId ("PNP0C0F")) Name (_UID, 0x0E) Method (_STA, 0, NotSerialized) { If (ITID) { Return (0x0B) } Else { Return (0x09) } } Method (_DIS, 0, NotSerialized) { Store (0x00, ITID) } Method (_PRS, 0, NotSerialized) { If (LNot (PICF)) { Return (BUFA) } Else { Return (BUFI) } } Method (_CRS, 0, NotSerialized) { If (LNot (PICF)) { Return (CRS (ITID)) } Else { Return (CRSI (ITID)) } } Method (_SRS, 1, NotSerialized) { If (LNot (PICF)) { Store (SRS (Arg0), ITID) } Else { Store (SRSI (Arg0), ITID) } } } } } Scope (_TZ) { Name (DTMP, 0x0CA0) Name (DAC0, 0x0CD2) Name (DPSV, 0x0E1C) Name (TBSE, 0x0AAC) ThermalZone (THRM) { Method (_CRT, 0, NotSerialized) { If (LEqual (\_SB.PCI0.LPC0.EC0.ECOK, 0x01)) { Multiply (\_SB.PCI0.LPC0.EC0.RFRD, 0x0A, Local0) Add (Local0, 0x0AAC, Local0) Return (Local0) } Return (0x0DE0) } Method (_TMP, 0, NotSerialized) { If (OSSD) { Store (0x00, OSSD) Store (0x0BB8, Local0) If (\_SB.PCI0.LPC0.EC0.ECOK) { Multiply (\_SB.PCI0.LPC0.EC0.CTMP, 0x0A, Local0) Add (Local0, 0x0AAC, Local0) } Return (Local0) } Else { If (\_SB.PCI0.LPC0.EC0.ECOK) { If (\_SB.PCI0.LPC0.EC0.TST4) { Return (Add (Multiply (\_SB.PCI0.LPC0.EC0.TST4, 0x0A), TBSE)) } Else { Return (DTMP) } } Else { Return (DTMP) } } } Method (_AC0, 0, NotSerialized) { Return (DAC0) } Method (_PSV, 0, NotSerialized) { Return (DPSV) } Name (_PSL, Package (0x01) { \_PR.CPU0 }) Name (_TC1, 0x02) Name (_TC2, 0x05) Name (_TSP, 0x32) } } OperationRegion (DBGP, SystemIO, 0x1080, 0x01) Field (DBGP, ByteAcc, NoLock, Preserve) { DBUG, 8 } Name (FWSO, "FWSO") }