mach_hp600.c
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:3k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/sh/kernel/mach_hp600.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 HP600
  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.h>
  16. #include <asm/hd64461.h>
  17. #include <asm/irq.h>
  18. /*
  19.  * The Machine Vector
  20.  */
  21. struct sh_machine_vector mv_hp620 __initmv = {
  22. mv_name: "hp620",
  23. mv_nr_irqs: HD64461_IRQBASE+HD64461_IRQ_NUM,
  24. mv_inb: hd64461_inb,
  25. mv_inw: hd64461_inw,
  26. mv_inl: hd64461_inl,
  27. mv_outb: hd64461_outb,
  28. mv_outw: hd64461_outw,
  29. mv_outl: hd64461_outl,
  30. mv_inb_p: hd64461_inb_p,
  31. mv_inw_p: hd64461_inw,
  32. mv_inl_p: hd64461_inl,
  33. mv_outb_p: hd64461_outb_p,
  34. mv_outw_p: hd64461_outw,
  35. mv_outl_p: hd64461_outl,
  36. mv_insb: hd64461_insb,
  37. mv_insw: hd64461_insw,
  38. mv_insl: hd64461_insl,
  39. mv_outsb: hd64461_outsb,
  40. mv_outsw: hd64461_outsw,
  41. mv_outsl: hd64461_outsl,
  42. mv_readb: generic_readb,
  43. mv_readw: generic_readw,
  44. mv_readl: generic_readl,
  45. mv_writeb: generic_writeb,
  46. mv_writew: generic_writew,
  47. mv_writel: generic_writel,
  48. mv_irq_demux: hd64461_irq_demux,
  49. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  50. mv_rtc_settimeofday: sh_rtc_settimeofday,
  51. mv_hw_hp600: 1,
  52. mv_hw_hp620: 1,
  53. mv_hw_hd64461: 1,
  54. };
  55. ALIAS_MV(hp620)
  56. struct sh_machine_vector mv_hp680 __initmv = {
  57. mv_name: "hp680",
  58. mv_nr_irqs: HD64461_IRQBASE+HD64461_IRQ_NUM,
  59. mv_inb: hd64461_inb,
  60. mv_inw: hd64461_inw,
  61. mv_inl: hd64461_inl,
  62. mv_outb: hd64461_outb,
  63. mv_outw: hd64461_outw,
  64. mv_outl: hd64461_outl,
  65. mv_inb_p: hd64461_inb_p,
  66. mv_inw_p: hd64461_inw,
  67. mv_inl_p: hd64461_inl,
  68. mv_outb_p: hd64461_outb_p,
  69. mv_outw_p: hd64461_outw,
  70. mv_outl_p: hd64461_outl,
  71. mv_insb: hd64461_insb,
  72. mv_insw: hd64461_insw,
  73. mv_insl: hd64461_insl,
  74. mv_outsb: hd64461_outsb,
  75. mv_outsw: hd64461_outsw,
  76. mv_outsl: hd64461_outsl,
  77. mv_readb: generic_readb,
  78. mv_readw: generic_readw,
  79. mv_readl: generic_readl,
  80. mv_writeb: generic_writeb,
  81. mv_writew: generic_writew,
  82. mv_writel: generic_writel,
  83. mv_irq_demux: hd64461_irq_demux,
  84. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  85. mv_rtc_settimeofday: sh_rtc_settimeofday,
  86. mv_hw_hp600: 1,
  87. mv_hw_hp680: 1,
  88. mv_hw_hd64461: 1,
  89. };
  90. ALIAS_MV(hp680)
  91. struct sh_machine_vector mv_hp690 __initmv = {
  92. mv_name: "hp690",
  93. mv_nr_irqs: HD64461_IRQBASE+HD64461_IRQ_NUM,
  94. mv_inb: hd64461_inb,
  95. mv_inw: hd64461_inw,
  96. mv_inl: hd64461_inl,
  97. mv_outb: hd64461_outb,
  98. mv_outw: hd64461_outw,
  99. mv_outl: hd64461_outl,
  100. mv_inb_p: hd64461_inb_p,
  101. mv_inw_p: hd64461_inw,
  102. mv_inl_p: hd64461_inl,
  103. mv_outb_p: hd64461_outb_p,
  104. mv_outw_p: hd64461_outw,
  105. mv_outl_p: hd64461_outl,
  106. mv_insb: hd64461_insb,
  107. mv_insw: hd64461_insw,
  108. mv_insl: hd64461_insl,
  109. mv_outsb: hd64461_outsb,
  110. mv_outsw: hd64461_outsw,
  111. mv_outsl: hd64461_outsl,
  112. mv_readb: generic_readb,
  113. mv_readw: generic_readw,
  114. mv_readl: generic_readl,
  115. mv_writeb: generic_writeb,
  116. mv_writew: generic_writew,
  117. mv_writel: generic_writel,
  118. mv_irq_demux: hd64461_irq_demux,
  119. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  120. mv_rtc_settimeofday: sh_rtc_settimeofday,
  121. mv_hw_hp600: 1,
  122. mv_hw_hp690: 1,
  123. mv_hw_hd64461: 1,
  124. };
  125. ALIAS_MV(hp690)