root/drivers/scsi/st.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 
   2 #ifndef _ST_H
   3         #define _ST_H
   4 /*
   5         $Header: /usr/src/linux/kernel/blk_drv/scsi/RCS/st.h,v 1.1 1992/04/24 18:01:50 root Exp root $
   6 */
   7 
   8 #ifndef _SCSI_H
   9 #include "scsi.h"
  10 #endif
  11 
  12 typedef struct {
  13   int in_use;
  14   int buffer_size;
  15   int buffer_blocks;
  16   int buffer_bytes;
  17   int read_pointer;
  18   int writing;
  19   int last_result;
  20   int last_result_fatal;
  21   unsigned char *b_data;
  22   int orig_size;
  23   unsigned char *orig_b_data;
  24 } ST_buffer;
  25 
  26 typedef struct {
  27   kdev_t devt;
  28   unsigned capacity;
  29   struct wait_queue * waiting;
  30   Scsi_Device* device;
  31   unsigned char dirty;
  32   unsigned char write_pending;
  33   unsigned char rw;
  34   unsigned char ready;
  35   unsigned char eof;
  36   unsigned char write_prot;
  37   unsigned char drv_write_prot;
  38   unsigned char in_use;
  39   unsigned char eof_hit;
  40   unsigned char drv_buffer;
  41   unsigned char do_buffer_writes;
  42   unsigned char do_async_writes;
  43   unsigned char do_read_ahead;
  44   unsigned char do_auto_lock;
  45   unsigned char two_fm;
  46   unsigned char fast_mteom;
  47   unsigned char density;
  48   unsigned char door_locked;
  49   ST_buffer * buffer;
  50   int block_size;
  51   int min_block;
  52   int max_block;
  53   int write_threshold;
  54   int recover_count;
  55   int drv_block;        /* The block where the drive head is */
  56   unsigned char moves_after_eof;
  57   unsigned char at_sm;
  58   struct mtget * mt_status;
  59   Scsi_Cmnd SCpnt;
  60 #if DEBUG
  61   int nbr_finished;
  62   int nbr_waits;
  63 #endif
  64 } Scsi_Tape;
  65 
  66 extern Scsi_Tape * scsi_tapes;
  67 
  68 /* Values of eof */
  69 #define ST_NOEOF        0
  70 #define ST_FM           1
  71 #define ST_EOM_OK       2
  72 #define ST_EOM_ERROR    3
  73 #define ST_EOD          4
  74 
  75 /* Values of rw */
  76 #define ST_IDLE         0
  77 #define ST_READING      1
  78 #define ST_WRITING      2
  79 
  80 /* Values of ready state */
  81 #define ST_READY        0
  82 #define ST_NOT_READY    1
  83 #define ST_NO_TAPE      2
  84 
  85 /* Values for door lock state */
  86 #define ST_UNLOCKED     0
  87 #define ST_LOCKED_EXPLICIT 1
  88 #define ST_LOCKED_AUTO  2
  89 #define ST_LOCK_FAILS   3
  90 
  91 /* Positioning SCSI-commands for Tandberg, etc. drives */
  92 #define QFA_REQUEST_BLOCK       0x02
  93 #define QFA_SEEK_BLOCK          0x0c
  94 
  95 #endif
  96 

/* [previous][next][first][last][top][bottom][index][help] */