mach.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * linux/arch/sh/kernel/mach_rts7751r2d.c
  3. *
  4. * Minor tweak of mach_se.c file to reference rts7751r2d-specific items.
  5. *
  6. * May be copied or modified under the terms of the GNU General Public
  7. * License. See linux/COPYING for more information.
  8. *
  9. * Machine vector for the Renesas Technology sales RTS7751R2D
  10. */
  11. #include <linux/config.h>
  12. #include <linux/init.h>
  13. #include <linux/types.h>
  14. #include <asm/machvec.h>
  15. #include <asm/rtc.h>
  16. #include <asm/irq.h>
  17. #include <asm/rts7751r2d/io.h>
  18. extern void heartbeat_rts7751r2d(void);
  19. extern void init_rts7751r2d_IRQ(void);
  20. extern void *rts7751r2d_ioremap(unsigned long, unsigned long);
  21. extern int rts7751r2d_irq_demux(int irq);
  22. extern void *voyagergx_consistent_alloc(struct device *, size_t, dma_addr_t *, gfp_t);
  23. extern int voyagergx_consistent_free(struct device *, size_t, void *, dma_addr_t);
  24. /*
  25. * The Machine Vector
  26. */
  27. struct sh_machine_vector mv_rts7751r2d __initmv = {
  28. .mv_nr_irqs = 72,
  29. .mv_inb = rts7751r2d_inb,
  30. .mv_inw = rts7751r2d_inw,
  31. .mv_inl = rts7751r2d_inl,
  32. .mv_outb = rts7751r2d_outb,
  33. .mv_outw = rts7751r2d_outw,
  34. .mv_outl = rts7751r2d_outl,
  35. .mv_inb_p = rts7751r2d_inb_p,
  36. .mv_inw_p = rts7751r2d_inw,
  37. .mv_inl_p = rts7751r2d_inl,
  38. .mv_outb_p = rts7751r2d_outb_p,
  39. .mv_outw_p = rts7751r2d_outw,
  40. .mv_outl_p = rts7751r2d_outl,
  41. .mv_insb = rts7751r2d_insb,
  42. .mv_insw = rts7751r2d_insw,
  43. .mv_insl = rts7751r2d_insl,
  44. .mv_outsb = rts7751r2d_outsb,
  45. .mv_outsw = rts7751r2d_outsw,
  46. .mv_outsl = rts7751r2d_outsl,
  47. .mv_ioremap = rts7751r2d_ioremap,
  48. .mv_isa_port2addr = rts7751r2d_isa_port2addr,
  49. .mv_init_irq = init_rts7751r2d_IRQ,
  50. #ifdef CONFIG_HEARTBEAT
  51. .mv_heartbeat = heartbeat_rts7751r2d,
  52. #endif
  53. .mv_irq_demux = rts7751r2d_irq_demux,
  54. #ifdef CONFIG_USB_OHCI_HCD
  55. .mv_consistent_alloc = voyagergx_consistent_alloc,
  56. .mv_consistent_free = voyagergx_consistent_free,
  57. #endif
  58. };
  59. ALIAS_MV(rts7751r2d)