1
2#include <linux/init.h>
3#include <linux/kernel.h>
4#include <linux/pci.h>
5#include <asm/ip32/ip32_ints.h>
6
7
8
9
10
11
12
13
14
15
16
17#define SCSI0 MACEPCI_SCSI0_IRQ
18#define SCSI1 MACEPCI_SCSI1_IRQ
19#define INTA0 MACEPCI_SLOT0_IRQ
20#define INTA1 MACEPCI_SLOT1_IRQ
21#define INTA2 MACEPCI_SLOT2_IRQ
22#define INTB MACEPCI_SHARED0_IRQ
23#define INTC MACEPCI_SHARED1_IRQ
24#define INTD MACEPCI_SHARED2_IRQ
25static char irq_tab_mace[][5] = {
26
27 {0, 0, 0, 0, 0},
28 {0, SCSI0, SCSI0, SCSI0, SCSI0},
29 {0, SCSI1, SCSI1, SCSI1, SCSI1},
30 {0, INTA0, INTB, INTC, INTD},
31 {0, INTA1, INTC, INTD, INTB},
32 {0, INTA2, INTD, INTB, INTC},
33};
34
35
36
37
38
39
40
41
42
43int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
44{
45 return irq_tab_mace[slot][pin];
46}
47
48
49int pcibios_plat_dev_init(struct pci_dev *dev)
50{
51 return 0;
52}
53