Go to the documentation of this file.
5 #include <asm/byteorder.h>
15 unsigned reserved0_765 :3;
16 unsigned reserved1_6t0 :7;
18 unsigned ansi_version :3;
19 unsigned ecma_version :3;
20 unsigned iso_version :2;
21 unsigned response_format :4;
22 unsigned reserved3_45 :2;
23 unsigned reserved3_6 :1;
24 unsigned reserved3_7 :1;
30 u8 vendor_specific[20];
39 unsigned reserved0_10 :2;
41 unsigned reserved0_543 :3;
49 u8 blocks_in_buffer[3];
57 #define COMPRESSION_PAGE 0x0f
58 #define COMPRESSION_PAGE_LENGTH 16
60 #define CAPABILITIES_PAGE 0x2a
61 #define CAPABILITIES_PAGE_LENGTH 20
63 #define TAPE_PARAMTR_PAGE 0x2b
64 #define TAPE_PARAMTR_PAGE_LENGTH 16
66 #define NUMBER_RETRIES_PAGE 0x2f
67 #define NUMBER_RETRIES_PAGE_LENGTH 4
69 #define BLOCK_SIZE_PAGE 0x30
70 #define BLOCK_SIZE_PAGE_LENGTH 4
72 #define BUFFER_FILLING_PAGE 0x33
73 #define BUFFER_FILLING_PAGE_LENGTH 4
75 #define VENDOR_IDENT_PAGE 0x36
76 #define VENDOR_IDENT_PAGE_LENGTH 8
78 #define LOCATE_STATUS_PAGE 0x37
79 #define LOCATE_STATUS_PAGE_LENGTH 0
81 #define MODE_HEADER_LENGTH 4
92 unsigned reserved2_4 :1;
102 unsigned sk_specific1 :7;
135 #if defined(__BIG_ENDIAN_BITFIELD)
139 #elif defined(__LITTLE_ENDIAN_BITFIELD)
144 #error "Please fix <asm/byteorder.h>"
147 #if defined(__BIG_ENDIAN_BITFIELD)
151 #elif defined(__LITTLE_ENDIAN_BITFIELD)
156 #error "Please fix <asm/byteorder.h>"
158 #if defined(__BIG_ENDIAN_BITFIELD)
162 #elif defined(__LITTLE_ENDIAN_BITFIELD)
167 #error "Please fix <asm/byteorder.h>"
178 #if defined(__BIG_ENDIAN_BITFIELD)
180 unsigned reserved1_6 :1;
182 #elif defined(__LITTLE_ENDIAN_BITFIELD)
184 unsigned reserved1_6 :1;
187 #error "Please fix <asm/byteorder.h>"
192 #if defined(__BIG_ENDIAN_BITFIELD)
197 unsigned reserved4_012 :3;
198 #elif defined(__LITTLE_ENDIAN_BITFIELD)
199 unsigned reserved4_012 :3;
205 #error "Please fix <asm/byteorder.h>"
215 #if defined(__BIG_ENDIAN_BITFIELD)
216 unsigned reserved1_67 :2;
218 #elif defined(__LITTLE_ENDIAN_BITFIELD)
220 unsigned reserved1_67 :2;
222 #error "Please fix <asm/byteorder.h>"
226 #if defined(__BIG_ENDIAN_BITFIELD)
227 unsigned reserved4_67 :2;
229 unsigned reserved4_1234 :4;
231 #elif defined(__LITTLE_ENDIAN_BITFIELD)
233 unsigned reserved4_1234 :4;
235 unsigned reserved4_67 :2;
237 #error "Please fix <asm/byteorder.h>"
239 #if defined(__BIG_ENDIAN_BITFIELD)
240 unsigned reserved5_67 :2;
242 unsigned reserved5_4 :1;
244 unsigned reserved5_012 :3;
245 #elif defined(__LITTLE_ENDIAN_BITFIELD)
246 unsigned reserved5_012 :3;
248 unsigned reserved5_4 :1;
250 unsigned reserved5_67 :2;
252 #error "Please fix <asm/byteorder.h>"
254 #if defined(__BIG_ENDIAN_BITFIELD)
257 unsigned reserved6_45 :2;
262 #elif defined(__LITTLE_ENDIAN_BITFIELD)
267 unsigned reserved6_45 :2;
271 #error "Please fix <asm/byteorder.h>"
273 #if defined(__BIG_ENDIAN_BITFIELD)
274 unsigned blk32768 :1;
277 unsigned reserved7_3_6 :4;
280 unsigned reserved7_0 :1;
281 #elif defined(__LITTLE_ENDIAN_BITFIELD)
282 unsigned reserved7_0 :1;
285 unsigned reserved7_3_6 :4;
286 unsigned blk32768 :1;
290 #error "Please fix <asm/byteorder.h>"
304 #if defined(__BIG_ENDIAN_BITFIELD)
306 unsigned reserved1_6 :1;
308 #elif defined(__LITTLE_ENDIAN_BITFIELD)
310 unsigned reserved1_6 :1;
313 #error "Please fix <asm/byteorder.h>"
317 #if defined(__BIG_ENDIAN_BITFIELD)
319 unsigned reserved2_6 :1;
320 unsigned record32_5 :1;
321 unsigned record32 :1;
322 unsigned reserved2_23 :2;
323 unsigned play32_5 :1;
325 #elif defined(__LITTLE_ENDIAN_BITFIELD)
327 unsigned play32_5 :1;
328 unsigned reserved2_23 :2;
329 unsigned record32 :1;
330 unsigned record32_5 :1;
331 unsigned reserved2_6 :1;
334 #error "Please fix <asm/byteorder.h>"
342 #if defined(__BIG_ENDIAN_BITFIELD)
344 unsigned reserved1_6 :1;
346 #elif defined(__LITTLE_ENDIAN_BITFIELD)
348 unsigned reserved1_6 :1;
351 #error "Please fix <asm/byteorder.h>"
363 #define OS_CONFIG_PARTITION (0xff)
364 #define OS_DATA_PARTITION (0)
365 #define OS_PARTITION_VERSION (1)
392 #define OS_DAT_FLAGS_DATA (0xc)
393 #define OS_DAT_FLAGS_MARK (0x1)
406 #define OS_FRAME_TYPE_FILL (0)
407 #define OS_FRAME_TYPE_EOD (1 << 0)
408 #define OS_FRAME_TYPE_MARKER (1 << 1)
409 #define OS_FRAME_TYPE_HEADER (1 << 3)
410 #define OS_FRAME_TYPE_DATA (1 << 7)
447 #define OS_FM_TAB_MAX 1024
505 #define OS_FRAME_SIZE (32 * 1024 + 512)
506 #define OS_DATA_SIZE (32 * 1024)
507 #define OS_AUX_SIZE (512)
625 unsigned char last_cmnd[6];
626 unsigned char last_sense[16];
642 #define OS_WRITE_DATA 0
643 #define OS_WRITE_EOD 1
644 #define OS_WRITE_NEW_MARK 2
645 #define OS_WRITE_LAST_MARK 3
646 #define OS_WRITE_HEADER 4
647 #define OS_WRITE_FILLER 5
650 #define OS_WRITING_COMPLETE 3