2 * This file is part of the coreboot project.
4 * Copyright (C) 2007 Juergen Beisert <juergen@kreuzholzen.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 * Interrupt routing description for BCOM's Winnet100 board.
24 * It was not possible to read back the pirq-Table. In the 0xF segment was
25 * no string like $PIRQ...
26 * But the already running 2.4.21 kernel provides eth0 IRQ15 and USB IRQ 11.
27 * The Realtek was device 0.f.0, the USB 0.13.0.
29 * This is the physical routing on this board:
32 * northbridge device device
34 * ------------------------------------
41 #include <arch/pirq_routing.h>
49 * The USB controller should be connected to IRQ11,
50 * the network controller should be connected to IRQ15.
52 #define IRQ_BITMAP_LINK0 0x0800
53 #define IRQ_BITMAP_LINK1 0x0400
54 #define IRQ_BITMAP_LINK2 0x8000
55 #define IRQ_BITMAP_LINK3 0x0200
57 /** Reserved interrupt channels for exclusive PCI usage. */
58 #define IRQ_DEVOTED_TO_PCI (IRQ_BITMAP_LINK0 | IRQ_BITMAP_LINK2)
61 * Routing description.
62 * Documentation at: http://www.microsoft.com/whdc/archive/pciirq.mspx
64 const struct irq_routing_table intel_irq_routing_table = {
65 .signature = PIRQ_SIGNATURE, /* PIRQ signature */
66 .version = PIRQ_VERSION, /* PIRQ version */
67 .size = 32 +16 * IRQ_SLOT_COUNT,/* Max. IRQ_SLOT_COUNT devices */
68 .rtr_bus = 0x00, /* Interrupt router bus */
69 .rtr_devfn = (0x12 << 3) | 0x0, /* Interrupt router device */
70 .exclusive_irqs = IRQ_DEVOTED_TO_PCI, /* IRQs devoted to PCI */
71 .rtr_vendor = 0x1078, /* Vendor */
72 .rtr_device = 0x0100, /* Device */
73 .miniport_data = 0, /* Crap (miniport) */
74 .checksum = 0xbf + 16, /* Checksum */
77 * Definition for "slot#1". There is no real slot,
78 * the USB device is embedded...
82 .devfn = (0x13 << 3) | 0x0,
85 [0] = { INT_A, IRQ_BITMAP_LINK0 },
86 [1] = { INT_B, IRQ_BITMAP_LINK1 },
87 [2] = { INT_C, IRQ_BITMAP_LINK2 },
88 [3] = { INT_D, IRQ_BITMAP_LINK3 },
94 * Definition for "slot#3". There is no real slot,
95 * the network device is soldered...
99 .devfn = (0x0f << 3) | 0x0,
102 [0] = { INT_C, IRQ_BITMAP_LINK2 },
103 [1] = { INT_D, IRQ_BITMAP_LINK3 },
104 [2] = { INT_A, IRQ_BITMAP_LINK0 },
105 [3] = { INT_B, IRQ_BITMAP_LINK1 },
113 * Copy the IRQ routing table to memory.
115 * @param[in] addr Destination address (between 0xF0000...0x100000).
118 unsigned long write_pirq_routing_table(unsigned long addr)
120 return copy_pirq_routing_table(addr);