Skip to content

Commit

Permalink
Merge pull request #1081 from osy/fix-dmac
Browse files Browse the repository at this point in the history
Add DMAC device for AppleVTD support
  • Loading branch information
osy authored Apr 17, 2023
2 parents 2bccb75 + 7b1b152 commit 147b2c7
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 6 deletions.
44 changes: 44 additions & 0 deletions ACPI/SSDT-VTd.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* AppleVTD support
*/
DefinitionBlock ("", "SSDT", 2, "OSY86 ", "AppleVTD", 0x00001000)
{
External (\_SB_.PCI0.LPCB, DeviceObj) // (from opcode)

Scope (\_SB.PCI0.LPCB)
{
Device (DMAC)
{
Name (_HID, EisaId ("PNP0200")) // _HID: Hardware ID
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
{
IO (Decode16,
0x0000, // Range Minimum
0x0000, // Range Maximum
0x01, // Alignment
0x20, // Length
)
IO (Decode16,
0x0081, // Range Minimum
0x0081, // Range Maximum
0x01, // Alignment
0x11, // Length
)
IO (Decode16,
0x0093, // Range Minimum
0x0093, // Range Maximum
0x01, // Alignment
0x0D, // Length
)
IO (Decode16,
0x00C0, // Range Minimum
0x00C0, // Range Maximum
0x01, // Alignment
0x20, // Length
)
DMA (Compatibility, NotBusMaster, Transfer8_16, )
{4}
})
}
}
}
4 changes: 2 additions & 2 deletions Installer/data/OpenCore/source.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://github.com/dortania/build-repo/releases/download/OpenCorePkg-c72c258/OpenCore-0.9.2-RELEASE.zip
09b1e89797c0344a453706973faf5d05913bd4aea9c83392a0df2334cd9ad7b9
https://github.com/acidanthera/OpenCorePkg/releases/download/0.9.1/OpenCore-0.9.1-RELEASE.zip
26c8d1e960e7fa4d6d61392770aff9d5abfafd68031660c1f20a991a6d746e36
4 changes: 0 additions & 4 deletions OC/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,6 @@
<true/>
<key>AppleXcpmCfgLock</key>
<true/>
<key>DisableIoMapper</key>
<true/>
<key>DisableIoMapperMapping</key>
<true/>
<key>DisableLinkeditJettison</key>
<true/>
<key>PanicNoKextDump</key>
Expand Down

0 comments on commit 147b2c7

Please sign in to comment.