xref: /original-bsd/sys/vax/uba/adreg.h (revision f0fd5f8a)
1 /*	adreg.h	4.2	82/08/01	*/
2 
3 struct addevice {
4 	short int ad_csr;			/* Control status register */
5 	short int ad_data;			/* Data buffer */
6 };
7 
8 #define AD_CHAN		ADIOSCHAN
9 #define AD_READ		ADIOGETW
10 #define	ADIOSCHAN	_IOW(a, 0, int)		/* set channel */
11 #define	ADIOGETW	_IOR(a, 1, int)		/* read one word */
12 
13 /*
14  * Unibus CSR register bits
15  */
16 
17 #define AD_START		01
18 #define AD_SCHMITT		020
19 #define AD_CLOCK		040
20 #define AD_IENABLE		0100
21 #define AD_DONE 		0200
22 #define AD_INCENABLE		040000
23 #define AD_ERROR		0100000
24