blob: 9d42bef6007139f3e234d09e6c3a392c8b26af20 [file] [log] [blame]
Angel Ponsc3f58f62020-04-05 15:46:41 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Aaron Durbin3bde3d72013-11-04 21:45:52 -06002
3Device (LNKA)
4{
5 Name (_HID, EISAID("PNP0C0F"))
6 Name (_UID, 1)
7
Angel Pons26b49cc2020-07-07 17:17:51 +02008 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -06009 Method (_DIS, 0, Serialized)
10 {
Felix Singer476fe6a2022-12-12 07:30:07 +010011 PRTA = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -060012 }
13
Angel Pons26b49cc2020-07-07 17:17:51 +020014 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060015 Name (_PRS, ResourceTemplate()
16 {
17 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +010018 { 3, 4, 5, 6, 7, 10, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -060019 })
20
Angel Pons26b49cc2020-07-07 17:17:51 +020021 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060022 Method (_CRS, 0, Serialized)
23 {
24 Name (RTLA, ResourceTemplate()
25 {
26 IRQ(Level, ActiveLow, Shared) {}
27 })
28 CreateWordField(RTLA, 1, IRQ0)
29
Angel Pons26b49cc2020-07-07 17:17:51 +020030 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +010031 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -060032
Angel Pons26b49cc2020-07-07 17:17:51 +020033 /* Set the bit from PRTA */
Felix Singer3c9291b2022-12-16 02:43:56 +010034 IRQ0 = 1 << And(PRTA, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -060035
36 Return (RTLA)
37 }
38
Angel Pons26b49cc2020-07-07 17:17:51 +020039 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060040 Method (_SRS, 1, Serialized)
41 {
42 CreateWordField(Arg0, 1, IRQ0)
43
Angel Pons26b49cc2020-07-07 17:17:51 +020044 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060045 FindSetRightBit(IRQ0, Local0)
46
Felix Singer43b57302022-12-11 21:46:42 +010047 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +010048 PRTA = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -060049 }
50
Angel Pons26b49cc2020-07-07 17:17:51 +020051 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060052 Method (_STA, 0, Serialized)
53 {
54 If(And(PRTA, 0x80)) {
55 Return (0x9)
56 } Else {
57 Return (0xb)
58 }
59 }
60}
61
62Device (LNKB)
63{
64 Name (_HID, EISAID("PNP0C0F"))
65 Name (_UID, 2)
66
Angel Pons26b49cc2020-07-07 17:17:51 +020067 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060068 Method (_DIS, 0, Serialized)
69 {
Felix Singer476fe6a2022-12-12 07:30:07 +010070 PRTB = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -060071 }
72
Angel Pons26b49cc2020-07-07 17:17:51 +020073 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060074 Name (_PRS, ResourceTemplate()
75 {
76 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +010077 { 3, 4, 5, 6, 7, 11, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -060078 })
79
Angel Pons26b49cc2020-07-07 17:17:51 +020080 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060081 Method (_CRS, 0, Serialized)
82 {
83 Name (RTLB, ResourceTemplate()
84 {
85 IRQ(Level, ActiveLow, Shared) {}
86 })
87 CreateWordField(RTLB, 1, IRQ0)
88
Angel Pons26b49cc2020-07-07 17:17:51 +020089 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +010090 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -060091
Angel Pons26b49cc2020-07-07 17:17:51 +020092 /* Set the bit from PRTB */
Felix Singer3c9291b2022-12-16 02:43:56 +010093 IRQ0 = 1 << And(PRTB, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -060094
95 Return (RTLB)
96 }
97
Angel Pons26b49cc2020-07-07 17:17:51 +020098 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060099 Method (_SRS, 1, Serialized)
100 {
101 CreateWordField(Arg0, 1, IRQ0)
102
Angel Pons26b49cc2020-07-07 17:17:51 +0200103 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600104 FindSetRightBit(IRQ0, Local0)
105
Felix Singer43b57302022-12-11 21:46:42 +0100106 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100107 PRTB = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600108 }
109
Angel Pons26b49cc2020-07-07 17:17:51 +0200110 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600111 Method (_STA, 0, Serialized)
112 {
113 If(And(PRTB, 0x80)) {
114 Return (0x9)
115 } Else {
116 Return (0xb)
117 }
118 }
119}
120
121Device (LNKC)
122{
123 Name (_HID, EISAID("PNP0C0F"))
124 Name (_UID, 3)
125
Angel Pons26b49cc2020-07-07 17:17:51 +0200126 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600127 Method (_DIS, 0, Serialized)
128 {
Felix Singer476fe6a2022-12-12 07:30:07 +0100129 PRTC = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600130 }
131
Angel Pons26b49cc2020-07-07 17:17:51 +0200132 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600133 Name (_PRS, ResourceTemplate()
134 {
135 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +0100136 { 3, 4, 5, 6, 7, 10, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600137 })
138
Angel Pons26b49cc2020-07-07 17:17:51 +0200139 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600140 Method (_CRS, 0, Serialized)
141 {
142 Name (RTLC, ResourceTemplate()
143 {
144 IRQ(Level, ActiveLow, Shared) {}
145 })
146 CreateWordField(RTLC, 1, IRQ0)
147
Angel Pons26b49cc2020-07-07 17:17:51 +0200148 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +0100149 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600150
Angel Pons26b49cc2020-07-07 17:17:51 +0200151 /* Set the bit from PRTC */
Felix Singer3c9291b2022-12-16 02:43:56 +0100152 IRQ0 = 1 << And(PRTC, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600153
154 Return (RTLC)
155 }
156
Angel Pons26b49cc2020-07-07 17:17:51 +0200157 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600158 Method (_SRS, 1, Serialized)
159 {
160 CreateWordField(Arg0, 1, IRQ0)
161
Angel Pons26b49cc2020-07-07 17:17:51 +0200162 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600163 FindSetRightBit(IRQ0, Local0)
164
Felix Singer43b57302022-12-11 21:46:42 +0100165 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100166 PRTC = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600167 }
168
Angel Pons26b49cc2020-07-07 17:17:51 +0200169 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600170 Method (_STA, 0, Serialized)
171 {
172 If(And(PRTC, 0x80)) {
173 Return (0x9)
174 } Else {
175 Return (0xb)
176 }
177 }
178}
179
180Device (LNKD)
181{
182 Name (_HID, EISAID("PNP0C0F"))
183 Name (_UID, 4)
184
Angel Pons26b49cc2020-07-07 17:17:51 +0200185 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600186 Method (_DIS, 0, Serialized)
187 {
Felix Singer476fe6a2022-12-12 07:30:07 +0100188 PRTD = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600189 }
190
Angel Pons26b49cc2020-07-07 17:17:51 +0200191 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600192 Name (_PRS, ResourceTemplate()
193 {
194 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +0100195 { 3, 4, 5, 6, 7, 11, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600196 })
197
Angel Pons26b49cc2020-07-07 17:17:51 +0200198 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600199 Method (_CRS, 0, Serialized)
200 {
201 Name (RTLD, ResourceTemplate()
202 {
203 IRQ(Level, ActiveLow, Shared) {}
204 })
205 CreateWordField(RTLD, 1, IRQ0)
206
Angel Pons26b49cc2020-07-07 17:17:51 +0200207 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +0100208 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600209
Angel Pons26b49cc2020-07-07 17:17:51 +0200210 /* Set the bit from PRTD */
Felix Singer3c9291b2022-12-16 02:43:56 +0100211 IRQ0 = 1 << And(PRTD, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600212
213 Return (RTLD)
214 }
215
Angel Pons26b49cc2020-07-07 17:17:51 +0200216 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600217 Method (_SRS, 1, Serialized)
218 {
219 CreateWordField(Arg0, 1, IRQ0)
220
Angel Pons26b49cc2020-07-07 17:17:51 +0200221 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600222 FindSetRightBit(IRQ0, Local0)
223
Felix Singer43b57302022-12-11 21:46:42 +0100224 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100225 PRTD = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600226 }
227
Angel Pons26b49cc2020-07-07 17:17:51 +0200228 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600229 Method (_STA, 0, Serialized)
230 {
231 If(And(PRTD, 0x80)) {
232 Return (0x9)
233 } Else {
234 Return (0xb)
235 }
236 }
237}
238
239Device (LNKE)
240{
241 Name (_HID, EISAID("PNP0C0F"))
242 Name (_UID, 5)
243
Angel Pons26b49cc2020-07-07 17:17:51 +0200244 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600245 Method (_DIS, 0, Serialized)
246 {
Felix Singer476fe6a2022-12-12 07:30:07 +0100247 PRTE = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600248 }
249
Angel Pons26b49cc2020-07-07 17:17:51 +0200250 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600251 Name (_PRS, ResourceTemplate()
252 {
253 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +0100254 { 3, 4, 5, 6, 7, 10, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600255 })
256
Angel Pons26b49cc2020-07-07 17:17:51 +0200257 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600258 Method (_CRS, 0, Serialized)
259 {
260 Name (RTLE, ResourceTemplate()
261 {
262 IRQ(Level, ActiveLow, Shared) {}
263 })
264 CreateWordField(RTLE, 1, IRQ0)
265
Angel Pons26b49cc2020-07-07 17:17:51 +0200266 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +0100267 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600268
Angel Pons26b49cc2020-07-07 17:17:51 +0200269 /* Set the bit from PRTE */
Felix Singer3c9291b2022-12-16 02:43:56 +0100270 IRQ0 = 1 << And(PRTE, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600271
272 Return (RTLE)
273 }
274
Angel Pons26b49cc2020-07-07 17:17:51 +0200275 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600276 Method (_SRS, 1, Serialized)
277 {
278 CreateWordField(Arg0, 1, IRQ0)
279
Angel Pons26b49cc2020-07-07 17:17:51 +0200280 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600281 FindSetRightBit(IRQ0, Local0)
282
Felix Singer43b57302022-12-11 21:46:42 +0100283 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100284 PRTE = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600285 }
286
Angel Pons26b49cc2020-07-07 17:17:51 +0200287 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600288 Method (_STA, 0, Serialized)
289 {
290 If(And(PRTE, 0x80)) {
291 Return (0x9)
292 } Else {
293 Return (0xb)
294 }
295 }
296}
297
298Device (LNKF)
299{
300 Name (_HID, EISAID("PNP0C0F"))
301 Name (_UID, 6)
302
Angel Pons26b49cc2020-07-07 17:17:51 +0200303 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600304 Method (_DIS, 0, Serialized)
305 {
Felix Singer476fe6a2022-12-12 07:30:07 +0100306 PRTF = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600307 }
308
Angel Pons26b49cc2020-07-07 17:17:51 +0200309 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600310 Name (_PRS, ResourceTemplate()
311 {
312 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +0100313 { 3, 4, 5, 6, 7, 11, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600314 })
315
Angel Pons26b49cc2020-07-07 17:17:51 +0200316 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600317 Method (_CRS, 0, Serialized)
318 {
319 Name (RTLF, ResourceTemplate()
320 {
321 IRQ(Level, ActiveLow, Shared) {}
322 })
323 CreateWordField(RTLF, 1, IRQ0)
324
Angel Pons26b49cc2020-07-07 17:17:51 +0200325 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +0100326 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600327
Angel Pons26b49cc2020-07-07 17:17:51 +0200328 /* Set the bit from PRTF */
Felix Singer3c9291b2022-12-16 02:43:56 +0100329 IRQ0 = 1 << And(PRTF, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600330
331 Return (RTLF)
332 }
333
Angel Pons26b49cc2020-07-07 17:17:51 +0200334 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600335 Method (_SRS, 1, Serialized)
336 {
337 CreateWordField(Arg0, 1, IRQ0)
338
Angel Pons26b49cc2020-07-07 17:17:51 +0200339 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600340 FindSetRightBit(IRQ0, Local0)
341
Felix Singer43b57302022-12-11 21:46:42 +0100342 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100343 PRTF = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600344 }
345
Angel Pons26b49cc2020-07-07 17:17:51 +0200346 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600347 Method (_STA, 0, Serialized)
348 {
349 If(And(PRTF, 0x80)) {
350 Return (0x9)
351 } Else {
352 Return (0xb)
353 }
354 }
355}
356
357Device (LNKG)
358{
359 Name (_HID, EISAID("PNP0C0F"))
360 Name (_UID, 7)
361
Angel Pons26b49cc2020-07-07 17:17:51 +0200362 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600363 Method (_DIS, 0, Serialized)
364 {
Felix Singer476fe6a2022-12-12 07:30:07 +0100365 PRTG = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600366 }
367
Angel Pons26b49cc2020-07-07 17:17:51 +0200368 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600369 Name (_PRS, ResourceTemplate()
370 {
371 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +0100372 { 3, 4, 5, 6, 7, 10, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600373 })
374
Angel Pons26b49cc2020-07-07 17:17:51 +0200375 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600376 Method (_CRS, 0, Serialized)
377 {
378 Name (RTLG, ResourceTemplate()
379 {
380 IRQ(Level, ActiveLow, Shared) {}
381 })
382 CreateWordField(RTLG, 1, IRQ0)
383
Angel Pons26b49cc2020-07-07 17:17:51 +0200384 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +0100385 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600386
Angel Pons26b49cc2020-07-07 17:17:51 +0200387 /* Set the bit from PRTG */
Felix Singer3c9291b2022-12-16 02:43:56 +0100388 IRQ0 = 1 << And(PRTG, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600389
390 Return (RTLG)
391 }
392
Angel Pons26b49cc2020-07-07 17:17:51 +0200393 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600394 Method (_SRS, 1, Serialized)
395 {
396 CreateWordField(Arg0, 1, IRQ0)
397
Angel Pons26b49cc2020-07-07 17:17:51 +0200398 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600399 FindSetRightBit(IRQ0, Local0)
400
Felix Singer43b57302022-12-11 21:46:42 +0100401 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100402 PRTG = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600403 }
404
Angel Pons26b49cc2020-07-07 17:17:51 +0200405 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600406 Method (_STA, 0, Serialized)
407 {
408 If(And(PRTG, 0x80)) {
409 Return (0x9)
410 } Else {
411 Return (0xb)
412 }
413 }
414}
415
416Device (LNKH)
417{
418 Name (_HID, EISAID("PNP0C0F"))
419 Name (_UID, 8)
420
Angel Pons26b49cc2020-07-07 17:17:51 +0200421 /* Disable method */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600422 Method (_DIS, 0, Serialized)
423 {
Felix Singer476fe6a2022-12-12 07:30:07 +0100424 PRTH = 0x80
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600425 }
426
Angel Pons26b49cc2020-07-07 17:17:51 +0200427 /* Possible Resource Settings for this Link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600428 Name (_PRS, ResourceTemplate()
429 {
430 IRQ(Level, ActiveLow, Shared)
Vladimir Serbinenko609d22f2014-11-16 11:39:20 +0100431 { 3, 4, 5, 6, 7, 11, 12, 14, 15 }
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600432 })
433
Angel Pons26b49cc2020-07-07 17:17:51 +0200434 /* Current Resource Settings for this link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600435 Method (_CRS, 0, Serialized)
436 {
437 Name (RTLH, ResourceTemplate()
438 {
439 IRQ(Level, ActiveLow, Shared) {}
440 })
441 CreateWordField(RTLH, 1, IRQ0)
442
Angel Pons26b49cc2020-07-07 17:17:51 +0200443 /* Clear the WordField */
Felix Singer476fe6a2022-12-12 07:30:07 +0100444 IRQ0 = Zero
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600445
Angel Pons26b49cc2020-07-07 17:17:51 +0200446 /* Set the bit from PRTH */
Felix Singer3c9291b2022-12-16 02:43:56 +0100447 IRQ0 = 1 << And(PRTH, 0x0f)
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600448
449 Return (RTLH)
450 }
451
Angel Pons26b49cc2020-07-07 17:17:51 +0200452 /* Set Resource Setting for this IRQ link */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600453 Method (_SRS, 1, Serialized)
454 {
455 CreateWordField(Arg0, 1, IRQ0)
456
Angel Pons26b49cc2020-07-07 17:17:51 +0200457 /* Which bit is set? */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600458 FindSetRightBit(IRQ0, Local0)
459
Felix Singer43b57302022-12-11 21:46:42 +0100460 Local0--
Felix Singer476fe6a2022-12-12 07:30:07 +0100461 PRTH = Local0
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600462 }
463
Angel Pons26b49cc2020-07-07 17:17:51 +0200464 /* Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600465 Method (_STA, 0, Serialized)
466 {
467 If(And(PRTH, 0x80)) {
468 Return (0x9)
469 } Else {
470 Return (0xb)
471 }
472 }
473}