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

VxWorks

开发平台:

C/C++

  1. /* vxLib.h - header file for vxLib.c */
  2. /* Copyright 1984-2000 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 02l,14nov01,ahm  added vxI86Lib.h for I80x86 family
  7. 02k,11oct01,cjj  removed Am29K support
  8. 02j,17apr00,hk   added #include for sh/vxShLib.h.
  9. 02i,04jun97,dat  added _func_vxMemProbeHook and vxMemArchProbe, SPR 8658
  10.  removed sysMemProbe.
  11. 02h,22oct96,spm  added comment specifying location of checksum() definition
  12. 02g,28feb96,tam  added #include for ppc/vxPpcLib.h.
  13. 02f,04jul94,tpr  added #include for mc68k/vx68kLib.h.
  14. 02e,02dec93,pme  added Am29K family support.
  15. 02d,26jul94,jwt  added vxMemProbeAsi() prototype for SPARC; copyright '94.
  16. 02c,24sep92,yao  added missing arg in vxTas() declaration.
  17. 02b,22sep92,rrr  added support for c++
  18. 02a,04jul92,jcf  cleaned up.
  19. 01f,30jun92,jmm  moved checksum() declarations to here from icmpLib.h
  20. 01e,26may92,rrr  the tree shuffle
  21.   -changed includes to have absolute path from h/
  22. 01d,21apr92,ccc  added vxTas.
  23. 01c,27feb92,wmd  added #include for i960/vx960Lib.h.
  24. 01b,04oct91,rrr  passed through the ansification filter
  25.   -fixed #else and #endif
  26.   -changed copyright notice
  27. 01a,05oct90,shl created.
  28. */
  29. #ifndef __INCvxLibh
  30. #define __INCvxLibh
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if (CPU_FAMILY == MC680X0)
  35. #include "arch/mc68k/vx68kLib.h"
  36. #endif /* (CPU_FAMILY == MC680X0) */
  37. #if CPU_FAMILY==I960
  38. #include "arch/i960/vxI960Lib.h"
  39. #endif  /* CPU_FAMILY==I960 */
  40. #if     CPU_FAMILY==PPC
  41. #include "arch/ppc/vxPpcLib.h"
  42. #endif  /* CPU_FAMILY==PPC */
  43. #if     CPU_FAMILY==SH
  44. #include "arch/sh/vxShLib.h"
  45. #endif  /* CPU_FAMILY==SH */
  46. #if     CPU_FAMILY==I80X86
  47. #include "arch/i86/vxI86Lib.h"
  48. #endif  /* CPU_FAMILY==I80X86 */
  49. /* function declarations */
  50. #if defined(__STDC__) || defined(__cplusplus)
  51. extern STATUS  vxMemProbe (char * adrs, int mode, int length, char * pVal);
  52. extern BOOL  vxTas (void * address);
  53. extern STATUS  vxMemArchProbe (void * adrs, int mode, int length, void * pVal);
  54. extern STATUS  (* _func_vxMemProbeHook)(void *, int, int, void *);
  55. /* checksum is defined in ./target/src/util/cksumLib.c */
  56. extern u_short checksum (u_short * pAddr, int len);
  57. #if (CPU_FAMILY == SPARC)
  58. extern STATUS  vxMemProbeAsi (char * adrs, int mode, int length, char * pVal,
  59.        int asi);
  60. #endif /* CPU_FAMILY == SPARC */
  61. #else /* __STDC__ */
  62. extern STATUS  vxMemProbe ();
  63. extern STATUS  vxMemArchProbe ();
  64. extern FUNCPTR  _func_vxMemProbeHook;
  65. extern BOOL  vxTas ();
  66. /* checksum is defined in ./target/src/util/cksumLib.c */
  67. extern u_short checksum ();
  68. #endif /* __STDC__ */
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif /* __INCvxLibh */