1 /* $NetBSD: ka630.h,v 1.5.24.3 2004/09/21 13:23:43 skrll Exp $ */
3 * Copyright (c) 1986, 1988 The Regents of the University of California.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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. Neither the name of the University nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * @(#)uvaxII.h 7.4 (Berkeley) 5/9/91
33 #ifndef _VAX_INCLUDE_KA630_H_
34 #define _VAX_INCLUDE_KA630_H_
36 #define UVAXIISID ((u_long *)0x20040004)
37 #define UVAXIICPU ((struct uvaxIIcpu *)0x20080000)
49 /* Memory system err reg. */
50 #define UVAXIIMSER_CD 0x00000300
51 #define UVAXIIMSER_NXM 0x00000080
52 #define UVAXIIMSER_LPE 0x00000040
53 #define UVAXIIMSER_QPE 0x00000020
54 #define UVAXIIMSER_MERR 0x000000f0
55 #define UVAXIIMSER_CPUE 0x00000060
56 #define UVAXIIMSER_DQPE 0x00000010
57 #define UVAXIIMSER_LEB 0x00000008
58 #define UVAXIIMSER_WRWP 0x00000002
59 #define UVAXIIMSER_PEN 0x00000001
61 /* Mem. error address regs. */
62 #define UVAXIICEAR_PG 0x00007fff
63 #define UVAXIIDEAR_PG 0x00007fff
66 * Definitions specific to the ka630 MicroVAXII Q22 bus CPU card. Includes the
67 * tod clock chip and the CPU registers.
69 #define KA630CLK ((struct ka630clock *)0x200b8000)
71 /* Bdr register bits */
72 #define KA630BDR_PWROK 0x8000
73 #define KA630BDR_HLTENB 0x4000
74 #define KA630BDR_CPU 0x0c00
75 #define KA630BDR_BDG 0x0300
76 #define KA630BDR_DSPL 0x000f
78 /* Clock registers and constants */
81 #define DAYSEC (HRSEC * 24)
82 #define YEARSEC (DAYSEC * 365)
84 #define KA630CLK_VRT 0200
85 #define KA630CLK_UIP 0200
86 #define KA630CLK_RATE 040
87 #define KA630CLK_ENABLE 06
88 #define KA630CLK_SET 0206
90 #define KA630CLK_HLTACT 03
91 /* halt action values */
92 #define KA630CLK_RESTRT 01
93 #define KA630CLK_REBOOT 02
94 #define KA630CLK_HALT 03
95 #define KA630CLK_DOTHIS 040
96 /* in progress flags */
97 #define KA630CLK_BOOT 04
98 #define KA630CLK_RSTRT 010
99 #define KA630CLK_LANG 0360
117 u_short cpmbx
; /* CPMBX is used by the boot rom. see ka630-ug-3.3.3 */
121 #define KA630_NVR_ADRS 0x200B8024
122 /* Definitions for various locations in the KA630 console page */
123 #define KA630_PUTC_POLL 0x20
124 #define KA630_PUTC 0x24
125 #define KA630_GETC 0x1C
126 #define KA630_ROW 0x4C
127 #define KA630_MINROW 0x4D
128 #define KA630_MAXROW 0x4E
129 #define KA630_COL 0x50
130 #define KA630_MINCOL 0x51
131 #define KA630_MAXCOL 0x52
133 #endif /* _VAX_INCLUDE_KA630_H_ */