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