Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
st.h File Reference
#include <linux/completion.h>
#include <linux/mutex.h>
#include <linux/kref.h>
#include <scsi/scsi_cmnd.h>

Go to the source code of this file.

Data Structures

struct  st_cmdstatus
 
struct  st_request
 
struct  st_buffer
 
struct  st_modedef
 
struct  st_partstat
 
struct  scsi_tape
 

Macros

#define ST_NBR_MODE_BITS   2
 
#define ST_NBR_MODES   (1 << ST_NBR_MODE_BITS)
 
#define ST_MODE_SHIFT   (7 - ST_NBR_MODE_BITS)
 
#define ST_MODE_MASK   ((ST_NBR_MODES - 1) << ST_MODE_SHIFT)
 
#define ST_MAX_TAPES   (1 << (20 - (ST_NBR_MODE_BITS + 1)))
 
#define ST_MAX_TAPE_ENTRIES   (ST_MAX_TAPES << (ST_NBR_MODE_BITS + 1))
 
#define ST_NBR_PARTITIONS   4
 
#define USE_PF   1
 
#define PF_TESTED   2
 
#define ST_NOEOF   0
 
#define ST_FM_HIT   1
 
#define ST_FM   2
 
#define ST_EOM_OK   3
 
#define ST_EOM_ERROR   4
 
#define ST_EOD_1   5
 
#define ST_EOD_2   6
 
#define ST_EOD   7
 
#define ST_IDLE   0
 
#define ST_READING   1
 
#define ST_WRITING   2
 
#define ST_READY   0
 
#define ST_NOT_READY   1
 
#define ST_NO_TAPE   2
 
#define ST_UNLOCKED   0
 
#define ST_LOCKED_EXPLICIT   1
 
#define ST_LOCKED_AUTO   2
 
#define ST_LOCK_FAILS   3
 
#define QFA_REQUEST_BLOCK   0x02
 
#define QFA_SEEK_BLOCK   0x0c
 
#define ST_DONT_TOUCH   0
 
#define ST_NO   1
 
#define ST_YES   2
 
#define EXTENDED_SENSE_START   18
 
#define SENSE_FMK   0x80
 
#define SENSE_EOM   0x40
 
#define SENSE_ILI   0x20
 

Macro Definition Documentation

#define EXTENDED_SENSE_START   18

Definition at line 220 of file st.h.

#define PF_TESTED   2

Definition at line 178 of file st.h.

#define QFA_REQUEST_BLOCK   0x02

Definition at line 212 of file st.h.

#define QFA_SEEK_BLOCK   0x0c

Definition at line 213 of file st.h.

#define SENSE_EOM   0x40

Definition at line 224 of file st.h.

#define SENSE_FMK   0x80

Definition at line 223 of file st.h.

#define SENSE_ILI   0x20

Definition at line 225 of file st.h.

#define ST_DONT_TOUCH   0

Definition at line 216 of file st.h.

#define ST_EOD   7

Definition at line 188 of file st.h.

#define ST_EOD_1   5

Definition at line 186 of file st.h.

#define ST_EOD_2   6

Definition at line 187 of file st.h.

#define ST_EOM_ERROR   4

Definition at line 185 of file st.h.

#define ST_EOM_OK   3

Definition at line 184 of file st.h.

#define ST_FM   2

Definition at line 183 of file st.h.

#define ST_FM_HIT   1

Definition at line 182 of file st.h.

#define ST_IDLE   0

Definition at line 196 of file st.h.

#define ST_LOCK_FAILS   3

Definition at line 209 of file st.h.

#define ST_LOCKED_AUTO   2

Definition at line 208 of file st.h.

#define ST_LOCKED_EXPLICIT   1

Definition at line 207 of file st.h.

#define ST_MAX_TAPE_ENTRIES   (ST_MAX_TAPES << (ST_NBR_MODE_BITS + 1))

Definition at line 82 of file st.h.

#define ST_MAX_TAPES   (1 << (20 - (ST_NBR_MODE_BITS + 1)))

Definition at line 81 of file st.h.

#define ST_MODE_MASK   ((ST_NBR_MODES - 1) << ST_MODE_SHIFT)

Definition at line 79 of file st.h.

#define ST_MODE_SHIFT   (7 - ST_NBR_MODE_BITS)

Definition at line 78 of file st.h.

#define ST_NBR_MODE_BITS   2

Definition at line 76 of file st.h.

#define ST_NBR_MODES   (1 << ST_NBR_MODE_BITS)

Definition at line 77 of file st.h.

#define ST_NBR_PARTITIONS   4

Definition at line 95 of file st.h.

#define ST_NO   1

Definition at line 217 of file st.h.

#define ST_NO_TAPE   2

Definition at line 203 of file st.h.

#define ST_NOEOF   0

Definition at line 181 of file st.h.

#define ST_NOT_READY   1

Definition at line 202 of file st.h.

#define ST_READING   1

Definition at line 197 of file st.h.

#define ST_READY   0

Definition at line 201 of file st.h.

#define ST_UNLOCKED   0

Definition at line 206 of file st.h.

#define ST_WRITING   2

Definition at line 198 of file st.h.

#define ST_YES   2

Definition at line 218 of file st.h.

#define USE_PF   1

Definition at line 177 of file st.h.