fixup-powertv.c 841 B

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