Add complete guide and all config variants
This commit is contained in:
45
hackintosh-guide/docs/AcpiSamples/Source/SSDT-BRG0.dsl
Executable file
45
hackintosh-guide/docs/AcpiSamples/Source/SSDT-BRG0.dsl
Executable file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* This table provides an example of creating a missing ACPI device
|
||||
* to ensure early DeviceProperty application. In this example
|
||||
* a GPU device is created for a platform having an extra PCI
|
||||
* bridge in the path - PCI0.PEG0.PEGP.BRG0.GFX0:
|
||||
* PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)
|
||||
* Such tables are particularly relevant for macOS 11.0 and newer.
|
||||
*/
|
||||
|
||||
DefinitionBlock ("", "SSDT", 2, "ACDT", "BRG0", 0x00000000)
|
||||
{
|
||||
External (_SB_.PCI0.PEG0.PEGP, DeviceObj)
|
||||
|
||||
Scope (\_SB.PCI0.PEG0.PEGP)
|
||||
{
|
||||
/*
|
||||
* This is a PCI bridge device present on PEGP.
|
||||
* Normally seen as pci-bridge in I/O Registry.
|
||||
*/
|
||||
Device (BRG0)
|
||||
{
|
||||
Name (_ADR, Zero)
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* This is an actual GPU device present on the bridge.
|
||||
* Normally seen as display in I/O Registry.
|
||||
*/
|
||||
Device (GFX0)
|
||||
{
|
||||
Name (_ADR, Zero) // _ADR: Address
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user