xref: /original-bsd/sys/vax/uba/dmzreg.h (revision 5d07d0fc)
1 /*
2  * Copyright (c) 1985, 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  *	@(#)dmzreg.h	7.2 (Berkeley) 02/19/87
7  */
8 
9 /*
10  * Registers for DMZ-32.
11  * Defined in terms of dmx_octet common registers.
12  */
13 struct dmzdevice {
14 	short	dmz_config;			/* configuration csr */
15 	short	dmz_diag;			/* diagnostic csr */
16 	struct	dmx_octet dmz_octet[3];		/* per-octet registers */
17 };
18 
19 
20 #define	DMZ(a)		(a/24)
21 #define	OCTET(a)	((a%24)/8)
22 #define	LINE(a)		((a%24)%8)
23 
24 #define	DMZ_NOC_MASK	03
25 #define	DMZ_INTERFACE	000
26