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