mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-03 04:19:48 -08:00
Add missing STA method
This commit is contained in:
Binary file not shown.
@@ -14,44 +14,56 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
|
|||||||
If (CondRefOf (\_SB.PCI0.XHC_.RHUB))
|
If (CondRefOf (\_SB.PCI0.XHC_.RHUB))
|
||||||
{
|
{
|
||||||
Scope (_SB.PCI0.XHC_.RHUB)
|
Scope (_SB.PCI0.XHC_.RHUB)
|
||||||
|
{
|
||||||
|
|
||||||
|
Method (_STA, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
If (_OSI ("Darwin"))
|
If (_OSI ("Darwin"))
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (Zero) // This disables the device only in macOS
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
If (CondRefOf (\_SB.PCI0.XHCI.RHUB))
|
If (CondRefOf (\_SB.PCI0.XHCI.RHUB))
|
||||||
{
|
{
|
||||||
Scope (_SB.PCI0.XHCI.RHUB)
|
Scope (_SB.PCI0.XHCI.RHUB)
|
||||||
|
{
|
||||||
|
|
||||||
|
Method (_STA, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
If (_OSI ("Darwin"))
|
If (_OSI ("Darwin"))
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (Zero) // This disables the device only in macOS
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
If (CondRefOf (\_SB.PCI0.XHC1.RHUB))
|
If (CondRefOf (\_SB.PCI0.XHC1.RHUB))
|
||||||
{
|
{
|
||||||
Scope (_SB.PCI0.XHC1.RHUB)
|
Scope (_SB.PCI0.XHC1.RHUB)
|
||||||
|
{
|
||||||
|
|
||||||
|
Method (_STA, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
If (_OSI ("Darwin"))
|
If (_OSI ("Darwin"))
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (Zero) // This disables the device only in macOS
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user