1: /*
   2:  * TM11 controller registers
   3:  */
   4: struct  tmdevice    {
   5:     u_short tmer;       /* error register, per drive */
   6:     u_short tmcs;       /* control-status register */
   7:     short   tmbc;       /* byte/frame count */
   8:     caddr_t tmba;       /* address */
   9:     short   tmdb;       /* data buffer */
  10:     short   tmrd;       /* read lines */
  11:     short   tmmr;       /* maintenance register */
  12: };
  13: 
  14: #define b_repcnt    b_bcount
  15: #define b_command   b_resid
  16: 
  17: /* bits in tmcs */
  18: #define TM_GO       0000001
  19: #define TM_OFFL     0000000     /* offline */
  20: #define TM_RCOM     0000002     /* read */
  21: #define TM_WCOM     0000004     /* write */
  22: #define TM_WEOF     0000006     /* write-eof */
  23: #define TM_SFORW    0000010     /* space forward */
  24: #define TM_SREV     0000012     /* space backwards */
  25: #define TM_WIRG     0000014     /* write with xtra interrecord gap */
  26: #define TM_REW      0000016     /* rewind */
  27: #define TM_SENSE    TM_IE       /* sense (internal to driver) */
  28: 
  29: /* TM_SENSE is a pseudo-op used to get tape status */
  30: #define TM_IE       0000100     /* interrupt enable */
  31: #define TM_CUR      0000200     /* control unit is ready */
  32: #define TM_DCLR     0010000     /* drive clear */
  33: #define TM_D800     0060000     /* select 800 bpi density */
  34: #define TM_ERR      0100000     /* drive error summary */
  35: 
  36: /* bits in tmer */
  37: #define TMER_ILC    0100000     /* illegal command */
  38: #define TMER_EOF    0040000     /* end of file */
  39: #define TMER_CRE    0020000     /* cyclic redundancy error */
  40: #define TMER_PAE    0010000     /* parity error */
  41: #define TMER_BGL    0004000     /* bus grant late */
  42: #define TMER_EOT    0002000     /* at end of tape */
  43: #define TMER_RLE    0001000     /* record length error */
  44: #define TMER_BTE    0000400     /* bad tape error */
  45: #define TMER_NXM    0000200     /* non-existent memory */
  46: #define TMER_SELR   0000100     /* tape unit properly selected */
  47: #define TMER_BOT    0000040     /* at beginning of tape */
  48: #define TMER_CH7    0000020     /* 7 channel tape */
  49: #define TMER_SDWN   0000010     /* gap settling down */
  50: #define TMER_WRL    0000004     /* tape unit write protected */
  51: #define TMER_RWS    0000002     /* tape unit rewinding */
  52: #define TMER_TUR    0000001     /* tape unit ready */
  53: 
  54: #define TMER_BITS   \
  55: "\10\20ILC\17EOF\16CRE\15PAE\14BGL\13EOT\12RLE\11BTE\10NXM\
  56: \7SELR\6BOT\5CH7\4SDWN\3WRL\2RWS\1TUR"
  57: 
  58: #define TMER_HARD   (TMER_ILC|TMER_EOT|TMER_NXM)
  59: #define TMER_SOFT   (TMER_CRE|TMER_PAE|TMER_BGL|TMER_RLE|TMER_BTE)

Defined struct's

tmdevice defined in line 4; used 16 times

Defined macros

TMER_BGL defined in line 41; used 1 times
  • in line 59
TMER_BITS defined in line 54; used 3 times
TMER_BOT defined in line 47; used 2 times
TMER_BTE defined in line 44; used 1 times
  • in line 59
TMER_CH7 defined in line 48; never used
TMER_CRE defined in line 39; used 1 times
  • in line 59
TMER_EOF defined in line 38; used 1 times
TMER_EOT defined in line 42; used 1 times
  • in line 58
TMER_HARD defined in line 58; used 2 times
TMER_ILC defined in line 37; used 1 times
  • in line 58
TMER_NXM defined in line 45; used 1 times
  • in line 58
TMER_PAE defined in line 40; used 1 times
  • in line 59
TMER_RLE defined in line 43; used 2 times
TMER_RWS defined in line 51; used 1 times
TMER_SDWN defined in line 49; used 2 times
TMER_SELR defined in line 46; used 2 times
TMER_SOFT defined in line 59; used 1 times
TMER_TUR defined in line 52; used 2 times
TMER_WRL defined in line 50; used 1 times
TM_CUR defined in line 31; used 1 times
TM_D800 defined in line 33; used 2 times
TM_DCLR defined in line 32; never used
TM_ERR defined in line 34; used 1 times
TM_GO defined in line 18; used 2 times
TM_IE defined in line 30; used 4 times
TM_OFFL defined in line 19; used 1 times
TM_RCOM defined in line 20; used 1 times
TM_REW defined in line 26; used 3 times
TM_SENSE defined in line 27; used 3 times
TM_SFORW defined in line 23; used 4 times
TM_SREV defined in line 24; used 5 times
TM_WCOM defined in line 21; used 1 times
TM_WEOF defined in line 22; used 3 times
TM_WIRG defined in line 25; used 1 times
b_command defined in line 15; used 9 times
b_repcnt defined in line 14; used 6 times

Usage of this include

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