Misc fixes

This commit is contained in:
Mykola Grymalyuk
2020-09-01 11:27:37 -06:00
parent 7e198202ea
commit 0b98e8232e
21 changed files with 197 additions and 35 deletions

View File

@@ -0,0 +1,19 @@
/*
* Only necessary when no IMEI device (with any name) is present in the DSDT and a custom device-id
* is needed to be set via DeviceProperties (some Sandy Bridge or Ivy Bridge configurations).
*
* Source: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/SSDT-IMEI.dsl
*/
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "IMEI", 0x00000000)
{
External (_SB_.PCI0, DeviceObj)
Scope (_SB.PCI0)
{
Device (IMEI)
{
Name (_ADR, 0x00160000) // _ADR: Address
}
}
}

View File

@@ -0,0 +1,25 @@
/* Purpose of this SSDT is to:
*
* - Find references of devices named IMEI, HECI, MEI
* - If none are found, only then create a new IMEI device
*
*/
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtIMEI", 0x00000000)
{
External (_SB_.PCI0, DeviceObj)
External (_SB_.PCI0.IMEI, DeviceObj)
External (_SB_.PCI0.HECI, DeviceObj)
External (_SB_.PCI0.MEI, DeviceObj)
If ((!CondRefOf (\_SB.PCI0.IMEI) && !CondRefOf (\_SB.PCI0.HECI) && !CondRefOf (\_SB.PCI0.MEI)))
{
Scope (_SB.PCI0)
{
Device (IMEI)
{
Name (_ADR, 0x00160000) // _ADR: Address
}
}
}
}