mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
Add new pre-built EC SSDTs
This commit is contained in:
BIN
extra-files/SSDT-EC-LAPTOP.aml
Normal file
BIN
extra-files/SSDT-EC-LAPTOP.aml
Normal file
Binary file not shown.
36
extra-files/SSDT-EC-LAPTOP.dsl
Normal file
36
extra-files/SSDT-EC-LAPTOP.dsl
Normal file
@@ -0,0 +1,36 @@
|
||||
/* 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
extra-files/SSDT-EC-USBX-LAPTOP.aml
Normal file
BIN
extra-files/SSDT-EC-USBX-LAPTOP.aml
Normal file
Binary file not shown.
62
extra-files/SSDT-EC-USBX-LAPTOP.dsl
Normal file
62
extra-files/SSDT-EC-USBX-LAPTOP.dsl
Normal 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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user