1
2 #ifndef _ST_H
3 #define _ST_H
4
5
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 ST_buffer * buffer;
35 int block_size;
36 int min_block;
37 int max_block;
38 Scsi_Cmnd SCpnt;
39 } Scsi_Tape;
40
41
42
43 #define QFA_REQUEST_BLOCK 0x02
44 #define QFA_SEEK_BLOCK 0x0c
45
46 #endif
47