Home | History | Annotate | Line # | Download | only in include
      1  1.13  ragge /*	$NetBSD: ioa.h,v 1.13 2010/07/01 19:50:12 ragge Exp $	*/
      2   1.4  ragge /*-
      3   1.4  ragge  * Copyright (c) 1982, 1986 The Regents of the University of California.
      4   1.1  ragge  * All rights reserved.
      5   1.1  ragge  *
      6   1.1  ragge  * Redistribution and use in source and binary forms, with or without
      7   1.1  ragge  * modification, are permitted provided that the following conditions
      8   1.1  ragge  * are met:
      9   1.1  ragge  * 1. Redistributions of source code must retain the above copyright
     10   1.1  ragge  *    notice, this list of conditions and the following disclaimer.
     11   1.1  ragge  * 2. Redistributions in binary form must reproduce the above copyright
     12   1.1  ragge  *    notice, this list of conditions and the following disclaimer in the
     13   1.1  ragge  *    documentation and/or other materials provided with the distribution.
     14  1.10    agc  * 3. Neither the name of the University nor the names of its contributors
     15   1.4  ragge  *    may be used to endorse or promote products derived from this software
     16   1.4  ragge  *    without specific prior written permission.
     17   1.4  ragge  *
     18   1.4  ragge  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     19   1.4  ragge  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     20   1.4  ragge  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     21   1.4  ragge  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     22   1.4  ragge  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     23   1.4  ragge  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     24   1.4  ragge  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     25   1.4  ragge  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     26   1.4  ragge  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     27   1.4  ragge  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     28   1.4  ragge  * SUCH DAMAGE.
     29   1.1  ragge  *
     30   1.4  ragge  *	@(#)ioa.h	7.3 (Berkeley) 5/9/91
     31   1.1  ragge  */
     32   1.1  ragge 
     33  1.13  ragge /*
     34  1.13  ragge  * ABus support added by Johnny Billquist 2010
     35  1.13  ragge  */
     36  1.13  ragge 
     37   1.4  ragge /****************************************************************
     38   1.4  ragge  *                                                              *
     39   1.4  ragge  *        Licensed from Digital Equipment Corporation           *
     40   1.4  ragge  *                       Copyright (c)                          *
     41   1.4  ragge  *               Digital Equipment Corporation                  *
     42   1.4  ragge  *                   Maynard, Massachusetts                     *
     43   1.4  ragge  *                         1985, 1986                           *
     44   1.4  ragge  *                    All rights reserved.                      *
     45   1.4  ragge  *                                                              *
     46   1.4  ragge  *        The Information in this software is subject to change *
     47   1.4  ragge  *   without notice and should not be construed as a commitment *
     48   1.4  ragge  *   by  Digital  Equipment  Corporation.   Digital   makes  no *
     49   1.4  ragge  *   representations about the suitability of this software for *
     50   1.4  ragge  *   any purpose.  It is supplied "As Is" without expressed  or *
     51   1.4  ragge  *   implied  warranty.                                         *
     52   1.4  ragge  *                                                              *
     53   1.4  ragge  *        If the Regents of the University of California or its *
     54   1.4  ragge  *   licensees modify the software in a manner creating         *
     55   1.5     pk  *   derivative copyright rights, appropriate copyright         *
     56   1.5     pk  *   legends may be placed on  the derivative work in addition  *
     57   1.4  ragge  *   to that set forth above.                                   *
     58   1.4  ragge  *								*
     59   1.4  ragge  ****************************************************************/
     60   1.4  ragge 
     61   1.7  ragge #include "opt_cputype.h"
     62   1.8   matt #if VAX8600 || VAXANY
     63   1.9  ragge #define	NIOA8600	2	/* Number of SBI possible on a VAX86x0 */
     64  1.13  ragge #define IOASIZE		0x2000000 /* Size of one SBI memory area */
     65   1.4  ragge #define IOAMAPSIZ 	512		/* Map one page to get at SBIA regs */
     66  1.13  ragge #define SBIA8600(i)     ((void *)(0x20000000+IOASIZE*i)) /* Base address for SBI */
     67  1.13  ragge #define	IOA8600(i)	((void *)((bus_addr_t)(SBIA8600(i))+0x80000)) /* Address of SBIA registers */
     68   1.4  ragge 
     69   1.4  ragge struct	sbia_regs
     70   1.4  ragge {
     71   1.4  ragge 	int sbi_cfg;
     72   1.4  ragge 	int sbi_csr;
     73   1.4  ragge 	int sbi_errsum;
     74   1.4  ragge 	int sbi_dctl;
     75   1.4  ragge 	int sbi_dmaica;
     76   1.4  ragge 	int sbi_dmaiid;
     77   1.4  ragge 	int sbi_dmaaca;
     78   1.4  ragge 	int sbi_dmaaid;
     79   1.4  ragge 	int sbi_dmabcs;
     80   1.4  ragge 	int sbi_dmabid;
     81   1.4  ragge 	int sbi_dmaccs;
     82   1.4  ragge 	int sbi_dmacid;
     83   1.4  ragge 	int sbi_silo;
     84   1.4  ragge 	int sbi_error;
     85   1.4  ragge 	int sbi_timo;
     86   1.4  ragge 	int sbi_fltsts;
     87   1.4  ragge 	int sbi_silcmp;
     88   1.4  ragge 	int sbi_maint;
     89   1.4  ragge 	int sbi_unjam;
     90   1.4  ragge 	int sbi_qclr;
     91   1.9  ragge 	int sbi_unused1[12];
     92   1.4  ragge 	int sbi_iv10;
     93   1.4  ragge 	int sbi_iv11;
     94   1.4  ragge 	int sbi_iv12;
     95   1.4  ragge 	int sbi_iv13;
     96   1.4  ragge 	int sbi_iv14;
     97   1.4  ragge 	int sbi_iv15;
     98   1.4  ragge 	int sbi_iv16;
     99   1.4  ragge 	int sbi_iv17;
    100   1.4  ragge 	int sbi_iv18;
    101   1.4  ragge 	int sbi_iv19;
    102   1.4  ragge 	int sbi_iv1a;
    103   1.4  ragge 	int sbi_iv1b;
    104   1.4  ragge 	int sbi_iv1c;
    105   1.4  ragge 	int sbi_iv1d;
    106   1.4  ragge 	int sbi_iv1e;
    107   1.9  ragge 	int sbi_unused2[17];
    108   1.4  ragge };
    109   1.1  ragge 
    110  1.13  ragge #define IOA_TYPMSK 0xf0         /* Mask for type information in sbi_cfg */
    111  1.13  ragge #define IOA_SBIA	0x10    /* Value for SBIA type on ABus */
    112   1.1  ragge 
    113   1.6   matt #endif /* VAX8600 */
    114