uvax.h revision 1.6 1 1.6 matt /* $NetBSD: uvax.h,v 1.6 2000/06/02 21:39:54 matt Exp $ */
2 1.1 ragge /*
3 1.1 ragge * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
4 1.1 ragge * All rights reserved.
5 1.1 ragge *
6 1.1 ragge * This code is derived from software contributed to Ludd by Bertram Barth.
7 1.1 ragge *
8 1.1 ragge * Redistribution and use in source and binary forms, with or without
9 1.1 ragge * modification, are permitted provided that the following conditions
10 1.1 ragge * are met:
11 1.1 ragge * 1. Redistributions of source code must retain the above copyright
12 1.1 ragge * notice, this list of conditions and the following disclaimer.
13 1.1 ragge * 2. Redistributions in binary form must reproduce the above copyright
14 1.1 ragge * notice, this list of conditions and the following disclaimer in the
15 1.1 ragge * documentation and/or other materials provided with the distribution.
16 1.1 ragge * 3. All advertising materials mentioning features or use of this software
17 1.1 ragge * must display the following acknowledgement:
18 1.1 ragge * This product includes software developed at Ludd, University of
19 1.1 ragge * Lule}, Sweden and its contributors.
20 1.1 ragge * 4. The name of the author may not be used to endorse or promote products
21 1.1 ragge * derived from this software without specific prior written permission
22 1.1 ragge *
23 1.1 ragge * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 1.1 ragge * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 1.1 ragge * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 1.1 ragge * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 1.1 ragge * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 1.1 ragge * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 1.1 ragge * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 1.1 ragge * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 1.1 ragge * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 1.1 ragge * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 1.1 ragge */
34 1.1 ragge
35 1.2 ragge #ifndef _VAX_UVAX_H_
36 1.2 ragge #define _VAX_UVAX_H_
37 1.2 ragge
38 1.1 ragge /*
39 1.1 ragge * Generic definitions common on all MicroVAXen clock chip.
40 1.1 ragge */
41 1.1 ragge #define uVAX_CLKVRT 0200
42 1.1 ragge #define uVAX_CLKUIP 0200
43 1.1 ragge #define uVAX_CLKRATE 040
44 1.1 ragge #define uVAX_CLKENABLE 06
45 1.1 ragge #define uVAX_CLKSET 0206
46 1.1 ragge
47 1.1 ragge /* cpmbx bits */
48 1.1 ragge #define uVAX_CLKHLTACT 03
49 1.1 ragge
50 1.1 ragge /* halt action values */
51 1.1 ragge #define uVAX_CLKRESTRT 01
52 1.1 ragge #define uVAX_CLKREBOOT 02
53 1.1 ragge #define uVAX_CLKHALT 03
54 1.1 ragge
55 1.1 ragge /* in progress flags */
56 1.1 ragge #define uVAX_CLKBOOT 04
57 1.1 ragge #define uVAX_CLKRSTRT 010
58 1.1 ragge #define uVAX_CLKLANG 0360
59 1.3 ragge
60 1.3 ragge /*
61 1.3 ragge * Miscellaneous registers common on most VAXststions.
62 1.3 ragge */
63 1.3 ragge struct vs_cpu {
64 1.6 matt u_long vc_hltcod; /* 00 - Halt Code Register */
65 1.6 matt u_long vc_410mser; /* 04 - VS2K */
66 1.6 matt u_long vc_410cear; /* 08 - VS2K */
67 1.6 matt u_char vc_intmsk; /* 0c - Interrupt mask register */
68 1.6 matt u_char vc_vdcorg; /* 0d - Mono display origin */
69 1.6 matt u_char vc_vdcsel; /* 0e - Video interrupt select */
70 1.6 matt u_char vc_intreq; /* 0f - Interrupt request register */
71 1.3 ragge #define vc_intclr vc_intreq
72 1.6 matt u_short vc_diagdsp; /* 10 - Diagnostic display register */
73 1.6 matt u_short pad4; /* 12 */
74 1.6 matt u_long vc_parctl; /* 14 - Parity Control Register */
75 1.4 ragge #define vc_bwf0 vc_parctl
76 1.6 matt u_short pad5; /* 16 */
77 1.6 matt u_short pad6; /* 18 */
78 1.6 matt u_short vc_diagtimu; /* 1a - usecond timer KA46 */
79 1.6 matt u_short vc_diagtme; /* 1c - Diagnostic time register */
80 1.4 ragge #define vc_diagtimm vc_diagtme /* msecond time KA46 */
81 1.3 ragge };
82 1.3 ragge #define PARCTL_DMA 0x1000000
83 1.3 ragge #define PARCTL_CPEN 2
84 1.3 ragge #define PARCTL_DPEN 1
85 1.1 ragge
86 1.2 ragge #endif
87