- O2, enums, and switch statements work in romcc
[coreboot.git] / src / mainboard / arima / hdama / irq_tables.c
1 #include <arch/pirq_routing.h>
2
3 const struct irq_routing_table intel_irq_routing_table = {
4         PIRQ_SIGNATURE, /* u32 signature */
5         PIRQ_VERSION,   /* u16 version   */
6         32+16*9,        /* there can be total 9 devices on the bus */
7         1,              /* Where the interrupt router lies (bus) */
8         (4<<3)|3,       /* Where the interrupt router lies (dev) */
9         0x0,            /* IRQs devoted exclusively to PCI usage */
10         0x1022,         /* Vendor */
11         0x746b,         /* Device */
12         0,              /* Crap (miniport) */
13         { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
14         0xb0,           /*  u8 checksum , mod 256 checksum must give zero */
15         {       /* bus, devfn,     {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu  */
16                 /* PCI Slot 1 */
17                 {0x03, (0x01<<3)|0, {{0x02, 0xdef8}, {0x03, 0xdef8}, {0x04, 0xdef8}, {0x01, 0xdef8}}, 0x01, 0},
18                 /* PCI Slot 2 */
19                 {0x03, (0x02<<3)|0, {{0x03, 0xdef8}, {0x04, 0xdef8}, {0x01, 0xdef8}, {0x02, 0xdef8}}, 0x02, 0},
20                 /* PCI Slot 3 */
21                 {0x02, (0x01<<3)|0, {{0x02, 0xdef8}, {0x03, 0xdef8}, {0x04, 0xdef8}, {0x01, 0xdef8}}, 0x03, 0},
22                 /* PCI Slot 4 */
23                 {0x02, (0x02<<3)|0, {{0x03, 0xdef8}, {0x04, 0xdef8}, {0x01, 0xdef8}, {0x02, 0xdef8}}, 0x04, 0},
24                 /* PCI Slot 5 */
25                 {0x04, (0x05<<3)|0, {{0x02, 0xdef8}, {0x03, 0xdef8}, {0x04, 0xdef8}, {0x01, 0xdef8}}, 0x05, 0},
26                 /* PCI Slot 6 */
27                 {0x04, (0x04<<3)|0, {{0x01, 0xdef8}, {0x02, 0xdef8}, {0x03, 0xdef8}, {0x04, 0xdef8}}, 0x06, 0},
28                 /* Onboard NICS */
29                 {0x02, (0x03<<3)|0, {{0x04, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}}, 0x00, 0},
30                 {0x02, (0x04<<3)|0, {{0x04, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}}, 0x00, 0},
31                 /* Let Linux know about bus 1 */
32                 {0x01, (0x04<<3)|3, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}}, 0x00, 0},
33         }
34 };