This patch unifies the use of config options in v2 to all start with CONFIG_
[coreboot.git] / src / mainboard / intel / truxton / irq_tables.c
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2008 Arastra, Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  *
19  */
20
21 #include <arch/pirq_routing.h>
22
23 const struct irq_routing_table intel_irq_routing_table = {
24         PIRQ_SIGNATURE, /* u32 signature */
25         PIRQ_VERSION,   /* u16 version   */
26         32+16*CONFIG_IRQ_SLOT_COUNT, /* u16 Table size 32+(16*devices)  */
27         0x00,       /* u8 Bus 0 */
28         (0x1f << 3) | 0x0, /* u8 Device 1f, Function 0 */
29         0x0000,     /* u16 reserve IRQ for PCI */
30         0x8086,     /* u16 Vendor */
31         0x5031,     /* Device ID */
32         0x00000000, /* u32 miniport_data */
33         { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
34         0x5e,   /*  u8 checksum - mod 256 checksum must give zero */
35         {  /* bus, devfn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu  */
36             {0x00, 0xf8, {{0x62, 0xdc78}, {0x61, 0xdcf8}, {0x00, 0x0000}, {0x00, 0x0000}}, 0x00,  0x00},
37         }
38 };
39
40 unsigned long write_pirq_routing_table(unsigned long addr)
41 {
42         return copy_pirq_routing_table(addr);
43 }
44