1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 01:23:14 -06:00
x1c6-hackintosh/patches/SSDT-Darwin.dsl
2020-11-03 11:58:35 -06:00

51 lines
No EOL
1 KiB
Text

/*
* Detect Darwin (OSX) to enable other patches
* Credits @osy86
*/
DefinitionBlock ("", "SSDT", 2, "tyler", "_Darwin", 0)
{
Method (DTGP, 5, NotSerialized)
{
If ((Arg0 == ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b")))
{
If ((Arg1 == One))
{
If ((Arg2 == Zero))
{
Arg4 = Buffer (One)
{
0x03
}
Return (One)
}
If ((Arg2 == One))
{
Return (One)
}
}
}
Arg4 = Buffer (One)
{
0x00
}
Return (Zero)
}
Scope (\)
{
Method (OSDW, 0, NotSerialized)
{
If (CondRefOf (\_OSI, Local0))
{
If (_OSI ("Darwin"))
{
Return (One) // is Darwin
}
}
Return (Zero)
}
}
}