mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "XOSI", 0x00001000)
|
|
{
|
|
Method (XOSI, 1, NotSerialized)
|
|
{
|
|
// Based off of https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-osi
|
|
// Add OSes from the above list as needed, most only check up to Windows 2015
|
|
// but check what your DSDT looks for
|
|
Local0 = Package ()
|
|
{
|
|
"Windows 2001",
|
|
"Windows 2001.1",
|
|
"Windows 2001 SP1",
|
|
"Windows 2001 SP2",
|
|
"Windows 2001 SP3",
|
|
"Windows 2006",
|
|
"Windows 2006 SP1",
|
|
"Windows 2009",
|
|
"Windows 2012",
|
|
"Windows 2013",
|
|
"Windows 2015",
|
|
"Windows 2016",
|
|
"Windows 2017",
|
|
"Microsoft Windows NT",
|
|
"Microsoft Windows",
|
|
"Microsoft WindowsME: Millennium Edition"
|
|
}
|
|
If (_OSI ("Darwin"))
|
|
{
|
|
Return ((Ones != Match (Local0, MEQ, Arg0, MTR, Zero, Zero)))
|
|
}
|
|
Else
|
|
{
|
|
Return (_OSI (Arg0))
|
|
}
|
|
}
|
|
}
|
|
|