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

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/sh/kernel/mach_bigsur.c
  3.  *
  4.  * By Dustin McIntire (dustin@sensoria.com) (c)2001
  5.  * Derived from mach_se.h, which bore the message:
  6.  * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
  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.  * Machine vector for the Hitachi Big Sur Evaluation Board
  12.  */
  13. #include <linux/config.h>
  14. #include <linux/init.h>
  15. #include <asm/machvec.h>
  16. #include <asm/rtc.h>
  17. #include <asm/machvec_init.h>
  18. #include <asm/io.h>
  19. #include <asm/io_bigsur.h>
  20. #include <asm/irq.h>
  21. /*
  22.  * The Machine Vector
  23.  */
  24. extern void heartbeat_bigsur(void);
  25. extern void setup_bigsur(void);
  26. extern void init_bigsur_IRQ(void);
  27. struct sh_machine_vector mv_bigsur __initmv = {
  28. mv_name: "Big Sur",
  29. mv_nr_irqs: NR_IRQS,     // Defined in <asm/irq.h>
  30. mv_inb: bigsur_inb,
  31. mv_inw: bigsur_inw,
  32. mv_inl: bigsur_inl,
  33. mv_outb: bigsur_outb,
  34. mv_outw: bigsur_outw,
  35. mv_outl: bigsur_outl,
  36. mv_inb_p: bigsur_inb_p,
  37. mv_inw_p: bigsur_inw,
  38. mv_inl_p: bigsur_inl,
  39. mv_outb_p: bigsur_outb_p,
  40. mv_outw_p: bigsur_outw,
  41. mv_outl_p: bigsur_outl,
  42. mv_insb: bigsur_insb,
  43. mv_insw: bigsur_insw,
  44. mv_insl: bigsur_insl,
  45. mv_outsb: bigsur_outsb,
  46. mv_outsw: bigsur_outsw,
  47. mv_outsl: bigsur_outsl,
  48. mv_readb: generic_readb,
  49. mv_readw: generic_readw,
  50. mv_readl: generic_readl,
  51. mv_writeb: generic_writeb,
  52. mv_writew: generic_writew,
  53. mv_writel: generic_writel,
  54. mv_ioremap: generic_ioremap,
  55. mv_iounmap: generic_iounmap,
  56. mv_isa_port2addr: bigsur_isa_port2addr,
  57. mv_irq_demux:       bigsur_irq_demux,
  58. mv_init_arch: setup_bigsur,
  59. mv_init_irq: init_bigsur_IRQ,
  60. #ifdef CONFIG_HEARTBEAT
  61. mv_heartbeat: heartbeat_bigsur,
  62. #endif
  63. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  64. mv_rtc_settimeofday: sh_rtc_settimeofday,
  65. };
  66. ALIAS_MV(bigsur)