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

嵌入式Linux

开发平台:

Unix_Linux

  1. #define LINUX_KERNEL
  2. #define SiS_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
  3. #define SiS_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
  4. /**********************************************************************/
  5. #ifdef OutPortByte
  6. #undef OutPortByte
  7. #endif /* OutPortByte */
  8. #ifdef OutPortWord
  9. #undef OutPortWord
  10. #endif /* OutPortWord */
  11. #ifdef OutPortLong
  12. #undef OutPortLong
  13. #endif /* OutPortLong */
  14. #ifdef InPortByte
  15. #undef InPortByte
  16. #endif /* InPortByte */
  17. #ifdef InPortWord
  18. #undef InPortWord
  19. #endif /* InPortWord */
  20. #ifdef InPortLong
  21. #undef InPortLong
  22. #endif /* InPortLong */
  23. #define OutPortByte(p,v) outb((u8)(v),(u16)(p))
  24. #define OutPortWord(p,v) outw((u16)(v),(u16)(p))
  25. #define OutPortLong(p,v) outl((u32)(v),(u16)(p))
  26. #define InPortByte(p)    inb((u16)(p))
  27. #define InPortWord(p)    inw((u16)(p))
  28. #define InPortLong(p)    inl((u16)(p))