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