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

VxWorks

开发平台:

C/C++

  1. /* scsi2Lib.h - SCSI library header file */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,08may02,dat  cplusplus protection SPR 74987
  7. 01b,19aug95,jds  added comments 
  8. 01a,10oct94,jds  merged for SCSI1 and SCSI2 compatability
  9. */
  10. #ifndef __INCscsiLibh
  11. #define __INCscsiLibh
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. typedef struct scsifunctbl
  16.     {
  17.     FUNCPTR scsiCtrlInit; /* SCSI controller initialisation */
  18.     FUNCPTR scsiBlkDevInit; /* Initialise a block device */
  19.     FUNCPTR scsiBlkDevCreate; /* Create a block device */
  20.     FUNCPTR scsiBlkDevShow; /* Show list of block devices */ 
  21.     FUNCPTR scsiPhaseNameGet; /* Get the name of the SCSI phase */
  22.     FUNCPTR scsiPhysDevCreate; /* Create a SCSI physical device */
  23.     FUNCPTR scsiPhysDevDelete; /* Delete a SCSI physical device */
  24.     FUNCPTR scsiPhysDevIdGet; /* Get the SCSI ID of the device */
  25.     FUNCPTR scsiAutoConfig; /* Configure all devices on SCSI bus */
  26.     FUNCPTR scsiShow; /* Show all configured SCSI devices */
  27.     FUNCPTR scsiBusReset; /* Reset the SCSI bus */
  28.     FUNCPTR scsiCmdBuild; /* Build a SCSI CDB */
  29.     FUNCPTR scsiTransact; /* Transact an entire SCSI command */
  30.     FUNCPTR scsiIoctl; /* SCSI I/O control operations */
  31.     FUNCPTR scsiFormatUnit; /* Format a SCSI direct access dev */
  32.     FUNCPTR scsiModeSelect; /* Issue a MODE_SELECT command */
  33.     FUNCPTR scsiModeSense; /* Issue a MODE_SENSE command */
  34.     FUNCPTR scsiReadCapacity; /* Issue a READ CAPACITY command */
  35.     FUNCPTR scsiRdSecs; /* Read SCSI disk sectors */
  36.     FUNCPTR scsiWrtSecs; /* Write SCSI disk sectors */
  37.     FUNCPTR scsiTestUnitRdy; /* Issue a TEST_UNIT_READY command */
  38.     FUNCPTR scsiInquiry; /* Issue an INQUIRY command */
  39.     FUNCPTR scsiReqSense; /* Issue a REQUEST_SENSE command */
  40.     } SCSI_FUNC_TBL;
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. /* The default is to include SCSI1 headers */
  45. #ifndef INCLUDE_SCSI2
  46. #include "scsi1Lib.h"
  47. #else
  48. #include "scsi2Lib.h"
  49. #endif
  50. #endif /* INCscsiLibh */