blob: bacf5fe2739cc7a1e22ae8be3f0f6b82a38aacfc [file] [log] [blame]
Angel Pons7544e2f2020-04-03 01:23:10 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer838c5a52010-01-17 14:08:17 +00002
3#include <arch/pirq_routing.h>
4
Stefan Reinauera47bd912012-11-15 15:15:15 -08005static const struct irq_routing_table intel_irq_routing_table = {
Stefan Reinauer838c5a52010-01-17 14:08:17 +00006 PIRQ_SIGNATURE, /* u32 signature */
7 PIRQ_VERSION, /* u16 version */
8 32+16*18, /* There can be total 18 devices on the bus */
9 0x00, /* Where the interrupt router lies (bus) */
Elyes HAOUASa5aad2e2016-09-19 09:47:16 -060010 (0x1f << 3)|0x0, /* Where the interrupt router lies (dev) */
Stefan Reinauer838c5a52010-01-17 14:08:17 +000011 0, /* IRQs devoted exclusively to PCI usage */
12 0x8086, /* Vendor */
13 0x27b0, /* Device */
14 0, /* miniport */
15 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
16 0xf, /* u8 checksum. */
Patrick Georgi71555952021-02-11 14:40:01 +010017 /* clang-format off */
Stefan Reinauer838c5a52010-01-17 14:08:17 +000018 {
Elyes HAOUASa5aad2e2016-09-19 09:47:16 -060019 /* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
Elyes HAOUASec16e932016-10-07 18:22:44 +020020 {0x00,(0x01 << 3)|0x0, {{0x60, 0xdcf8}, {0x61, 0xdcf8}, {0x62, 0xdcf8}, {0x63, 0x0dcd8}}, 0x0, 0x0}, /* PCIe? */
21 {0x00,(0x02 << 3)|0x0, {{0x60, 0xdcf8}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x00000}}, 0x0, 0x0}, /* VGA */
22 {0x00,(0x1e << 3)|0x0, {{0x61, 0xdcf8}, {0x68, 0xdcf8}, {0x00, 0x0000}, {0x00, 0x00000}}, 0x0, 0x0}, /* PCI bridge */
23 {0x00,(0x1f << 3)|0x0, {{0x62, 0xdcf8}, {0x63, 0xdcd8}, {0x00, 0x0000}, {0x00, 0x00000}}, 0x0, 0x0}, /* LPC */
24 {0x00,(0x1d << 3)|0x0, {{0x6b, 0xdcf8}, {0x63, 0xdcd8}, {0x62, 0xdcf8}, {0x60, 0x0dcf8}}, 0x0, 0x0}, /* USB#1 */
25 {0x00,(0x1b << 3)|0x0, {{0x60, 0xdcf8}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x00000}}, 0x0, 0x0}, /* Audio device */
26 {0x00,(0x1c << 3)|0x0, {{0x60, 0xdcf8}, {0x61, 0xdcf8}, {0x62, 0xdcf8}, {0x63, 0x0dcd8}}, 0x2, 0x0}, /* PCIe bridge */
27 {0x04,(0x00 << 3)|0x0, {{0x60, 0xdcf8}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x00000}}, 0x0, 0x0}, /* Firewire */
28 {0x04,(0x01 << 3)|0x0, {{0x68, 0xdcf8}, {0x69, 0xdcf8}, {0x6a, 0xdcf8}, {0x6b, 0x0dcf8}}, 0x1, 0x0}, /* PCI Bridge */
Elyes HAOUASa5aad2e2016-09-19 09:47:16 -060029 {0x04,(0x02 << 3)|0x0, {{0x69, 0xdcf8}, {0x6a, 0xdcf8}, {0x6b, 0xdcf8}, {0x68, 0x0dcf8}}, 0x2, 0x0},
30 {0x04,(0x03 << 3)|0x0, {{0x6a, 0xdcf8}, {0x6b, 0xdcf8}, {0x68, 0xdcf8}, {0x69, 0x0dcf8}}, 0x3, 0x0},
31 {0x04,(0x04 << 3)|0x0, {{0x6b, 0xdcf8}, {0x68, 0xdcf8}, {0x69, 0xdcf8}, {0x6a, 0x0dcf8}}, 0x4, 0x0},
32 {0x04,(0x05 << 3)|0x0, {{0x63, 0xdcd8}, {0x62, 0xdcf8}, {0x61, 0xdcf8}, {0x60, 0x0dcf8}}, 0x5, 0x0},
33 {0x04,(0x06 << 3)|0x0, {{0x62, 0xdcf8}, {0x61, 0xdcf8}, {0x60, 0xdcf8}, {0x63, 0x0dcd8}}, 0x6, 0x0},
34 {0x04,(0x09 << 3)|0x0, {{0x69, 0xdcf8}, {0x6a, 0xdcf8}, {0x6b, 0xdcf8}, {0x68, 0x0dcf8}}, 0x9, 0x0},
Elyes HAOUASec16e932016-10-07 18:22:44 +020035 {0x01,(0x00 << 3)|0x0, {{0x60, 0xdcf8}, {0x61, 0xdcf8}, {0x62, 0xdcf8}, {0x63, 0x0dcd8}}, 0x0, 0x0}, /* Ethernet 8168 */
Elyes HAOUASa5aad2e2016-09-19 09:47:16 -060036 {0x02,(0x00 << 3)|0x0, {{0x60, 0xdcf8}, {0x61, 0xdcf8}, {0x62, 0xdcf8}, {0x63, 0x0dcd8}}, 0x9, 0x0},
37 {0x03,(0x00 << 3)|0x0, {{0x61, 0xdcf8}, {0x62, 0xdcf8}, {0x63, 0xdcd8}, {0x60, 0x0dcf8}}, 0xa, 0x0},
Stefan Reinauer838c5a52010-01-17 14:08:17 +000038 }
Patrick Georgi71555952021-02-11 14:40:01 +010039 /* clang-format on */
Stefan Reinauer838c5a52010-01-17 14:08:17 +000040};
41
42unsigned long write_pirq_routing_table(unsigned long addr)
43{
Stefan Reinauera47bd912012-11-15 15:15:15 -080044 return copy_pirq_routing_table(addr, &intel_irq_routing_table);
Stefan Reinauer838c5a52010-01-17 14:08:17 +000045}