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   struct mtget * mt_status;
  15   int buffer_size;
  16   int buffer_blocks;
  17   int buffer_bytes;
  18   int read_pointer;
  19   int writing;
  20   int last_result;
  21   int last_result_fatal;
  22   unsigned char b_data[1];
  23 } ST_buffer;
  24 
  25 typedef struct {
  26   unsigned capacity;
  27   struct wait_queue * waiting;
  28   Scsi_Device* device;
  29   unsigned dirty:1;
  30   unsigned rw:2;
  31   unsigned eof:2;
  32   unsigned write_prot:1;
  33   unsigned in_use:1;
  34   unsigned eof_hit:1;
  35   unsigned drv_buffer:3;
  36   unsigned char density;
  37   ST_buffer * buffer;
  38   int block_size;
  39   int min_block;
  40   int max_block;
  41   int recover_count;
  42   Scsi_Cmnd SCpnt;
  43 } Scsi_Tape;
  44 
  45 /* Values of eof */
  46 #define ST_NOEOF        0
  47 #define ST_FM           1
  48 #define ST_EOM_OK       2
  49 #define ST_EOM_ERROR    3
  50 
  51 /* Values of rw */
  52 #define ST_IDLE         0
  53 #define ST_READING      1
  54 #define ST_WRITING      2
  55 
  56 /* Positioning SCSI-commands for Tandberg, etc. drives */
  57 #define QFA_REQUEST_BLOCK       0x02
  58 #define QFA_SEEK_BLOCK          0x0c
  59 
  60 #endif
  61 

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