1: /*
   2:  * Copyright (c) 1982, 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:  *	@(#)dzreg.h	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: /*
  10:  * DZ-11/DZ-32 Registers and bits.
  11:  */
  12: struct dzdevice {
  13:     short dzcsr;
  14:     short dzrbuf;
  15:     union {
  16:         struct {
  17:             char    dztcr0;
  18:             char    dzdtr0;
  19:             char    dztbuf0;
  20:             char    dzbrk0;
  21:         } dz11;
  22:         struct {
  23:             short   dzlcs0;
  24:             char    dztbuf0;
  25:             char    dzlnen0;
  26:         } dz32;
  27:     } dzun;
  28: };
  29: 
  30: #define dzlpr   dzrbuf
  31: #define dzmsr   dzun.dz11.dzbrk0
  32: #define dztcr   dzun.dz11.dztcr0
  33: #define dzdtr   dzun.dz11.dzdtr0
  34: #define dztbuf  dzun.dz11.dztbuf0
  35: #define dzlcs   dzun.dz32.dzlcs0
  36: #define dzbrk   dzmsr
  37: #define dzlnen  dzun.dz32.dzlnen0
  38: #define dzmtsr  dzun.dz32.dztbuf0
  39: 
  40: /* bits in dzlpr */
  41: #define BITS7   0020
  42: #define BITS8   0030
  43: #define TWOSB   0040
  44: #define PENABLE 0100
  45: #define OPAR    0200
  46: 
  47: /* bits in dzrbuf */
  48: #define DZ_PE   010000
  49: #define DZ_FE   020000
  50: #define DZ_DO   040000
  51: 
  52: /* bits in dzcsr */
  53: #define DZ_32   000001      /* DZ32 mode */
  54: #define DZ_MIE  000002      /* Modem Interrupt Enable */
  55: #define DZ_CLR  000020      /* Reset dz */
  56: #define DZ_MSE  000040      /* Master Scan Enable */
  57: #define DZ_RIE  000100      /* Receiver Interrupt Enable */
  58: #define DZ_MSC  004000      /* Modem Status Change */
  59: #define DZ_SAE  010000      /* Silo Alarm Enable */
  60: #define DZ_TIE  040000      /* Transmit Interrupt Enable */
  61: #define DZ_IEN  (DZ_32|DZ_MIE|DZ_MSE|DZ_RIE|DZ_TIE)
  62: 
  63: /* flags for modem-control */
  64: #define DZ_ON   DZ_DTR
  65: #define DZ_OFF  0
  66: 
  67: /* bits in dzlcs */
  68: #define DZ_ACK  0100000     /* ACK bit in dzlcs */
  69: #define DZ_RTS  0010000     /* Request To Send */
  70: #define DZ_ST   0004000     /* Secondary Transmit */
  71: #define DZ_BRK  0002000     /* Break */
  72: #define DZ_DTR  0001000     /* Data Terminal Ready */
  73: #define DZ_LE   0000400     /* Line Enable */
  74: #define DZ_DSR  0000200     /* Data Set Ready */
  75: #define DZ_RI   0000100     /* Ring Indicate */
  76: #define DZ_CD   0000040     /* Carrier Detect */
  77: #define DZ_CTS  0000020     /* Clear To Send */
  78: #define DZ_SR   0000010     /* Secondary Receive */
  79: 
  80: /* bits in dm lsr, copied from dmreg.h */
  81: #define DML_DSR     0000400     /* data set ready, not a real DM bit */
  82: #define DML_RNG     0000200     /* ring */
  83: #define DML_CAR     0000100     /* carrier detect */
  84: #define DML_CTS     0000040     /* clear to send */
  85: #define DML_SR      0000020     /* secondary receive */
  86: #define DML_ST      0000010     /* secondary transmit */
  87: #define DML_RTS     0000004     /* request to send */
  88: #define DML_DTR     0000002     /* data terminal ready */
  89: #define DML_LE      0000001     /* line enable */

Defined struct's

dzdevice defined in line 12; used 22 times

Defined macros

BITS7 defined in line 41; used 1 times
BITS8 defined in line 42; used 1 times
DML_CAR defined in line 83; never used
DML_CTS defined in line 84; never used
DML_DSR defined in line 81; used 1 times
DML_DTR defined in line 88; used 2 times
DML_LE defined in line 89; used 1 times
DML_RNG defined in line 82; never used
DML_RTS defined in line 87; used 2 times
DML_SR defined in line 85; never used
DML_ST defined in line 86; used 2 times
DZ_32 defined in line 53; used 12 times
DZ_ACK defined in line 68; used 3 times
DZ_BRK defined in line 71; used 3 times
DZ_CD defined in line 76; used 4 times
DZ_CLR defined in line 55; used 1 times
DZ_CTS defined in line 77; never used
DZ_DO defined in line 50; used 1 times
DZ_DSR defined in line 74; used 1 times
DZ_DTR defined in line 72; used 7 times
DZ_FE defined in line 49; used 1 times
DZ_IEN defined in line 61; used 4 times
DZ_LE defined in line 73; used 1 times
DZ_MIE defined in line 54; used 3 times
DZ_MSC defined in line 58; used 1 times
DZ_MSE defined in line 56; used 2 times
DZ_OFF defined in line 65; used 2 times
DZ_ON defined in line 64; used 2 times
DZ_PE defined in line 48; used 1 times
DZ_RI defined in line 75; used 1 times
DZ_RIE defined in line 57; used 3 times
DZ_RTS defined in line 69; used 4 times
DZ_SAE defined in line 59; used 2 times
DZ_SR defined in line 78; never used
DZ_ST defined in line 70; used 2 times
DZ_TIE defined in line 60; used 2 times
OPAR defined in line 45; used 1 times
PENABLE defined in line 44; used 1 times
TWOSB defined in line 43; used 1 times
dzbrk defined in line 36; used 3 times
dzdtr defined in line 33; used 4 times
dzlcs defined in line 35; used 9 times
dzlnen defined in line 37; used 3 times
dzlpr defined in line 30; used 1 times
dzmsr defined in line 31; used 3 times
dzmtsr defined in line 38; used 1 times
dztbuf defined in line 34; used 1 times
dztcr defined in line 32; used 3 times

Usage of this include

dzreg.h used 1 times
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1293
Valid CSS Valid XHTML 1.0 Strict