home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / c / scsidrvr.arc / scsi.h < prev   
C/C++ Source or Header  |  1988-07-09  |  577b  |  39 lines

  1.  
  2.  
  3. /* scsireq error bits */
  4. #define S_BUSERROR        0x8000
  5. #define S_BADSTATUS        0x4000
  6. #define S_BADMESSAGE    0x2000
  7. #define S_NOCONNECT        0x1000
  8. #define S_TIMEOUT        0x0800
  9. #define S_OVERRUN        0x0400
  10. #define S_BADTRANS        0x0200
  11.  
  12.  
  13. struct scsireq {
  14.     char far *dptr;
  15.     char far *cptr;
  16.     unsigned dlen;
  17.     char busid;
  18.     int error;
  19.     int timeout;
  20. };
  21.  
  22. struct scsivreq {
  23.     struct scsibuf far *bufptr;
  24.     char far *cptr;
  25.     char busid;
  26.     int error;
  27.     int timeout;
  28. };
  29.  
  30. struct scsibuf {
  31.     char far *dptr;
  32.     unsigned dlen;
  33. };
  34.  
  35.  
  36. void scsiop(struct scsireq *req);
  37. void scsiopv(struct scsivreq *req);
  38.  
  39.