# 2.11BSD#431 - /usr/src/sys/pdpuba/tmreg.h

##### Macros

    TMER_BGL          X
    TMER_BITS         X
    TMER_BOT          X
    TMER_BTE          X
    TMER_CH7          X
    TMER_CRE          X
    TMER_EOF          X
    TMER_EOT          X
    TMER_HARD         X
    TMER_ILC          X
    TMER_NXM          X
    TMER_PAE          X
    TMER_RLE          X
    TMER_RWS          X
    TMER_SDWN         X
    TMER_SELR         X
    TMER_SOFT         X
    TMER_TUR          X
    TMER_WRL          X
    TM_CUR            X
    TM_D1600          X
    TM_D6250          X
    TM_D800           X
    TM_DCLR           X
    TM_ERR            X
    TM_GO             X
    TM_IE             X
    TM_OFFL           X
    TM_RCOM           X
    TM_REW            X
    TM_SENSE          X
    TM_SFORW          X
    TM_SREV           X
    TM_WCOM           X
    TM_WEOF           X
    TM_WIRG           X
    b_command         X
    b_repcnt          X

##### struct's

    tmdevice          X

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

#### Defined struct's

tmdevice defined in line 12; used 24 times

- in /usr/src/sys/autoconfig/tmauto.c line 16(2)
- in /usr/src/sys/pdpstand/tm.c line 19-23(8), 65(2)
- in /usr/src/sys/pdpuba/tm.c line 30(2), 97(2), 131(2), 299(2), 442(2), 592(2)

#### Defined macros

TMER_BGL defined in line 51; used 1 times

- in line 69

TMER_BITS defined in line 64; used 3 times

- in /usr/src/bin/mt.c line 138, 149
- in /usr/src/sys/pdpuba/tm.c line 520

TMER_BOT defined in line 57; used 2 times

- in /usr/src/sys/pdpuba/tm.c line 156, 658

TMER_BTE defined in line 54; used 1 times

- in line 69

TMER_CH7 defined in line 58; never used
TMER_CRE defined in line 49; used 1 times

- in line 69

TMER_EOF defined in line 48; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 99
- in /usr/src/sys/pdpuba/tm.c line 483

TMER_EOT defined in line 52; used 1 times

- in line 68

TMER_HARD defined in line 68; used 2 times

- in /usr/src/sys/pdpuba/tm.c line 498, 504

TMER_ILC defined in line 47; used 1 times

- in line 68

TMER_NXM defined in line 55; used 1 times

- in line 68

TMER_PAE defined in line 50; used 1 times

- in line 69

TMER_RLE defined in line 53; used 2 times

- in line 69
- in /usr/src/sys/pdpuba/tm.c line 498

TMER_RWS defined in line 61; used 1 times

- in /usr/src/sys/pdpuba/tm.c line 458

TMER_SDWN defined in line 59; used 3 times

- in /usr/src/sys/pdpstand/tm.c line 74
- in /usr/src/sys/pdpuba/tm.c line 142, 478

TMER_SELR defined in line 56; used 2 times

- in /usr/src/sys/pdpuba/tm.c line 148(2)

TMER_SOFT defined in line 69; used 1 times

- in /usr/src/sys/pdpuba/tm.c line 498

TMER_TUR defined in line 62; used 3 times

- in /usr/src/sys/pdpstand/tm.c line 72
- in /usr/src/sys/pdpuba/tm.c line 148(2)

TMER_WRL defined in line 60; used 1 times

- in /usr/src/sys/pdpuba/tm.c line 152

TM_CUR defined in line 39; used 3 times

- in /usr/src/sys/pdpstand/tm.c line 70, 97
- in /usr/src/sys/pdpuba/tm.c line 320

TM_D1600 defined in line 42; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 59
- in /usr/src/sys/pdpuba/tm.c line 121

TM_D6250 defined in line 43; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 59
- in /usr/src/sys/pdpuba/tm.c line 121

TM_D800 defined in line 41; used 4 times

- in /usr/src/sys/pdpstand/tm.c line 59(2)
- in /usr/src/sys/pdpuba/tm.c line 121(2)

TM_DCLR defined in line 40; never used
TM_ERR defined in line 44; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 103
- in /usr/src/sys/pdpuba/tm.c line 477

TM_GO defined in line 26; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 96
- in /usr/src/sys/pdpuba/tm.c line 136

TM_IE defined in line 38; used 3 times

- in line 35
- in /usr/src/sys/autoconfig/tmauto.c line 20
- in /usr/src/sys/pdpuba/tm.c line 136

TM_OFFL defined in line 27; used 1 times

- in /usr/src/sys/pdpuba/tm.c line 625

TM_RCOM defined in line 28; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 83
- in /usr/src/sys/pdpuba/tm.c line 391

TM_REW defined in line 34; used 5 times

- in /usr/src/sys/pdpstand/tm.c line 38, 49
- in /usr/src/sys/pdpuba/tm.c line 201, 341, 625

TM_SENSE defined in line 35; used 3 times

- in /usr/src/sys/pdpuba/tm.c line 141, 333, 625

TM_SFORW defined in line 31; used 6 times

- in /usr/src/sys/pdpstand/tm.c line 53, 129
- in /usr/src/sys/pdpuba/tm.c line 348, 406, 625(2)

TM_SREV defined in line 32; used 7 times

- in /usr/src/sys/pdpstand/tm.c line 111, 125
- in /usr/src/sys/pdpuba/tm.c line 192, 348, 409, 625(2)

TM_WCOM defined in line 29; used 2 times

- in /usr/src/sys/pdpstand/tm.c line 86
- in /usr/src/sys/pdpuba/tm.c line 389

TM_WEOF defined in line 30; used 3 times

- in /usr/src/sys/pdpuba/tm.c line 190-191(2), 625

TM_WIRG defined in line 33; used 1 times

- in /usr/src/sys/pdpuba/tm.c line 387

b_command defined in line 23; used 9 times

- in /usr/src/sys/pdpuba/tm.c line 232, 333, 341, 348(2), 406-409(2), 418, 540

b_repcnt defined in line 22; used 6 times

- in /usr/src/sys/pdpuba/tm.c line 223, 231, 346-349(2), 542-545(2)

#### Usage of this include

tmreg.h used 4 times

- in /usr/src/bin/mt.c line 123
- in /usr/src/sys/autoconfig/tmauto.c line 13
- in /usr/src/sys/pdpstand/tm.c line 14
- in /usr/src/sys/pdpuba/tm.c line 25

Last modified: 1988-08-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 834 |