ivSimhppa.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* ivSimhppa.h - simhppa interrupt vectors */
  2. /* Copyright 1993 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,01jan96,kab  added _ASMLANGUAGE
  7. 01a,11aug93,gae  from rrr.
  8. */
  9. #ifndef __INCivSimhppa
  10. #define __INCivSimhppa
  11. #ifndef _ASMLANGUAGE
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* macros to convert interrupt vectors <-> interrupt numbers */
  16. #define IVEC_TO_INUM(intVec)    ((int) (intVec))
  17. #define INUM_TO_IVEC(intNum)    ((VOIDFUNCPTR *) (intNum))
  18. #define IVEC_TO_FD(intVec)      ((intVec) - 32)
  19. #define FD_TO_IVEC(fd)          ((fd) + 32)
  20. /* interrupt vector definitions */
  21. #define IV_HUP          INUM_TO_IVEC (1)
  22. #define IV_INT          INUM_TO_IVEC (2)
  23. #define IV_ILL          INUM_TO_IVEC (4)
  24. #define IV_TRAP         INUM_TO_IVEC (5)
  25. #define IV_FPE          INUM_TO_IVEC (8)
  26. #define IV_BUS          INUM_TO_IVEC (10)
  27. #define IV_SEGV         INUM_TO_IVEC (11)
  28. #define IV_CLOCK1       INUM_TO_IVEC (14)
  29. #define IV_USR1         INUM_TO_IVEC (16)
  30. #define IV_USR2         INUM_TO_IVEC (17)
  31. #define IV_CLOCK2       INUM_TO_IVEC (20)
  32. #define IV_CLOCK3       INUM_TO_IVEC (21)
  33. #define IV_IO           INUM_TO_IVEC (22)
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* _ASMLANGUAGE */
  38. #endif /* __INCivSimhppa */