home *** CD-ROM | disk | FTP | other *** search
/ Global Amiga Experience / globalamigaexperience.iso / compressed / development / clusterdemo.dms / clusterdemo.adf / Modules.lha / modules / txt / SCSIDisk.def < prev    next >
Text File  |  1994-05-25  |  1KB  |  48 lines

  1. |##########|
  2. |#MAGIC   #|CLABLLFF
  3. |#PROJECT #|""
  4. |#PATHS   #|"StdProject"
  5. |#FLAGS   #|xx---x--xx--x-x-----------------
  6. |#USERSW  #|--------------------------------
  7. |#USERMASK#|--------------------------------
  8. |#SWITCHES#|x-xx-x----------
  9. |##########|
  10. DEFINITION MODULE SCSIDisk;
  11. (* $A- *)
  12. CONST
  13.   scsiCmd     = 28;
  14.  
  15. |Error values
  16.   selfUnit    = 40;
  17.   dma         = 41;
  18.   phase       = 42;
  19.   parity      = 43;
  20.   selTimeout  = 44;
  21.   badStatus   = 45;
  22.   noBoard     = 50;
  23.  
  24. TYPE
  25.   SCSIFlags      = (readNotWrite,autoSense,oldAutoSense);
  26.   SCSIFlagSet    = SET OF SCSIFlags;
  27.  
  28.   SCSICmd        = RECORD
  29.                      data        : ANYPTR;
  30.                      length      : LONGCARD;
  31.                      actual      : LONGCARD;
  32.                      command     : ANYPTR;
  33.                      cmdLength,
  34.                      cmdActual   : CARDINAL;
  35.                      flags       : SCSIFlagSet;
  36.                      status      : SHORTCARD;
  37.                      senseLength : CARDINAL;
  38.                      senseActual : CARDINAL;
  39.                    END;
  40.   SCSICmdPtr     = POINTER TO SCSICmd;
  41.  
  42.  
  43. GROUP
  44.   All   = scsiCmd,selfUnit,dma,phase,parity,selTimeout,badStatus,noBoard,
  45.           SCSIFlags,SCSIFlagSet,SCSICmd,SCSICmdPtr;
  46.  
  47. END SCSIDisk.
  48.