ops-rts7751r2d.c 752 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * linux/arch/sh/drivers/pci/ops-rts7751r2d.c
  3. *
  4. * Author: Ian DaSilva (idasilva@mvista.com)
  5. *
  6. * Highly leveraged from pci-bigsur.c, written by Dustin McIntire.
  7. *
  8. * May be copied or modified under the terms of the GNU General Public
  9. * License. See linux/COPYING for more information.
  10. *
  11. * PCI initialization for the Renesas SH7751R RTS7751R2D board
  12. */
  13. #include <linux/kernel.h>
  14. #include <linux/types.h>
  15. #include <linux/init.h>
  16. #include <linux/pci.h>
  17. #include <linux/io.h>
  18. #include <mach/r2d.h>
  19. #include "pci-sh4.h"
  20. static u8 rts7751r2d_irq_tab[] __initdata = {
  21. IRQ_PCI_INTA,
  22. IRQ_PCI_INTB,
  23. IRQ_PCI_INTC,
  24. IRQ_PCI_INTD,
  25. };
  26. int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin)
  27. {
  28. return rts7751r2d_irq_tab[slot];
  29. }