Add missing STA method

This commit is contained in:
Mykola Grymalyuk
2020-07-09 13:36:24 -06:00
parent 87c29dbc71
commit 5d4ad61092
2 changed files with 33 additions and 21 deletions

Binary file not shown.

View File

@@ -15,13 +15,17 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
{ {
Scope (_SB.PCI0.XHC_.RHUB) Scope (_SB.PCI0.XHC_.RHUB)
{ {
If (_OSI ("Darwin"))
{ Method (_STA, 0, NotSerialized)
Return (Zero) {
} If (_OSI ("Darwin"))
Else {
{ Return (Zero) // This disables the device only in macOS
} }
Else
{
}
}
} }
} }
@@ -29,13 +33,17 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
{ {
Scope (_SB.PCI0.XHCI.RHUB) Scope (_SB.PCI0.XHCI.RHUB)
{ {
If (_OSI ("Darwin"))
{ Method (_STA, 0, NotSerialized)
Return (Zero) {
} If (_OSI ("Darwin"))
Else {
{ Return (Zero) // This disables the device only in macOS
} }
Else
{
}
}
} }
} }
@@ -43,13 +51,17 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
{ {
Scope (_SB.PCI0.XHC1.RHUB) Scope (_SB.PCI0.XHC1.RHUB)
{ {
If (_OSI ("Darwin"))
{ Method (_STA, 0, NotSerialized)
Return (Zero) {
} If (_OSI ("Darwin"))
Else {
{ Return (Zero) // This disables the device only in macOS
} }
Else
{
}
}
} }
} }