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: 
   9: /* structure for MTIOCTOP - mag tape op command */
  10: struct  mtop    {
  11:     short   mt_op;      /* operations defined below */
  12:     u_short mt_count;   /* how many of them */
  13: };
  14: 
  15: /* operations */
  16: #define MTWEOF  0   /* write an end-of-file record */
  17: #define MTFSF   1   /* forward space file */
  18: #define MTBSF   2   /* backward space file */
  19: #define MTFSR   3   /* forward space record */
  20: #define MTBSR   4   /* backward space record */
  21: #define MTREW   5   /* rewind */
  22: #define MTOFFL  6   /* rewind and put the drive offline */
  23: #define MTNOP   7   /* no operation, sets status only */
  24: 
  25: /* structure for MTIOCGET - mag tape get status command */
  26: 
  27: struct  mtget   {
  28:     short   mt_type;    /* type of magtape device */
  29: /* the following two registers are grossly device dependent */
  30:     u_short mt_dsreg;   /* ``drive status'' register */
  31:     short   mt_erreg;   /* ``error'' register */
  32: /* end device-dependent registers */
  33:     short   mt_resid;   /* residual count */
  34: /* the following two are not yet implemented */
  35:     daddr_t mt_fileno;  /* file number of current position */
  36:     daddr_t mt_blkno;   /* block number of current position */
  37: /* end not yet implemented */
  38: };
  39: 
  40: /*
  41:  * Constants for mt_type byte
  42:  */
  43: #define MT_ISTS     01
  44: #define MT_ISHT     02
  45: #define MT_ISTM     03
  46: 
  47: #ifndef KERNEL
  48: #define DEFTAPE "/dev/nrmt1"
  49: #endif

Defined struct's

mtget defined in line 27; used 14 times
mtop defined in line 10; used 10 times

Defined macros

DEFTAPE defined in line 48; used 1 times
MTBSF defined in line 18; used 1 times
MTBSR defined in line 20; used 5 times
MTFSF defined in line 17; used 1 times
MTFSR defined in line 19; used 4 times
MTIOCGET defined in line 7; used 6 times
MTIOCTOP defined in line 6; used 2 times
MTNOP defined in line 23; used 2 times
MTOFFL defined in line 22; used 2 times
MTREW defined in line 21; used 1 times
MTWEOF defined in line 16; used 4 times
MT_ISHT defined in line 44; used 3 times
MT_ISTM defined in line 45; used 3 times
MT_ISTS defined in line 43; used 3 times

Usage of this include

Last modified: 1983-08-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 733
Valid CSS Valid XHTML 1.0 Strict