Stefan Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 1 | #include <arch/pirq_routing.h> |
| 2 | |
Stefan Reinauer | a47bd91 | 2012-11-15 15:15:15 -0800 | [diff] [blame] | 3 | static const struct irq_routing_table intel_irq_routing_table = { |
ronald g. minnich | 5ef4c59 | 2006-09-13 01:14:45 +0000 | [diff] [blame] | 4 | PIRQ_SIGNATURE, /* u32 signature */ |
| 5 | PIRQ_VERSION, /* u16 version */ |
Uwe Hermann | 95313d8 | 2009-10-07 21:51:33 +0000 | [diff] [blame] | 6 | 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] | 7 | 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 Hermann | 8fa90ec | 2010-09-21 21:16:27 +0000 | [diff] [blame] | 12 | 0, /* Miniport data */ |
Stefan Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 13 | { 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] | 14 | 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 Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 15 | { |
ronald g. minnich | 5ef4c59 | 2006-09-13 01:14:45 +0000 | [diff] [blame] | 16 | /* 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 Reinauer | 4a3bb76 | 2004-06-28 11:57:31 +0000 | [diff] [blame] | 23 | } |
| 24 | }; |
arch import user (historical) | 59140cc | 2005-07-06 18:17:35 +0000 | [diff] [blame] | 25 | unsigned long write_pirq_routing_table(unsigned long addr) |
| 26 | { |
Stefan Reinauer | a47bd91 | 2012-11-15 15:15:15 -0800 | [diff] [blame] | 27 | return copy_pirq_routing_table(addr, &intel_irq_routing_table); |
arch import user (historical) | 59140cc | 2005-07-06 18:17:35 +0000 | [diff] [blame] | 28 | } |