xref: /original-bsd/sys/hp300/dev/fhpibreg.h (revision 68d9582f)
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  *	@(#)fhpibreg.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	fhpibdevice {
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_ctrl2;
24 	u_char	hpib_pad3;
25 	vu_char	hpib_latch;
26 	u_char	hpib_pad4[9];
27 	vu_char	hpib_intr;
28 	u_char	hpib_pad5;
29 	vu_char	hpib_imask;
30 	u_char	hpib_pad6;
31 	vu_char	hpib_data;
32 	u_char	hpib_pad7;
33 	vu_char	hpib_stat;
34 	u_char	hpib_pad8;
35 	vu_char	hpib_cmd;
36 	u_char	hpib_pad9;
37 	vu_char	hpib_ar;
38 	u_char	hpib_pad10;
39 	vu_char	hpib_pmask;
40 	u_char	hpib_pad11;
41 	vu_char	hpib_psense;
42 };
43 
44 /* status bits */
45 #define	ST_READ0        0xC0
46 #define	ST_READ1	0x80
47 #define	ST_IENAB	0x80
48 #define	ST_EOI		0x80
49 #define	ST_ATN		0x40
50 #define	ST_WRITE	0x00
51 
52 /* control bits */
53 #define	CT_8BIT		0x80
54 #define	CT_REN		0x20
55 #define	CT_IFC		0x10
56 #define	CT_FIFOSEL	0x02
57 #define	CT_INITFIFO	0x01
58 
59 #define	IM_PABORT	0x40
60 #define	IM_PPRESP	0x20
61 #define	IM_ROOM		0x08
62 #define	IM_BYTE		0x04
63 #define	IM_IDLE		0x02
64 
65 #define	AR_ARONC	0x80
66