This source file includes following definitions.
- pcibios_map_irq
- pcibios_plat_dev_init
1
2
3
4
5
6
7 #include <linux/init.h>
8 #include <linux/pci.h>
9
10 #include <asm/vr41xx/mpc30x.h>
11
12 static const int internal_func_irqs[] = {
13 VRC4173_CASCADE_IRQ,
14 VRC4173_AC97_IRQ,
15 VRC4173_USB_IRQ,
16 };
17
18 static const int irq_tab_mpc30x[] = {
19 [12] = VRC4173_PCMCIA1_IRQ,
20 [13] = VRC4173_PCMCIA2_IRQ,
21 [29] = MQ200_IRQ,
22 };
23
24 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
25 {
26 if (slot == 30)
27 return internal_func_irqs[PCI_FUNC(dev->devfn)];
28
29 return irq_tab_mpc30x[slot];
30 }
31
32
33 int pcibios_plat_dev_init(struct pci_dev *dev)
34 {
35 return 0;
36 }