1 /*- 2 * Copyright (c) 1982, 1986 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)ioa.h 7.3 (Berkeley) 05/09/91 8 */ 9 10 /**************************************************************** 11 * * 12 * Licensed from Digital Equipment Corporation * 13 * Copyright (c) * 14 * Digital Equipment Corporation * 15 * Maynard, Massachusetts * 16 * 1985, 1986 * 17 * All rights reserved. * 18 * * 19 * The Information in this software is subject to change * 20 * without notice and should not be construed as a commitment * 21 * by Digital Equipment Corporation. Digital makes no * 22 * representations about the suitability of this software for * 23 * any purpose. It is supplied "As Is" without expressed or * 24 * implied warranty. * 25 * * 26 * If the Regents of the University of California or its * 27 * licensees modify the software in a manner creating * 28 * diriviative copyright rights, appropriate copyright * 29 * legends may be placed on the drivative work in addition * 30 * to that set forth above. * 31 * * 32 ****************************************************************/ 33 34 #if VAX8600 35 #define MAXNIOA 4 36 #define NIOA8600 2 37 #define IOASIZE 0x2000000 38 #define IOAMAPSIZ 512 /* Map one page to get at SBIA regs */ 39 #define IOA8600(i) ((caddr_t)(0x20080000+IOASIZE*i)) 40 41 #ifndef LOCORE 42 struct sbia_regs 43 { 44 int sbi_cfg; 45 int sbi_csr; 46 int sbi_errsum; 47 int sbi_dctl; 48 int sbi_dmaica; 49 int sbi_dmaiid; 50 int sbi_dmaaca; 51 int sbi_dmaaid; 52 int sbi_dmabcs; 53 int sbi_dmabid; 54 int sbi_dmaccs; 55 int sbi_dmacid; 56 int sbi_silo; 57 int sbi_error; 58 int sbi_timo; 59 int sbi_fltsts; 60 int sbi_silcmp; 61 int sbi_maint; 62 int sbi_unjam; 63 int sbi_qclr; 64 int sbi_unused[12]; 65 int sbi_iv10; 66 int sbi_iv11; 67 int sbi_iv12; 68 int sbi_iv13; 69 int sbi_iv14; 70 int sbi_iv15; 71 int sbi_iv16; 72 int sbi_iv17; 73 int sbi_iv18; 74 int sbi_iv19; 75 int sbi_iv1a; 76 int sbi_iv1b; 77 int sbi_iv1c; 78 int sbi_iv1d; 79 int sbi_iv1e; 80 }; 81 struct ioa { 82 union ioacsr { 83 long ioa_csr; 84 u_char ioa_type; 85 } ioacsr; 86 long ioa_pad[IOAMAPSIZ / sizeof (long) - 1]; 87 }; 88 #ifdef KERNEL 89 struct ioa ioa[MAXNIOA]; 90 #endif KERNEL 91 #endif LOCORE 92 93 #define IOA_TYPMSK 0xf0 94 #define IOA_SBIA 0x10 95 96 #endif VAX8600 97