xref: /original-bsd/sys/vax/uba/dmreg.h (revision 898732d7)
1 /*	dmreg.h	4.1	82/12/30	*/
2 
3 /*
4  * DM-11 device register definitions.
5  */
6 struct dmdevice {
7 	short	dmcsr;		/* control status register */
8 	short	dmlstat;	/* line status register */
9 	short	dmpad1[2];
10 };
11 
12 /* bits in dm csr */
13 #define	DM_RF		0100000		/* ring flag */
14 #define	DM_CF		0040000		/* carrier flag */
15 #define	DM_CTS		0020000		/* clear to send */
16 #define	DM_SRF		0010000		/* secondary receive flag */
17 #define	DM_CS		0004000		/* clear scan */
18 #define	DM_CM		0002000		/* clear multiplexor */
19 #define	DM_MM		0001000		/* maintenance mode */
20 #define	DM_STP		0000400		/* step */
21 #define	DM_DONE		0000200		/* scanner is done */
22 #define	DM_IE		0000100		/* interrupt enable */
23 #define	DM_SE		0000040		/* scan enable */
24 #define	DM_BUSY		0000020		/* scan busy */
25 
26 /* bits in dm lsr */
27 #define	DML_RNG		0000200		/* ring */
28 #define	DML_CAR		0000100		/* carrier detect */
29 #define	DML_CTS		0000040		/* clear to send */
30 #define	DML_SR		0000020		/* secondary receive */
31 #define	DML_ST		0000010		/* secondary transmit */
32 #define	DML_RTS		0000004		/* request to send */
33 #define	DML_DTR		0000002		/* data terminal ready */
34 #define	DML_LE		0000001		/* line enable */
35 
36 #define	DML_ON		(DML_DTR|DML_RTS|DML_LE)
37 #define	DML_OFF		(DML_LE)
38