home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / devices / scsidisk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.0 KB  |  76 lines

  1. #ifndef DEVICES_SCSIDISK_H
  2. #define DEVICES_SCSIDISK_H
  3. /*
  4. ** $Filename: devices/scsidisk.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.2 $
  7. ** $Date: 90/11/07 $
  8. **
  9. ** SCSI exec-level device command
  10. **
  11. ** (C) Copyright 1988-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include "exec/types.h"
  18. #endif 
  19.  
  20.  
  21.  
  22.  
  23.  
  24. #define HD_SCSICMD 28 
  25.  
  26.  
  27.  
  28.  
  29. struct SCSICmd {
  30.  UWORD *scsi_Data; 
  31.  
  32.  
  33.  ULONG scsi_Length; 
  34.  
  35.  
  36.  ULONG scsi_Actual; 
  37.  UBYTE *scsi_Command; 
  38.  UWORD scsi_CmdLength; 
  39.  UWORD scsi_CmdActual; 
  40.  UBYTE scsi_Flags; 
  41.  UBYTE scsi_Status; 
  42.  UBYTE *scsi_SenseData; 
  43.  
  44.  
  45.  UWORD scsi_SenseLength; 
  46.  
  47.  UWORD scsi_SenseActual; 
  48. };
  49.  
  50.  
  51.  
  52. #define SCSIF_WRITE 0 
  53. #define SCSIF_READ 1 
  54. #define SCSIB_READ_WRITE 0 
  55.  
  56. #define SCSIF_NOSENSE 0 
  57. #define SCSIF_AUTOSENSE 2 
  58.  
  59. #define SCSIF_OLDAUTOSENSE 6 
  60.  
  61. #define SCSIB_AUTOSENSE 1 
  62. #define SCSIB_OLDAUTOSENSE 2 
  63.  
  64.  
  65. #define HFERR_SelfUnit 40 
  66. #define HFERR_DMA 41 
  67. #define HFERR_Phase 42 
  68. #define HFERR_Parity 43 
  69. #define HFERR_SelTimeout 44 
  70. #define HFERR_BadStatus 45 
  71.  
  72.  
  73. #define HFERR_NoBoard 50 
  74.  
  75. #endif 
  76.