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

VxWorks

开发平台:

C/C++

  1. /* if_bp.c - backplane network header */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01i,22sep92,rrr  added support for c++
  7. 01h,15sep92,jcf  added prototypes.
  8. 01g,04jul92,jcf  cleaned up.
  9. 01f,26may92,rrr  the tree shuffle
  10. 01e,04oct91,rrr  passed through the ansification filter
  11.   -changed copyright notice
  12. 01d,05oct90,shl  added copyright notice.
  13.                  made #endif ANSI style.
  14. 01c,08nov89,shl  added ifdef to prevent inclusion of vxWorks.h more than once.
  15. 01b,06mar89,jcf  added read-location mailbox types.
  16. 01a,14jun87,dnw  written
  17. */
  18. #ifndef __INCif_bph
  19. #define __INCif_bph
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /* backplane interrupt methods */
  24. #define BP_INT_NONE 0 /* no interrupt - poll instead */
  25. #define BP_INT_MAILBOX_1 1 /* mailbox write byte to bus adrs */
  26. #define BP_INT_MAILBOX_2 2 /* mailbox write word to bus adrs */
  27. #define BP_INT_MAILBOX_4 3 /* mailbox write long to bus adrs */
  28. /*    arg1 = bus address space
  29.  *    arg2 = bus address
  30.  *    arg3 = value
  31.  */
  32. #define BP_INT_BUS 4 /* generate bus interrupt */
  33. /*    arg1 = interrupt level
  34.  *    arg2 = interrupt vector
  35.  */
  36. #define BP_INT_MAILBOX_R1 5 /* mailbox read byte to bus adrs */
  37. #define BP_INT_MAILBOX_R2 6 /* mailbox read word to bus adrs */
  38. #define BP_INT_MAILBOX_R4 7 /* mailbox read long to bus adrs */
  39. /*    arg1 = bus address space
  40.  *    arg2 = bus address
  41.  *    arg3 = value
  42.  */
  43. /* function prototypes */
  44. #if defined(__STDC__) || defined(__cplusplus)
  45. extern STATUS bpattach (int unit, char *pAnchor, int procNum, int intType,
  46.   int intArg1, int intArg2, int intArg3);
  47. extern STATUS bpInit (char *pAnchor, char *pMem, int memSize, BOOL tasOK);
  48. extern void bpShow (char *bpName, BOOL zero);
  49. #else /* __STDC__ */
  50. extern STATUS bpattach ();
  51. extern STATUS bpInit ();
  52. extern void bpShow ();
  53. #endif /* __STDC__ */
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif /* __INCif_bph */