mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 09:33:13 -06:00
117 lines
3.8 KiB
Text
117 lines
3.8 KiB
Text
/*
|
|
* Intel ACPI Component Architecture
|
|
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
|
* Copyright (c) 2000 - 2019 Intel Corporation
|
|
*
|
|
* Disassembling to non-symbolic legacy ASL operators
|
|
*
|
|
* Disassembly of SSDT-10-Wwan.aml, Thu Oct 3 00:56:10 2019
|
|
*
|
|
* Original Table Header:
|
|
* Signature "SSDT"
|
|
* Length 0x000002D1 (721)
|
|
* Revision 0x02
|
|
* Checksum 0x26
|
|
* OEM ID "LENOVO"
|
|
* OEM Table ID "Wwan"
|
|
* OEM Revision 0x00000001 (1)
|
|
* Compiler ID "INTL"
|
|
* Compiler Version 0x20160527 (538314023)
|
|
*/
|
|
DefinitionBlock ("", "SSDT", 2, "LENOVO", "Wwan", 0x00000001)
|
|
{
|
|
External (_SB_.GPC0, MethodObj) // 1 Arguments
|
|
External (_SB_.PCI0.GPCB, MethodObj) // 0 Arguments
|
|
External (_SB_.PCI0.RP03, DeviceObj)
|
|
External (_SB_.PCI0.RP03._ADR, MethodObj) // 0 Arguments
|
|
External (_SB_.PCI0.RP03.PXSX, DeviceObj)
|
|
External (_SB_.PCI0.RP03.PXSX._ADR, IntObj)
|
|
External (_SB_.SPC0, MethodObj) // 2 Arguments
|
|
External (NEXP, IntObj)
|
|
External (WDC2, IntObj)
|
|
External (WDCT, IntObj)
|
|
External (WGUR, IntObj)
|
|
External (WLCT, IntObj)
|
|
External (WMNS, IntObj)
|
|
External (WMXS, IntObj)
|
|
|
|
Name (RSTP, Package (0x04)
|
|
{
|
|
Zero,
|
|
Zero,
|
|
Zero,
|
|
Zero
|
|
})
|
|
Scope (\_SB.PCI0.RP03)
|
|
{
|
|
Method (M2PC, 1, Serialized)
|
|
{
|
|
Store (\_SB.PCI0.GPCB (), Local0)
|
|
Add (Local0, ShiftRight (And (Arg0, 0x001F0000), One), Local0)
|
|
Add (Local0, ShiftLeft (And (Arg0, 0x07), 0x0C), Local0)
|
|
Return (Local0)
|
|
}
|
|
|
|
Method (GMIO, 1, Serialized)
|
|
{
|
|
OperationRegion (PXCS, SystemMemory, M2PC (\_SB.PCI0.RP03._ADR ()), 0x20)
|
|
Field (PXCS, AnyAcc, NoLock, Preserve)
|
|
{
|
|
Offset (0x18),
|
|
PBUS, 8,
|
|
SBUS, 8
|
|
}
|
|
|
|
Store (\_SB.PCI0.GPCB (), Local0)
|
|
Add (Local0, ShiftRight (And (Arg0, 0x001F0000), One), Local0)
|
|
Add (Local0, ShiftLeft (And (Arg0, 0x07), 0x0C), Local0)
|
|
Add (Local0, ShiftLeft (SBUS, 0x14), Local0)
|
|
Return (Local0)
|
|
}
|
|
|
|
Scope (PXSX)
|
|
{
|
|
Method (_RST, 0, Serialized) // _RST: Device Reset
|
|
{
|
|
OperationRegion (PXCS, SystemMemory, GMIO (\_SB.PCI0.RP03.PXSX._ADR), 0x0480)
|
|
Field (PXCS, AnyAcc, NoLock, Preserve)
|
|
{
|
|
VDID, 16,
|
|
DVID, 16,
|
|
Offset (0x78),
|
|
DCTL, 16,
|
|
DSTS, 16,
|
|
Offset (0x80),
|
|
LCTL, 16,
|
|
LSTS, 16,
|
|
Offset (0x98),
|
|
DCT2, 16,
|
|
Offset (0x148),
|
|
Offset (0x14C),
|
|
MXSL, 16,
|
|
MNSL, 16
|
|
}
|
|
|
|
Store (\_SB.GPC0 (\WGUR), Local0)
|
|
And (Local0, 0xFFFFFFFFFFFFFEFF, Local0)
|
|
\_SB.SPC0 (\WGUR, Local0)
|
|
Sleep (0xC8)
|
|
Notify (\_SB.PCI0.RP03.PXSX, One) // Device Check
|
|
Or (Local0, 0x0100, Local0)
|
|
\_SB.SPC0 (\WGUR, Local0)
|
|
Sleep (0xC8)
|
|
If (LEqual (NEXP, Zero))
|
|
{
|
|
Store (\WDCT, DCTL) /* \_SB_.PCI0.RP03.PXSX._RST.DCTL */
|
|
Store (\WLCT, LCTL) /* \_SB_.PCI0.RP03.PXSX._RST.LCTL */
|
|
Store (\WDC2, DCT2) /* \_SB_.PCI0.RP03.PXSX._RST.DCT2 */
|
|
Store (\WMXS, MXSL) /* \_SB_.PCI0.RP03.PXSX._RST.MXSL */
|
|
Store (\WMNS, MNSL) /* \_SB_.PCI0.RP03.PXSX._RST.MNSL */
|
|
}
|
|
|
|
Notify (\_SB.PCI0.RP03.PXSX, One) // Device Check
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|