* add p cc
[mascara-docs.git] / i386 / linux / linux-0.99 / drivers / scsi / st.h
blob7b530faa68af19029de87357611fa425b105b920
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 */
8 #ifndef _SCSI_H
9 #include "scsi.h"
10 #endif
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;
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;
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
51 /* Values of rw */
52 #define ST_IDLE 0
53 #define ST_READING 1
54 #define ST_WRITING 2
56 /* Positioning SCSI-commands for Tandberg, etc. drives */
57 #define QFA_REQUEST_BLOCK 0x02
58 #define QFA_SEEK_BLOCK 0x0c
60 #endif