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[1];
  22 } ST_buffer;
  23 
  24 typedef struct {
  25   unsigned capacity;
  26   struct wait_queue * waiting;
  27   Scsi_Device* device;
  28   unsigned char dirty;
  29   unsigned char rw;
  30   unsigned char eof;
  31   unsigned char write_prot;
  32   unsigned char drv_write_prot;
  33   unsigned char in_use;
  34   unsigned char eof_hit;
  35   unsigned char drv_buffer;
  36   unsigned char do_buffer_writes;
  37   unsigned char do_async_writes;
  38   unsigned char do_read_ahead;
  39   unsigned char two_fm;
  40   unsigned char density;
  41   ST_buffer * buffer;
  42   int block_size;
  43   int min_block;
  44   int max_block;
  45   int write_threshold;
  46   int recover_count;
  47   int drv_block;        /* The block where the drive head is */
  48   unsigned char moves_after_eof;
  49   struct mtget * mt_status;
  50   Scsi_Cmnd SCpnt;
  51 } Scsi_Tape;
  52 
  53 /* Values of eof */
  54 #define ST_NOEOF        0
  55 #define ST_FM           1
  56 #define ST_EOM_OK       2
  57 #define ST_EOM_ERROR    3
  58 
  59 /* Values of rw */
  60 #define ST_IDLE         0
  61 #define ST_READING      1
  62 #define ST_WRITING      2
  63 
  64 /* Positioning SCSI-commands for Tandberg, etc. drives */
  65 #define QFA_REQUEST_BLOCK       0x02
  66 #define QFA_SEEK_BLOCK          0x0c
  67 
  68 #endif
  69 

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