dec_kn01.h Source File

Back to the index.

dec_kn01.h
Go to the documentation of this file.
1 /* gxemul: $Id: dec_kn01.h,v 1.3 2005-03-05 12:34:02 debug Exp $ */
2 
3 #ifndef DEC_KN01_H
4 #define DEC_KN01_H
5 
6 #define IP_LEV7 7
7 #define IP_LEV6 6
8 #define IP_LEV5 5
9 #define IP_LEV4 4
10 #define IP_LEV3 3
11 #define IP_LEV2 2
12 #define IP_LEV1 1
13 #define IP_LEV0 0
14 
15 /* $NetBSD: kn01.h,v 1.6 2000/02/29 04:41:56 nisimura Exp $ */
16 
17 /*-
18  * Copyright (c) 1992, 1993
19  * The Regents of the University of California. All rights reserved.
20  *
21  * This code is derived from software contributed to Berkeley by
22  * The Mach Operating System project at Carnegie-Mellon University,
23  * Ralph Campbell and Rick Macklem.
24  *
25  * Redistribution and use in source and binary forms, with or without
26  * modification, are permitted provided that the following conditions
27  * are met:
28  * 1. Redistributions of source code must retain the above copyright
29  * notice, this list of conditions and the following disclaimer.
30  * 2. Redistributions in binary form must reproduce the above copyright
31  * notice, this list of conditions and the following disclaimer in the
32  * documentation and/or other materials provided with the distribution.
33  * 3. All advertising materials mentioning features or use of this software
34  * must display the following acknowledgement:
35  * This product includes software developed by the University of
36  * California, Berkeley and its contributors.
37  * 4. Neither the name of the University nor the names of its contributors
38  * may be used to endorse or promote products derived from this software
39  * without specific prior written permission.
40  *
41  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
42  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44  * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
45  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51  * SUCH DAMAGE.
52  *
53  * @(#)kn01.h 8.1 (Berkeley) 6/10/93
54  */
55 
56 /*
57  * Mach Operating System
58  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
59  * All Rights Reserved.
60  *
61  * Permission to use, copy, modify and distribute this software and
62  * its documentation is hereby granted, provided that both the copyright
63  * notice and this permission notice appear in all copies of the
64  * software, derivative works or modified versions, and any portions
65  * thereof, and that both notices appear in supporting documentation.
66  *
67  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
68  * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
69  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
70  *
71  * Carnegie Mellon requests users of this software to return to
72  *
73  * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
74  * School of Computer Science
75  * Carnegie Mellon University
76  * Pittsburgh PA 15213-3890
77  *
78  * any improvements or extensions that they make and grant Carnegie the
79  * rights to redistribute these changes.
80  */
81 /*
82  * HISTORY
83  * Log: kn01.h,v
84  * Revision 2.5 91/05/14 17:23:14 mrt
85  * Correcting copyright
86  *
87  * Revision 2.4 91/02/05 17:41:54 mrt
88  * Added author notices
89  * [91/02/04 11:14:12 mrt]
90  *
91  * Changed to use new Mach copyright
92  * [91/02/02 12:12:45 mrt]
93  *
94  * Revision 2.3 90/12/05 23:31:50 af
95  * Cleanups.
96  * [90/12/04 16:38:21 af]
97  *
98  * Created, from the DEC specs:
99  * "DECstation 3100 Desktop Workstation Functional Specification"
100  * Workstation Systems Engineering, Palo Alto, CA. Aug 28, 1990.
101  * [90/09/03 af]
102  */
103 /*
104  * File: kn01.h
105  * Author: Alessandro Forin, Carnegie Mellon University
106  * Date: 9/90
107  *
108  * Definitions specific to the KN01 processor (pmax)
109  */
110 
111 /*
112  * KN01's Physical address space
113  */
114 #define KN01_PHYS_MIN 0x00000000 /* 512 Meg */
115 #define KN01_PHYS_MAX 0x1fffffff
116 
117 /*
118  * Memory map
119  */
120 #define KN01_PHYS_MEMORY_START 0x00000000
121 #define KN01_PHYS_MEMORY_END 0x01800000 /* 24 Meg in 8 slots */
122 
123 #define KN01_PHYS_FBUF_START 0x0fc00000 /* frame buffer memory */
124 #define KN01_PHYS_FBUF_M_END 0x0fc20000 /* mono */
125 #define KN01_PHYS_FBUF_C_END 0x0fd00000 /* color */
126 
127 #define KN01_PHYS_COLMASK_START 0x10000000 /* Color Plane mask */
128 #define KN01_PHYS_COLMASK_END 0x11000000 /* Color Plane mask */
129 
130 /*
131  * I/O map
132  */
133 #define KN01_SYS_PCC 0x11000000 /* Progr. Cursor Chip */
134 #define KN01_SYS_VDAC 0x12000000 /* Color map */
135 #define KN01_SYS_ERRADR 0x17000000 /* Write error address */
136 #define KN01_SYS_LANCE 0x18000000 /* LANCE chip */
137 #define KN01_SYS_LANCE_B_START 0x19000000 /* 64 KB LANCE Buffer */
138 #define KN01_SYS_LANCE_B_END 0x19010000
139 #define KN01_SYS_SII 0x1a000000 /* SCSI SII chip */
140 #define KN01_SYS_SII_B_START 0x1b000000 /* 128 KB SCSI buffer */
141 #define KN01_SYS_SII_B_END 0x1b020000
142 #define KN01_SYS_DZ 0x1c000000 /* Serial lines (DZ) */
143 #define KN01_SYS_CLOCK 0x1d000000 /* RTC chip */
144 #define KN01_SYS_CSR 0x1e000000 /* System control register */
145 #define KN01_SYS_ROM_START 0x1f000000 /* System ROM */
146 #define KN01_SYS_ROM_END 0x1f07ffff
147 
148 /*
149  * Interrupts
150  */
151 #define KN01_INT_FPA IP_LEV7 /* Floating Point coproc */
152 #define KN01_INT_MEM IP_LEV6 /* memory controller */
153 #define KN01_INT_CLOCK IP_LEV5 /* RTC chip */
154 #define KN01_INT_DZ IP_LEV4 /* serial line chip */
155 #define KN01_INT_LANCE IP_LEV3 /* Ether */
156 #define KN01_INT_SII IP_LEV2 /* SCSI interface */
157 
158 /*
159  * System board registers
160  */
161 /* system Status and Control register */
162 #define KN01_CSR_LEDS_MASK 0x00ff /* wo - Diagnostic leds mask */
163 #define KN01_CSR_VRGTRB 0x0001 /* ro - Red VoltageLev > Blue */
164 #define KN01_CSR_VRGTRG 0x0002 /* ro - Red VoltageLev > Green */
165 #define KN01_CSR_VBGTRG 0x0004 /* ro - Blue VoltageLev > Green */
166 #define KN01_CSR_TXDIS 0x0100 /* rw - Disable DZ xmit */
167 #define KN01_CSR_VINT 0x0200 /* rc - Vertical retrace intr. */
168 #define KN01_CSR_MERR 0x0400 /* rc - Memory write error intr */
169 #define KN01_CSR_MONO 0x0800 /* ro - Mono Framebuf (or none) */
170 #define KN01_CSR_CRSRTST 0x1000 /* ro - Cursor test output */
171 #define KN01_CSR_PARDIS 0x2000 /* rw - Disable mem parity chks */
172 #define KN01_CSR_SELFTEST 0x4000 /* rw - Self-test ok pinout */
173 #define KN01_CSR_MNFMOD 0x8000 /* ro - Manifacturer MOD jumper */
174 #define KN01_CSR_MBZ 0x9800
175 
176 /* Error address status register */
177 #define KN01_ERR_ADDRESS 0x07ffffff /* phys address mask ? */
178 
179 #endif

Generated on Tue Mar 24 2020 14:04:48 for GXemul by doxygen 1.8.17