fixup-malta.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | fixup-malta.c (19a8d6b7604df85402deecae01d7861cb1d40c89) |
---|---|
1#include <linux/init.h> 2#include <linux/pci.h> 3#include <asm/mips-boards/piix4.h> 4 5/* PCI interrupt pins */ 6#define PCIA 1 7#define PCIB 2 8#define PCIC 3 9#define PCID 4 10 11/* This table is filled in by interrogating the PIIX4 chip */ 12static char pci_irq[5] = { 13}; 14 | 1#include <linux/init.h> 2#include <linux/pci.h> 3#include <asm/mips-boards/piix4.h> 4 5/* PCI interrupt pins */ 6#define PCIA 1 7#define PCIB 2 8#define PCIC 3 9#define PCID 4 10 11/* This table is filled in by interrogating the PIIX4 chip */ 12static char pci_irq[5] = { 13}; 14 |
15static char irq_tab[][5] __initdata = { | 15static char irq_tab[][5] = { |
16 /* INTA INTB INTC INTD */ 17 {0, 0, 0, 0, 0 }, /* 0: GT64120 PCI bridge */ 18 {0, 0, 0, 0, 0 }, /* 1: Unused */ 19 {0, 0, 0, 0, 0 }, /* 2: Unused */ 20 {0, 0, 0, 0, 0 }, /* 3: Unused */ 21 {0, 0, 0, 0, 0 }, /* 4: Unused */ 22 {0, 0, 0, 0, 0 }, /* 5: Unused */ 23 {0, 0, 0, 0, 0 }, /* 6: Unused */ --- 9 unchanged lines hidden (view full) --- 33 {0, 0, 0, 0, 0 }, /* 16: Unused */ 34 {0, 0, 0, 0, 0 }, /* 17: Bonito/SOC-it PCI Bridge*/ 35 {0, PCIA, PCIB, PCIC, PCID }, /* 18: PCI Slot 1 */ 36 {0, PCIB, PCIC, PCID, PCIA }, /* 19: PCI Slot 2 */ 37 {0, PCIC, PCID, PCIA, PCIB }, /* 20: PCI Slot 3 */ 38 {0, PCID, PCIA, PCIB, PCIC } /* 21: PCI Slot 4 */ 39}; 40 | 16 /* INTA INTB INTC INTD */ 17 {0, 0, 0, 0, 0 }, /* 0: GT64120 PCI bridge */ 18 {0, 0, 0, 0, 0 }, /* 1: Unused */ 19 {0, 0, 0, 0, 0 }, /* 2: Unused */ 20 {0, 0, 0, 0, 0 }, /* 3: Unused */ 21 {0, 0, 0, 0, 0 }, /* 4: Unused */ 22 {0, 0, 0, 0, 0 }, /* 5: Unused */ 23 {0, 0, 0, 0, 0 }, /* 6: Unused */ --- 9 unchanged lines hidden (view full) --- 33 {0, 0, 0, 0, 0 }, /* 16: Unused */ 34 {0, 0, 0, 0, 0 }, /* 17: Bonito/SOC-it PCI Bridge*/ 35 {0, PCIA, PCIB, PCIC, PCID }, /* 18: PCI Slot 1 */ 36 {0, PCIB, PCIC, PCID, PCIA }, /* 19: PCI Slot 2 */ 37 {0, PCIC, PCID, PCIA, PCIB }, /* 20: PCI Slot 3 */ 38 {0, PCID, PCIA, PCIB, PCIC } /* 21: PCI Slot 4 */ 39}; 40 |
41int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 41int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
42{ 43 int virq; 44 virq = irq_tab[slot][pin]; 45 return pci_irq[virq]; 46} 47 48/* Do platform specific device initialization at pci_enable_device() time */ 49int pcibios_plat_dev_init(struct pci_dev *dev) --- 109 unchanged lines hidden --- | 42{ 43 int virq; 44 virq = irq_tab[slot][pin]; 45 return pci_irq[virq]; 46} 47 48/* Do platform specific device initialization at pci_enable_device() time */ 49int pcibios_plat_dev_init(struct pci_dev *dev) --- 109 unchanged lines hidden --- |