1 /* $NetBSD: ioa.h,v 1.4 1996/03/07 23:23:58 ragge 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 * diriviative copyright rights, appropriate copyright * 56 * legends may be placed on the drivative work in addition * 57 * to that set forth above. * 58 * * 59 ****************************************************************/ 60 61 #if VAX8600 62 #define MAXNIOA 4 63 #define NIOA8600 2 64 #define IOASIZE 0x2000000 65 #define IOAMAPSIZ 512 /* Map one page to get at SBIA regs */ 66 #define IOA8600(i) ((caddr_t)(0x20080000+IOASIZE*i)) 67 68 struct sbia_regs 69 { 70 int sbi_cfg; 71 int sbi_csr; 72 int sbi_errsum; 73 int sbi_dctl; 74 int sbi_dmaica; 75 int sbi_dmaiid; 76 int sbi_dmaaca; 77 int sbi_dmaaid; 78 int sbi_dmabcs; 79 int sbi_dmabid; 80 int sbi_dmaccs; 81 int sbi_dmacid; 82 int sbi_silo; 83 int sbi_error; 84 int sbi_timo; 85 int sbi_fltsts; 86 int sbi_silcmp; 87 int sbi_maint; 88 int sbi_unjam; 89 int sbi_qclr; 90 int sbi_unused[12]; 91 int sbi_iv10; 92 int sbi_iv11; 93 int sbi_iv12; 94 int sbi_iv13; 95 int sbi_iv14; 96 int sbi_iv15; 97 int sbi_iv16; 98 int sbi_iv17; 99 int sbi_iv18; 100 int sbi_iv19; 101 int sbi_iv1a; 102 int sbi_iv1b; 103 int sbi_iv1c; 104 int sbi_iv1d; 105 int sbi_iv1e; 106 }; 107 struct ioa { 108 union ioacsr { 109 long ioa_csr; 110 u_char ioa_type; 111 } ioacsr; 112 long ioa_pad[IOAMAPSIZ / sizeof (long) - 1]; 113 }; 114 115 #define IOA_TYPMSK 0xf0 116 #define IOA_SBIA 0x10 117 118 #endif VAX8600 119