Annotation of sys/arch/vax/include/ka630.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: ka630.h,v 1.6 2003/06/02 23:27:57 millert Exp $ */
2: /* $NetBSD: ka630.h,v 1.5 2000/07/19 01:01:58 matt Exp $ */
3: /*-
4: * Copyright (c) 1986, 1988 The Regents of the University of California.
5: * All rights reserved.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice, this list of conditions and the following disclaimer in the
14: * documentation and/or other materials provided with the distribution.
15: * 3. Neither the name of the University nor the names of its contributors
16: * may be used to endorse or promote products derived from this software
17: * without specific prior written permission.
18: *
19: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29: * SUCH DAMAGE.
30: *
31: * @(#)uvaxII.h 7.4 (Berkeley) 5/9/91
32: */
33:
34: #ifndef _VAX_INCLUDE_KA630_H_
35: #define _VAX_INCLUDE_KA630_H_
36:
37: #define UVAXIISID ((u_long *)0x20040004)
38: #define UVAXIICPU ((struct uvaxIIcpu *)0x20080000)
39:
40: #ifndef _LOCORE
41: struct uvaxIIcpu {
42: u_short uvaxII_bdr;
43: u_short uvaxII_xxx;
44: u_long uvaxII_mser;
45: u_long uvaxII_cear;
46: u_long uvaxII_dear;
47: };
48: #endif
49:
50: /* Memory system err reg. */
51: #define UVAXIIMSER_CD 0x00000300
52: #define UVAXIIMSER_NXM 0x00000080
53: #define UVAXIIMSER_LPE 0x00000040
54: #define UVAXIIMSER_QPE 0x00000020
55: #define UVAXIIMSER_MERR 0x000000f0
56: #define UVAXIIMSER_CPUE 0x00000060
57: #define UVAXIIMSER_DQPE 0x00000010
58: #define UVAXIIMSER_LEB 0x00000008
59: #define UVAXIIMSER_WRWP 0x00000002
60: #define UVAXIIMSER_PEN 0x00000001
61:
62: /* Mem. error address regs. */
63: #define UVAXIICEAR_PG 0x00007fff
64: #define UVAXIIDEAR_PG 0x00007fff
65:
66: /*
67: * Definitions specific to the ka630 MicroVAXII Q22 bus cpu card. Includes the
68: * tod clock chip and the cpu registers.
69: */
70: #define KA630CLK ((struct ka630clock *)0x200b8000)
71:
72: /* Bdr register bits */
73: #define KA630BDR_PWROK 0x8000
74: #define KA630BDR_HLTENB 0x4000
75: #define KA630BDR_CPU 0x0c00
76: #define KA630BDR_BDG 0x0300
77: #define KA630BDR_DSPL 0x000f
78:
79: /* Clock registers and constants */
80: #define MINSEC 60
81: #define HRSEC 3600
82: #define DAYSEC (HRSEC * 24)
83: #define YEARSEC (DAYSEC * 365)
84:
85: #define KA630CLK_VRT 0200
86: #define KA630CLK_UIP 0200
87: #define KA630CLK_RATE 040
88: #define KA630CLK_ENABLE 06
89: #define KA630CLK_SET 0206
90: /* cpmbx bits */
91: #define KA630CLK_HLTACT 03
92: /* halt action values */
93: #define KA630CLK_RESTRT 01
94: #define KA630CLK_REBOOT 02
95: #define KA630CLK_HALT 03
96: #define KA630CLK_DOTHIS 040
97: /* in progress flags */
98: #define KA630CLK_BOOT 04
99: #define KA630CLK_RSTRT 010
100: #define KA630CLK_LANG 0360
101:
102: #ifndef _LOCORE
103: struct ka630clock {
104: u_short sec;
105: u_short secalrm;
106: u_short min;
107: u_short minalrm;
108: u_short hr;
109: u_short hralrm;
110: u_short dayofwk;
111: u_short day;
112: u_short mon;
113: u_short yr;
114: u_short csr0;
115: u_short csr1;
116: u_short csr2;
117: u_short csr3;
118: u_short cpmbx; /* CPMBX is used by the boot rom. see ka630-ug-3.3.3 */
119: };
120: #endif
121:
122: #define KA630_NVR_ADRS 0x200B8024
123: /* Definitions for various locations in the KA630 console page */
124: #define KA630_PUTC_POLL 0x20
125: #define KA630_PUTC 0x24
126: #define KA630_GETC 0x1C
127: #define KA630_ROW 0x4C
128: #define KA630_MINROW 0x4D
129: #define KA630_MAXROW 0x4E
130: #define KA630_COL 0x50
131: #define KA630_MINCOL 0x51
132: #define KA630_MAXCOL 0x52
133:
134: #endif /* _VAX_INCLUDE_KA630_H_ */
135:
CVSweb