Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This file (after compiling with MaciASL) gets put into /EFI/Clover/ACPI/patched
- DefinitionBlock ("", "SSDT", 2, "hack", "GFX", 0x00000000)
- {
- External (_SB_.PCI0.PEGP, DeviceObj) // <--- This is the device that had the correct address for my passthrough GPU (0x001C0000); it just isn't correctly identified by macOS (needs GFX0 and DTGP). It may vary depending on your system configuration
- External (DTGP, MethodObj) // <--- This refers to a DTGP method added by Clover (Clover Configurator makes it easy to enable the option)
- Scope (_SB.PCI0.PEGP)
- {
- Name (_PRW, Package (0x02)
- {
- 0x09,
- 0x05
- })
- Device (GFX0)
- {
- Name (_ADR, Zero)
- Method (_DSM, 4, NotSerialized)
- {
- Store (Package (0x0E)
- {
- "@0,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@1,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@2,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@3,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@4,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "@5,connector-type",
- Buffer (0x04)
- {
- 0x00, 0x08, 0x00, 0x00
- },
- "hda-gfx",
- Buffer (0x0A)
- {
- "onboard-1"
- }
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement