fixup-powertv.c 867 B

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