add rd53
[unix-history] / usr / src / sys / vax / uba / adreg.h
CommitLineData
da7c5cc6
KM
1/*
2 * Copyright (c) 1982 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 * @(#)adreg.h 6.2 (Berkeley) %G%
7 */
0a8378bc
SL
8
9struct addevice {
10 short int ad_csr; /* Control status register */
11 short int ad_data; /* Data buffer */
12};
13
4b72e2f9
SL
14#define AD_CHAN ADIOSCHAN
15#define AD_READ ADIOGETW
16#define ADIOSCHAN _IOW(a, 0, int) /* set channel */
17#define ADIOGETW _IOR(a, 1, int) /* read one word */
0a8378bc
SL
18
19/*
20 * Unibus CSR register bits
21 */
22
23#define AD_START 01
24#define AD_SCHMITT 020
25#define AD_CLOCK 040
26#define AD_IENABLE 0100
27#define AD_DONE 0200
28#define AD_INCENABLE 040000
29#define AD_ERROR 0100000