Angel Pons | 585495e | 2020-04-03 01:21:38 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Martin Roth | b28f466 | 2018-05-26 17:58:47 -0600 | [diff] [blame] | 2 | |
Stefan Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 3 | #include <arch/pirq_routing.h> |
| 4 | |
Stefan Reinauer | a47bd91 | 2012-11-15 15:15:15 -0800 | [diff] [blame] | 5 | static const struct irq_routing_table intel_irq_routing_table = { |
ronald g. minnich | 5ef4c59 | 2006-09-13 01:14:45 +0000 | [diff] [blame] | 6 | PIRQ_SIGNATURE, /* u32 signature */ |
| 7 | PIRQ_VERSION, /* u16 version */ |
Uwe Hermann | 95313d8 | 2009-10-07 21:51:33 +0000 | [diff] [blame] | 8 | 32+16*CONFIG_IRQ_SLOT_COUNT, /* there can be total CONFIG_IRQ_SLOT_COUNT devices on the bus */ |
ronald g. minnich | 5ef4c59 | 2006-09-13 01:14:45 +0000 | [diff] [blame] | 9 | 0x00, /* Where the interrupt router lies (bus) */ |
Elyes HAOUAS | 6350a2e | 2016-09-16 20:49:38 +0200 | [diff] [blame] | 10 | (0x01 << 3)|0x0, /* Where the interrupt router lies (dev) */ |
ronald g. minnich | 5ef4c59 | 2006-09-13 01:14:45 +0000 | [diff] [blame] | 11 | 0, /* IRQs devoted exclusively to PCI usage */ |
| 12 | 0x8086, /* Vendor */ |
| 13 | 0x7000, /* Device */ |
Uwe Hermann | 8fa90ec | 2010-09-21 21:16:27 +0000 | [diff] [blame] | 14 | 0, /* Miniport data */ |
Stefan Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 15 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */ |
ronald g. minnich | 5ef4c59 | 2006-09-13 01:14:45 +0000 | [diff] [blame] | 16 | 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 Georgi | 7155595 | 2021-02-11 14:40:01 +0100 | [diff] [blame] | 17 | /* clang-format off */ |
Stefan Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 18 | { |
Elyes HAOUAS | 6350a2e | 2016-09-16 20:49:38 +0200 | [diff] [blame] | 19 | /* 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 Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 26 | } |
Patrick Georgi | 7155595 | 2021-02-11 14:40:01 +0100 | [diff] [blame] | 27 | /* clang-format on */ |
Stefan Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 28 | }; |
arch import user (historical) | 59140cc | 2005-07-06 18:17:35 +0000 | [diff] [blame] | 29 | unsigned long write_pirq_routing_table(unsigned long addr) |
| 30 | { |
Elyes HAOUAS | f4df9d1 | 2016-09-23 17:57:38 +0200 | [diff] [blame] | 31 | return copy_pirq_routing_table(addr, &intel_irq_routing_table); |
arch import user (historical) | 59140cc | 2005-07-06 18:17:35 +0000 | [diff] [blame] | 32 | } |