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

VxWorks

开发平台:

C/C++

  1. /* blkIo.h - block I/O header file */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01i,22sep92,rrr  added support for c++
  7. 01h,04jul92,jcf  cleaned up.
  8. 01g,26may92,rrr  the tree shuffle
  9. 01f,04oct91,rrr  passed through the ansification filter
  10.   -changed READ, WRITE and UPDATE to O_RDONLY O_WRONLY O_RDWR
  11.   -changed copyright notice
  12. 01e,05oct90,shl  added copyright notice.
  13.                  made #endif ANSI style.
  14. 01d,12jul90,kdl  added bd_statusChk routine field in BLK_DEV.
  15. 01c,04may90,kdl  added bd_mode and bd_readyChanged in BLK_DEV.
  16. 01b,23mar90,kdl  changed types for lint, changed BLK_DEV field names.
  17. 01a,15mar90,kdl  written
  18. */
  19. #ifndef __INCblkIoh
  20. #define __INCblkIoh
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #include "vxWorks.h"
  25. typedef struct /* BLK_DEV */
  26.     {
  27.     FUNCPTR bd_blkRd; /* function to read blocks */
  28.     FUNCPTR bd_blkWrt; /* function to write blocks */
  29.     FUNCPTR bd_ioctl; /* function to ioctl device */
  30.     FUNCPTR bd_reset; /* function to reset device */
  31.     FUNCPTR bd_statusChk; /* function to check status */
  32.     BOOL bd_removable; /* removable medium flag */
  33.     ULONG bd_nBlocks; /* number of blocks on device */
  34.     ULONG bd_bytesPerBlk; /* number of bytes per block */
  35.     ULONG bd_blksPerTrack; /* number of blocks per track */
  36.     ULONG bd_nHeads; /* number of heads */
  37.     int bd_retry; /* retry count for I/O errors */
  38.     int bd_mode; /* O_RDONLY |O_WRONLY| O_RDWR */
  39.     BOOL bd_readyChanged; /* dev ready status changed */
  40.     } BLK_DEV;
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif /* __INCblkIoh */