Home | History | Annotate | Line # | Download | only in include
ioa.h revision 1.5.2.1
      1  1.5.2.1  bouyer /*	$NetBSD: ioa.h,v 1.5.2.1 2000/11/20 20:32:52 bouyer 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.1   ragge  * 3. All advertising materials mentioning features or use of this software
     15      1.1   ragge  *    must display the following acknowledgement:
     16      1.4   ragge  *	This product includes software developed by the University of
     17      1.4   ragge  *	California, Berkeley and its contributors.
     18      1.4   ragge  * 4. Neither the name of the University nor the names of its contributors
     19      1.4   ragge  *    may be used to endorse or promote products derived from this software
     20      1.4   ragge  *    without specific prior written permission.
     21      1.4   ragge  *
     22      1.4   ragge  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     23      1.4   ragge  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     24      1.4   ragge  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     25      1.4   ragge  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     26      1.4   ragge  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     27      1.4   ragge  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     28      1.4   ragge  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     29      1.4   ragge  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     30      1.4   ragge  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     31      1.4   ragge  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     32      1.4   ragge  * SUCH DAMAGE.
     33      1.1   ragge  *
     34      1.4   ragge  *	@(#)ioa.h	7.3 (Berkeley) 5/9/91
     35      1.1   ragge  */
     36      1.1   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.5.2.1  bouyer #include "opt_cputype.h"
     62      1.4   ragge #if VAX8600
     63      1.4   ragge #define	MAXNIOA		4
     64      1.4   ragge #define	NIOA8600	2
     65      1.4   ragge #define IOASIZE		0x2000000
     66      1.4   ragge #define IOAMAPSIZ 	512		/* Map one page to get at SBIA regs */
     67      1.4   ragge #define	IOA8600(i)	((caddr_t)(0x20080000+IOASIZE*i))
     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.4   ragge 	int sbi_unused[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.4   ragge };
    108      1.4   ragge struct	ioa {
    109      1.4   ragge 	union ioacsr {
    110      1.4   ragge 		long	ioa_csr;
    111      1.4   ragge 		u_char	ioa_type;
    112      1.4   ragge 	} ioacsr;
    113      1.4   ragge 	long	ioa_pad[IOAMAPSIZ / sizeof (long) - 1];
    114      1.4   ragge };
    115      1.1   ragge 
    116      1.4   ragge #define IOA_TYPMSK 0xf0
    117      1.4   ragge #define IOA_SBIA	0x10
    118      1.1   ragge 
    119  1.5.2.1  bouyer #endif /* VAX8600 */
    120