-
Notifications
You must be signed in to change notification settings - Fork 0
/
SSDT-MEM2.dsl
34 lines (31 loc) · 1.1 KB
/
SSDT-MEM2.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// NOT Necessary hotpatch
// Maintained by: stevezhengshiqi
// Reference: https://github.com/syscl/XPS9350-macOS/blob/master/DSDT/patches/syscl_iGPU_MEM2.txt by syscl
// Add missing MEM2 device as macOS expects.
DefinitionBlock ("", "SSDT", 2, "hack", "_MEM2", 0x00000000)
{
External (_SB_.PCI0.GFX0, DeviceObj)
Scope (_SB.PCI0.GFX0)
{
Device (^^MEM2)
{
Name (_HID, EisaId ("PNP0C01") /* System Board */) // _HID: Hardware ID
Name (_UID, 0x02) // _UID: Unique ID
Name (CRS, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
0x20000000, // Address Base
0x00200000, // Address Length
)
Memory32Fixed (ReadWrite,
0x40000000, // Address Base
0x00200000, // Address Length
)
})
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Return (CRS) /* \_SB_.MEM2.CRS_ */
}
}
}
}