tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / soc / intel / braswell / acpi / irqlinks.asl
blobe1570b5fe3e0fedadc9ee34a7fa928bf2b9ed618
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2009 coresystems GmbH
5  *
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
9  * the License.
10  *
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.
15  */
17 Device (LNKA)
19         Name (_HID, EISAID("PNP0C0F"))
20         Name (_UID, 1)
22         /* Disable method */
23         Method (_DIS, 0, Serialized)
24         {
25                 Store (0x80, PRTA)
26         }
28         /* Possible Resource Settings for this Link */
29         Name (_PRS, ResourceTemplate()
30         {
31                 IRQ(Level, ActiveLow, Shared)
32                         { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
33         })
35         /* Current Resource Settings for this link */
36         Method (_CRS, 0, Serialized)
37         {
38                 Name (RTLA, ResourceTemplate()
39                 {
40                         IRQ(Level, ActiveLow, Shared) {}
41                 })
42                 CreateWordField(RTLA, 1, IRQ0)
44                 /* Clear the WordField */
45                 Store (Zero, IRQ0)
47                 /* Set the bit from PRTA */
48                 ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
50                 Return (RTLA)
51         }
53         /* Set Resource Setting for this IRQ link */
54         Method (_SRS, 1, Serialized)
55         {
56                 CreateWordField(Arg0, 1, IRQ0)
58                 /* Which bit is set? */
59                 FindSetRightBit(IRQ0, Local0)
61                 Decrement(Local0)
62                 Store(Local0, PRTA)
63         }
65         /* Status */
66         Method (_STA, 0, Serialized)
67         {
68                 If(And(PRTA, 0x80)) {
69                         Return (0x9)
70                 } Else {
71                         Return (0xb)
72                 }
73         }
76 Device (LNKB)
78         Name (_HID, EISAID("PNP0C0F"))
79         Name (_UID, 2)
81         /* Disable method */
82         Method (_DIS, 0, Serialized)
83         {
84                 Store (0x80, PRTB)
85         }
87         /* Possible Resource Settings for this Link */
88         Name (_PRS, ResourceTemplate()
89         {
90                 IRQ(Level, ActiveLow, Shared)
91                         { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
92         })
94         /* Current Resource Settings for this link */
95         Method (_CRS, 0, Serialized)
96         {
97                 Name (RTLB, ResourceTemplate()
98                 {
99                         IRQ(Level, ActiveLow, Shared) {}
100                 })
101                 CreateWordField(RTLB, 1, IRQ0)
103                 /* Clear the WordField */
104                 Store (Zero, IRQ0)
106                 /* Set the bit from PRTB */
107                 ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
109                 Return (RTLB)
110         }
112         /* Set Resource Setting for this IRQ link */
113         Method (_SRS, 1, Serialized)
114         {
115                 CreateWordField(Arg0, 1, IRQ0)
117                 /* Which bit is set? */
118                 FindSetRightBit(IRQ0, Local0)
120                 Decrement(Local0)
121                 Store(Local0, PRTB)
122         }
124         /* Status */
125         Method (_STA, 0, Serialized)
126         {
127                 If(And(PRTB, 0x80)) {
128                         Return (0x9)
129                 } Else {
130                         Return (0xb)
131                 }
132         }
135 Device (LNKC)
137         Name (_HID, EISAID("PNP0C0F"))
138         Name (_UID, 3)
140         /* Disable method */
141         Method (_DIS, 0, Serialized)
142         {
143                 Store (0x80, PRTC)
144         }
146         /* Possible Resource Settings for this Link */
147         Name (_PRS, ResourceTemplate()
148         {
149                 IRQ(Level, ActiveLow, Shared)
150                         { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
151         })
153         /* Current Resource Settings for this link */
154         Method (_CRS, 0, Serialized)
155         {
156                 Name (RTLC, ResourceTemplate()
157                 {
158                         IRQ(Level, ActiveLow, Shared) {}
159                 })
160                 CreateWordField(RTLC, 1, IRQ0)
162                 /* Clear the WordField */
163                 Store (Zero, IRQ0)
165                 /* Set the bit from PRTC */
166                 ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
168                 Return (RTLC)
169         }
171         /* Set Resource Setting for this IRQ link */
172         Method (_SRS, 1, Serialized)
173         {
174                 CreateWordField(Arg0, 1, IRQ0)
176                 /* Which bit is set? */
177                 FindSetRightBit(IRQ0, Local0)
179                 Decrement(Local0)
180                 Store(Local0, PRTC)
181         }
183         /* Status */
184         Method (_STA, 0, Serialized)
185         {
186                 If(And(PRTC, 0x80)) {
187                         Return (0x9)
188                 } Else {
189                         Return (0xb)
190                 }
191         }
194 Device (LNKD)
196         Name (_HID, EISAID("PNP0C0F"))
197         Name (_UID, 4)
199         /* Disable method */
200         Method (_DIS, 0, Serialized)
201         {
202                 Store (0x80, PRTD)
203         }
205         /* Possible Resource Settings for this Link */
206         Name (_PRS, ResourceTemplate()
207         {
208                 IRQ(Level, ActiveLow, Shared)
209                         { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
210         })
212         /* Current Resource Settings for this link */
213         Method (_CRS, 0, Serialized)
214         {
215                 Name (RTLD, ResourceTemplate()
216                 {
217                         IRQ(Level, ActiveLow, Shared) {}
218                 })
219                 CreateWordField(RTLD, 1, IRQ0)
221                 /* Clear the WordField */
222                 Store (Zero, IRQ0)
224                 /* Set the bit from PRTD */
225                 ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
227                 Return (RTLD)
228         }
230         /* Set Resource Setting for this IRQ link */
231         Method (_SRS, 1, Serialized)
232         {
233                 CreateWordField(Arg0, 1, IRQ0)
235                 /* Which bit is set? */
236                 FindSetRightBit(IRQ0, Local0)
238                 Decrement(Local0)
239                 Store(Local0, PRTD)
240         }
242         /* Status */
243         Method (_STA, 0, Serialized)
244         {
245                 If(And(PRTD, 0x80)) {
246                         Return (0x9)
247                 } Else {
248                         Return (0xb)
249                 }
250         }
253 Device (LNKE)
255         Name (_HID, EISAID("PNP0C0F"))
256         Name (_UID, 5)
258         /* Disable method */
259         Method (_DIS, 0, Serialized)
260         {
261                 Store (0x80, PRTE)
262         }
264         /* Possible Resource Settings for this Link */
265         Name (_PRS, ResourceTemplate()
266         {
267                 IRQ(Level, ActiveLow, Shared)
268                         { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
269         })
271         /* Current Resource Settings for this link */
272         Method (_CRS, 0, Serialized)
273         {
274                 Name (RTLE, ResourceTemplate()
275                 {
276                         IRQ(Level, ActiveLow, Shared) {}
277                 })
278                 CreateWordField(RTLE, 1, IRQ0)
280                 /* Clear the WordField */
281                 Store (Zero, IRQ0)
283                 /* Set the bit from PRTE */
284                 ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
286                 Return (RTLE)
287         }
289         /* Set Resource Setting for this IRQ link */
290         Method (_SRS, 1, Serialized)
291         {
292                 CreateWordField(Arg0, 1, IRQ0)
294                 /* Which bit is set? */
295                 FindSetRightBit(IRQ0, Local0)
297                 Decrement(Local0)
298                 Store(Local0, PRTE)
299         }
301         /* Status */
302         Method (_STA, 0, Serialized)
303         {
304                 If(And(PRTE, 0x80)) {
305                         Return (0x9)
306                 } Else {
307                         Return (0xb)
308                 }
309         }
312 Device (LNKF)
314         Name (_HID, EISAID("PNP0C0F"))
315         Name (_UID, 6)
317         /* Disable method */
318         Method (_DIS, 0, Serialized)
319         {
320                 Store (0x80, PRTF)
321         }
323         /* Possible Resource Settings for this Link */
324         Name (_PRS, ResourceTemplate()
325         {
326                 IRQ(Level, ActiveLow, Shared)
327                         { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
328         })
330         /* Current Resource Settings for this link */
331         Method (_CRS, 0, Serialized)
332         {
333                 Name (RTLF, ResourceTemplate()
334                 {
335                         IRQ(Level, ActiveLow, Shared) {}
336                 })
337                 CreateWordField(RTLF, 1, IRQ0)
339                 /* Clear the WordField */
340                 Store (Zero, IRQ0)
342                 /* Set the bit from PRTF */
343                 ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
345                 Return (RTLF)
346         }
348         /* Set Resource Setting for this IRQ link */
349         Method (_SRS, 1, Serialized)
350         {
351                 CreateWordField(Arg0, 1, IRQ0)
353                 /* Which bit is set? */
354                 FindSetRightBit(IRQ0, Local0)
356                 Decrement(Local0)
357                 Store(Local0, PRTF)
358         }
360         /* Status */
361         Method (_STA, 0, Serialized)
362         {
363                 If(And(PRTF, 0x80)) {
364                         Return (0x9)
365                 } Else {
366                         Return (0xb)
367                 }
368         }
371 Device (LNKG)
373         Name (_HID, EISAID("PNP0C0F"))
374         Name (_UID, 7)
376         /* Disable method */
377         Method (_DIS, 0, Serialized)
378         {
379                 Store (0x80, PRTG)
380         }
382         /* Possible Resource Settings for this Link */
383         Name (_PRS, ResourceTemplate()
384         {
385                 IRQ(Level, ActiveLow, Shared)
386                         { 1, 3, 4, 5, 6, 7, 10, 12, 14, 15 }
387         })
389         /* Current Resource Settings for this link */
390         Method (_CRS, 0, Serialized)
391         {
392                 Name (RTLG, ResourceTemplate()
393                 {
394                         IRQ(Level, ActiveLow, Shared) {}
395                 })
396                 CreateWordField(RTLG, 1, IRQ0)
398                 /* Clear the WordField */
399                 Store (Zero, IRQ0)
401                 /* Set the bit from PRTG */
402                 ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
404                 Return (RTLG)
405         }
407         /* Set Resource Setting for this IRQ link */
408         Method (_SRS, 1, Serialized)
409         {
410                 CreateWordField(Arg0, 1, IRQ0)
412                 /* Which bit is set? */
413                 FindSetRightBit(IRQ0, Local0)
415                 Decrement(Local0)
416                 Store(Local0, PRTG)
417         }
419         /* Status */
420         Method (_STA, 0, Serialized)
421         {
422                 If(And(PRTG, 0x80)) {
423                         Return (0x9)
424                 } Else {
425                         Return (0xb)
426                 }
427         }
430 Device (LNKH)
432         Name (_HID, EISAID("PNP0C0F"))
433         Name (_UID, 8)
435         /* Disable method */
436         Method (_DIS, 0, Serialized)
437         {
438                 Store (0x80, PRTH)
439         }
441         /* Possible Resource Settings for this Link */
442         Name (_PRS, ResourceTemplate()
443         {
444                 IRQ(Level, ActiveLow, Shared)
445                         { 1, 3, 4, 5, 6, 7, 11, 12, 14, 15 }
446         })
448         /* Current Resource Settings for this link */
449         Method (_CRS, 0, Serialized)
450         {
451                 Name (RTLH, ResourceTemplate()
452                 {
453                         IRQ(Level, ActiveLow, Shared) {}
454                 })
455                 CreateWordField(RTLH, 1, IRQ0)
457                 /* Clear the WordField */
458                 Store (Zero, IRQ0)
460                 /* Set the bit from PRTH */
461                 ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
463                 Return (RTLH)
464         }
466         /* Set Resource Setting for this IRQ link */
467         Method (_SRS, 1, Serialized)
468         {
469                 CreateWordField(Arg0, 1, IRQ0)
471                 /* Which bit is set? */
472                 FindSetRightBit(IRQ0, Local0)
474                 Decrement(Local0)
475                 Store(Local0, PRTH)
476         }
478         /* Status */
479         Method (_STA, 0, Serialized)
480         {
481                 If(And(PRTH, 0x80)) {
482                         Return (0x9)
483                 } Else {
484                         Return (0xb)
485                 }
486         }