|
|
1.1 root 1: /*
2: * Structures and definitions for mag tape io control commands
3: */
4:
5: /* mag tape io control commands */
6: #define MTIOCTOP (('m'<<8)|1) /* do a mag tape op */
7: #define MTIOCGET (('m'<<8)|2) /* get mag tape status */
8: #define MTIOCIEOT (('m'<<8)|3) /* ignore EOT error */
9: #define MTIOCEEOT (('m'<<8)|4) /* enable EOT error */
10:
11: /* structure for MTIOCTOP - mag tape op command */
12: struct mtop {
13: short mt_op; /* operations defined below */
14: daddr_t mt_count; /* how many of them */
15: };
16:
17: /* operations */
18: #define MTWEOF 0 /* write an end-of-file record */
19: #define MTFSF 1 /* forward space file */
20: #define MTBSF 2 /* backward space file */
21: #define MTFSR 3 /* forward space record */
22: #define MTBSR 4 /* backward space record */
23: #define MTREW 5 /* rewind */
24: #define MTOFFL 6 /* rewind and put the drive offline */
25: #define MTNOP 7 /* no operation, sets status only */
26: #define MTRST 8 /* reset broken dec tape controller */
27:
28: /* structure for MTIOCGET - mag tape get status command */
29:
30: struct mtget {
31: short mt_type; /* type of magtape device */
32: /* the following two registers are grossly device dependent */
33: short mt_dsreg; /* ``drive status'' register */
34: short mt_erreg; /* ``error'' register */
35: /* end device-dependent registers */
36: short mt_resid; /* residual count */
37: /* the following two are not yet implemented */
38: daddr_t mt_fileno; /* file number of current position */
39: daddr_t mt_blkno; /* block number of current position */
40: /* end not yet implemented */
41: };
42:
43: /*
44: * Constants for mt_type byte
45: */
46: #define MT_ISTS 01
47: #define MT_ISHT 02
48: #define MT_ISTM 03
49: #define MT_ISMT 04
50: #define MT_ISUT 05
51: #define MT_ISTMSCP 06
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.