3 * arch/mips/vr41xx/zao-capcella/pci_fixup.c
5 * BRIEF MODULE DESCRIPTION
6 * The ZAO Networks Capcella specific PCI fixups.
8 * Copyright 2002 Yoichi Yuasa
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
16 #include <linux/init.h>
17 #include <linux/pci.h>
19 #include <asm/vr41xx/capcella.h>
24 #define INT1 RTL8139_1_IRQ
25 #define INT2 RTL8139_2_IRQ
26 #define INTA PC104PLUS_INTA_IRQ
27 #define INTB PC104PLUS_INTB_IRQ
28 #define INTC PC104PLUS_INTC_IRQ
29 #define INTD PC104PLUS_INTD_IRQ
31 static char irq_tab_capcella[][5] __initdata = {
32 [11] = { -1, INT1, INT1, INT1, INT1 },
33 [12] = { -1, INT2, INT2, INT2, INT2 },
34 [14] = { -1, INTA, INTB, INTC, INTD }
37 int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
39 return irq_tab_capcella[slot][pin];