DefinitionBlock ("SSDT.aml", "SSDT", 1, "Test", "amitest", 0x00008000)
{
External (C00B)
External (C00A)
External (C009)
External (C008)
External (C007)
External (C006)
External (C005)
External (C004)
External (C003)
External (C002)
External (C001)
External (C000)
External (SMB_, DeviceObj)
External (GBE_, DeviceObj)
External (NPE3, DeviceObj)
External (SAT0, DeviceObj)
External (RTC0, DeviceObj)
External (SBRG, DeviceObj)
External (USBE, DeviceObj)
External (EUSB, DeviceObj)
External (PCI0, DeviceObj)
External (\_SB_.PWRB)
Method (MAIN, 0, NotSerialized)
{
Store ("dsdt.dsl", Debug)
Store (0x1B, Debug)
Store ("Mon Feb 29 10:02:17 2016", Debug)
Store ("x79 SSDT By RampageDev All Rights Reserved", Debug)
Store ("For Use With Intel Motherboards Only", Debug)
Store ("Report Issues With This SSDT To: [email protected]", Debug)
}
Scope (\_SB)
{
Device (VSND)
{
Name (_HID, EisaId ("APP0007"))
Name (_CID, "virtual-sound")
Name (_STA, 0x0B)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x02)
{
"hda-gfx",
Buffer (0x0A)
{
"onboard-4"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
Device (GCON)
{
OperationRegion (GPIO, SystemIO, 0x0500, 0x64)
Field (GPIO, ByteAcc, NoLock, Preserve)
{
GP06, 1
}
Name (_HID, EisaId ("APP000B"))
Name (_CID, "gcon")
Name (_STA, 0x0B)
Name (_CRS, ResourceTemplate ()
{
IO (Decode16,
0x0700, // Range Minimum
0x07FF, // Range Maximum
0x01, // Alignment
0xFF, // Length
)
})
Name (_PRW, Package (0x02)
{
0x16,
0x04
})
Name (GMGP, 0x16)
Method (GMSP, 1, NotSerialized)
{
If (LLessEqual (Arg0, One))
{
Or (GP06, Arg0, GP06)
}
}
Method (GMLV, 0, NotSerialized)
{
Return (GP06)
}
}
Scope (PCI0)
{
Scope (EUSB)
{
Name (_STA, Zero)
}
Scope (USBE)
{
Name (_STA, Zero)
}
Device (EH01)
{
Name (_ADR, 0x001D0000)
Name (_S4D, 0x02)
Name (_S3D, 0x02)
Name (_S2D, 0x02)
Name (_S1D, 0x02)
Name (MBSD, One)
}
Device (EH02)
{
Name (_ADR, 0x001A0000)
Name (_S4D, 0x02)
Name (_S3D, 0x02)
Name (_S2D, 0x02)
Name (_S1D, 0x02)
Name (MBSD, One)
}
Scope (SBRG)
{
Scope (RTC0)
{
Name (_STA, Zero)
}
Device (RTC)
{
Name (_HID, EisaId ("PNP0B00"))
Name (_CRS, ResourceTemplate ()
{
IO (Decode16,
0x0070, // Range Minimum
0x0070, // Range Maximum
0x01, // Alignment
0x08, // Length
)
})
}
}
Device (FWHD)
{
Name (_HID, EisaId ("INT0800"))
Name (_CRS, ResourceTemplate ()
{
Memory32Fixed (ReadOnly,
0xFF000000, // Address Base
0x01000000, // Address Length
)
})
}
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x06)
{
"hda-gfx",
Buffer (0x0A)
{
"onboard-3"
},
"layout-id",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"PinConfigurations",
Buffer (Zero) {}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
Scope (SAT0)
{
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x06)
{
"compatible",
"pci8086,8c02",
"IOName",
"pci8086,8c02",
"device-id",
Buffer (0x04)
{
0x02, 0x8C, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
Scope (NPE3)
{
Name (_ADR, 0x00020000)
Device (GFX1)
{
Name (_ADR, 0x00020000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x10)
{
"AAPL,slot-name",
Buffer (0x07)
{
"Slot-1"
},
"@0,name",
Buffer (0x0D)
{
"ATY,Kamarang"
},
"@1,name",
Buffer (0x0D)
{
"ATY,Kamarang"
},
"@2,name",
Buffer (0x0D)
{
"ATY,Kamarang"
},
"@3,name",
Buffer (0x0D)
{
"ATY,Kamarang"
},
"device_type",
Buffer (0x13)
{
"ATY,KamarangParent"
},
"model",
Buffer (0x13)
{
"Radeon Pro Vega 56"
},
"hda-gfx",
Buffer (0x0A)
{
"onboard-1"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
Device (HDAU)
{
Name (_ADR, One)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x02)
{
"hda-gfx",
Buffer (0x0A)
{
"onboard-1"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}
Scope (GBE)
{
OperationRegion (GPIO, SystemIO, 0x0800, 0x06)
Field (GPIO, ByteAcc, NoLock, Preserve)
{
GO01, 8,
GO02, 8,
GO03, 8,
GO04, 8,
GO05, 8,
GP45, 1,
GP9, 1
}
Method (EWOL, 1, NotSerialized)
{
If (LEqual (Arg0, One))
{
Or (GP9, One, GP9)
}
Else
{
And (GP9, Zero, GP9)
}
If (LEqual (Arg0, GP9))
{
Return (Zero)
}
Else
{
Return (One)
}
}
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0A)
{
"AAPL,slot-name",
Buffer (0x09)
{
"Internal"
},
"built-in",
Buffer (One)
{
0x01
},
"device_type",
Buffer (0x14)
{
"Ethernet Controller"
},
"model",
Buffer (0x1E)
{
"Intel(R) 82579V PCI-E Gigabit"
},
"name",
Buffer (0x14)
{
"Ethernet Controller"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
Scope (SMB)
{
Device (BUS0)
{
Name (_CID, "smbus")
Name (_ADR, Zero)
}
Device (BUS1)
{
Name (_CID, "smbus")
Name (_ADR, One)
}
}
}
}
Device (EC)
{
Name (_HID, EisaId ("PNP0C09"))
Name (_UID, Zero)
Name (_CRS, ResourceTemplate ()
{
IO (Decode16,
0x0062, // Range Minimum
0x0062, // Range Maximum
0x00, // Alignment
0x01, // Length
)
IO (Decode16,
0x0066, // Range Minimum
0x0066, // Range Maximum
0x00, // Alignment
0x01, // Length
)
})
Name (_GPE, 0x17)
Name (ECOK, Zero)
OperationRegion (ECOR, EmbeddedControl, Zero, 0xFF)
Field (ECOR, ByteAcc, Lock, Preserve)
{
ECVS, 8,
Offset (0x02),
Offset (0x03),
G3HT, 1,
Offset (0x04),
WBCB, 1,
DSLP, 1,
Offset (0x05),
Offset (0x06),
WKRS, 8,
Offset (0x10),
ECSS, 8,
PLIM, 8,
ALB0, 8,
ALB1, 8,
WTLB, 8,
WTMB, 8,
Offset (0x20),
SPTR, 8,
SSTS, 8,
SADR, 8,
SCMD, 8,
SBFR, 256,
SCNT, 8,
SAAD, 8,
SAD0, 8,
SAD1, 8,
SMUX, 8,
Offset (0x60),
ELSW, 1,
EACP, 1,
ECDI, 1,
ENMI, 1,
Offset (0x61),
EMHP, 1,
Offset (0x62),
Offset (0x63),
Offset (0x64),
SWLO, 1,
SWLC, 1,
SWAI, 1,
SWAR, 1,
SWCI, 1,
SWCE, 1,
SWMI, 1,
SWMR, 1,
SWPB, 1,
SWGP, 1,
SWPM, 1,
SWWT, 1,
SWLB, 1,
Offset (0x66),
Offset (0x67),
Offset (0x68),
EWLO, 1,
EWLC, 1,
EWAI, 1,
EWAR, 1,
EWCI, 1,
EWCE, 1,
EWMI, 1,
EWMR, 1,
EWPB, 1,
EWGP, 1,
EWPM, 1,
ENWT, 1,
EWLB, 1,
Offset (0x6A),
Offset (0x6B),
Offset (0x6C),
LWLO, 1,
LWLC, 1,
LWAI, 1,
LWAR, 1,
LWCI, 1,
LWCE, 1,
LWMI, 1,
LWMR, 1,
LWPB, 1,
LWGP, 1,
LWPM, 1,
LWWT, 1,
LWLB, 1,
Offset (0x6E),
Offset (0x6F),
Offset (0x70)
}
Field (ECOR, ByteAcc, Lock, Preserve)
{
Offset (0x03),
G3AD, 1,
BLOD, 1,
S4WE, 1,
Offset (0x04),
Offset (0x6C),
LWE0, 8,
LWE1, 8,
LWE2, 8,
LWE3, 8
}
Field (ECOR, ByteAcc, Lock, Preserve)
{
Offset (0x24),
SBDW, 16,
Offset (0x46),
SADW, 16
}
Method (WAKE, 0, NotSerialized)
{
If (ECOK)
{
Return (WKRS)
}
Else
{
Return (Zero)
}
}
Method (_Q5A, 0, NotSerialized)
{
Notify (\_SB.PWRB, 0x80)
}
Method (_Q80, 0, NotSerialized)
{
Notify (C000, 0x80)
Notify (C001, 0x80)
Notify (C002, 0x80)
Notify (C003, 0x80)
Notify (C004, 0x80)
Notify (C005, 0x80)
Notify (C006, 0x80)
Notify (C007, 0x80)
Notify (C008, 0x80)
Notify (C009, 0x80)
Notify (C00A, 0x80)
Notify (C00B, 0x80)
}
Method (_REG, 2, NotSerialized)
{
If (LOr (LEqual (Arg0, 0x03), Zero))
{
Store (Arg1, ECOK)
If (LEqual (Arg1, One))
{
Store (Zero, ECSS)
}
}
}
}
Method (DTGP, 5, NotSerialized)
{
If (LEqual (Arg0, Buffer (0x10)
{
/* 0000 */ 0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44,
/* 0008 */ 0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
}))
{
If (LEqual (Arg1, One))
{
If (LEqual (Arg2, Zero))
{
Store (Buffer (One)
{
0x03
}, Arg4)
Return (One)
}
If (LEqual (Arg2, One))
{
Return (One)
}
}
}
Store (Buffer (One)
{
0x00
}, Arg4)
Return (Zero)
}
}