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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/sh/kernel/mach_adx.c
  3.  *
  4.  * Copyright (C) 2001 A&D Co., Ltd.
  5.  *
  6.  * This file may be copied or modified under the terms of the GNU
  7.  * General Public License.  See linux/COPYING for more information.
  8.  *
  9.  * Machine vector for the A&D ADX Board
  10.  */
  11. #include <linux/config.h>
  12. #include <linux/init.h>
  13. #include <asm/machvec.h>
  14. #include <asm/rtc.h>
  15. #include <asm/machvec_init.h>
  16. #include <asm/io_adx.h>
  17. extern void setup_adx(void);
  18. extern void init_adx_IRQ(void);
  19. /*
  20.  * The Machine Vector
  21.  */
  22. struct sh_machine_vector mv_adx __initmv = {
  23. mv_name: "A&D_ADX",
  24. mv_nr_irqs: 48,
  25. mv_inb: adx_inb,
  26. mv_inw: adx_inw,
  27. mv_inl: adx_inl,
  28. mv_outb: adx_outb,
  29. mv_outw: adx_outw,
  30. mv_outl: adx_outl,
  31. mv_inb_p: adx_inb_p,
  32. mv_inw_p: adx_inw,
  33. mv_inl_p: adx_inl,
  34. mv_outb_p: adx_outb_p,
  35. mv_outw_p: adx_outw,
  36. mv_outl_p: adx_outl,
  37. mv_insb: adx_insb,
  38. mv_insw: adx_insw,
  39. mv_insl: adx_insl,
  40. mv_outsb: adx_outsb,
  41. mv_outsw: adx_outsw,
  42. mv_outsl: adx_outsl,
  43. mv_readb: adx_readb,
  44. mv_readw: adx_readw,
  45. mv_readl: adx_readl,
  46. mv_writeb: adx_writeb,
  47. mv_writew: adx_writew,
  48. mv_writel: adx_writel,
  49. mv_ioremap: adx_ioremap,
  50. mv_iounmap: adx_iounmap,
  51. mv_isa_port2addr: adx_isa_port2addr,
  52. mv_init_arch: setup_adx,
  53. mv_init_irq: init_adx_IRQ,
  54. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  55. mv_rtc_settimeofday: sh_rtc_settimeofday,
  56. mv_hw_adx: 1,
  57. };
  58. ALIAS_MV(adx)