mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2025-12-31 20:55:58 -08:00
Add new SSDT-PMC
This commit is contained in:
BIN
extra-files/SSDT-PMC.aml
Normal file
BIN
extra-files/SSDT-PMC.aml
Normal file
Binary file not shown.
100
extra-files/SSDT-PMC.dsl
Normal file
100
extra-files/SSDT-PMC.dsl
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Goal of this SSDT is to check for all LPC edge cases, as laptops are known for naming variation
|
||||
*/
|
||||
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "PMCR", 0x00001000)
|
||||
{
|
||||
External (_SB_.PCI0.LPCB, DeviceObj)
|
||||
External (_SB_.PCI0.LPC0, DeviceObj)
|
||||
External (_SB_.PCI0.LPC, DeviceObj)
|
||||
|
||||
|
||||
If (CondRefOf (\_SB.PCI0.LPCB))
|
||||
{
|
||||
Scope (_SB.PCI0.LPCB)
|
||||
{
|
||||
Device (PMCR)
|
||||
{
|
||||
Name (_HID, EisaId ("APP9876")) // _HID: Hardware ID
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0B)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
Memory32Fixed (ReadWrite,
|
||||
0xFE000000, // Address Base
|
||||
0x00010000, // Address Length
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
If (CondRefOf (\_SB.PCI0.LPC0))
|
||||
{
|
||||
Scope (_SB.PCI0.LPC0)
|
||||
{
|
||||
Device (PMCR)
|
||||
{
|
||||
Name (_HID, EisaId ("APP9876")) // _HID: Hardware ID
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0B)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
Memory32Fixed (ReadWrite,
|
||||
0xFE000000, // Address Base
|
||||
0x00010000, // Address Length
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
If (CondRefOf (\_SB.PCI0.LPC))
|
||||
{
|
||||
Scope (_SB.PCI0.LPC)
|
||||
{
|
||||
Device (PMCR)
|
||||
{
|
||||
Name (_HID, EisaId ("APP9876")) // _HID: Hardware ID
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0B)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
Memory32Fixed (ReadWrite,
|
||||
0xFE000000, // Address Base
|
||||
0x00010000, // Address Length
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user