blob: c34809f677d90f3070952ac4b5838b59a2a516b8 [file] [log] [blame]
Ed Swierkb8e53eb2008-10-13 23:18:56 +00001/*
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 *
Ed Swierkb8e53eb2008-10-13 23:18:56 +000015 */
16
17#include <arch/pirq_routing.h>
18
Stefan Reinauera47bd912012-11-15 15:15:15 -080019static const struct irq_routing_table intel_irq_routing_table = {
Ed Swierkb8e53eb2008-10-13 23:18:56 +000020 PIRQ_SIGNATURE, /* u32 signature */
21 PIRQ_VERSION, /* u16 version */
Stefan Reinauer08670622009-06-30 15:17:49 +000022 32+16*CONFIG_IRQ_SLOT_COUNT, /* u16 Table size 32+(16*devices) */
Ed Swierkb8e53eb2008-10-13 23:18:56 +000023 0x00, /* u8 Bus 0 */
24 (0x1f << 3) | 0x0, /* u8 Device 1f, Function 0 */
25 0x0000, /* u16 reserve IRQ for PCI */
26 0x8086, /* u16 Vendor */
27 0x5031, /* Device ID */
28 0x00000000, /* u32 miniport_data */
29 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* u8 rfu[11] */
30 0x5e, /* u8 checksum - mod 256 checksum must give zero */
31 { /* bus, devfn, {link, bitmap}, {link, bitmap}, {link, bitmap}, {link, bitmap}, slot, rfu */
32 {0x00, 0xf8, {{0x62, 0xdc78}, {0x61, 0xdcf8}, {0x00, 0x0000}, {0x00, 0x0000}}, 0x00, 0x00},
33 }
34};
35
36unsigned long write_pirq_routing_table(unsigned long addr)
37{
Stefan Reinauera47bd912012-11-15 15:15:15 -080038 return copy_pirq_routing_table(addr, &intel_irq_routing_table);
Ed Swierkb8e53eb2008-10-13 23:18:56 +000039}