Skip to content

Commit 6458fd0

Browse files
committed
Fix nested _DSMs, remove DTGP, add DSL source
1 parent c8d59b7 commit 6458fd0

File tree

4 files changed

+513
-0
lines changed

4 files changed

+513
-0
lines changed

OpenCore-1.0.1/EFI/OC/ACPI/SSDT-IMAC.aml

100755100644
-44 Bytes
Binary file not shown.
-4 Bytes
Binary file not shown.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
DefinitionBlock ("", "SSDT", 1, "vulgo", "iMacSsdt", 0x00000001)
2+
{
3+
External (_SB_.PCI0, DeviceObj)
4+
External (_SB_.PCI0.PEG0, DeviceObj)
5+
External (_SB_.PCI0.SBUS, DeviceObj)
6+
External (_SB_.PR00, DeviceObj)
7+
External (SBRG, IntObj)
8+
External (STAS, IntObj)
9+
10+
Name (SLTP, Zero)
11+
12+
13+
Method (_SB.PR00._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
14+
{
15+
if (!_OSI("Darwin"))
16+
{
17+
Return (Buffer (){ Zero })
18+
}
19+
20+
if (Arg2 == Zero)
21+
{
22+
Return (Buffer (){ 0x3 })
23+
}
24+
25+
Return (Package (0x02)
26+
{
27+
"plugin-type",
28+
One
29+
})
30+
}
31+
32+
Method (_TTS, 1, NotSerialized) // _TTS: Transition To State
33+
{
34+
SLTP = Arg0
35+
}
36+
37+
Method (_SB._INI, 0, NotSerialized) // _INI: Initialize
38+
{
39+
If (_OSI ("Darwin"))
40+
{
41+
STAS = One
42+
SBRG = Zero
43+
}
44+
}
45+
46+
Device (_SB.PCI0.MCHC)
47+
{
48+
Name (_ADR, Zero) // _ADR: Address
49+
Name (_STA, 0x0F) // _STA: Status
50+
}
51+
52+
Device (_SB.PCI0.PEG0.HDAU)
53+
{
54+
Name (_ADR, One) // _ADR: Address
55+
}
56+
57+
Device (_SB.PCI0.SBUS.BUS0)
58+
{
59+
Name (_CID, "smbus") // _CID: Compatible ID
60+
Name (_ADR, Zero) // _ADR: Address
61+
Name (_STA, 0x0F) // _STA: Status
62+
}
63+
64+
Device (_SB.USBX)
65+
{
66+
Name (_ADR, Zero) // _ADR: Address
67+
}
68+
69+
Method (_SB.USBX._DSM, 4, NotSerialized) // _DSM: Device-Specific Method
70+
{
71+
if (!_OSI("Darwin"))
72+
{
73+
Return (Buffer (){ Zero })
74+
}
75+
76+
if (Arg2 == Zero)
77+
{
78+
Return (Buffer (){ 0x3 })
79+
}
80+
81+
Return(Package (0x08)
82+
{
83+
"kUSBSleepPortCurrentLimit",
84+
0x0834,
85+
"kUSBSleepPowerSupply",
86+
0x13EC,
87+
"kUSBWakePortCurrentLimit",
88+
0x0834,
89+
"kUSBWakePowerSupply",
90+
0x13EC
91+
})
92+
}
93+
}
94+

0 commit comments

Comments
 (0)