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

Go to the source code of this file.

Data Structures

struct  display_struct
 
struct  tape390_crypt_info
 
struct  tape390_kekl
 
struct  tape390_kekl_pair
 

Macros

#define TAPE390_DISPLAY   _IOW('d', 1, struct display_struct)
 
#define TAPE390_CRYPT_SUPPORTED_MASK   0x01
 
#define TAPE390_CRYPT_SUPPORTED(x)   ((x.capability & TAPE390_CRYPT_SUPPORTED_MASK))
 
#define TAPE390_CRYPT_ON_MASK   0x01
 
#define TAPE390_CRYPT_ON(x)   (((x.status) & TAPE390_CRYPT_ON_MASK))
 
#define TAPE390_MEDIUM_LOADED_MASK   0x01
 
#define TAPE390_MEDIUM_ENCRYPTED_MASK   0x02
 
#define TAPE390_MEDIUM_ENCRYPTED(x)   (((x.medium_status) & TAPE390_MEDIUM_ENCRYPTED_MASK))
 
#define TAPE390_MEDIUM_LOADED(x)   (((x.medium_status) & TAPE390_MEDIUM_LOADED_MASK))
 
#define TAPE390_CRYPT_SET   _IOW('d', 2, struct tape390_crypt_info)
 
#define TAPE390_CRYPT_QUERY   _IOR('d', 3, struct tape390_crypt_info)
 
#define TAPE390_KEKL_TYPE_NONE   0
 
#define TAPE390_KEKL_TYPE_LABEL   1
 
#define TAPE390_KEKL_TYPE_HASH   2
 
#define TAPE390_KEKL_SET   _IOW('d', 4, struct tape390_kekl_pair)
 
#define TAPE390_KEKL_QUERY   _IOR('d', 5, struct tape390_kekl_pair)
 

Typedefs

typedef struct display_struct display_struct
 

Functions

struct tape390_crypt_info __attribute__ ((packed))
 

Variables

char capability
 
char status
 
char medium_status
 
unsigned char type
 
unsigned char type_on_tape
 
char label [65]
 
struct tape390_kekl kekl [2]
 

Macro Definition Documentation

#define TAPE390_CRYPT_ON (   x)    (((x.status) & TAPE390_CRYPT_ON_MASK))

Definition at line 56 of file tape390.h.

#define TAPE390_CRYPT_ON_MASK   0x01

Definition at line 55 of file tape390.h.

#define TAPE390_CRYPT_QUERY   _IOR('d', 3, struct tape390_crypt_info)

Definition at line 75 of file tape390.h.

#define TAPE390_CRYPT_SET   _IOW('d', 2, struct tape390_crypt_info)

Definition at line 70 of file tape390.h.

#define TAPE390_CRYPT_SUPPORTED (   x)    ((x.capability & TAPE390_CRYPT_SUPPORTED_MASK))

Definition at line 51 of file tape390.h.

#define TAPE390_CRYPT_SUPPORTED_MASK   0x01

Definition at line 50 of file tape390.h.

#define TAPE390_DISPLAY   _IOW('d', 1, struct display_struct)

Definition at line 14 of file tape390.h.

#define TAPE390_KEKL_QUERY   _IOR('d', 5, struct tape390_kekl_pair)

Definition at line 100 of file tape390.h.

#define TAPE390_KEKL_SET   _IOW('d', 4, struct tape390_kekl_pair)

Definition at line 95 of file tape390.h.

#define TAPE390_KEKL_TYPE_HASH   2

Definition at line 80 of file tape390.h.

#define TAPE390_KEKL_TYPE_LABEL   1

Definition at line 79 of file tape390.h.

#define TAPE390_KEKL_TYPE_NONE   0

Definition at line 78 of file tape390.h.

#define TAPE390_MEDIUM_ENCRYPTED (   x)    (((x.medium_status) & TAPE390_MEDIUM_ENCRYPTED_MASK))

Definition at line 61 of file tape390.h.

#define TAPE390_MEDIUM_ENCRYPTED_MASK   0x02

Definition at line 60 of file tape390.h.

#define TAPE390_MEDIUM_LOADED (   x)    (((x.medium_status) & TAPE390_MEDIUM_LOADED_MASK))

Definition at line 63 of file tape390.h.

#define TAPE390_MEDIUM_LOADED_MASK   0x01

Definition at line 59 of file tape390.h.

Typedef Documentation

Function Documentation

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__le16 capability

Definition at line 47 of file tape390.h.

Definition at line 91 of file tape390.h.

char label[65]

Definition at line 89 of file tape390.h.

char medium_status

Definition at line 49 of file tape390.h.

Definition at line 48 of file tape390.h.

unsigned char type

Definition at line 87 of file tape390.h.

unsigned char type_on_tape

Definition at line 88 of file tape390.h.