Matt DeVillier | c12e5ae | 2016-11-27 02:19:02 -0600 | [diff] [blame] | 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 modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | /* This is board specific information: IRQ routing for Haswell */ |
| 17 | |
| 18 | // PCI Interrupt Routing |
| 19 | Method(_PRT) |
| 20 | { |
| 21 | If (PICM) { |
| 22 | Return (Package() { |
| 23 | // Onboard graphics (IGD) 0:2.0 |
| 24 | Package() { 0x0002ffff, 0, 0, 16 }, |
| 25 | // Mini-HD Audio 0:3.0 |
| 26 | Package() { 0x0003ffff, 0, 0, 16 }, |
| 27 | // High Definition Audio 0:1b.0 |
| 28 | Package() { 0x001bffff, 0, 0, 22 }, |
| 29 | // PCIe Root Ports 0:1c.x |
| 30 | Package() { 0x001cffff, 0, 0, 16 }, |
| 31 | Package() { 0x001cffff, 1, 0, 17 }, |
| 32 | Package() { 0x001cffff, 2, 0, 18 }, |
| 33 | Package() { 0x001cffff, 3, 0, 19 }, |
| 34 | // EHCI 0:1d.0 |
| 35 | Package() { 0x001dffff, 0, 0, 19 }, |
| 36 | // XHCI 0:14.0 |
| 37 | Package() { 0x0014ffff, 0, 0, 18 }, |
| 38 | // LPC devices 0:1f.0 |
| 39 | Package() { 0x001fffff, 0, 0, 22 }, |
| 40 | Package() { 0x001fffff, 1, 0, 18 }, |
| 41 | Package() { 0x001fffff, 2, 0, 17 }, |
| 42 | Package() { 0x001fffff, 3, 0, 16 }, |
| 43 | // Serial IO 0:15.0 |
| 44 | Package() { 0x0015ffff, 0, 0, 20 }, |
| 45 | Package() { 0x0015ffff, 1, 0, 21 }, |
| 46 | Package() { 0x0015ffff, 2, 0, 21 }, |
| 47 | Package() { 0x0015ffff, 3, 0, 21 }, |
| 48 | // SDIO 0:17.0 |
| 49 | Package() { 0x0017ffff, 0, 0, 23 }, |
| 50 | }) |
| 51 | } Else { |
| 52 | Return (Package() { |
| 53 | // Onboard graphics (IGD) 0:2.0 |
| 54 | Package() { 0x0002ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, |
| 55 | // Mini-HD Audio 0:3.0 |
| 56 | Package() { 0x0003ffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, |
| 57 | // High Definition Audio 0:1b.0 |
| 58 | Package() { 0x001bffff, 0, \_SB.PCI0.LPCB.LNKG, 0 }, |
| 59 | // PCIe Root Ports 0:1c.x |
| 60 | Package() { 0x001cffff, 0, \_SB.PCI0.LPCB.LNKA, 0 }, |
| 61 | Package() { 0x001cffff, 1, \_SB.PCI0.LPCB.LNKB, 0 }, |
| 62 | Package() { 0x001cffff, 2, \_SB.PCI0.LPCB.LNKC, 0 }, |
| 63 | Package() { 0x001cffff, 3, \_SB.PCI0.LPCB.LNKD, 0 }, |
| 64 | // EHCI 0:1d.0 |
| 65 | Package() { 0x001dffff, 0, \_SB.PCI0.LPCB.LNKD, 0 }, |
| 66 | // XHCI 0:14.0 |
| 67 | Package() { 0x0014ffff, 0, \_SB.PCI0.LPCB.LNKC, 0 }, |
| 68 | // LPC device 0:1f.0 |
| 69 | Package() { 0x001fffff, 0, \_SB.PCI0.LPCB.LNKG, 0 }, |
| 70 | Package() { 0x001fffff, 1, \_SB.PCI0.LPCB.LNKC, 0 }, |
| 71 | Package() { 0x001fffff, 2, \_SB.PCI0.LPCB.LNKB, 0 }, |
| 72 | Package() { 0x001fffff, 3, \_SB.PCI0.LPCB.LNKA, 0 }, |
| 73 | // Serial IO 0:15.0 |
| 74 | Package() { 0x0015ffff, 0, \_SB.PCI0.LPCB.LNKE, 0 }, |
| 75 | Package() { 0x0015ffff, 1, \_SB.PCI0.LPCB.LNKF, 0 }, |
| 76 | Package() { 0x0015ffff, 2, \_SB.PCI0.LPCB.LNKF, 0 }, |
| 77 | Package() { 0x0015ffff, 3, \_SB.PCI0.LPCB.LNKF, 0 }, |
| 78 | // SDIO 0:17.0 |
| 79 | Package() { 0x0017ffff, 0, \_SB.PCI0.LPCB.LNKH, 0 }, |
| 80 | }) |
| 81 | } |
| 82 | } |