3 * arch/mips/vr41xx/victor-mpc30x/pci_fixup.c
5 * BRIEF MODULE DESCRIPTION
6 * The Victor MP-C303/304 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/vrc4173.h>
20 #include <asm/vr41xx/mpc30x.h>
25 #define PCMCIA1 VRC4173_PCMCIA1_IRQ
26 #define PCMCIA2 VRC4173_PCMCIA2_IRQ
29 static const int internal_func_irqs[8] __initdata = {
36 static char irq_tab_mpc30x[][5] __initdata = {
37 [12] = { PCMCIA1, PCMCIA1, 0, 0 },
38 [13] = { PCMCIA2, PCMCIA2, 0, 0 },
39 [29] = { MQ, MQ, 0, 0 }, /* mediaQ MQ-200 */
42 int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
45 return internal_func_irqs[PCI_FUNC(dev->devfn)];
47 return irq_tab_mpc30x[slot][pin];