st.h (0dbd888936a23514716b8d944775bc56f731363a) st.h (40f6b36c6243462fb95d0343237331c423494b03)
1
2#ifndef _ST_H
3#define _ST_H
4
5#include <linux/completion.h>
6#include <linux/mutex.h>
7#include <linux/kref.h>
8#include <scsi/scsi_cmnd.h>
9
10/* Descriptor for analyzed sense data */
11struct st_cmdstatus {
12 int midlevel_result;
13 struct scsi_sense_hdr sense_hdr;
14 int have_sense;
1
2#ifndef _ST_H
3#define _ST_H
4
5#include <linux/completion.h>
6#include <linux/mutex.h>
7#include <linux/kref.h>
8#include <scsi/scsi_cmnd.h>
9
10/* Descriptor for analyzed sense data */
11struct st_cmdstatus {
12 int midlevel_result;
13 struct scsi_sense_hdr sense_hdr;
14 int have_sense;
15 int residual;
15 u64 uremainder64;
16 u8 flags;
17 u8 remainder_valid;
18 u8 fixed_format;
19 u8 deferred;
20};
21
22struct scsi_tape;

--- 6 unchanged lines hidden (view full) ---

29 struct scsi_tape *stp;
30 struct completion *waiting;
31};
32
33/* The tape buffer descriptor. */
34struct st_buffer {
35 unsigned char dma; /* DMA-able buffer */
36 unsigned char do_dio; /* direct i/o set up? */
16 u64 uremainder64;
17 u8 flags;
18 u8 remainder_valid;
19 u8 fixed_format;
20 u8 deferred;
21};
22
23struct scsi_tape;

--- 6 unchanged lines hidden (view full) ---

30 struct scsi_tape *stp;
31 struct completion *waiting;
32};
33
34/* The tape buffer descriptor. */
35struct st_buffer {
36 unsigned char dma; /* DMA-able buffer */
37 unsigned char do_dio; /* direct i/o set up? */
38 unsigned char cleared; /* internal buffer cleared after open? */
37 int buffer_size;
38 int buffer_blocks;
39 int buffer_bytes;
40 int read_pointer;
41 int writing;
42 int syscall_result;
43 struct st_request *last_SRpnt;
44 struct st_cmdstatus cmdstat;

--- 72 unchanged lines hidden (view full) ---

117 unsigned char cln_mode; /* 0 = none, otherwise sense byte nbr */
118 unsigned char cln_sense_value;
119 unsigned char cln_sense_mask;
120 unsigned char use_pf; /* Set Page Format bit in all mode selects? */
121 unsigned char try_dio; /* try direct i/o in general? */
122 unsigned char try_dio_now; /* try direct i/o before next close? */
123 unsigned char c_algo; /* compression algorithm */
124 unsigned char pos_unknown; /* after reset position unknown */
39 int buffer_size;
40 int buffer_blocks;
41 int buffer_bytes;
42 int read_pointer;
43 int writing;
44 int syscall_result;
45 struct st_request *last_SRpnt;
46 struct st_cmdstatus cmdstat;

--- 72 unchanged lines hidden (view full) ---

119 unsigned char cln_mode; /* 0 = none, otherwise sense byte nbr */
120 unsigned char cln_sense_value;
121 unsigned char cln_sense_mask;
122 unsigned char use_pf; /* Set Page Format bit in all mode selects? */
123 unsigned char try_dio; /* try direct i/o in general? */
124 unsigned char try_dio_now; /* try direct i/o before next close? */
125 unsigned char c_algo; /* compression algorithm */
126 unsigned char pos_unknown; /* after reset position unknown */
127 unsigned char sili; /* use SILI when reading in variable b mode */
125 int tape_type;
126 int long_timeout; /* timeout for commands known to take long time */
127
128 unsigned long max_pfn; /* the maximum page number reachable by the HBA */
129
130 /* Mode characteristics */
131 struct st_modedef modes[ST_NBR_MODES];
132 int current_mode;

--- 93 unchanged lines hidden ---
128 int tape_type;
129 int long_timeout; /* timeout for commands known to take long time */
130
131 unsigned long max_pfn; /* the maximum page number reachable by the HBA */
132
133 /* Mode characteristics */
134 struct st_modedef modes[ST_NBR_MODES];
135 int current_mode;

--- 93 unchanged lines hidden ---