blob: daa6782fd1452a06649e938de67d7654de71987d [file] [log] [blame]
Stefan Reinauer4a3bb762004-06-28 11:57:31 +00001#include <arch/pirq_routing.h>
2
Stefan Reinauera47bd912012-11-15 15:15:15 -08003static const struct irq_routing_table intel_irq_routing_table = {
ronald g. minnich5ef4c592006-09-13 01:14:45 +00004 PIRQ_SIGNATURE, /* u32 signature */
5 PIRQ_VERSION, /* u16 version */
Uwe Hermann95313d82009-10-07 21:51:33 +00006 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 +00007 0x00, /* Where the interrupt router lies (bus) */
8 (0x01<<3)|0x0, /* Where the interrupt router lies (dev) */
9 0, /* IRQs devoted exclusively to PCI usage */
10 0x8086, /* Vendor */
11 0x7000, /* Device */
Uwe Hermann8fa90ec2010-09-21 21:16:27 +000012 0, /* Miniport data */
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000013 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
ronald g. minnich5ef4c592006-09-13 01:14:45 +000014 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) */
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000015 {
ronald g. minnich5ef4c592006-09-13 01:14:45 +000016 /* bus, dev|fn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
17 {0x00,(0x01<<3)|0x0, {{0x60, 0xdef8}, {0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0x0def8}}, 0x0, 0x0},
18 {0x00,(0x02<<3)|0x0, {{0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0xdef8}, {0x60, 0x0def8}}, 0x1, 0x0},
19 {0x00,(0x03<<3)|0x0, {{0x62, 0xdef8}, {0x63, 0xdef8}, {0x60, 0xdef8}, {0x61, 0x0def8}}, 0x2, 0x0},
20 {0x00,(0x04<<3)|0x0, {{0x63, 0xdef8}, {0x60, 0xdef8}, {0x61, 0xdef8}, {0x62, 0x0def8}}, 0x3, 0x0},
21 {0x00,(0x05<<3)|0x0, {{0x60, 0xdef8}, {0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0x0def8}}, 0x4, 0x0},
22 {0x00,(0x06<<3)|0x0, {{0x61, 0xdef8}, {0x62, 0xdef8}, {0x63, 0xdef8}, {0x60, 0x0def8}}, 0x5, 0x0},
Stefan Reinauer4a3bb762004-06-28 11:57:31 +000023 }
24};
arch import user (historical)59140cc2005-07-06 18:17:35 +000025unsigned long write_pirq_routing_table(unsigned long addr)
26{
Stefan Reinauera47bd912012-11-15 15:15:15 -080027 return copy_pirq_routing_table(addr, &intel_irq_routing_table);
arch import user (historical)59140cc2005-07-06 18:17:35 +000028}