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

嵌入式Linux

开发平台:

Unix_Linux

  1. /* 
  2.  * linux/arch/sh/kernel/setup_adx.c
  3.  *
  4.  * Copyright (C) 2001 A&D Co., Ltd.
  5.  *
  6.  * I/O routine and setup routines for A&D ADX Board
  7.  *
  8.  * This file is subject to the terms and conditions of the GNU General Public
  9.  * License.  See the file "COPYING" in the main directory of this archive
  10.  * for more details.
  11.  *
  12.  */
  13. #include <asm/io.h>
  14. #include <asm/machvec.h>
  15. #include <asm/irq.h>
  16. #include <linux/module.h>
  17. void setup_adx(void)
  18. {
  19. /* nothing to do just yet */
  20. /* printk("setup_adx()n");*/
  21. }
  22. void init_adx_IRQ(void)
  23. {
  24. int i;
  25. /* printk("init_adx_IRQ()n");*/
  26. /* setup irq_mask_register */
  27. irq_mask_register = (unsigned short *)0xa6000008;
  28. /* cover all external interrupt area by maskreg_irq_type
  29.  * (Actually, irq15 doesn't exist)
  30.  */
  31. for (i = 0; i < 16; i++) {
  32. make_maskreg_irq(i);
  33. disable_irq(i);
  34. }
  35. }