Annotation of sys/arch/hp300/dev/fhpibreg.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: fhpibreg.h,v 1.3 2003/06/02 23:27:44 millert Exp $ */
2: /* $NetBSD: fhpibreg.h,v 1.4 1994/10/26 07:23:45 cgd Exp $ */
3:
4: /*
5: * Copyright (c) 1982, 1990, 1993
6: * The Regents of the University of California. All rights reserved.
7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
16: * 3. Neither the name of the University nor the names of its contributors
17: * may be used to endorse or promote products derived from this software
18: * without specific prior written permission.
19: *
20: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30: * SUCH DAMAGE.
31: *
32: * @(#)fhpibreg.h 8.1 (Berkeley) 6/10/93
33: */
34:
35: #include <hp300/dev/iotypes.h> /* XXX */
36:
37: struct fhpibdevice {
38: u_char hpib_pad0;
39: vu_char hpib_cid;
40: u_char hpib_pad1;
41: #define hpib_ie hpib_ids
42: vu_char hpib_ids;
43: u_char hpib_pad2;
44: vu_char hpib_ctrl2;
45: u_char hpib_pad3;
46: vu_char hpib_latch;
47: u_char hpib_pad4[9];
48: vu_char hpib_intr;
49: u_char hpib_pad5;
50: vu_char hpib_imask;
51: u_char hpib_pad6;
52: vu_char hpib_data;
53: u_char hpib_pad7;
54: vu_char hpib_stat;
55: u_char hpib_pad8;
56: vu_char hpib_cmd;
57: u_char hpib_pad9;
58: vu_char hpib_ar;
59: u_char hpib_pad10;
60: vu_char hpib_pmask;
61: u_char hpib_pad11;
62: vu_char hpib_psense;
63: };
64:
65: /* status bits */
66: #define ST_READ0 0xC0
67: #define ST_READ1 0x80
68: #define ST_IENAB 0x80
69: #define ST_EOI 0x80
70: #define ST_ATN 0x40
71: #define ST_WRITE 0x00
72:
73: /* control bits */
74: #define CT_8BIT 0x80
75: #define CT_REN 0x20
76: #define CT_IFC 0x10
77: #define CT_FIFOSEL 0x02
78: #define CT_INITFIFO 0x01
79:
80: #define IM_PABORT 0x40
81: #define IM_PPRESP 0x20
82: #define IM_ROOM 0x08
83: #define IM_BYTE 0x04
84: #define IM_IDLE 0x02
85:
86: #define AR_ARONC 0x80
CVSweb