X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Fosst.h;h=1e426f5d0ed8a734357c58897ff7619609b7a046;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=b72e1c76f52cf874b4df78580dfdda496f6b0261;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/drivers/scsi/osst.h b/drivers/scsi/osst.h index b72e1c76f..1e426f5d0 100644 --- a/drivers/scsi/osst.h +++ b/drivers/scsi/osst.h @@ -3,7 +3,6 @@ */ #include -#include #include /* FIXME - rename and use the following two types or delete them! @@ -518,7 +517,8 @@ struct osst_buffer { int writing; int midlevel_result; int syscall_result; - struct scsi_request *last_SRpnt; + struct osst_request *last_SRpnt; + struct st_cmdstatus cmdstat; unsigned char *b_data; os_aux_t *aux; /* onstream AUX structure at end of each block */ unsigned short use_sg; /* zero or number of s/g segments for this adapter */ @@ -626,6 +626,15 @@ struct osst_tape { struct gendisk *drive; } ; +/* scsi tape command */ +struct osst_request { + unsigned char cmd[MAX_COMMAND_SIZE]; + unsigned char sense[SCSI_SENSE_BUFFERSIZE]; + int result; + struct osst_tape *stp; + struct completion *waiting; +}; + /* Values of write_type */ #define OS_WRITE_DATA 0 #define OS_WRITE_EOD 1