Go to the documentation of this file.
11 #include <linux/types.h>
50 #define MTSETDENSITY 21
53 #define MTSETDRVBUFFER 24
63 #define MTCOMPRESSION 32
92 #define MT_ISUNKNOWN 0x01
93 #define MT_ISQIC02 0x02
94 #define MT_ISWT5150 0x03
95 #define MT_ISARCHIVE_5945L2 0x04
96 #define MT_ISCMSJ500 0x05
97 #define MT_ISTDC3610 0x06
98 #define MT_ISARCHIVE_VP60I 0x07
99 #define MT_ISARCHIVE_2150L 0x08
100 #define MT_ISARCHIVE_2060L 0x09
101 #define MT_ISARCHIVESC499 0x0A
102 #define MT_ISQIC02_ALL_FEATURES 0x0F
103 #define MT_ISWT5099EEN24 0x11
104 #define MT_ISTEAC_MT2ST 0x12
105 #define MT_ISEVEREX_FT40A 0x32
106 #define MT_ISDDS1 0x51
107 #define MT_ISDDS2 0x52
108 #define MT_ISONSTREAM_SC 0x61
110 #define MT_ISSCSI1 0x71
111 #define MT_ISSCSI2 0x72
116 #define MT_ISFTAPE_UNKNOWN 0x800000
117 #define MT_ISFTAPE_FLAG 0x800000
128 #define MTIOCTOP _IOW('m', 1, struct mtop)
129 #define MTIOCGET _IOR('m', 2, struct mtget)
130 #define MTIOCPOS _IOR('m', 3, struct mtpos)
139 #define GMT_EOF(x) ((x) & 0x80000000)
140 #define GMT_BOT(x) ((x) & 0x40000000)
141 #define GMT_EOT(x) ((x) & 0x20000000)
142 #define GMT_SM(x) ((x) & 0x10000000)
143 #define GMT_EOD(x) ((x) & 0x08000000)
144 #define GMT_WR_PROT(x) ((x) & 0x04000000)
146 #define GMT_ONLINE(x) ((x) & 0x01000000)
147 #define GMT_D_6250(x) ((x) & 0x00800000)
148 #define GMT_D_1600(x) ((x) & 0x00400000)
149 #define GMT_D_800(x) ((x) & 0x00200000)
152 #define GMT_DR_OPEN(x) ((x) & 0x00040000)
154 #define GMT_IM_REP_EN(x) ((x) & 0x00010000)
155 #define GMT_CLN(x) ((x) & 0x00008000)
161 #define MT_ST_BLKSIZE_SHIFT 0
162 #define MT_ST_BLKSIZE_MASK 0xffffff
163 #define MT_ST_DENSITY_SHIFT 24
164 #define MT_ST_DENSITY_MASK 0xff000000
166 #define MT_ST_SOFTERR_SHIFT 0
167 #define MT_ST_SOFTERR_MASK 0xffff
170 #define MT_ST_OPTIONS 0xf0000000
171 #define MT_ST_BOOLEANS 0x10000000
172 #define MT_ST_SETBOOLEANS 0x30000000
173 #define MT_ST_CLEARBOOLEANS 0x40000000
174 #define MT_ST_WRITE_THRESHOLD 0x20000000
175 #define MT_ST_DEF_BLKSIZE 0x50000000
176 #define MT_ST_DEF_OPTIONS 0x60000000
177 #define MT_ST_TIMEOUTS 0x70000000
178 #define MT_ST_SET_TIMEOUT (MT_ST_TIMEOUTS | 0x000000)
179 #define MT_ST_SET_LONG_TIMEOUT (MT_ST_TIMEOUTS | 0x100000)
180 #define MT_ST_SET_CLN 0x80000000
182 #define MT_ST_BUFFER_WRITES 0x1
183 #define MT_ST_ASYNC_WRITES 0x2
184 #define MT_ST_READ_AHEAD 0x4
185 #define MT_ST_DEBUGGING 0x8
186 #define MT_ST_TWO_FM 0x10
187 #define MT_ST_FAST_MTEOM 0x20
188 #define MT_ST_AUTO_LOCK 0x40
189 #define MT_ST_DEF_WRITES 0x80
190 #define MT_ST_CAN_BSR 0x100
191 #define MT_ST_NO_BLKLIMS 0x200
192 #define MT_ST_CAN_PARTITIONS 0x400
193 #define MT_ST_SCSI2LOGICAL 0x800
194 #define MT_ST_SYSV 0x1000
195 #define MT_ST_NOWAIT 0x2000
196 #define MT_ST_SILI 0x4000
197 #define MT_ST_NOWAIT_EOF 0x8000
200 #define MT_ST_CLEAR_DEFAULT 0xfffff
201 #define MT_ST_DEF_DENSITY (MT_ST_DEF_OPTIONS | 0x100000)
202 #define MT_ST_DEF_COMPRESSION (MT_ST_DEF_OPTIONS | 0x200000)
203 #define MT_ST_DEF_DRVBUFFER (MT_ST_DEF_OPTIONS | 0x300000)
206 #define MT_ST_HPLOADER_OFFSET 10000