1 /* $NetBSD: intioreg.h,v 1.4 2006/07/19 17:21:23 tsutsui Exp $ */
4 * Copyright (c) 2001 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
33 * Registers for interface to the wired devices.
36 /* HP3xx/4xx registers */
37 #define INTIO_DEV_3xx_PAD0 0
38 #define INTIO_DEV_3xx_DATA 1
39 #define INTIO_DEV_3xx_PAD1 2
40 #define INTIO_DEV_3xx_CMD 3
41 #define INTIO_DEV_3xx_STAT 3
43 /* HP7xx registers - XXX check these */
44 #define INTIO_DEV_7xx_RSTHOLD 0
45 #define INTIO_DEV_7xx_DATA 2048
46 #define INTIO_DEV_7xx_CMD 2049
47 #define INTIO_DEV_7xx_STAT 2049
48 #define INTIO_DEV_7xx_RSTREL 3072
50 /* HP8xx registers - XXX check these */
51 #define INTIO_DEV_8xx_DATA 3
52 #define INTIO_DEV_8xx_CMD 11
53 #define INTIO_DEV_8xx_STAT 11
56 #define INTIO_DEV_DATA_READY 0x01
57 #define INTIO_DEV_BUSY 0x02
58 /* the top four bits specify a "service request" status code */
59 #define INTIO_DEV_SRSHIFT 4
60 #define INTIO_DEV_SRMASK 0x0f
62 /* Valid "service request" status codes */
63 #define INTIO_DEV_SR_DATAAVAIL 0x04
64 /* the specific wired device will overload the remaining bits */
67 /* Base address offsets from intiobase of each device */
68 #define FRODO_BASE 0x01c000
69 #define RTC_BASE 0x020000
70 #define HIL_BASE 0x028000
71 #define HPIB_BASE 0x078000
72 #define DMA_BASE 0x100000
73 #define FB_BASE 0x160000