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

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * include/asm-mips/dec/ioasic.h
  3.  *
  4.  * DEC I/O ASIC access operations.
  5.  *
  6.  * Copyright (C) 2000, 2002  Maciej W. Rozycki
  7.  *
  8.  * This program is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU General Public License
  10.  * as published by the Free Software Foundation; either version
  11.  * 2 of the License, or (at your option) any later version.
  12.  */
  13. #ifndef __ASM_DEC_IOASIC_H
  14. #define __ASM_DEC_IOASIC_H
  15. #include <linux/types.h>
  16. extern volatile u32 *ioasic_base;
  17. static inline void ioasic_write(unsigned int reg, u32 v)
  18. {
  19. ioasic_base[reg / 4] = v;
  20. }
  21. static inline u32 ioasic_read(unsigned int reg)
  22. {
  23. return ioasic_base[reg / 4];
  24. }
  25. extern void init_ioasic_irqs(int base);
  26. #endif /* __ASM_DEC_IOASIC_H */