xref: /original-bsd/sys/hp300/dev/nhpibreg.h (revision 6ee9544f)
1 /*
2  * Copyright (c) 1982, 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)nhpibreg.h	7.2 (Berkeley) 06/05/92
8  */
9 
10 #ifdef KERNEL
11 #include "hp/dev/iotypes.h"	/* XXX */
12 #else
13 #include <hp/dev/iotypes.h>	/* XXX */
14 #endif
15 
16 struct	nhpibdevice {
17 	u_char	hpib_pad0;
18 	vu_char	hpib_cid;
19 	u_char	hpib_pad1;
20 #define	hpib_ie		hpib_ids
21 	vu_char	hpib_ids;
22 	u_char	hpib_pad2;
23 	vu_char	hpib_csa;
24 	u_char	hpib_pad3[11];
25 #define	hpib_mim	hpib_mis
26 	vu_char	hpib_mis;
27 	u_char	hpib_pad4;
28 #define	hpib_lim	hpib_lis
29 	vu_char	hpib_lis;
30 	u_char	hpib_pad5;
31 	vu_char	hpib_is;
32 	u_char	hpib_pad6;
33 #define	hpib_acr	hpib_cls
34 	vu_char	hpib_cls;
35 	u_char	hpib_pad7;
36 	vu_char	hpib_ar;
37 	u_char	hpib_pad8;
38 	vu_char	hpib_sprb;
39 	u_char	hpib_pad9;
40 #define	hpib_ppr	hpib_cpt
41 	vu_char	hpib_cpt;
42 	u_char	hpib_pad10;
43 	vu_char	hpib_data;
44 };
45 
46 #define	LIS_SRQ		0x02
47 #define	LIS_ERR		0x40
48 
49 #define	MIS_END		0x08
50 #define	MIS_BO		0x10
51 #define	MIS_BI		0x20
52 
53 #define	IS_TADS		0x02
54 #define	IS_LADS		0x04
55 
56 #define	AUX_CSWRST	0
57 #define	AUX_RHDF	2
58 #define	AUX_CHDFA	3
59 #define	AUX_CHDFE	4
60 #define	AUX_EOI		8
61 #define	AUX_GTS		11
62 #define	AUX_TCA		12
63 #define	AUX_TCS		13
64 #define	AUX_CPP		14
65 #define	AUX_CSIC	15
66 #define	AUX_CSRE	16
67 #define	AUX_CDAI	19
68 #define	AUX_CSHDW	22
69 #define	AUX_SSWRST	128
70 #define	AUX_SHDFE	132
71 #define	AUX_SLON	137
72 #define	AUX_STON	138
73 #define	AUX_SPP		142
74 #define	AUX_SSIC	143
75 #define	AUX_SSRE	144
76 #define	AUX_SSTD1	149
77 #define	AUX_SVSTD1	151
78 
79