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
Defined macros
DL_CD
defined in line
24;
never used
DL_RA
defined in line
25;
never used
DL_RE
defined in line
35; used 3 times
Usage of this include