Skip to content

Commit 450df81

Browse files
authored
Functional SSDT and Config.plist (#20)
2 parents 4f6d837 + f4c3286 commit 450df81

File tree

3,033 files changed

+272644
-512900
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,033 files changed

+272644
-512900
lines changed

HD630.plist

Lines changed: 529 additions & 0 deletions
Large diffs are not rendered by default.

v14/ACPIs/GE62 QD/SSDT-DDGPU.dsl

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Intel ACPI Component Architecture
3+
* AML/ASL+ Disassembler version 20180427 (64-bit version)(RM)
4+
* Copyright (c) 2000 - 2018 Intel Corporation
5+
*
6+
* Disassembling to non-symbolic legacy ASL operators
7+
*
8+
* Disassembly of SSDT-DDGPU.aml, Mon Apr 8 22:10:13 2019
9+
*
10+
* Original Table Header:
11+
* Signature "SSDT"
12+
* Length 0x000000E0 (224)
13+
* Revision 0x02
14+
* Checksum 0xB2
15+
* OEM ID "hack"
16+
* OEM Table ID "_DDGPU"
17+
* OEM Revision 0x00000000 (0)
18+
* Compiler ID "INTL"
19+
* Compiler Version 0x20180427 (538444839)
20+
*/
21+
DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
22+
{
23+
External (_SB_.PCI0.PEG0.PEGP._OFF, MethodObj) // 0 Arguments (from opcode)
24+
External (_SB_.PCI0.PEGP.DGFX._OFF, MethodObj) // 0 Arguments (from opcode)
25+
26+
Device (RMD1)
27+
{
28+
Name (_HID, "RMD10000") // _HID: Hardware ID
29+
Method (_INI, 0, NotSerialized) // _INI: Initialize
30+
{
31+
If (CondRefOf (\_SB.PCI0.PEG0.PEGP._OFF))
32+
{
33+
\_SB.PCI0.PEG0.PEGP._OFF ()
34+
}
35+
36+
If (CondRefOf (\_SB.PCI0.PEGP.DGFX._OFF))
37+
{
38+
\_SB.PCI0.PEGP.DGFX._OFF ()
39+
}
40+
}
41+
}
42+
}
43+

v14/ACPIs/GE62 QD/SSDT-IMEI.dsl

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
* Intel ACPI Component Architecture
3+
* AML/ASL+ Disassembler version 20180427 (64-bit version)(RM)
4+
* Copyright (c) 2000 - 2018 Intel Corporation
5+
*
6+
* Disassembling to non-symbolic legacy ASL operators
7+
*
8+
* Disassembly of SSDT-IMEI.aml, Mon Apr 8 22:10:13 2019
9+
*
10+
* Original Table Header:
11+
* Signature "SSDT"
12+
* Length 0x00000138 (312)
13+
* Revision 0x02
14+
* Checksum 0x6E
15+
* OEM ID "hack"
16+
* OEM Table ID "_IMEI"
17+
* OEM Revision 0x00000000 (0)
18+
* Compiler ID "INTL"
19+
* Compiler Version 0x20180427 (538444839)
20+
*/
21+
DefinitionBlock ("", "SSDT", 2, "hack", "_IMEI", 0x00000000)
22+
{
23+
External (_SB_.PCI0.IGPU, DeviceObj) // (from opcode)
24+
25+
Scope (_SB.PCI0.IGPU)
26+
{
27+
OperationRegion (RMP2, PCI_Config, 0x02, 0x02)
28+
}
29+
30+
Device (_SB.PCI0.IMEI)
31+
{
32+
Name (_ADR, 0x00160000) // _ADR: Address
33+
}
34+
35+
Scope (_SB.PCI0.IMEI)
36+
{
37+
OperationRegion (RMP1, PCI_Config, 0x02, 0x02)
38+
Field (RMP1, AnyAcc, NoLock, Preserve)
39+
{
40+
MDID, 16
41+
}
42+
43+
Field (^IGPU.RMP2, AnyAcc, NoLock, Preserve)
44+
{
45+
GDID, 16
46+
}
47+
48+
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
49+
{
50+
If (LNot (Arg2))
51+
{
52+
Return (Buffer (One)
53+
{
54+
0x03
55+
})
56+
}
57+
58+
Store (^GDID, Local1)
59+
Store (^MDID, Local2)
60+
If (LAnd (LEqual (0x1C3A, Local2), LNotEqual (Ones, Match (Package (0x02)
61+
{
62+
0x0166,
63+
0x0162
64+
}, MEQ, Local1, MTR, Zero, Zero))))
65+
{
66+
Return (Package (0x02)
67+
{
68+
"device-id",
69+
Buffer (0x04)
70+
{
71+
0x3A, 0x1E, 0x00, 0x00
72+
}
73+
})
74+
}
75+
ElseIf (LAnd (LEqual (0x1E3A, Local2), LNotEqual (Ones, Match (Package (0x04)
76+
{
77+
0x0116,
78+
0x0126,
79+
0x0112,
80+
0x0122
81+
}, MEQ, Local1, MTR, Zero, Zero))))
82+
{
83+
Return (Package (0x02)
84+
{
85+
"device-id",
86+
Buffer (0x04)
87+
{
88+
0x3A, 0x1C, 0x00, 0x00
89+
}
90+
})
91+
}
92+
93+
Return (Package (0x00){})
94+
}
95+
}
96+
}
97+

v14/ACPIs/GE62 QD/SSDT-PNLF.dsl

Lines changed: 256 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,256 @@
1+
/*
2+
* Intel ACPI Component Architecture
3+
* AML/ASL+ Disassembler version 20180427 (64-bit version)(RM)
4+
* Copyright (c) 2000 - 2018 Intel Corporation
5+
*
6+
* Disassembling to non-symbolic legacy ASL operators
7+
*
8+
* Disassembly of SSDT-PNLF.aml, Mon Apr 8 22:10:13 2019
9+
*
10+
* Original Table Header:
11+
* Signature "SSDT"
12+
* Length 0x000003D2 (978)
13+
* Revision 0x02
14+
* Checksum 0x4D
15+
* OEM ID "hack"
16+
* OEM Table ID "_PNLF"
17+
* OEM Revision 0x00000000 (0)
18+
* Compiler ID "INTL"
19+
* Compiler Version 0x20180427 (538444839)
20+
*/
21+
DefinitionBlock ("", "SSDT", 2, "hack", "_PNLF", 0x00000000)
22+
{
23+
External (_SB_.PCI0.IGPU, DeviceObj) // (from opcode)
24+
External (RMCF.BKLT, IntObj) // (from opcode)
25+
External (RMCF.FBTP, IntObj) // (from opcode)
26+
External (RMCF.GRAN, IntObj) // (from opcode)
27+
External (RMCF.LEVW, IntObj) // (from opcode)
28+
External (RMCF.LMAX, IntObj) // (from opcode)
29+
30+
Scope (_SB.PCI0.IGPU)
31+
{
32+
OperationRegion (RMP3, PCI_Config, Zero, 0x14)
33+
}
34+
35+
Device (_SB.PCI0.IGPU.PNLF)
36+
{
37+
Name (_ADR, Zero) // _ADR: Address
38+
Name (_HID, EisaId ("APP0002")) // _HID: Hardware ID
39+
Name (_CID, "backlight") // _CID: Compatible ID
40+
Name (_UID, Zero) // _UID: Unique ID
41+
Name (_STA, 0x0B) // _STA: Status
42+
Field (^RMP3, AnyAcc, NoLock, Preserve)
43+
{
44+
Offset (0x02),
45+
GDID, 16,
46+
Offset (0x10),
47+
BAR1, 32
48+
}
49+
50+
OperationRegion (RMB1, SystemMemory, And (BAR1, 0xFFFFFFFFFFFFFFF0), 0x000E1184)
51+
Field (RMB1, AnyAcc, Lock, Preserve)
52+
{
53+
Offset (0x48250),
54+
LEV2, 32,
55+
LEVL, 32,
56+
Offset (0x70040),
57+
P0BL, 32,
58+
Offset (0xC2000),
59+
GRAN, 32,
60+
Offset (0xC8250),
61+
LEVW, 32,
62+
LEVX, 32,
63+
Offset (0xE1180),
64+
PCHL, 32
65+
}
66+
67+
Method (_INI, 0, NotSerialized) // _INI: Initialize
68+
{
69+
Store (One, Local4)
70+
If (CondRefOf (\RMCF.BKLT))
71+
{
72+
Store (\RMCF.BKLT, Local4)
73+
}
74+
75+
If (LEqual (Zero, And (One, Local4)))
76+
{
77+
Return (Zero)
78+
}
79+
80+
Store (^GDID, Local0)
81+
Store (Ones, Local2)
82+
If (CondRefOf (\RMCF.LMAX))
83+
{
84+
Store (\RMCF.LMAX, Local2)
85+
}
86+
87+
Store (Zero, Local3)
88+
If (CondRefOf (\RMCF.FBTP))
89+
{
90+
Store (\RMCF.FBTP, Local3)
91+
}
92+
93+
If (LEqual (Zero, Local3))
94+
{
95+
If (LNotEqual (Ones, Match (Package (0x10)
96+
{
97+
0x010B,
98+
0x0102,
99+
0x0106,
100+
0x1106,
101+
0x1601,
102+
0x0116,
103+
0x0126,
104+
0x0112,
105+
0x0122,
106+
0x0152,
107+
0x0156,
108+
0x0162,
109+
0x0166,
110+
0x016A,
111+
0x46,
112+
0x42
113+
}, MEQ, Local0, MTR, Zero, Zero)))
114+
{
115+
Store (One, Local3)
116+
}
117+
Else
118+
{
119+
Store (0x02, Local3)
120+
}
121+
}
122+
123+
If (LEqual (One, Local3))
124+
{
125+
If (LEqual (Ones, Local2))
126+
{
127+
Store (0x0710, Local2)
128+
}
129+
130+
ShiftRight (^LEVX, 0x10, Local1)
131+
If (LNot (Local1))
132+
{
133+
Store (Local2, Local1)
134+
}
135+
136+
If (LNotEqual (Local2, Local1))
137+
{
138+
Divide (Multiply (^LEVL, Local2), Local1, , Local0)
139+
ShiftLeft (Local2, 0x10, Local3)
140+
If (LGreater (Local2, Local1))
141+
{
142+
Store (Local3, ^LEVX)
143+
Store (Local0, ^LEVL)
144+
}
145+
Else
146+
{
147+
Store (Local0, ^LEVL)
148+
Store (Local3, ^LEVX)
149+
}
150+
}
151+
}
152+
ElseIf (LEqual (0x02, Local3))
153+
{
154+
If (LEqual (Ones, Local2))
155+
{
156+
If (LNotEqual (Ones, Match (Package (0x16)
157+
{
158+
0x0D26,
159+
0x0A26,
160+
0x0D22,
161+
0x0412,
162+
0x0416,
163+
0x0A16,
164+
0x0A1E,
165+
0x0A1E,
166+
0x0A2E,
167+
0x041E,
168+
0x041A,
169+
0x0BD1,
170+
0x0BD2,
171+
0x0BD3,
172+
0x1606,
173+
0x160E,
174+
0x1616,
175+
0x161E,
176+
0x1626,
177+
0x1622,
178+
0x1612,
179+
0x162B
180+
}, MEQ, Local0, MTR, Zero, Zero)))
181+
{
182+
Store (0x0AD9, Local2)
183+
}
184+
Else
185+
{
186+
Store (0x056C, Local2)
187+
}
188+
}
189+
190+
If (LEqual (Zero, And (0x02, Local4)))
191+
{
192+
Store (0xC0000000, Local5)
193+
If (CondRefOf (\RMCF.LEVW))
194+
{
195+
If (LNotEqual (Ones, \RMCF.LEVW))
196+
{
197+
Store (\RMCF.LEVW, Local5)
198+
}
199+
}
200+
201+
Store (Local5, ^LEVW)
202+
}
203+
204+
If (And (0x04, Local4))
205+
{
206+
If (CondRefOf (\RMCF.GRAN))
207+
{
208+
Store (\RMCF.GRAN, ^GRAN)
209+
}
210+
Else
211+
{
212+
Store (Zero, ^GRAN)
213+
}
214+
}
215+
216+
ShiftRight (^LEVX, 0x10, Local1)
217+
If (LNot (Local1))
218+
{
219+
Store (Local2, Local1)
220+
}
221+
222+
If (LNotEqual (Local2, Local1))
223+
{
224+
Or (Divide (Multiply (And (^LEVX, 0xFFFF), Local2), Local1, ), ShiftLeft (Local2, 0x10), Local0)
225+
Store (Local0, ^LEVX)
226+
}
227+
}
228+
229+
If (LEqual (Local2, 0x0710))
230+
{
231+
Store (0x0E, _UID)
232+
}
233+
ElseIf (LEqual (Local2, 0x0AD9))
234+
{
235+
Store (0x0F, _UID)
236+
}
237+
ElseIf (LEqual (Local2, 0x056C))
238+
{
239+
Store (0x10, _UID)
240+
}
241+
ElseIf (LEqual (Local2, 0x07A1))
242+
{
243+
Store (0x11, _UID)
244+
}
245+
ElseIf (LEqual (Local2, 0x1499))
246+
{
247+
Store (0x12, _UID)
248+
}
249+
Else
250+
{
251+
Store (0x63, _UID)
252+
}
253+
}
254+
}
255+
}
256+

0 commit comments

Comments
 (0)