| David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 1 | #include <linux/init.h> | 
|  | 2 | #include <linux/pci.h> | 
|  | 3 | #include <asm/mach-powertv/interrupts.h> | 
|  | 4 | #include "powertv-pci.h" | 
|  | 5 |  | 
|  | 6 | int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 
|  | 7 | { | 
|  | 8 | return asic_pcie_map_irq(dev, slot, pin); | 
|  | 9 | } | 
|  | 10 |  | 
|  | 11 | /* Do platform specific device initialization at pci_enable_device() time */ | 
|  | 12 | int pcibios_plat_dev_init(struct pci_dev *dev) | 
|  | 13 | { | 
|  | 14 | return 0; | 
|  | 15 | } | 
|  | 16 |  | 
|  | 17 | /* | 
|  | 18 | * asic_pcie_map_irq | 
|  | 19 | * | 
|  | 20 | * Parameters: | 
|  | 21 | * *dev - pointer to a pci_dev structure  (not used) | 
|  | 22 | * slot - slot number  (not used) | 
|  | 23 | * pin - pin number  (not used) | 
|  | 24 | * | 
|  | 25 | * Return Value: | 
|  | 26 | * Returns: IRQ number (always the PCI Express IRQ number) | 
|  | 27 | * | 
|  | 28 | * Description: | 
|  | 29 | * asic_pcie_map_irq will return the IRQ number of the PCI Express interrupt. | 
|  | 30 | * | 
|  | 31 | */ | 
|  | 32 | int asic_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 
|  | 33 | { | 
|  | 34 | return irq_pciexp; | 
|  | 35 | } | 
|  | 36 | EXPORT_SYMBOL(asic_pcie_map_irq); |