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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/sh/kernel/mach_ec3104.c
  3.  *  EC3104 companion chip support
  4.  *
  5.  * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org>
  6.  *
  7.  */
  8. /* EC3104 note:
  9.  * This code was written without any documentation about the EC3104 chip.  While
  10.  * I hope I got most of the basic functionality right, the register names I use
  11.  * are most likely completely different from those in the chip documentation.
  12.  *
  13.  * If you have any further information about the EC3104, please tell me
  14.  * (prumpf@tux.org).
  15.  */
  16. #include <linux/init.h>
  17. #include <asm/machvec.h>
  18. #include <asm/rtc.h>
  19. #include <asm/machvec_init.h>
  20. #include <asm/io.h>
  21. #include <asm/irq.h>
  22. /*
  23.  * The Machine Vector
  24.  */
  25. struct sh_machine_vector mv_ec3104 __initmv = {
  26. mv_name: "EC3104",
  27. mv_nr_irqs: 96,
  28. mv_inb: ec3104_inb,
  29. mv_inw: ec3104_inw,
  30. mv_inl: ec3104_inl,
  31. mv_outb: ec3104_outb,
  32. mv_outw: ec3104_outw,
  33. mv_outl: ec3104_outl,
  34. mv_inb_p: generic_inb_p,
  35. mv_inw_p: generic_inw,
  36. mv_inl_p: generic_inl,
  37. mv_outb_p: generic_outb_p,
  38. mv_outw_p: generic_outw,
  39. mv_outl_p: generic_outl,
  40. mv_insb: generic_insb,
  41. mv_insw: generic_insw,
  42. mv_insl: generic_insl,
  43. mv_outsb: generic_outsb,
  44. mv_outsw: generic_outsw,
  45. mv_outsl: generic_outsl,
  46. mv_readb: generic_readb,
  47. mv_readw: generic_readw,
  48. mv_readl: generic_readl,
  49. mv_writeb: generic_writeb,
  50. mv_writew: generic_writew,
  51. mv_writel: generic_writel,
  52. mv_irq_demux: ec3104_irq_demux,
  53. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  54. mv_rtc_settimeofday: sh_rtc_settimeofday,
  55. };
  56. ALIAS_MV(ec3104)