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

##### Macros

    BITS6             X
    BITS7             X
    BITS8             X
    DH_CNI            X
    DH_DO             X
    DH_FE             X
    DH_IE             X
    DH_MC             X
    DH_MM             X
    DH_NXM            X
    DH_PE             X
    DH_RI             X
    DH_RIE            X
    DH_SI             X
    DH_SIE            X
    DH_TI             X
    DH_TIE            X
    HDUPLX            X
    OPAR              X
    PENABLE           X
    TWOSB             X

##### struct's

    dhdevice          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:  *	@(#)dhreg.h	1.1 (2.10BSD Berkeley) 12/1/86
       7:  */
       8:
       9: /*
      10:  * DH-11 device register definitions.
      11:  */
      12: struct dhdevice {
      13:     union {
      14:         short   dhcsr;      /* control-status register */
      15:         char    dhcsrl;     /* low byte for line select */
      16:     } un;
      17:     short   dhrcr;          /* receive character register */
      18:     short   dhlpr;          /* line parameter register */
      19:     u_short dhcar;          /* current address register */
      20:     short   dhbcr;          /* byte count register */
      21:     u_short dhbar;          /* buffer active register */
      22:     short   dhbreak;        /* break control register */
      23:     short   dhsilo;         /* silo status register */
      24: };
      25:
      26: /* Bits in dhcsr */
      27: #define DH_TI   0100000     /* transmit interrupt */
      28: #define DH_SI   0040000     /* storage interrupt */
      29: #define DH_TIE  0020000     /* transmit interrupt enable */
      30: #define DH_SIE  0010000     /* storage interrupt enable */
      31: #define DH_MC   0004000     /* master clear */
      32: #define DH_NXM  0002000     /* non-existant memory */
      33: #define DH_MM   0001000     /* maintenance mode */
      34: #define DH_CNI  0000400     /* clear non-existant memory interrupt */
      35: #define DH_RI   0000200     /* receiver interrupt */
      36: #define DH_RIE  0000100     /* receiver interrupt enable */
      37:
      38: /* Bits in dhlpr */
      39: #define BITS6   01
      40: #define BITS7   02
      41: #define BITS8   03
      42: #define TWOSB   04
      43: #define PENABLE 020
      44: /* DEC manuals incorrectly say this bit causes generation of even parity. */
      45: #define OPAR    040
      46: #define HDUPLX  040000
      47:
      48: #define DH_IE   (DH_TIE|DH_SIE|DH_RIE)
      49:
      50: /* Bits in dhrcr */
      51: #define DH_PE       0010000     /* parity error */
      52: #define DH_FE       0020000     /* framing error */
      53: #define DH_DO       0040000     /* data overrun */

#### Defined struct's

dhdevice defined in line 12; used 36 times

- in /usr/src/sys/autoconfig/dhauto.c line 18(2)
- in /usr/src/sys/pdpuba/dh.c line 125(2), 135(2), 203(2), 248-252(4), 333-336(4), 397-402(4), 441(2), 448(2), 503(2), 512(2), 574-577(4), 626(2), 632(2)

#### Defined macros

BITS6 defined in line 39; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 417

BITS7 defined in line 40; used 2 times

- in /usr/src/sys/autoconfig/dhauto.c line 23
- in /usr/src/sys/pdpuba/dh.c line 421

BITS8 defined in line 41; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 419

DH_CNI defined in line 34; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 450

DH_DO defined in line 53; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 274

DH_FE defined in line 52; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 279

DH_IE defined in line 48; used 6 times

- in /usr/src/sys/pdpuba/dh.c line 146, 408, 466, 541, 550, 590

DH_MC defined in line 31; never used
DH_MM defined in line 33; never used
DH_NXM defined in line 32; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 449

DH_PE defined in line 51; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 268

DH_RI defined in line 35; never used
DH_RIE defined in line 36; used 1 times

- in line 48

DH_SI defined in line 28; never used
DH_SIE defined in line 30; used 1 times

- in line 48

DH_TI defined in line 27; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 456

DH_TIE defined in line 29; used 2 times

- in line 48
- in /usr/src/sys/autoconfig/dhauto.c line 21

HDUPLX defined in line 46; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 417

OPAR defined in line 45; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 423

PENABLE defined in line 43; used 3 times

- in /usr/src/sys/autoconfig/dhauto.c line 23
- in /usr/src/sys/pdpuba/dh.c line 417-421(2)

TWOSB defined in line 42; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 425

#### Usage of this include

dhreg.h used 2 times

- in /usr/src/sys/autoconfig/dhauto.c line 14
- in /usr/src/sys/pdpuba/dh.c line 24

Last modified: 1987-01-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 587 |