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:  *	@(#)cons.h	1.1 (2.10BSD Berkeley) 12/1/86
   7:  */
   8: 
   9: /*
  10:  *  KL11/DL11 registers and bits
  11:  */
  12: struct dldevice
  13: {
  14:     short   dlrcsr;
  15:     short   dlrbuf;
  16:     short   dlxcsr;
  17:     short   dlxbuf;
  18: };
  19: 
  20: /* bits in dlrcsr */
  21: #define DL_DSC      0100000     /* data status change (RO) */
  22: #define DL_RNG      0040000     /* ring indicator (RO) */
  23: #define DL_CTS      0020000     /* clear to send (RO) */
  24: #define DL_CD       0010000     /* carrier detector (RO) */
  25: #define DL_RA       0004000     /* receiver active (RO) */
  26: #define DL_SRD      0002000     /* secondary received data (RO) */
  27: /* bits 9-8 are unused */
  28: #define DL_RDONE    0000200     /* receiver done (RO) */
  29: #define DL_RIE      0000100     /* receiver interrupt enable */
  30: #define DL_DIE      0000040     /* dataset interrupt enable */
  31: /* bit 4 is unused */
  32: #define DL_STD      0000010     /* secondary transmitted data */
  33: #define DL_RTS      0000004     /* request to send */
  34: #define DL_DTR      0000002     /* data terminal ready */
  35: #define DL_RE       0000001     /* reader enable (write only) */
  36: #define DL_BITS     \
  37: "\10\20DSC\17RNG\16CTS\15CD\14RA\13SRD\10RDONE\7RIE\6DIE\4STD\3RTS\2DTR\1RE"
  38: 
  39: /* bits in dlrbuf */
  40: #define DLRBUF_ERR  0100000     /* error (RO) */
  41: #define DLRBUF_OVR  0040000     /* overrun (RO) */
  42: #define DLRBUF_FRE  0020000     /* framing error (RO) */
  43: #define DLRBUF_RDPE 0010000     /* receive data parity error (RO) */
  44: #define DLRBUF_BITS \
  45: "\10\20ERR\17OVR\16FRE\15RDPE"
  46: 
  47: /* bits in dlxcsr */
  48: /* bits 15-8 are unused */
  49: #define DLXCSR_TRDY 0000200     /* transmitter ready (RO) */
  50: #define DLXCSR_TIE  0000100     /* transmitter interrupt enable */
  51: /* bits 5-3 are unused */
  52: #define DLXCSR_MM   0000004     /* maintenance */
  53: /* bit 1 is unused */
  54: #define DLXCSR_BRK  0000001     /* break */
  55: #define DLXCSR_BITS \
  56: "\10\10TRDY\7TIE\3MM\1BRK"

Defined struct's

dldevice defined in line 12; used 18 times

Defined macros

DLRBUF_BITS defined in line 44; never used
DLRBUF_ERR defined in line 40; never used
DLRBUF_FRE defined in line 42; never used
DLRBUF_OVR defined in line 41; never used
DLRBUF_RDPE defined in line 43; never used
DLXCSR_BITS defined in line 55; never used
DLXCSR_BRK defined in line 54; never used
DLXCSR_MM defined in line 52; never used
DLXCSR_TIE defined in line 50; used 1 times
DLXCSR_TRDY defined in line 49; used 3 times
DL_BITS defined in line 36; never used
DL_CD defined in line 24; never used
DL_CTS defined in line 23; never used
DL_DIE defined in line 30; never used
DL_DSC defined in line 21; never used
DL_DTR defined in line 34; used 1 times
DL_RA defined in line 25; never used
DL_RDONE defined in line 28; used 2 times
DL_RE defined in line 35; used 3 times
DL_RIE defined in line 29; used 1 times
DL_RNG defined in line 22; never used
DL_RTS defined in line 33; never used
DL_SRD defined in line 26; never used
DL_STD defined in line 32; never used

Usage of this include

Last modified: 1987-01-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2648
Valid CSS Valid XHTML 1.0 Strict