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

Go to the source code of this file.

Data Structures

struct  changer_params
 
struct  changer_vendor_params
 
struct  changer_move
 
struct  changer_exchange
 
struct  changer_position
 
struct  changer_element_status
 
struct  changer_get_element
 
struct  changer_set_voltag
 

Macros

#define CHET_MT   0 /* media transport element (robot) */
 
#define CHET_ST   1 /* storage element (media slots) */
 
#define CHET_IE   2 /* import/export element */
 
#define CHET_DT   3 /* data transfer element (tape/cdrom/whatever) */
 
#define CHET_V1   4 /* vendor specific #1 */
 
#define CHET_V2   5 /* vendor specific #2 */
 
#define CHET_V3   6 /* vendor specific #3 */
 
#define CHET_V4   7 /* vendor specific #4 */
 
#define CM_INVERT   1 /* flag: rotate media (for double-sided like MOD) */
 
#define CE_INVERT1   1
 
#define CE_INVERT2   2
 
#define CP_INVERT   1
 
#define CESTATUS_FULL   0x01 /* full */
 
#define CESTATUS_IMPEXP   0x02 /* media was imported (inserted by sysop) */
 
#define CESTATUS_EXCEPT   0x04 /* error condition */
 
#define CESTATUS_ACCESS   0x08 /* access allowed */
 
#define CESTATUS_EXENAB   0x10 /* element can export media */
 
#define CESTATUS_INENAB   0x20 /* element can import media */
 
#define CGE_ERRNO   0x01 /* errno available */
 
#define CGE_INVERT   0x02 /* media inverted */
 
#define CGE_SRC   0x04 /* media src available */
 
#define CGE_IDLUN   0x08 /* ID+LUN available */
 
#define CGE_PVOLTAG   0x10 /* primary volume tag available */
 
#define CGE_AVOLTAG   0x20 /* alternate volume tag available */
 
#define CSV_PVOLTAG   0x01 /* primary volume tag */
 
#define CSV_AVOLTAG   0x02 /* alternate volume tag */
 
#define CSV_CLEARTAG   0x04 /* clear volume tag */
 
#define CHIOMOVE   _IOW('c', 1,struct changer_move)
 
#define CHIOEXCHANGE   _IOW('c', 2,struct changer_exchange)
 
#define CHIOPOSITION   _IOW('c', 3,struct changer_position)
 
#define CHIOGPICKER   _IOR('c', 4,int) /* not impl. */
 
#define CHIOSPICKER   _IOW('c', 5,int) /* not impl. */
 
#define CHIOGPARAMS   _IOR('c', 6,struct changer_params)
 
#define CHIOGSTATUS   _IOW('c', 8,struct changer_element_status)
 
#define CHIOGELEM   _IOW('c',16,struct changer_get_element)
 
#define CHIOINITELEM   _IO('c',17)
 
#define CHIOSVOLTAG   _IOW('c',18,struct changer_set_voltag)
 
#define CHIOGVPARAMS   _IOR('c',19,struct changer_vendor_params)
 

Macro Definition Documentation

#define CE_INVERT1   1

Definition at line 77 of file chio.h.

#define CE_INVERT2   2

Definition at line 78 of file chio.h.

#define CESTATUS_ACCESS   0x08 /* access allowed */

Definition at line 104 of file chio.h.

#define CESTATUS_EXCEPT   0x04 /* error condition */

Definition at line 103 of file chio.h.

#define CESTATUS_EXENAB   0x10 /* element can export media */

Definition at line 105 of file chio.h.

#define CESTATUS_FULL   0x01 /* full */

Definition at line 101 of file chio.h.

#define CESTATUS_IMPEXP   0x02 /* media was imported (inserted by sysop) */

Definition at line 102 of file chio.h.

#define CESTATUS_INENAB   0x20 /* element can import media */

Definition at line 106 of file chio.h.

#define CGE_AVOLTAG   0x20 /* alternate volume tag available */

Definition at line 132 of file chio.h.

#define CGE_ERRNO   0x01 /* errno available */

Definition at line 127 of file chio.h.

#define CGE_IDLUN   0x08 /* ID+LUN available */

Definition at line 130 of file chio.h.

#define CGE_INVERT   0x02 /* media inverted */

Definition at line 128 of file chio.h.

#define CGE_PVOLTAG   0x10 /* primary volume tag available */

Definition at line 131 of file chio.h.

#define CGE_SRC   0x04 /* media src available */

Definition at line 129 of file chio.h.

#define CHET_DT   3 /* data transfer element (tape/cdrom/whatever) */

Definition at line 9 of file chio.h.

#define CHET_IE   2 /* import/export element */

Definition at line 8 of file chio.h.

#define CHET_MT   0 /* media transport element (robot) */

Definition at line 6 of file chio.h.

#define CHET_ST   1 /* storage element (media slots) */

Definition at line 7 of file chio.h.

#define CHET_V1   4 /* vendor specific #1 */

Definition at line 10 of file chio.h.

#define CHET_V2   5 /* vendor specific #2 */

Definition at line 11 of file chio.h.

#define CHET_V3   6 /* vendor specific #3 */

Definition at line 12 of file chio.h.

#define CHET_V4   7 /* vendor specific #4 */

Definition at line 13 of file chio.h.

#define CHIOEXCHANGE   _IOW('c', 2,struct changer_exchange)

Definition at line 151 of file chio.h.

#define CHIOGELEM   _IOW('c',16,struct changer_get_element)

Definition at line 157 of file chio.h.

#define CHIOGPARAMS   _IOR('c', 6,struct changer_params)

Definition at line 155 of file chio.h.

#define CHIOGPICKER   _IOR('c', 4,int) /* not impl. */

Definition at line 153 of file chio.h.

#define CHIOGSTATUS   _IOW('c', 8,struct changer_element_status)

Definition at line 156 of file chio.h.

#define CHIOGVPARAMS   _IOR('c',19,struct changer_vendor_params)

Definition at line 160 of file chio.h.

#define CHIOINITELEM   _IO('c',17)

Definition at line 158 of file chio.h.

#define CHIOMOVE   _IOW('c', 1,struct changer_move)

Definition at line 150 of file chio.h.

#define CHIOPOSITION   _IOW('c', 3,struct changer_position)

Definition at line 152 of file chio.h.

#define CHIOSPICKER   _IOW('c', 5,int) /* not impl. */

Definition at line 154 of file chio.h.

#define CHIOSVOLTAG   _IOW('c',18,struct changer_set_voltag)

Definition at line 159 of file chio.h.

#define CM_INVERT   1 /* flag: rotate media (for double-sided like MOD) */

Definition at line 59 of file chio.h.

#define CP_INVERT   1

Definition at line 90 of file chio.h.

#define CSV_AVOLTAG   0x02 /* alternate volume tag */

Definition at line 146 of file chio.h.

#define CSV_CLEARTAG   0x04 /* clear volume tag */

Definition at line 147 of file chio.h.

#define CSV_PVOLTAG   0x01 /* primary volume tag */

Definition at line 145 of file chio.h.