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

VxWorks

开发平台:

C/C++

  1. /* wdbUlipPktDrv.h - header file for WDB agents ULIP packet driver */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,26apr02,dat  Adding cplusplus protection, SPR 75017
  7. 01a,28jun95,ms  written.
  8. */
  9. #ifndef __INCwdbUlipPktLibh
  10. #define __INCwdbUlipPktLibh
  11. /* includes */
  12. #include "wdb/wdb.h"
  13. #include "wdb/wdbCommIfLib.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /* defines */
  18. #define ULIP_MTU          1500
  19. /* bimodal ULIP device */
  20. typedef struct /* hidden */
  21.     {
  22.     WDB_DRV_IF  wdbDrvIf;               /* must come first for wdbUdpLib */
  23.     int         ulipFd;                 /* UNIX fd of ULIP device */
  24.     bool_t      inBufLocked;            /* state of input buffer */
  25.     char        inBuf[ULIP_MTU];        /* input buffer */
  26.     } WDB_ULIP_PKT_DEV;
  27. /* function prototypes */
  28. #if defined(__STDC__)
  29. extern void    wdbUlipPktDevInit (WDB_ULIP_PKT_DEV *pPktDev, char * ulipDev,
  30. void (*inputRtn)());
  31. #else   /* __STDC__ */
  32. extern void    wdbUlipPktDevInit ();
  33. #endif  /* __STDC__ */
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif  /* __INCwdbUlipPktLibh */