Use DIMM0 et al in lots more places instead of hardocding values.
[coreboot.git] / src / mainboard / hp / dl145_g3 / irq_tables.c
1 /* This file was generated by getpir.c, do not modify!
2  * (but if you do, please run checkpir on it to verify)
3  *
4  * Contains the IRQ Routing Table dumped directly from your
5  * memory, which BIOS sets up.
6  *
7  * Documentation at: http://www.microsoft.com/whdc/archive/pciirq.mspx
8  */
9
10 #ifdef GETPIR
11 #include "pirq_routing.h"
12 #else
13 #include <arch/pirq_routing.h>
14 #endif
15
16 const struct irq_routing_table intel_irq_routing_table = {
17         PIRQ_SIGNATURE,  /* u32 signature */
18         PIRQ_VERSION,    /* u16 version   */
19         32+16*CONFIG_IRQ_SLOT_COUNT,        /* There can be total CONFIG_IRQ_SLOT_COUNT devices on the bus */
20         0x0,            /* Where the interrupt router lies (bus) */
21         (0x2<<3)|0x4,
22         0,               /* IRQs devoted exclusively to PCI usage */
23         0,               /* Vendor */
24         0,               /* Device */
25         0,               /* Miniport data */
26         { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
27         0x2a,            /* u8 checksum. This has to be set to some
28                             value that would give 0 after the sum of all
29                             bytes for this structure (including checksum) */
30         {
31                 /* bus,     dev|fn,   {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap},  slot, rfu */
32                 {0x00,(0x18<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Host Bridge
33                 {0x00,(0x02<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom ht1000 legacy southbridge
34                 {0x00,(0x03<<3)|0x0, {{0x02, 0x0400}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom ht1000 usb
35                 {0x00,(0x04<<3)|0x0, {{0x18, 0x08a8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // VGA Contr
36                 {0x00,(0x01<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom ht1000 pci/pci-x bridge
37                 {0x01,(0x0e<<3)|0x0, {{0x08, 0x00a0}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom BCM5785 [HT1000] SATA
38                 {0x01,(0x0d<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // BCM5785 [HT1000] PCI/PCI-X Bridge
39                 //{0x02,(0x01<<3)|0x0, {{0x11, 0x08a8}, {0x12, 0x08a8}, {0x13, 0x08a8}, {0x14, 0x008a8}}, 0x2, 0x0},
40                 {0x00,(0x06<<3)|0x0, {{0x2f, 0x08a8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom HT2100 PCI-Express Bridge
41                 //{0x03,(0x00<<3)|0x0, {{0x21, 0x08a8}, {0x21, 0x08a8}, {0x21, 0x08a8}, {0x21, 0x008a8}}, 0x1, 0x0},
42                 {0x00,(0x07<<3)|0x0, {{0x2f, 0x08a8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom HT2100 PCI-Express Bridge
43                 {0x00,(0x08<<3)|0x0, {{0x2f, 0x08a8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Broadcom HT2100 PCI-Express Bridge
44                 {0x00,(0x09<<3)|0x0, {{0x2f, 0x08a8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      //      Broadcom HT2100 PCI-Express Bridge
45                 //{0x06,(0x00<<3)|0x0, {{0x24, 0x08a8}, {0x24, 0x08a8}, {0x24, 0x08a8}, {0x24, 0x008a8}}, 0x2, 0x0},
46                 {0x00,(0x0a<<3)|0x0, {{0x2f, 0x08a8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      //      Broadcom HT2100 PCI-Express Bridge
47                 //{0x07,(0x00<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},
48                 {0x08,(0x04<<3)|0x0, {{0x25, 0x08a8}, {0x25, 0x08a8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // BCM5715 Gigabit Ethernet
49                 {0x00,(0x18<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},      // Host Bridge
50                 //{0x10,(0x01<<3)|0x0, {{0x28, 0x8000}, {0x28, 0x8000}, {0x28, 0x8000}, {0x28, 0x08000}}, 0x1, 0x0},
51                 {0x40,(0x01<<3)|0x0, {{0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0xdef8}, {0x00, 0x0def8}}, 0x0, 0x0},     // HTX slot
52         }
53 };
54
55 unsigned long write_pirq_routing_table(unsigned long addr)
56 {
57         return copy_pirq_routing_table(addr);
58 }
59