Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tape_3590.h File Reference

Go to the source code of this file.

Data Structures

struct  tape_3590_disc_data
 
struct  tape_3590_sense
 
struct  tape_3590_med_sense
 
struct  tape_3590_rdc_data
 
struct  tape3592_kekl
 
struct  tape3592_kekl_pair
 
struct  tape3592_kekl_query_data
 
struct  tape3592_kekl_query_order
 
struct  tape3592_kekl_set_order
 

Macros

#define MEDIUM_SENSE   0xc2
 
#define READ_PREVIOUS   0x0a
 
#define MODE_SENSE   0xcf
 
#define PERFORM_SS_FUNC   0x77
 
#define READ_SS_DATA   0x3e
 
#define PREP_RD_SS_DATA   0x18
 
#define RD_ATTMSG   0x3
 
#define SENSE_BRA_PER   0
 
#define SENSE_BRA_CONT   1
 
#define SENSE_BRA_RE   2
 
#define SENSE_BRA_DRE   3
 
#define SENSE_FMT_LIBRARY   0x23
 
#define SENSE_FMT_UNSOLICITED   0x40
 
#define SENSE_FMT_COMMAND_REJ   0x41
 
#define SENSE_FMT_COMMAND_EXEC0   0x50
 
#define SENSE_FMT_COMMAND_EXEC1   0x51
 
#define SENSE_FMT_EVENT0   0x60
 
#define SENSE_FMT_EVENT1   0x61
 
#define SENSE_FMT_MIM   0x70
 
#define SENSE_FMT_SIM   0x71
 
#define MSENSE_UNASSOCIATED   0x00
 
#define MSENSE_ASSOCIATED_MOUNT   0x01
 
#define MSENSE_ASSOCIATED_UMOUNT   0x02
 
#define MSENSE_CRYPT_MASK   0x00000010
 
#define TAPE_3590_MAX_MSG   0xb0
 
#define TAPE_3590_CRYPT_INFO(device)   ((struct tape_3590_disc_data*)(device->discdata))->crypt_info
 
#define TAPE_3590_READ_BACK_OP(device)   ((struct tape_3590_disc_data*)(device->discdata))->read_back_op
 

Functions

struct tape_3590_sense __attribute__ ((packed))
 

Variables

unsigned int command_rej
 
unsigned int interv_req
 
unsigned int bus_out_check
 
unsigned int eq_check
 
unsigned int data_check
 
unsigned int overrun
 
unsigned int def_unit_check
 
unsigned int assgnd_elsew
 
unsigned int locate_fail
 
unsigned int inst_online
 
unsigned int reserved
 
unsigned int blk_seq_err
 
unsigned int begin_part
 
unsigned int wr_mode
 
unsigned int wr_prot
 
unsigned int not_cap
 
unsigned int bra
 
unsigned int lc
 
unsigned int vlf_active
 
unsigned int stm
 
unsigned int med_pos
 
unsigned int rac
 
unsigned int rc_rqc
 
unsigned int mc
 
unsigned int sense_fmt
 
union {
   struct {
      unsigned int   emc:4
 
      unsigned int   smc:4
 
      unsigned int   sev:2
 
      unsigned int   reserved:6
 
      unsigned int   md:8
 
      unsigned int   refcode:8
 
      unsigned int   mid:16
 
      unsigned int   mp:16
 
      unsigned char   volid [6]
 
      unsigned int   fid:8
 
   }   f70
 
   struct {
      unsigned int   emc:4
 
      unsigned int   smc:4
 
      unsigned int   sev:2
 
      unsigned int   reserved1:5
 
      unsigned int   mdf:1
 
      unsigned char   md [3]
 
      unsigned int   simid:8
 
      unsigned int   uid:16
 
      unsigned int   refcode1:16
 
      unsigned int   refcode2:16
 
      unsigned int   refcode3:16
 
      unsigned int   reserved2:8
 
   }   f71
 
