1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * fixup-mpc30x.c, The Victor MP-C303/304 specific PCI fixups.
7 #include <linux/init.h>
10 #include <asm/vr41xx/mpc30x.h>
12 static const int internal_func_irqs[] = {
18 static const int irq_tab_mpc30x[] = {
19 [12] = VRC4173_PCMCIA1_IRQ,
20 [13] = VRC4173_PCMCIA2_IRQ,
24 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
27 return internal_func_irqs[PCI_FUNC(dev->devfn)];
29 return irq_tab_mpc30x[slot];
32 /* Do platform specific device initialization at pci_enable_device() time */
33 int pcibios_plat_dev_init(struct pci_dev *dev)