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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * linux/arch/sh/kernel/mach_dmida.c
  3.  *
  4.  * by Greg Banks <gbanks@pocketpenguins.com>
  5.  * (c) 2000 PocketPenguins Inc
  6.  *
  7.  * Derived from mach_hp600.c, which bore the message:
  8.  * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
  9.  *
  10.  * May be copied or modified under the terms of the GNU General Public
  11.  * License.  See linux/COPYING for more information.
  12.  *
  13.  * Machine vector for the DataMyte Industrial Digital Assistant(tm).
  14.  * See http://www.dmida.com
  15.  *
  16.  */
  17. #include <linux/init.h>
  18. #include <asm/machvec.h>
  19. #include <asm/rtc.h>
  20. #include <asm/machvec_init.h>
  21. #include <asm/io.h>
  22. #include <asm/hd64465.h>
  23. #include <asm/irq.h>
  24. /*
  25.  * The Machine Vector
  26.  */
  27. struct sh_machine_vector mv_dmida __initmv = {
  28. mv_name: "DMIDA",
  29. mv_nr_irqs: HD64465_IRQ_BASE+HD64465_IRQ_NUM,
  30. mv_inb: hd64465_inb,
  31. mv_inw: hd64465_inw,
  32. mv_inl: hd64465_inl,
  33. mv_outb: hd64465_outb,
  34. mv_outw: hd64465_outw,
  35. mv_outl: hd64465_outl,
  36. mv_inb_p: hd64465_inb_p,
  37. mv_inw_p: hd64465_inw,
  38. mv_inl_p: hd64465_inl,
  39. mv_outb_p: hd64465_outb_p,
  40. mv_outw_p: hd64465_outw,
  41. mv_outl_p: hd64465_outl,
  42. mv_insb: hd64465_insb,
  43. mv_insw: hd64465_insw,
  44. mv_insl: hd64465_insl,
  45. mv_outsb: hd64465_outsb,
  46. mv_outsw: hd64465_outsw,
  47. mv_outsl: hd64465_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_irq_demux: hd64465_irq_demux,
  55. mv_rtc_gettimeofday: sh_rtc_gettimeofday,
  56. mv_rtc_settimeofday: sh_rtc_settimeofday,
  57. mv_hw_hd64465: 1,
  58. };
  59. ALIAS_MV(dmida)