blob: e288afd8c43b9a817781bd91a3d4347c7ab12df3 [file] [log] [blame]
Angel Pons585495e2020-04-03 01:21:38 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Martin Rothb28f4662018-05-26 17:58:47 -06002
Stefan Reinauer4a3bb762004-06-28 11:57:31 +00003#include <arch/pirq_routing.h>
4
Stefan Reinauera47bd912012-11-15 15:15:15 -08005static const struct irq_routing_table intel_irq_routing_table = {
ronald g. minnich5ef4c592006-09-13 01:14:45 +00006 PIRQ_SIGNATURE, /* u32 signature */
7 PIRQ_VERSION, /* u16 version */
Uwe Hermann95313d82009-10-07 21:51:33 +00008 32+16*CONFIG_IRQ_SLOT_COUNT, /* there can be total CONFIG_IRQ_SLOT_COUNT devices on the bus */
ronald g. minnich5ef4c592006-09-13 01:14:45 +00009 0x00, /* Where the interrupt router lies (bus) */
Elyes HAOUAS6350a2e2016-09-16 20:49:38 +020010 (0x01 << 3)|0x0, /* Where the interrupt router lies (dev) */
ronald g. minnich5ef4c592006-09-13 01:14:45 +000011 0, /* IRQs devoted exclusively to PCI usage */
12 0x8086, /* Vendor */
13 0x7000, /* Device */
Uwe Hermann8fa90ec2010-09-21 21:16:27 +000014 0, /* Miniport data */
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000015 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
ronald g. minnich5ef4c592006-09-13 01:14:45 +000016 0x7, /* u8 checksum , this hase to set to some value that would give 0 after the sum of all bytes for this structure (including checksum) */
Patrick Georgi71555952021-02-11 14:40:01 +010017 /* clang-format off */
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000018 {
Elyes HAOUAS6350a2e2016-09-16 20:49:38 +020019 /* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
20 {0x00,(0x01 << 3)|0x0, {{0x60, 0xdef8}, {0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0x0def8}}, 0x0, 0x0},
21 {0x00,(0x02 << 3)|0x0, {{0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0xdef8}, {0x60, 0x0def8}}, 0x1, 0x0},
22 {0x00,(0x03 << 3)|0x0, {{0x62, 0xdef8}, {0x63, 0xdef8}, {0x60, 0xdef8}, {0x61, 0x0def8}}, 0x2, 0x0},
23 {0x00,(0x04 << 3)|0x0, {{0x63, 0xdef8}, {0x60, 0xdef8}, {0x61, 0xdef8}, {0x62, 0x0def8}}, 0x3, 0x0},
24 {0x00,(0x05 << 3)|0x0, {{0x60, 0xdef8}, {0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0x0def8}}, 0x4, 0x0},
25 {0x00,(0x06 << 3)|0x0, {{0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0xdef8}, {0x60, 0x0def8}}, 0x5, 0x0},
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000026 }
Patrick Georgi71555952021-02-11 14:40:01 +010027 /* clang-format on */
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000028};
arch import user (historical)59140cc2005-07-06 18:17:35 +000029unsigned long write_pirq_routing_table(unsigned long addr)
30{
Elyes HAOUASf4df9d12016-09-23 17:57:38 +020031 return copy_pirq_routing_table(addr, &intel_irq_routing_table);
arch import user (historical)59140cc2005-07-06 18:17:35 +000032}