mach.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/sh/stboards/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 STB1 HARP and compatible boards
  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_hd64465.h>
  16. #include <asm/hd64465.h>
  17. void setup_harp(void);
  18. void init_harp_irq(void);
  19. void heartbeat_harp(void);
  20. /*
  21.  * The Machine Vector
  22.  */
  23. struct sh_machine_vector mv_harp __initmv = {
  24. mv_name: "STB1 Harp",
  25. mv_nr_irqs: 89 + HD64465_IRQ_NUM,
  26. mv_inb: hd64465_inb,
  27. mv_inw: hd64465_inw,
  28. mv_inl: hd64465_inl,
  29. mv_outb: hd64465_outb,
  30. mv_outw: hd64465_outw,
  31. mv_outl: hd64465_outl,
  32. mv_inb_p: hd64465_inb_p,
  33. mv_inw_p: hd64465_inw,
  34. mv_inl_p: hd64465_inl,
  35. mv_outb_p: hd64465_outb_p,
  36. mv_outw_p: hd64465_outw,
  37. mv_outl_p: hd64465_outl,
  38. mv_insb: hd64465_insb,
  39. mv_insw: hd64465_insw,
  40. mv_insl: hd64465_insl,
  41. mv_outsb: hd64465_outsb,
  42. mv_outsw: hd64465_outsw,
  43. mv_outsl: hd64465_outsl,
  44. mv_readb: generic_readb,
  45. mv_readw: generic_readw,
  46. mv_readl: generic_readl,
  47. mv_writeb: generic_writeb,
  48. mv_writew: generic_writew,
  49. mv_writel: generic_writel,
  50.         mv_ioremap:             generic_ioremap,
  51.         mv_iounmap:             generic_iounmap,
  52.  
  53.         mv_isa_port2addr:       hd64465_isa_port2addr,
  54. mv_init_arch: setup_harp,
  55. #ifdef CONFIG_PCI
  56. mv_init_irq: init_harp_irq,
  57. #endif
  58. #ifdef CONFIG_HEARTBEAT
  59. mv_heartbeat: heartbeat_harp,
  60. #endif
  61.         mv_rtc_gettimeofday:    sh_rtc_gettimeofday,
  62.         mv_rtc_settimeofday:    sh_rtc_settimeofday,
  63. };
  64. ALIAS_MV(harp)