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