Deploy dortania/Getting-Started-With-ACPI to github.com/dortania/Getting-Started-With-ACPI.git:gh-pages

This commit is contained in:
Travis Build Bot (from Travis CI)
2020-05-06 04:53:42 +00:00
parent b036714e88
commit 0d4810fc8a
24 changed files with 151 additions and 40 deletions

View File

@@ -0,0 +1,62 @@
/* Purpose of this SSDT is to:
*
* - Find references of devices named EC__
* - If none are found, only then create a new EC
*
* Reason for this is to avoid having multiple EC__ in devices
* like Lenovo who already use the name EC__
*/
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtEC", 0x00001000)
{
External (_SB_.PCI0.LPC_.EC__, DeviceObj)
External (_SB_.PCI0.LPCB.EC__, DeviceObj)
If ((!CondRefOf (\_SB.PCI0.LPCB.EC) && !CondRefOf (\_SB.PCI0.LPC.EC)))
{
Scope (\_SB)
{
Device (EC)
{
Name (_HID, "ACID0001") // _HID: Hardware ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}
}
}
Device (USBX)
{
Name (_ADR, Zero) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If ((Arg2 == Zero))
{
Return (Buffer (One)
{
0x03 // .
})
}
Return (Package (0x08)
{
"kUSBSleepPowerSupply",
0x13EC,
"kUSBSleepPortCurrentLimit",
0x0834,
"kUSBWakePowerSupply",
0x13EC,
"kUSBWakePortCurrentLimit",
0x0834
})
}
}
}