   unsigned char   data [14]
 
fmt
 
unsigned char pad [10]
 
unsigned int macst
 
unsigned int masst
 
char pad1 [7]
 
unsigned int flags
 
char pad2 [116]
 
char label [64]
 
__u8 count
 
struct tape3592_kekl kekl [2]
 
__u16 len
 
__u32 id
 
struct tape3592_kekl_pair kekls
 
__u8 code
 
__u8 max_count
 
__u8 op
 

Macro Definition Documentation

#define MEDIUM_SENSE   0xc2

Definition at line 13 of file tape_3590.h.

#define MODE_SENSE   0xcf

Definition at line 15 of file tape_3590.h.

#define MSENSE_ASSOCIATED_MOUNT   0x01

Definition at line 38 of file tape_3590.h.

#define MSENSE_ASSOCIATED_UMOUNT   0x02

Definition at line 39 of file tape_3590.h.

#define MSENSE_CRYPT_MASK   0x00000010

Definition at line 40 of file tape_3590.h.

#define MSENSE_UNASSOCIATED   0x00

Definition at line 37 of file tape_3590.h.

#define PERFORM_SS_FUNC   0x77

Definition at line 16 of file tape_3590.h.

#define PREP_RD_SS_DATA   0x18

Definition at line 19 of file tape_3590.h.

#define RD_ATTMSG   0x3

Definition at line 20 of file tape_3590.h.

#define READ_PREVIOUS   0x0a

Definition at line 14 of file tape_3590.h.

#define READ_SS_DATA   0x3e

Definition at line 17 of file tape_3590.h.

#define SENSE_BRA_CONT   1

Definition at line 23 of file tape_3590.h.

#define SENSE_BRA_DRE   3

Definition at line 25 of file tape_3590.h.

#define SENSE_BRA_PER   0

Definition at line 22 of file tape_3590.h.

#define SENSE_BRA_RE   2

Definition at line 24 of file tape_3590.h.

#define SENSE_FMT_COMMAND_EXEC0   0x50

Definition at line 30 of file tape_3590.h.

#define SENSE_FMT_COMMAND_EXEC1   0x51

Definition at line 31 of file tape_3590.h.

#define SENSE_FMT_COMMAND_REJ   0x41

Definition at line 29 of file tape_3590.h.

#define SENSE_FMT_EVENT0   0x60

Definition at line 32 of file tape_3590.h.

#define SENSE_FMT_EVENT1   0x61

Definition at line 33 of file tape_3590.h.

#define SENSE_FMT_LIBRARY   0x23

Definition at line 27 of file tape_3590.h.

#define SENSE_FMT_MIM   0x70

Definition at line 34 of file tape_3590.h.

#define SENSE_FMT_SIM   0x71

Definition at line 35 of file tape_3590.h.

#define SENSE_FMT_UNSOLICITED   0x40

Definition at line 28 of file tape_3590.h.

#define TAPE_3590_CRYPT_INFO (   device)    ((struct tape_3590_disc_data*)(device->discdata))->crypt_info

Definition at line 51 of file tape_3590.h.

#define TAPE_3590_MAX_MSG   0xb0

Definition at line 42 of file tape_3590.h.

#define TAPE_3590_READ_BACK_OP (   device)    ((struct tape_3590_disc_data*)(device->discdata))->read_back_op

Definition at line 53 of file tape_3590.h.

Function Documentation

struct tape_3590_sense __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

unsigned int assgnd_elsew

Definition at line 130 of file tape_3590.h.

unsigned int begin_part

Definition at line 136 of file tape_3590.h.

unsigned int blk_seq_err

Definition at line 135 of file tape_3590.h.

unsigned int bra

Definition at line 141 of file tape_3590.h.

unsigned int bus_out_check

Definition at line 125 of file tape_3590.h.

Definition at line 164 of file tape_3590.h.

unsigned int command_rej

Definition at line 123 of file tape_3590.h.

__u8 count

Definition at line 146 of file tape_3590.h.

char data[64]

Definition at line 182 of file tape_3590.h.

unsigned int data_check

Definition at line 127 of file tape_3590.h.

unsigned int def_unit_check

Definition at line 129 of file tape_3590.h.

unsigned int emc

Definition at line 157 of file tape_3590.h.

unsigned int eq_check

Definition at line 126 of file tape_3590.h.

struct { ... } f70
struct { ... } f71
unsigned int fid

Definition at line 166 of file tape_3590.h.

__u8 flags

Definition at line 133 of file tape_3590.h.

__u8 fmt

Definition at line 157 of file tape_3590.h.

Definition at line 159 of file tape_3590.h.

unsigned int inst_online

Definition at line 133 of file tape_3590.h.

unsigned int interv_req

Definition at line 124 of file tape_3590.h.

Definition at line 147 of file tape_3590.h.

Definition at line 161 of file tape_3590.h.

char label[64]

Definition at line 142 of file tape_3590.h.

unsigned int lc

Definition at line 142 of file tape_3590.h.

__u16 len

Definition at line 156 of file tape_3590.h.

unsigned int locate_fail

Definition at line 132 of file tape_3590.h.

unsigned int macst

Definition at line 130 of file tape_3590.h.

unsigned int masst

Definition at line 131 of file tape_3590.h.

__u8 max_count

Definition at line 167 of file tape_3590.h.

__u8 mc

Definition at line 151 of file tape_3590.h.

unsigned char md[3]

Definition at line 161 of file tape_3590.h.

unsigned int mdf

Definition at line 173 of file tape_3590.h.

unsigned int med_pos

Definition at line 145 of file tape_3590.h.

unsigned int mid

Definition at line 163 of file tape_3590.h.

u32 mp

Definition at line 164 of file tape_3590.h.

unsigned int not_cap

Definition at line 139 of file tape_3590.h.

Definition at line 176 of file tape_3590.h.

unsigned int overrun

Definition at line 128 of file tape_3590.h.

unsigned char pad[10]

Definition at line 184 of file tape_3590.h.

char pad1[7]

Definition at line 132 of file tape_3590.h.

char pad2[116]

Definition at line 134 of file tape_3590.h.

unsigned int rac

Definition at line 147 of file tape_3590.h.

unsigned int rc_rqc

Definition at line 149 of file tape_3590.h.

unsigned int refcode

Definition at line 162 of file tape_3590.h.

unsigned int refcode1

Definition at line 177 of file tape_3590.h.

unsigned int refcode2

Definition at line 178 of file tape_3590.h.

unsigned int refcode3

Definition at line 179 of file tape_3590.h.

char reserved[116]

Definition at line 134 of file tape_3590.h.

char reserved1[2]

Definition at line 172 of file tape_3590.h.

char reserved2[120]

Definition at line 180 of file tape_3590.h.

unsigned int sense_fmt

Definition at line 153 of file tape_3590.h.

unsigned int sev

Definition at line 159 of file tape_3590.h.

unsigned int simid

Definition at line 175 of file tape_3590.h.

unsigned int smc

Definition at line 158 of file tape_3590.h.

unsigned int stm

Definition at line 144 of file tape_3590.h.

Definition at line 176 of file tape_3590.h.

unsigned int vlf_active

Definition at line 143 of file tape_3590.h.

unsigned char volid[6]

Definition at line 165 of file tape_3590.h.

unsigned int wr_mode

Definition at line 137 of file tape_3590.h.

unsigned int wr_prot

Definition at line 138 of file tape_3590.h.