2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
19 Name (_HID, EISAID("PNP0C0F"))
23 Method (_DIS, 0, Serialized)
28 /* Possible Resource Settings for this Link */
29 Name (_PRS, ResourceTemplate()
31 IRQ(Level, ActiveLow, Shared)
32 { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
35 /* Current Resource Settings for this link */
36 Method (_CRS, 0, Serialized)
38 Name (RTLA, ResourceTemplate()
40 IRQ(Level, ActiveLow, Shared) {}
42 CreateWordField(RTLA, 1, IRQ0)
44 /* Clear the WordField */
47 /* Set the bit from PRTA */
48 ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
53 /* Set Resource Setting for this IRQ link */
54 Method (_SRS, 1, Serialized)
56 CreateWordField(Arg0, 1, IRQ0)
58 /* Which bit is set? */
59 FindSetRightBit(IRQ0, Local0)
66 Method (_STA, 0, Serialized)
78 Name (_HID, EISAID("PNP0C0F"))
82 Method (_DIS, 0, Serialized)
87 /* Possible Resource Settings for this Link */
88 Name (_PRS, ResourceTemplate()
90 IRQ(Level, ActiveLow, Shared)
91 { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
94 /* Current Resource Settings for this link */
95 Method (_CRS, 0, Serialized)
97 Name (RTLB, ResourceTemplate()
99 IRQ(Level, ActiveLow, Shared) {}
101 CreateWordField(RTLB, 1, IRQ0)
103 /* Clear the WordField */
106 /* Set the bit from PRTB */
107 ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
112 /* Set Resource Setting for this IRQ link */
113 Method (_SRS, 1, Serialized)
115 CreateWordField(Arg0, 1, IRQ0)
117 /* Which bit is set? */
118 FindSetRightBit(IRQ0, Local0)
125 Method (_STA, 0, Serialized)
127 If(And(PRTB, 0x80)) {
137 Name (_HID, EISAID("PNP0C0F"))
141 Method (_DIS, 0, Serialized)
146 /* Possible Resource Settings for this Link */
147 Name (_PRS, ResourceTemplate()
149 IRQ(Level, ActiveLow, Shared)
150 { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
153 /* Current Resource Settings for this link */
154 Method (_CRS, 0, Serialized)
156 Name (RTLC, ResourceTemplate()
158 IRQ(Level, ActiveLow, Shared) {}
160 CreateWordField(RTLC, 1, IRQ0)
162 /* Clear the WordField */
165 /* Set the bit from PRTC */
166 ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
171 /* Set Resource Setting for this IRQ link */
172 Method (_SRS, 1, Serialized)
174 CreateWordField(Arg0, 1, IRQ0)
176 /* Which bit is set? */
177 FindSetRightBit(IRQ0, Local0)
184 Method (_STA, 0, Serialized)
186 If(And(PRTC, 0x80)) {
196 Name (_HID, EISAID("PNP0C0F"))
200 Method (_DIS, 0, Serialized)
205 /* Possible Resource Settings for this Link */
206 Name (_PRS, ResourceTemplate()
208 IRQ(Level, ActiveLow, Shared)
209 { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
212 /* Current Resource Settings for this link */
213 Method (_CRS, 0, Serialized)
215 Name (RTLD, ResourceTemplate()
217 IRQ(Level, ActiveLow, Shared) {}
219 CreateWordField(RTLD, 1, IRQ0)
221 /* Clear the WordField */
224 /* Set the bit from PRTD */
225 ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
230 /* Set Resource Setting for this IRQ link */
231 Method (_SRS, 1, Serialized)
233 CreateWordField(Arg0, 1, IRQ0)
235 /* Which bit is set? */
236 FindSetRightBit(IRQ0, Local0)
243 Method (_STA, 0, Serialized)
245 If(And(PRTD, 0x80)) {
255 Name (_HID, EISAID("PNP0C0F"))
259 Method (_DIS, 0, Serialized)
264 /* Possible Resource Settings for this Link */
265 Name (_PRS, ResourceTemplate()
267 IRQ(Level, ActiveLow, Shared)
268 { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
271 /* Current Resource Settings for this link */
272 Method (_CRS, 0, Serialized)
274 Name (RTLE, ResourceTemplate()
276 IRQ(Level, ActiveLow, Shared) {}
278 CreateWordField(RTLE, 1, IRQ0)
280 /* Clear the WordField */
283 /* Set the bit from PRTE */
284 ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
289 /* Set Resource Setting for this IRQ link */
290 Method (_SRS, 1, Serialized)
292 CreateWordField(Arg0, 1, IRQ0)
294 /* Which bit is set? */
295 FindSetRightBit(IRQ0, Local0)
302 Method (_STA, 0, Serialized)
304 If(And(PRTE, 0x80)) {
314 Name (_HID, EISAID("PNP0C0F"))
318 Method (_DIS, 0, Serialized)
323 /* Possible Resource Settings for this Link */
324 Name (_PRS, ResourceTemplate()
326 IRQ(Level, ActiveLow, Shared)
327 { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
330 /* Current Resource Settings for this link */
331 Method (_CRS, 0, Serialized)
333 Name (RTLF, ResourceTemplate()
335 IRQ(Level, ActiveLow, Shared) {}
337 CreateWordField(RTLF, 1, IRQ0)
339 /* Clear the WordField */
342 /* Set the bit from PRTF */
343 ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
348 /* Set Resource Setting for this IRQ link */
349 Method (_SRS, 1, Serialized)
351 CreateWordField(Arg0, 1, IRQ0)
353 /* Which bit is set? */
354 FindSetRightBit(IRQ0, Local0)
361 Method (_STA, 0, Serialized)
363 If(And(PRTF, 0x80)) {
373 Name (_HID, EISAID("PNP0C0F"))
377 Method (_DIS, 0, Serialized)
382 /* Possible Resource Settings for this Link */
383 Name (_PRS, ResourceTemplate()
385 IRQ(Level, ActiveLow, Shared)
386 { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
389 /* Current Resource Settings for this link */
390 Method (_CRS, 0, Serialized)
392 Name (RTLG, ResourceTemplate()
394 IRQ(Level, ActiveLow, Shared) {}
396 CreateWordField(RTLG, 1, IRQ0)
398 /* Clear the WordField */
401 /* Set the bit from PRTG */
402 ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
407 /* Set Resource Setting for this IRQ link */
408 Method (_SRS, 1, Serialized)
410 CreateWordField(Arg0, 1, IRQ0)
412 /* Which bit is set? */
413 FindSetRightBit(IRQ0, Local0)
420 Method (_STA, 0, Serialized)
422 If(And(PRTG, 0x80)) {
432 Name (_HID, EISAID("PNP0C0F"))
436 Method (_DIS, 0, Serialized)
441 /* Possible Resource Settings for this Link */
442 Name (_PRS, ResourceTemplate()
444 IRQ(Level, ActiveLow, Shared)
445 { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
448 /* Current Resource Settings for this link */
449 Method (_CRS, 0, Serialized)
451 Name (RTLH, ResourceTemplate()
453 IRQ(Level, ActiveLow, Shared) {}
455 CreateWordField(RTLH, 1, IRQ0)
457 /* Clear the WordField */
460 /* Set the bit from PRTH */
461 ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
466 /* Set Resource Setting for this IRQ link */
467 Method (_SRS, 1, Serialized)
469 CreateWordField(Arg0, 1, IRQ0)
471 /* Which bit is set? */
472 FindSetRightBit(IRQ0, Local0)
479 Method (_STA, 0, Serialized)
481 If(And(PRTH, 0x80)) {