mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
Improve SSDT-EC
Checks if the EC is an actual object before checking methods, should greatly speed up the SSDT and prevent conflict if a drunk OEM uses EC naming for a method
This commit is contained in:
BIN
extra-files/SSDT-EC-DESKTOP.aml
Normal file
BIN
extra-files/SSDT-EC-DESKTOP.aml
Normal file
Binary file not shown.
@@ -1,9 +1,11 @@
|
||||
/*
|
||||
* What this mess of an SSDT tries to accomplish is this:
|
||||
* - Find valid ECs and disable them, they will have the following properties:
|
||||
* - Find ECs(Device = 0x06)
|
||||
* - Disable valid ECs, they will have the following properties:
|
||||
* - _HID
|
||||
* - _CRS
|
||||
* - _GPE
|
||||
* - Check for _STA to avoid conflicts
|
||||
* - Create a new fake EC to let macOS play with
|
||||
* - Create a USBX device for Skylake and newer
|
||||
*/
|
||||
@@ -58,8 +60,10 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
|
||||
|
||||
// Let the AMD Trash being(and glorious Core2)
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.EC)) && CondRefOf (\_SB.PCI0.SBRG.EC._HID) && CondRefOf (\_SB.PCI0.SBRG.EC._CRS) && CondRefOf (\_SB.PCI0.SBRG.EC._GPE) && !CondRefOf (\_SB.PCI0.SBRG.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.EC._HID) && CondRefOf (\_SB.PCI0.SBRG.EC._CRS)) && CondRefOf (\_SB.PCI0.SBRG.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC)
|
||||
{
|
||||
@@ -67,7 +71,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -76,7 +80,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.EC0)) && CondRefOf (\_SB.PCI0.SBRG.EC0._HID) && CondRefOf (\_SB.PCI0.SBRG.EC0._CRS) && CondRefOf (\_SB.PCI0.SBRG.EC0._GPE) && !CondRefOf (\_SB.PCI0.SBRG.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.EC0._HID) && CondRefOf (\_SB.PCI0.SBRG.EC0._CRS)) && CondRefOf (\_SB.PCI0.SBRG.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC0)
|
||||
{
|
||||
@@ -84,7 +93,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -93,8 +102,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.H_EC)) && CondRefOf (\_SB.PCI0.SBRG.H_EC._HID) && CondRefOf (\_SB.PCI0.SBRG.H_EC._CRS) && CondRefOf (\_SB.PCI0.SBRG.H_EC._GPE) && !CondRefOf (\_SB.PCI0.SBRG.H_EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.H_EC._HID) && CondRefOf (\_SB.PCI0.SBRG.H_EC._CRS)) && CondRefOf (\_SB.PCI0.SBRG.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.H_EC)
|
||||
{
|
||||
@@ -102,7 +115,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -111,7 +124,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.ECDV)) && CondRefOf (\_SB.PCI0.SBRG.ECDV._HID) && CondRefOf (\_SB.PCI0.SBRG.ECDV._CRS) && CondRefOf (\_SB.PCI0.SBRG.ECDV._GPE) && !CondRefOf (\_SB.PCI0.SBRG.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.ECDV._HID) && CondRefOf (\_SB.PCI0.SBRG.ECDV._CRS)) && CondRefOf (\_SB.PCI0.SBRG.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.ECDV)
|
||||
{
|
||||
@@ -119,7 +137,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -128,7 +146,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.PGEC)) && CondRefOf (\_SB.PCI0.SBRG.PGEC._HID) && CondRefOf (\_SB.PCI0.SBRG.PGEC._CRS) && CondRefOf (\_SB.PCI0.SBRG.PGEC._GPE) && !CondRefOf (\_SB.PCI0.SBRG.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.SBRG.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.SBRG.PGEC._CRS)) && CondRefOf (\_SB.PCI0.SBRG.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.SBRG.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.PGEC)
|
||||
{
|
||||
@@ -136,7 +159,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -145,10 +168,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now we go to consumer
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.EC)) && CondRefOf (\_SB.PCI0.LPCB.EC._HID) && CondRefOf (\_SB.PCI0.LPCB.EC._CRS) && CondRefOf (\_SB.PCI0.LPCB.EC._GPE) && !CondRefOf (\_SB.PCI0.LPCB.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.EC._HID) && CondRefOf (\_SB.PCI0.LPCB.EC._CRS)) && CondRefOf (\_SB.PCI0.LPCB.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC)
|
||||
{
|
||||
@@ -156,7 +183,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -165,7 +192,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.EC0)) && CondRefOf (\_SB.PCI0.LPCB.EC0._HID) && CondRefOf (\_SB.PCI0.LPCB.EC0._CRS) && CondRefOf (\_SB.PCI0.LPCB.EC0._GPE) && !CondRefOf (\_SB.PCI0.LPCB.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.EC0._HID) && CondRefOf (\_SB.PCI0.LPCB.EC0._CRS)) && CondRefOf (\_SB.PCI0.LPCB.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC0)
|
||||
{
|
||||
@@ -173,7 +205,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -182,7 +214,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.H_EC)) && CondRefOf (\_SB.PCI0.LPCB.H_EC._HID) && CondRefOf (\_SB.PCI0.LPCB.H_EC._CRS) && CondRefOf (\_SB.PCI0.LPCB.H_EC._GPE) && !CondRefOf (\_SB.PCI0.LPCB.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.H_EC._HID) && CondRefOf (\_SB.PCI0.LPCB.H_EC._CRS)) && CondRefOf (\_SB.PCI0.LPCB.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.H_EC)
|
||||
{
|
||||
@@ -190,7 +227,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -199,7 +236,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.ECDV)) && CondRefOf (\_SB.PCI0.LPCB.ECDV._HID) && CondRefOf (\_SB.PCI0.LPCB.ECDV._CRS) && CondRefOf (\_SB.PCI0.LPCB.ECDV._GPE) && !CondRefOf (\_SB.PCI0.LPCB.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.ECDV._HID) && CondRefOf (\_SB.PCI0.LPCB.ECDV._CRS)) && CondRefOf (\_SB.PCI0.LPCB.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.ECDV)
|
||||
{
|
||||
@@ -207,7 +249,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -216,7 +258,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.PGEC)) && CondRefOf (\_SB.PCI0.LPCB.PGEC._HID) && CondRefOf (\_SB.PCI0.LPCB.PGEC._CRS) && CondRefOf (\_SB.PCI0.LPCB.PGEC._GPE) && !CondRefOf (\_SB.PCI0.LPCB.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.LPCB.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.LPCB.PGEC._CRS)) && CondRefOf (\_SB.PCI0.LPCB.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.LPCB.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.PGEC)
|
||||
{
|
||||
@@ -224,7 +271,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -233,39 +280,13 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
// Laptop trash
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.EC)) && CondRefOf (\_SB.PCI0.LPC.EC._HID) && CondRefOf (\_SB.PCI0.LPC.EC._CRS) && CondRefOf (\_SB.PCI0.LPC.EC._GPE) && !CondRefOf (\_SB.PCI0.LPC.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.LPC.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.EC._HID) && CondRefOf (\_SB.PCI0.LPC.EC._CRS)) && CondRefOf (\_SB.PCI0.LPC.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC)
|
||||
{
|
||||
@@ -273,7 +294,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -282,7 +303,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.EC0)) && CondRefOf (\_SB.PCI0.LPC.EC0._HID) && CondRefOf (\_SB.PCI0.LPC.EC0._CRS) && CondRefOf (\_SB.PCI0.LPC.EC0._GPE) && !CondRefOf (\_SB.PCI0.LPC.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.EC0._HID) && CondRefOf (\_SB.PCI0.LPC.EC0._CRS)) && CondRefOf (\_SB.PCI0.LPC.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC0)
|
||||
{
|
||||
@@ -290,7 +316,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -299,7 +325,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.H_EC)) && CondRefOf (\_SB.PCI0.LPC.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC.H_EC._CRS) && CondRefOf (\_SB.PCI0.LPC.H_EC._GPE) && !CondRefOf (\_SB.PCI0.LPC.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC.H_EC._CRS)) && CondRefOf (\_SB.PCI0.LPC.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.H_EC)
|
||||
{
|
||||
@@ -307,7 +338,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -316,7 +347,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.ECDV)) && CondRefOf (\_SB.PCI0.LPC.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC.ECDV._CRS) && CondRefOf (\_SB.PCI0.LPC.ECDV._GPE) && !CondRefOf (\_SB.PCI0.LPC.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC.ECDV._CRS)) && CondRefOf (\_SB.PCI0.LPC.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.ECDV)
|
||||
{
|
||||
@@ -324,7 +360,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -333,7 +369,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.PGEC)) && CondRefOf (\_SB.PCI0.LPC.PGEC._HID) && CondRefOf (\_SB.PCI0.LPC.PGEC._CRS) && CondRefOf (\_SB.PCI0.LPC.PGEC._GPE) && !CondRefOf (\_SB.PCI0.LPC.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.LPC.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.LPC.PGEC._CRS)) && CondRefOf (\_SB.PCI0.LPC.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.LPC.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.PGEC)
|
||||
{
|
||||
@@ -341,7 +382,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -350,10 +391,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// X79 and X99 trash
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.EC)) && CondRefOf (\_SB.PCI0.LPC0.EC._HID) && CondRefOf (\_SB.PCI0.LPC0.EC._CRS) && CondRefOf (\_SB.PCI0.LPC0.EC._GPE) && !CondRefOf (\_SB.PCI0.LPC0.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.EC._HID) && CondRefOf (\_SB.PCI0.LPC0.EC._CRS)) && CondRefOf (\_SB.PCI0.LPC0.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC)
|
||||
{
|
||||
@@ -361,7 +406,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -370,7 +415,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.EC0)) && CondRefOf (\_SB.PCI0.LPC0.EC0._HID) && CondRefOf (\_SB.PCI0.LPC0.EC0._CRS) && CondRefOf (\_SB.PCI0.LPC0.EC0._GPE) && !CondRefOf (\_SB.PCI0.LPC0.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.EC0._HID) && CondRefOf (\_SB.PCI0.LPC0.EC0._CRS)) && CondRefOf (\_SB.PCI0.LPC0.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC0)
|
||||
{
|
||||
@@ -378,7 +428,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -387,7 +437,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.H_EC)) && CondRefOf (\_SB.PCI0.LPC0.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC0.H_EC._CRS) && CondRefOf (\_SB.PCI0.LPC0.H_EC._GPE) && !CondRefOf (\_SB.PCI0.LPC0.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC0.H_EC._CRS)) && CondRefOf (\_SB.PCI0.LPC0.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.H_EC)
|
||||
{
|
||||
@@ -395,7 +450,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -404,7 +459,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.ECDV)) && CondRefOf (\_SB.PCI0.LPC0.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC0.ECDV._CRS) && CondRefOf (\_SB.PCI0.LPC0.ECDV._GPE) && !CondRefOf (\_SB.PCI0.LPC0.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC0.ECDV._CRS)) && CondRefOf (\_SB.PCI0.LPC0.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.ECDV)
|
||||
{
|
||||
@@ -412,7 +472,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -421,7 +481,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.PGEC)) && CondRefOf (\_SB.PCI0.LPC0.PGEC._HID) && CondRefOf (\_SB.PCI0.LPC0.PGEC._CRS) && CondRefOf (\_SB.PCI0.LPC0.PGEC._GPE) && !CondRefOf (\_SB.PCI0.LPC0.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.LPC0.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.LPC0.PGEC._CRS)) && CondRefOf (\_SB.PCI0.LPC0.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.LPC0.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.PGEC)
|
||||
{
|
||||
@@ -429,7 +494,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -438,10 +503,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Cursed X299
|
||||
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.EC)) && CondRefOf (\_SB.PC00.LPC0.EC._HID) && CondRefOf (\_SB.PC00.LPC0.EC._CRS) && CondRefOf (\_SB.PC00.LPC0.EC._GPE) && !CondRefOf (\_SB.PC00.LPC0.EC._STA))
|
||||
If ((ObjectType (\_SB.PC00.LPC0.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.EC._HID) && CondRefOf (\_SB.PC00.LPC0.EC._CRS)) && CondRefOf (\_SB.PC00.LPC0.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC)
|
||||
{
|
||||
@@ -449,7 +518,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -458,7 +527,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.EC0)) && CondRefOf (\_SB.PC00.LPC0.EC0._HID) && CondRefOf (\_SB.PC00.LPC0.EC0._CRS) && CondRefOf (\_SB.PC00.LPC0.EC0._GPE) && !CondRefOf (\_SB.PC00.LPC0.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.EC0._HID) && CondRefOf (\_SB.PC00.LPC0.EC0._CRS)) && CondRefOf (\_SB.PC00.LPC0.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC0)
|
||||
{
|
||||
@@ -466,7 +540,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -475,7 +549,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.H_EC)) && CondRefOf (\_SB.PC00.LPC0.H_EC._HID) && CondRefOf (\_SB.PC00.LPC0.H_EC._CRS) && CondRefOf (\_SB.PC00.LPC0.H_EC._GPE) && !CondRefOf (\_SB.PC00.LPC0.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.H_EC._HID) && CondRefOf (\_SB.PC00.LPC0.H_EC._CRS)) && CondRefOf (\_SB.PC00.LPC0.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.H_EC)
|
||||
{
|
||||
@@ -483,7 +562,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -492,7 +571,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.ECDV)) && CondRefOf (\_SB.PC00.LPC0.ECDV._HID) && CondRefOf (\_SB.PC00.LPC0.ECDV._CRS) && CondRefOf (\_SB.PC00.LPC0.ECDV._GPE) && !CondRefOf (\_SB.PC00.LPC0.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.ECDV._HID) && CondRefOf (\_SB.PC00.LPC0.ECDV._CRS)) && CondRefOf (\_SB.PC00.LPC0.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.ECDV)
|
||||
{
|
||||
@@ -500,7 +584,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -509,7 +593,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.PGEC)) && CondRefOf (\_SB.PC00.LPC0.PGEC._HID) && CondRefOf (\_SB.PC00.LPC0.PGEC._CRS) && CondRefOf (\_SB.PC00.LPC0.PGEC._GPE) && !CondRefOf (\_SB.PC00.LPC0.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PC00.LPC0.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PC00.LPC0.PGEC._CRS)) && CondRefOf (\_SB.PC00.LPC0.PGEC._GPE)) && !CondRefOf (\_SB.PC00.LPC0.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.PGEC)
|
||||
{
|
||||
@@ -517,7 +606,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -526,6 +615,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// And finally, create our fake EC and USBX
|
||||
Scope (\_SB)
|
||||
|
||||
Binary file not shown.
@@ -1,9 +1,11 @@
|
||||
/*
|
||||
* What this mess of an SSDT tries to accomplish is this:
|
||||
* - Find valid ECs and disable them, they will have the following properties:
|
||||
* - Find ECs(Device = 0x06)
|
||||
* - Disable valid ECs, they will have the following properties:
|
||||
* - _HID
|
||||
* - _CRS
|
||||
* - _GPE
|
||||
* - Check for _STA to avoid conflicts
|
||||
* - Create a new fake EC to let macOS play with
|
||||
* - Create a USBX device for Skylake and newer
|
||||
*/
|
||||
@@ -58,8 +60,10 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
|
||||
|
||||
// Let the AMD Trash being(and glorious Core2)
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.EC)) && CondRefOf (\_SB.PCI0.SBRG.EC._HID) && CondRefOf (\_SB.PCI0.SBRG.EC._CRS) && CondRefOf (\_SB.PCI0.SBRG.EC._GPE) && !CondRefOf (\_SB.PCI0.SBRG.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.EC._HID) && CondRefOf (\_SB.PCI0.SBRG.EC._CRS)) && CondRefOf (\_SB.PCI0.SBRG.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC)
|
||||
{
|
||||
@@ -67,7 +71,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -76,7 +80,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.EC0)) && CondRefOf (\_SB.PCI0.SBRG.EC0._HID) && CondRefOf (\_SB.PCI0.SBRG.EC0._CRS) && CondRefOf (\_SB.PCI0.SBRG.EC0._GPE) && !CondRefOf (\_SB.PCI0.SBRG.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.EC0._HID) && CondRefOf (\_SB.PCI0.SBRG.EC0._CRS)) && CondRefOf (\_SB.PCI0.SBRG.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC0)
|
||||
{
|
||||
@@ -84,7 +93,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -93,8 +102,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.H_EC)) && CondRefOf (\_SB.PCI0.SBRG.H_EC._HID) && CondRefOf (\_SB.PCI0.SBRG.H_EC._CRS) && CondRefOf (\_SB.PCI0.SBRG.H_EC._GPE) && !CondRefOf (\_SB.PCI0.SBRG.H_EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.H_EC._HID) && CondRefOf (\_SB.PCI0.SBRG.H_EC._CRS)) && CondRefOf (\_SB.PCI0.SBRG.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.H_EC)
|
||||
{
|
||||
@@ -102,7 +115,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -111,7 +124,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.ECDV)) && CondRefOf (\_SB.PCI0.SBRG.ECDV._HID) && CondRefOf (\_SB.PCI0.SBRG.ECDV._CRS) && CondRefOf (\_SB.PCI0.SBRG.ECDV._GPE) && !CondRefOf (\_SB.PCI0.SBRG.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.SBRG.ECDV._HID) && CondRefOf (\_SB.PCI0.SBRG.ECDV._CRS)) && CondRefOf (\_SB.PCI0.SBRG.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.SBRG.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.ECDV)
|
||||
{
|
||||
@@ -119,7 +137,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -128,7 +146,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.SBRG.PGEC)) && CondRefOf (\_SB.PCI0.SBRG.PGEC._HID) && CondRefOf (\_SB.PCI0.SBRG.PGEC._CRS) && CondRefOf (\_SB.PCI0.SBRG.PGEC._GPE) && !CondRefOf (\_SB.PCI0.SBRG.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.SBRG.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.SBRG.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.SBRG.PGEC._CRS)) && CondRefOf (\_SB.PCI0.SBRG.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.SBRG.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.PGEC)
|
||||
{
|
||||
@@ -136,7 +159,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -145,10 +168,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now we go to consumer
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.EC)) && CondRefOf (\_SB.PCI0.LPCB.EC._HID) && CondRefOf (\_SB.PCI0.LPCB.EC._CRS) && CondRefOf (\_SB.PCI0.LPCB.EC._GPE) && !CondRefOf (\_SB.PCI0.LPCB.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.EC._HID) && CondRefOf (\_SB.PCI0.LPCB.EC._CRS)) && CondRefOf (\_SB.PCI0.LPCB.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC)
|
||||
{
|
||||
@@ -156,7 +183,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -165,7 +192,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.EC0)) && CondRefOf (\_SB.PCI0.LPCB.EC0._HID) && CondRefOf (\_SB.PCI0.LPCB.EC0._CRS) && CondRefOf (\_SB.PCI0.LPCB.EC0._GPE) && !CondRefOf (\_SB.PCI0.LPCB.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.EC0._HID) && CondRefOf (\_SB.PCI0.LPCB.EC0._CRS)) && CondRefOf (\_SB.PCI0.LPCB.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC0)
|
||||
{
|
||||
@@ -173,7 +205,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -182,7 +214,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.H_EC)) && CondRefOf (\_SB.PCI0.LPCB.H_EC._HID) && CondRefOf (\_SB.PCI0.LPCB.H_EC._CRS) && CondRefOf (\_SB.PCI0.LPCB.H_EC._GPE) && !CondRefOf (\_SB.PCI0.LPCB.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.H_EC._HID) && CondRefOf (\_SB.PCI0.LPCB.H_EC._CRS)) && CondRefOf (\_SB.PCI0.LPCB.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.H_EC)
|
||||
{
|
||||
@@ -190,7 +227,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -199,7 +236,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.ECDV)) && CondRefOf (\_SB.PCI0.LPCB.ECDV._HID) && CondRefOf (\_SB.PCI0.LPCB.ECDV._CRS) && CondRefOf (\_SB.PCI0.LPCB.ECDV._GPE) && !CondRefOf (\_SB.PCI0.LPCB.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPCB.ECDV._HID) && CondRefOf (\_SB.PCI0.LPCB.ECDV._CRS)) && CondRefOf (\_SB.PCI0.LPCB.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPCB.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.ECDV)
|
||||
{
|
||||
@@ -207,7 +249,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -216,7 +258,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPCB.PGEC)) && CondRefOf (\_SB.PCI0.LPCB.PGEC._HID) && CondRefOf (\_SB.PCI0.LPCB.PGEC._CRS) && CondRefOf (\_SB.PCI0.LPCB.PGEC._GPE) && !CondRefOf (\_SB.PCI0.LPCB.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPCB.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.LPCB.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.LPCB.PGEC._CRS)) && CondRefOf (\_SB.PCI0.LPCB.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.LPCB.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.PGEC)
|
||||
{
|
||||
@@ -224,7 +271,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -233,39 +280,13 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
// Laptop trash
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.EC)) && CondRefOf (\_SB.PCI0.LPC.EC._HID) && CondRefOf (\_SB.PCI0.LPC.EC._CRS) && CondRefOf (\_SB.PCI0.LPC.EC._GPE) && !CondRefOf (\_SB.PCI0.LPC.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.LPC.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.EC._HID) && CondRefOf (\_SB.PCI0.LPC.EC._CRS)) && CondRefOf (\_SB.PCI0.LPC.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC)
|
||||
{
|
||||
@@ -273,7 +294,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -282,7 +303,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.EC0)) && CondRefOf (\_SB.PCI0.LPC.EC0._HID) && CondRefOf (\_SB.PCI0.LPC.EC0._CRS) && CondRefOf (\_SB.PCI0.LPC.EC0._GPE) && !CondRefOf (\_SB.PCI0.LPC.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.EC0._HID) && CondRefOf (\_SB.PCI0.LPC.EC0._CRS)) && CondRefOf (\_SB.PCI0.LPC.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC0)
|
||||
{
|
||||
@@ -290,7 +316,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -299,7 +325,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.H_EC)) && CondRefOf (\_SB.PCI0.LPC.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC.H_EC._CRS) && CondRefOf (\_SB.PCI0.LPC.H_EC._GPE) && !CondRefOf (\_SB.PCI0.LPC.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC.H_EC._CRS)) && CondRefOf (\_SB.PCI0.LPC.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.H_EC)
|
||||
{
|
||||
@@ -307,7 +338,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -316,7 +347,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.ECDV)) && CondRefOf (\_SB.PCI0.LPC.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC.ECDV._CRS) && CondRefOf (\_SB.PCI0.LPC.ECDV._GPE) && !CondRefOf (\_SB.PCI0.LPC.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC.ECDV._CRS)) && CondRefOf (\_SB.PCI0.LPC.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.ECDV)
|
||||
{
|
||||
@@ -324,7 +360,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -333,7 +369,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC.PGEC)) && CondRefOf (\_SB.PCI0.LPC.PGEC._HID) && CondRefOf (\_SB.PCI0.LPC.PGEC._CRS) && CondRefOf (\_SB.PCI0.LPC.PGEC._GPE) && !CondRefOf (\_SB.PCI0.LPC.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.LPC.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.LPC.PGEC._CRS)) && CondRefOf (\_SB.PCI0.LPC.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.LPC.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.PGEC)
|
||||
{
|
||||
@@ -341,7 +382,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -350,10 +391,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// X79 and X99 trash
|
||||
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.EC)) && CondRefOf (\_SB.PCI0.LPC0.EC._HID) && CondRefOf (\_SB.PCI0.LPC0.EC._CRS) && CondRefOf (\_SB.PCI0.LPC0.EC._GPE) && !CondRefOf (\_SB.PCI0.LPC0.EC._STA))
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.EC._HID) && CondRefOf (\_SB.PCI0.LPC0.EC._CRS)) && CondRefOf (\_SB.PCI0.LPC0.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC)
|
||||
{
|
||||
@@ -361,7 +406,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -370,7 +415,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.EC0)) && CondRefOf (\_SB.PCI0.LPC0.EC0._HID) && CondRefOf (\_SB.PCI0.LPC0.EC0._CRS) && CondRefOf (\_SB.PCI0.LPC0.EC0._GPE) && !CondRefOf (\_SB.PCI0.LPC0.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.EC0._HID) && CondRefOf (\_SB.PCI0.LPC0.EC0._CRS)) && CondRefOf (\_SB.PCI0.LPC0.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC0)
|
||||
{
|
||||
@@ -378,7 +428,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -387,7 +437,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.H_EC)) && CondRefOf (\_SB.PCI0.LPC0.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC0.H_EC._CRS) && CondRefOf (\_SB.PCI0.LPC0.H_EC._GPE) && !CondRefOf (\_SB.PCI0.LPC0.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.H_EC._HID) && CondRefOf (\_SB.PCI0.LPC0.H_EC._CRS)) && CondRefOf (\_SB.PCI0.LPC0.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.H_EC)
|
||||
{
|
||||
@@ -395,7 +450,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -404,7 +459,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.ECDV)) && CondRefOf (\_SB.PCI0.LPC0.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC0.ECDV._CRS) && CondRefOf (\_SB.PCI0.LPC0.ECDV._GPE) && !CondRefOf (\_SB.PCI0.LPC0.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PCI0.LPC0.ECDV._HID) && CondRefOf (\_SB.PCI0.LPC0.ECDV._CRS)) && CondRefOf (\_SB.PCI0.LPC0.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PCI0.LPC0.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.ECDV)
|
||||
{
|
||||
@@ -412,7 +472,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -421,7 +481,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PCI0.LPC0.PGEC)) && CondRefOf (\_SB.PCI0.LPC0.PGEC._HID) && CondRefOf (\_SB.PCI0.LPC0.PGEC._CRS) && CondRefOf (\_SB.PCI0.LPC0.PGEC._GPE) && !CondRefOf (\_SB.PCI0.LPC0.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PCI0.LPC0.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PCI0.LPC0.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PCI0.LPC0.PGEC._CRS)) && CondRefOf (\_SB.PCI0.LPC0.PGEC._GPE)) && !CondRefOf (\_SB.PCI0.LPC0.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.PGEC)
|
||||
{
|
||||
@@ -429,7 +494,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -438,10 +503,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Cursed X299
|
||||
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.EC)) && CondRefOf (\_SB.PC00.LPC0.EC._HID) && CondRefOf (\_SB.PC00.LPC0.EC._CRS) && CondRefOf (\_SB.PC00.LPC0.EC._GPE) && !CondRefOf (\_SB.PC00.LPC0.EC._STA))
|
||||
If ((ObjectType (\_SB.PC00.LPC0.EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.EC._HID) && CondRefOf (\_SB.PC00.LPC0.EC._CRS)) && CondRefOf (\_SB.PC00.LPC0.EC._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC)
|
||||
{
|
||||
@@ -449,7 +518,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -458,7 +527,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.EC0)) && CondRefOf (\_SB.PC00.LPC0.EC0._HID) && CondRefOf (\_SB.PC00.LPC0.EC0._CRS) && CondRefOf (\_SB.PC00.LPC0.EC0._GPE) && !CondRefOf (\_SB.PC00.LPC0.EC0._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.EC0) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.EC0._HID) && CondRefOf (\_SB.PC00.LPC0.EC0._CRS)) && CondRefOf (\_SB.PC00.LPC0.EC0._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.EC0._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC0)
|
||||
{
|
||||
@@ -466,7 +540,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -475,7 +549,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.H_EC)) && CondRefOf (\_SB.PC00.LPC0.H_EC._HID) && CondRefOf (\_SB.PC00.LPC0.H_EC._CRS) && CondRefOf (\_SB.PC00.LPC0.H_EC._GPE) && !CondRefOf (\_SB.PC00.LPC0.H_EC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.H_EC) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.H_EC._HID) && CondRefOf (\_SB.PC00.LPC0.H_EC._CRS)) && CondRefOf (\_SB.PC00.LPC0.H_EC._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.H_EC._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.H_EC)
|
||||
{
|
||||
@@ -483,7 +562,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -492,7 +571,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.ECDV)) && CondRefOf (\_SB.PC00.LPC0.ECDV._HID) && CondRefOf (\_SB.PC00.LPC0.ECDV._CRS) && CondRefOf (\_SB.PC00.LPC0.ECDV._GPE) && !CondRefOf (\_SB.PC00.LPC0.ECDV._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.ECDV) == 0x06))
|
||||
{
|
||||
If ((((CondRefOf (\_SB.PC00.LPC0.ECDV._HID) && CondRefOf (\_SB.PC00.LPC0.ECDV._CRS)) && CondRefOf (\_SB.PC00.LPC0.ECDV._GPE
|
||||
)) && !CondRefOf (\_SB.PC00.LPC0.ECDV._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.ECDV)
|
||||
{
|
||||
@@ -500,7 +584,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -509,7 +593,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
If ((CondRefOf (\_SB.PC00.LPC0.PGEC)) && CondRefOf (\_SB.PC00.LPC0.PGEC._HID) && CondRefOf (\_SB.PC00.LPC0.PGEC._CRS) && CondRefOf (\_SB.PC00.LPC0.PGEC._GPE) && !CondRefOf (\_SB.PC00.LPC0.PGEC._STA))
|
||||
}
|
||||
|
||||
If ((ObjectType (\_SB.PC00.LPC0.PGEC) == 0x06))
|
||||
{
|
||||
If (((((CondRefOf (\_SB.PC00.LPC0.PGEC._HID)) && CondRefOf (
|
||||
\_SB.PC00.LPC0.PGEC._CRS)) && CondRefOf (\_SB.PC00.LPC0.PGEC._GPE)) && !CondRefOf (\_SB.PC00.LPC0.PGEC._STA)))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.PGEC)
|
||||
{
|
||||
@@ -517,7 +606,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0)
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
@@ -526,6 +615,7 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// And finally, create our fake EC and USBX
|
||||
Scope (\_SB)
|
||||
|
||||
Reference in New Issue
Block a user