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   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 dirty:1;
  29   unsigned rw:2;
  30   unsigned eof:2;
  31   unsigned write_prot:1;
  32   unsigned in_use:1;
  33   unsigned eof_hit:1;
  34   unsigned drv_buffer:3;
  35   unsigned char density;
  36   ST_buffer * buffer;
  37   int block_size;
  38   int min_block;
  39   int max_block;
  40   Scsi_Cmnd SCpnt;
  41 } Scsi_Tape;
  42 
  43 
  44 /* Positioning SCSI-commands for Tandberg, etc. drives */
  45 #define QFA_REQUEST_BLOCK       0x02
  46 #define QFA_SEEK_BLOCK          0x0c
  47 
  48 #endif
  49 

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