aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/osst.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/osst.h')
-rw-r--r--drivers/scsi/osst.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/scsi/osst.h b/drivers/scsi/osst.h
index b72e1c76f52c..011d4d6ca9f9 100644
--- a/drivers/scsi/osst.h
+++ b/drivers/scsi/osst.h
@@ -518,7 +518,8 @@ struct osst_buffer {
518 int writing; 518 int writing;
519 int midlevel_result; 519 int midlevel_result;
520 int syscall_result; 520 int syscall_result;
521 struct scsi_request *last_SRpnt; 521 struct osst_request *last_SRpnt;
522 struct st_cmdstatus cmdstat;
522 unsigned char *b_data; 523 unsigned char *b_data;
523 os_aux_t *aux; /* onstream AUX structure at end of each block */ 524 os_aux_t *aux; /* onstream AUX structure at end of each block */
524 unsigned short use_sg; /* zero or number of s/g segments for this adapter */ 525 unsigned short use_sg; /* zero or number of s/g segments for this adapter */
@@ -626,6 +627,15 @@ struct osst_tape {
626 struct gendisk *drive; 627 struct gendisk *drive;
627} ; 628} ;
628 629
630/* scsi tape command */
631struct osst_request {
632 unsigned char cmd[MAX_COMMAND_SIZE];
633 unsigned char sense[SCSI_SENSE_BUFFERSIZE];
634 int result;
635 struct osst_tape *stp;
636 struct completion *waiting;
637};
638
629/* Values of write_type */ 639/* Values of write_type */
630#define OS_WRITE_DATA 0 640#define OS_WRITE_DATA 0
631#define OS_WRITE_EOD 1 641#define OS_WRITE_EOD 1