ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / mips / pci / fixup-capcella.c
1 /*
2  * FILE NAME
3  *      arch/mips/vr41xx/zao-capcella/pci_fixup.c
4  *
5  * BRIEF MODULE DESCRIPTION
6  *      The ZAO Networks Capcella specific PCI fixups.
7  *
8  * Copyright 2002 Yoichi Yuasa
9  *                yuasa@hh.iij4u.or.jp
10  *
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.
15  */
16 #include <linux/init.h>
17 #include <linux/pci.h>
18
19 #include <asm/vr41xx/capcella.h>
20
21 /*
22  * Shortcuts
23  */
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
30
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 }
35 };
36
37 int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
38 {
39         return irq_tab_capcella[slot][pin];
40 }