1 1.10 christos /* $NetBSD: kn02.h,v 1.10 2005/12/11 12:18:39 christos Exp $ */ 2 1.4 cgd 3 1.1 deraadt /*- 4 1.2 glass * Copyright (c) 1992, 1993 5 1.2 glass * The Regents of the University of California. All rights reserved. 6 1.1 deraadt * 7 1.1 deraadt * This code is derived from software contributed to Berkeley by 8 1.1 deraadt * The Mach Operating System project at Carnegie-Mellon University, 9 1.1 deraadt * Ralph Campbell and Rick Macklem. 10 1.1 deraadt * 11 1.1 deraadt * Redistribution and use in source and binary forms, with or without 12 1.1 deraadt * modification, are permitted provided that the following conditions 13 1.1 deraadt * are met: 14 1.1 deraadt * 1. Redistributions of source code must retain the above copyright 15 1.1 deraadt * notice, this list of conditions and the following disclaimer. 16 1.1 deraadt * 2. Redistributions in binary form must reproduce the above copyright 17 1.1 deraadt * notice, this list of conditions and the following disclaimer in the 18 1.1 deraadt * documentation and/or other materials provided with the distribution. 19 1.9 agc * 3. Neither the name of the University nor the names of its contributors 20 1.1 deraadt * may be used to endorse or promote products derived from this software 21 1.1 deraadt * without specific prior written permission. 22 1.1 deraadt * 23 1.1 deraadt * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24 1.1 deraadt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 1.1 deraadt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 1.1 deraadt * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27 1.1 deraadt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 1.1 deraadt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 1.1 deraadt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 1.1 deraadt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 1.1 deraadt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 1.1 deraadt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 1.1 deraadt * SUCH DAMAGE. 34 1.1 deraadt * 35 1.4 cgd * @(#)kn02.h 8.1 (Berkeley) 6/10/93 36 1.1 deraadt */ 37 1.1 deraadt 38 1.6 simonb /* 39 1.1 deraadt * Mach Operating System 40 1.1 deraadt * Copyright (c) 1991,1990,1989 Carnegie Mellon University 41 1.1 deraadt * All Rights Reserved. 42 1.6 simonb * 43 1.1 deraadt * Permission to use, copy, modify and distribute this software and 44 1.1 deraadt * its documentation is hereby granted, provided that both the copyright 45 1.1 deraadt * notice and this permission notice appear in all copies of the 46 1.1 deraadt * software, derivative works or modified versions, and any portions 47 1.1 deraadt * thereof, and that both notices appear in supporting documentation. 48 1.6 simonb * 49 1.6 simonb * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 50 1.6 simonb * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 51 1.1 deraadt * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 52 1.6 simonb * 53 1.1 deraadt * Carnegie Mellon requests users of this software to return to 54 1.1 deraadt * 55 1.1 deraadt * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU 56 1.1 deraadt * School of Computer Science 57 1.1 deraadt * Carnegie Mellon University 58 1.1 deraadt * Pittsburgh PA 15213-3890 59 1.1 deraadt * 60 1.1 deraadt * any improvements or extensions that they make and grant Carnegie the 61 1.1 deraadt * rights to redistribute these changes. 62 1.1 deraadt */ 63 1.1 deraadt /* 64 1.1 deraadt * HISTORY 65 1.1 deraadt * Log: kn02.h,v 66 1.1 deraadt * Revision 2.5 91/05/14 17:23:30 mrt 67 1.1 deraadt * Correcting copyright 68 1.6 simonb * 69 1.1 deraadt * Revision 2.4 91/02/05 17:42:03 mrt 70 1.1 deraadt * Added author notices 71 1.1 deraadt * [91/02/04 11:14:23 mrt] 72 1.6 simonb * 73 1.1 deraadt * Changed to use new Mach copyright 74 1.1 deraadt * [91/02/02 12:12:58 mrt] 75 1.6 simonb * 76 1.1 deraadt * Revision 2.3 90/12/05 23:32:04 af 77 1.6 simonb * 78 1.6 simonb * 79 1.1 deraadt * Revision 2.1.1.2 90/11/01 02:48:10 af 80 1.1 deraadt * Reworked a bit, made reentrant. 81 1.6 simonb * 82 1.1 deraadt * Revision 2.1.1.1 90/10/03 11:48:22 af 83 1.1 deraadt * Created, from the DEC specs: 84 1.1 deraadt * "DECstation 5000/200 KN02 System Module Functional Specification" 85 1.1 deraadt * Workstation Systems Engineering, Palo Alto, CA. Aug 27, 1990. 86 1.1 deraadt * [90/09/03 af] 87 1.1 deraadt */ 88 1.1 deraadt /* 89 1.1 deraadt * File: kn02.h 90 1.1 deraadt * Author: Alessandro Forin, Carnegie Mellon University 91 1.1 deraadt * Date: 9/90 92 1.1 deraadt * 93 1.1 deraadt * Definitions specific to the KN02 processor (3max) 94 1.1 deraadt */ 95 1.1 deraadt 96 1.1 deraadt #ifndef MIPS_KN02_H 97 1.1 deraadt #define MIPS_KN02_H 1 98 1.1 deraadt 99 1.1 deraadt /* 100 1.1 deraadt * KN02's Physical address space 101 1.1 deraadt */ 102 1.1 deraadt #define KN02_PHYS_MIN 0x00000000 /* 512 Meg */ 103 1.1 deraadt #define KN02_PHYS_MAX 0x1fffffff 104 1.1 deraadt 105 1.1 deraadt /* 106 1.1 deraadt * Memory map 107 1.1 deraadt */ 108 1.1 deraadt #define KN02_PHYS_MEMORY_START 0x00000000 109 1.1 deraadt #define KN02_PHYS_MEMORY_END 0x1dffffff /* 480 Meg in 15 slots */ 110 1.1 deraadt 111 1.1 deraadt /* 112 1.1 deraadt * I/O map 113 1.1 deraadt */ 114 1.1 deraadt #define KN02_PHYS_TC_0_START 0x1e000000 /* TURBOchannel, slot 0 */ 115 1.1 deraadt #define KN02_PHYS_TC_0_END 0x1e3fffff /* 4 Meg, option0 */ 116 1.1 deraadt 117 1.1 deraadt #define KN02_PHYS_TC_1_START 0x1e400000 /* TURBOchannel, slot 1 */ 118 1.1 deraadt #define KN02_PHYS_TC_1_END 0x1e7fffff /* 4 Meg, option1 */ 119 1.1 deraadt 120 1.1 deraadt #define KN02_PHYS_TC_2_START 0x1e800000 /* TURBOchannel, slot 2 */ 121 1.1 deraadt #define KN02_PHYS_TC_2_END 0x1ebfffff /* 4 Meg, option2 */ 122 1.1 deraadt 123 1.1 deraadt #define KN02_PHYS_TC_3_START 0x1ec00000 /* TURBOchannel, slot 3 */ 124 1.1 deraadt #define KN02_PHYS_TC_3_END 0x1effffff /* 4 Meg, reserved*/ 125 1.1 deraadt 126 1.1 deraadt #define KN02_PHYS_TC_4_START 0x1f000000 /* TURBOchannel, slot 4 */ 127 1.1 deraadt #define KN02_PHYS_TC_4_END 0x1f3fffff /* 4 Meg, reserved*/ 128 1.1 deraadt 129 1.1 deraadt #define KN02_PHYS_TC_5_START 0x1f400000 /* TURBOchannel, slot 5 */ 130 1.1 deraadt #define KN02_PHYS_TC_5_END 0x1f7fffff /* 4 Meg, SCSI */ 131 1.1 deraadt 132 1.1 deraadt #define KN02_PHYS_TC_6_START 0x1f800000 /* TURBOchannel, slot 6 */ 133 1.1 deraadt #define KN02_PHYS_TC_6_END 0x1fbfffff /* 4 Meg, ether */ 134 1.1 deraadt 135 1.1 deraadt #define KN02_PHYS_TC_7_START 0x1fc00000 /* TURBOchannel, slot 7 */ 136 1.1 deraadt #define KN02_PHYS_TC_7_END 0x1fffffff /* 4 Meg, system devices */ 137 1.1 deraadt 138 1.1 deraadt #define KN02_PHYS_TC_START KN02_PHYS_TC_0_START 139 1.1 deraadt #define KN02_PHYS_TC_END KN02_PHYS_TC_7_END /* 32 Meg */ 140 1.1 deraadt 141 1.1 deraadt #define KN02_TC_NSLOTS 8 142 1.1 deraadt #define KN02_TC_MIN 0 143 1.1 deraadt #define KN02_TC_MAX 6 /* don't look at system slot */ 144 1.1 deraadt 145 1.1 deraadt /* 146 1.1 deraadt * System devices 147 1.1 deraadt */ 148 1.1 deraadt #define KN02_SYS_ROM_START KN02_PHYS_TC_7_START+0x000000 149 1.1 deraadt #define KN02_SYS_ROM_END KN02_PHYS_TC_7_START+0x07ffff 150 1.1 deraadt #define KN02_SYS_RESERVED KN02_PHYS_TC_7_START+0x080000 151 1.1 deraadt #define KN02_SYS_CHKSYN KN02_PHYS_TC_7_START+0x100000 152 1.1 deraadt #define KN02_SYS_ERRADR KN02_PHYS_TC_7_START+0x180000 153 1.1 deraadt #define KN02_SYS_DZ KN02_PHYS_TC_7_START+0x200000 154 1.1 deraadt #define KN02_SYS_CLOCK KN02_PHYS_TC_7_START+0x280000 155 1.1 deraadt #define KN02_SYS_CSR KN02_PHYS_TC_7_START+0x300000 156 1.1 deraadt #define KN02_SYS_ROM1_START KN02_PHYS_TC_7_START+0x380000 157 1.1 deraadt #define KN02_SYS_ROM1_END KN02_PHYS_TC_7_START+0x3fffff 158 1.1 deraadt 159 1.1 deraadt /* 160 1.1 deraadt * Interrupts 161 1.1 deraadt */ 162 1.1 deraadt #define KN02_INT_FPA IP_LEV7 /* Floating Point coproc */ 163 1.1 deraadt #define KN02_INT_RES1 IP_LEV6 /* reserved, unused */ 164 1.1 deraadt #define KN02_INT_MEM IP_LEV5 /* memory controller */ 165 1.1 deraadt #define KN02_INT_RES2 IP_LEV4 /* reserved, unused */ 166 1.8 nisimura #define KN02_INT_CLOCK IP_LEV3 /* RTC chip */ 167 1.1 deraadt #define KN02_INT_IO IP_LEV2 /* I/O slots */ 168 1.1 deraadt 169 1.1 deraadt /* 170 1.1 deraadt * System board registers 171 1.1 deraadt */ 172 1.1 deraadt /* system Status and Control register */ 173 1.8 nisimura #define KN02_CSR_IOINT 0x000000ff /* ro Interrupt pending */ 174 1.1 deraadt # define KN02_IP_DZ 0x00000080 /* serial lines */ 175 1.1 deraadt # define KN02_IP_LANCE 0x00000040 /* thin ethernet */ 176 1.1 deraadt # define KN02_IP_SCSI 0x00000020 /* ASC scsi controller */ 177 1.1 deraadt # define KN02_IP_XXXX 0x00000018 /* unused */ 178 1.1 deraadt # define KN02_IP_SLOT2 0x00000004 /* option slot 2 */ 179 1.1 deraadt # define KN02_IP_SLOT1 0x00000002 /* option slot 1 */ 180 1.1 deraadt # define KN02_IP_SLOT0 0x00000001 /* option slot 0 */ 181 1.1 deraadt 182 1.8 nisimura #define KN02_CSR_BAUD38 0x00000100 /* rw Max DZ baud rate */ 183 1.8 nisimura #define KN02_CSR_DIAGDN 0x00000200 /* rw Diag jumper */ 184 1.8 nisimura #define KN02_CSR_BNK32M 0x00000400 /* rw Memory bank stride */ 185 1.8 nisimura #define KN02_CSR_TXDIS 0x00000800 /* rw Disable DZ xmit */ 186 1.8 nisimura #define KN02_CSR_LEDIAG 0x00001000 /* rw Latch ECC */ 187 1.8 nisimura #define KN02_CSR_CORRECT 0x00002000 /* rw ECC corrects single bit */ 188 1.8 nisimura #define KN02_CSR_ECCMD 0x0000c000 /* rw ECC logic mode */ 189 1.8 nisimura #define KN02_CSR_IOINTEN 0x00ff0000 /* rw Interrupt enable */ 190 1.7 simonb #define KN02_CSR_IOINTEN_SHIFT 16 191 1.8 nisimura #define KN02_CSR_NRMMOD 0x01000000 /* ro Diag jumper state */ 192 1.8 nisimura #define KN02_CSR_REFEVEN 0x02000000 /* ro Refreshing even mem bank */ 193 1.8 nisimura #define KN02_CSR_PRSVNVR 0x04000000 /* ro Preserve NVR jumper */ 194 1.8 nisimura #define KN02_CSR_PSWARN 0x08000000 /* ro PS overheating */ 195 1.1 deraadt #define KN02_CSR_RRESERVED 0xf0000000 /* rz */ 196 1.1 deraadt 197 1.7 simonb #define KN02_CSR_LEDS 0x000000ff /* wo Diag LEDs */ 198 1.1 deraadt #define KN02_CSR_WRESERVED 0xff000000 /* wz */ 199 1.1 deraadt 200 1.1 deraadt /* Error address status register */ 201 1.1 deraadt #define KN02_ERR_ADDRESS 0x07ffffff /* phys address */ 202 1.1 deraadt #define KN02_ERR_RESERVED 0x08000000 /* unused */ 203 1.1 deraadt #define KN02_ERR_ECCERR 0x10000000 /* ECC error */ 204 1.1 deraadt #define KN02_ERR_WRITE 0x20000000 /* read/write transaction */ 205 1.1 deraadt #define KN02_ERR_CPU 0x40000000 /* CPU or device initiator */ 206 1.1 deraadt #define KN02_ERR_VALID 0x80000000 /* Info is valid */ 207 1.1 deraadt 208 1.1 deraadt /* ECC check/syndrome status register */ 209 1.1 deraadt #define KN02_ECC_SYNLO 0x0000007f /* syndrome, even bank */ 210 1.1 deraadt #define KN02_ECC_SNGLO 0x00000080 /* single bit err, " */ 211 1.1 deraadt #define KN02_ECC_CHKLO 0x00007f00 /* check bits, " " */ 212 1.1 deraadt #define KN02_ECC_VLDLO 0x00008000 /* info valid for " */ 213 1.1 deraadt #define KN02_ECC_SYNHI 0x007f0000 /* syndrome, odd bank */ 214 1.1 deraadt #define KN02_ECC_SNGHI 0x00800000 /* single bit err, " */ 215 1.1 deraadt #define KN02_ECC_CHKHI 0x7f000000 /* check bits, " " */ 216 1.1 deraadt #define KN02_ECC_VLDHI 0x80000000 /* info valid for " */ 217 1.1 deraadt 218 1.2 glass #endif /* MIPS_KN02_H */ 219