blob: 9406688cdd1b750cfad88f63c9daa409019d7b2c [file] [log] [blame]
Damien Zammit43a1f782015-08-19 15:16:59 +10001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2015 Damien Zammit <damien@zamaudio.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; version 2 of
10 * the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17
18Device (PEGP)
19{
20 Name (_ADR, 0x00010000)
21
22 // PCI Interrupt Routing.
23 Method (_PRT)
24 {
25 If (PICM) {
26 Return (Package() {
Damien Zammit614ffc62016-09-07 12:43:44 +100027 Package() { 0x0000ffff, 0, 0, 16 },
28 Package() { 0x0000ffff, 1, 0, 17 },
29 Package() { 0x0000ffff, 2, 0, 18 },
30 Package() { 0x0000ffff, 3, 0, 19 },
Damien Zammit43a1f782015-08-19 15:16:59 +100031 })
32 } Else {
33 Return (Package() {
Damien Zammit614ffc62016-09-07 12:43:44 +100034 Package() { 0x0000ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 },
35 Package() { 0x0000ffff, 1, \_SB.PCI0.LPCB.LNKB, 0 },
36 Package() { 0x0000ffff, 2, \_SB.PCI0.LPCB.LNKC, 0 },
37 Package() { 0x0000ffff, 3, \_SB.PCI0.LPCB.LNKD, 0 },
Damien Zammit43a1f782015-08-19 15:16:59 +100038 })
39 }
40
41 }
42}