1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00
x1c6-hackintosh/patches/SSDT-DMAC.dsl

39 lines
1.3 KiB
Text
Raw Normal View History

2020-11-14 10:19:55 -06:00
// Fix up memory controller
2020-11-03 11:58:35 -06:00
DefinitionBlock ("", "SSDT", 2, "tyler", "_DMAC", 0x00001000)
{
2020-11-03 11:58:35 -06:00
External (OSDW, MethodObj) // 0 Arguments
External (_SB.PCI0.LPCB, DeviceObj)
// https://github.com/daliansky/OC-little/blob/master/06-%E6%B7%BB%E5%8A%A0%E7%BC%BA%E5%A4%B1%E7%9A%84%E9%83%A8%E4%BB%B6/SSDT-DMAC.dsl
Scope (_SB.PCI0.LPCB)
{
2020-11-03 11:58:35 -06:00
// https://github.com/khronokernel/DarwinDumped/blob/b6d91cf4a5bdf1d4860add87cf6464839b92d5bb/MacBookPro/MacBookPro14%2C1/ACPI%20Tables/DSL/DSDT.dsl#L5044
// https://github.com/coreboot/coreboot/blob/master/src/soc/intel/common/block/acpi/acpi/lpc.asl
/* DMA Controller */
Device (DMAC)
{
2020-11-03 11:58:35 -06:00
Name (_HID, EISAID("PNP0200"))
Name (_CRS, ResourceTemplate()
{
2020-11-03 11:58:35 -06:00
IO (Decode16, 0x00, 0x00, 0x01, 0x20)
IO (Decode16, 0x81, 0x81, 0x01, 0x11)
IO (Decode16, 0x93, 0x93, 0x01, 0x0d)
IO (Decode16, 0xc0, 0xc0, 0x01, 0x20)
DMA (Compatibility, NotBusMaster, Transfer8_16) { 4 }
})
2020-11-03 11:58:35 -06:00
Method (_STA, 0, NotSerialized)
{
2020-11-03 11:58:35 -06:00
If (OSDW ())
{
Return (0x0F)
}
2020-11-03 11:58:35 -06:00
Return (Zero)
}
}
}
}