mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2025-12-31 20:55:58 -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,89 +60,111 @@ 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -148,204 +172,222 @@ 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
// 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,175 +395,223 @@ 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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,89 +60,111 @@ 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.SBRG.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.SBRG.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -148,204 +172,222 @@ 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPCB.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPCB.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
// 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,175 +395,223 @@ 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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PCI0.LPC0.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PCI0.LPC0.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.EC0)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.EC0)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.H_EC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.H_EC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.ECDV)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.ECDV)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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))
|
||||
{
|
||||
Scope (\_SB.PC00.LPC0.PGEC)
|
||||
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)))
|
||||
{
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
Scope (\_SB.PC00.LPC0.PGEC)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
Return (0)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user