Created
April 20, 2023 10:56
-
-
Save perez987/ac7e5611cd1d1480b4bcea9020315d7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based off of WhateverGreen's sample.dsl | |
// https://github.com/acidanthera/WhateverGreen/blob/master/Manual/Sample.dsl | |
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "AMDGPU", 0x00001000) | |
{ | |
External (_SB_.PC00, DeviceObj) // <- root goes here | |
External (\_SB.PC00.PEG1.PEGP, DeviceObj) // <- path goes here | |
Scope (\_SB.PC00.PEG1.PEGP) // path also goes here | |
{ | |
if (_OSI ("Darwin")) | |
{ | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
Local0 = Package (0x04) | |
{ | |
// Where we shove our FakeID | |
"device-id", | |
Buffer (0x04) | |
{ | |
0xBF, 0x73, 0x00, 0x00 // <- The fake device id | |
}, | |
// Changing the name of the GPU reported, mainly cosmetic | |
"model", | |
Buffer () | |
{ | |
"AMD Radeon RX 6950 XT" // <- Name displayed in system info | |
} | |
} | |
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) | |
Return (Local0) | |
} | |
} | |
} | |
Scope (\_SB.PCI0) | |
{ | |
Method (DTGP, 5, NotSerialized) | |
{ | |
If (LEqual (Arg0, ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b"))) | |
{ | |
If (LEqual (Arg1, One)) | |
{ | |
If (LEqual (Arg2, Zero)) | |
{ | |
Store (Buffer (One) | |
{ | |
0x03 | |
}, Arg4) | |
Return (One) | |
} | |
If (LEqual (Arg2, One)) | |
{ | |
Return (One) | |
} | |
} | |
} | |
Store (Buffer (One) | |
{ | |
0x00 | |
}, Arg4) | |
Return (Zero) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment