mach.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * linux/arch/sh/overdrive/mach.c
  3. *
  4. * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
  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 STMicroelectronics Overdrive
  10. */
  11. #include <linux/init.h>
  12. #include <asm/machvec.h>
  13. #include <asm/rtc.h>
  14. #include <asm/machvec_init.h>
  15. #include <asm/io_unknown.h>
  16. #include <asm/io_generic.h>
  17. #include <asm/overdrive/io.h>
  18. void heartbeat_od(void);
  19. void init_overdrive_irq(void);
  20. void galileo_pcibios_init(void);
  21. /*
  22. * The Machine Vector
  23. */
  24. struct sh_machine_vector mv_od __initmv = {
  25. .mv_nr_irqs = 48,
  26. .mv_inb = od_inb,
  27. .mv_inw = od_inw,
  28. .mv_inl = od_inl,
  29. .mv_outb = od_outb,
  30. .mv_outw = od_outw,
  31. .mv_outl = od_outl,
  32. .mv_inb_p = od_inb_p,
  33. .mv_inw_p = od_inw_p,
  34. .mv_inl_p = od_inl_p,
  35. .mv_outb_p = od_outb_p,
  36. .mv_outw_p = od_outw_p,
  37. .mv_outl_p = od_outl_p,
  38. .mv_insb = od_insb,
  39. .mv_insw = od_insw,
  40. .mv_insl = od_insl,
  41. .mv_outsb = od_outsb,
  42. .mv_outsw = od_outsw,
  43. .mv_outsl = od_outsl,
  44. #ifdef CONFIG_PCI
  45. .mv_init_irq = init_overdrive_irq,
  46. #endif
  47. #ifdef CONFIG_HEARTBEAT
  48. .mv_heartbeat = heartbeat_od,
  49. #endif
  50. };
  51. ALIAS_MV(od)