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: * @(#)dmreg.h 1.1 (Berkeley) 12/1/86
7: */
8:
9: /*
10: * DM-11 device register definitions.
11: */
12: struct dmdevice {
13: short dmcsr; /* control status register */
14: union { /* Q22:Need to access high byte independently */
15: short dmlst_w;
16: char dmlst_b[2];
17: } cs02un;
18: #define dmlstat cs02un.dmlst_w /* line status register */
19: #define dmlst_l cs02un.dmlst_b[0] /* low byte */
20: #define dmlst_h cs02un.dmlst_b[1] /* high byte */
21: short dmpad1[2];
22: };
23:
24: /* bits in dm csr */
25: #define DM_RF 0100000 /* ring flag */
26: #define DM_CF 0040000 /* carrier flag */
27: #define DM_CTS 0020000 /* clear to send */
28: #define DM_SRF 0010000 /* secondary receive flag */
29: #define DM_CS 0004000 /* clear scan */
30: #define DM_CM 0002000 /* clear multiplexor */
31: #define DM_MM 0001000 /* maintenance mode */
32: #define DM_STP 0000400 /* step */
33: #define DM_DONE 0000200 /* scanner is done */
34: #define DM_IE 0000100 /* interrupt enable */
35: #define DM_SE 0000040 /* scan enable */
36: #define DM_BUSY 0000020 /* scan busy */
37:
38: /* bits in dm lsr */
39: #define DML_RNG 0000200 /* ring */
40: #define DML_CAR 0000100 /* carrier detect */
41: #define DML_CTS 0000040 /* clear to send */
42: #define DML_SR 0000020 /* secondary receive */
43: #define DML_ST 0000010 /* secondary transmit */
44: #define DML_RTS 0000004 /* request to send */
45: #define DML_DTR 0000002 /* data terminal ready */
46: #define DML_LE 0000001 /* line enable */
47:
48: #define DML_ON (DML_DTR|DML_RTS|DML_LE)
49: #define DML_OFF (DML_LE)
Defined struct's
Defined macros
DM_CF
defined in line
26; used 1 times
DM_CM
defined in line
30;
never used
DM_CS
defined in line
29;
never used
DM_IE
defined in line
34; used 3 times
DM_MM
defined in line
31;
never used
DM_RF
defined in line
25;
never used
DM_SE
defined in line
35; used 3 times
Usage of this include