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