need param.h for mbuf.h now
[unix-history] / usr / src / sys / vax / vax / ka630.h
CommitLineData
9d2503c6 1/*
3907f97a
MK
2 * Copyright (c) 1986, 1988 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
9d2503c6 5 *
3907f97a
MK
6 * @(#)ka630.h 7.3 (Berkeley) %G%
7 */
8
9/*
9d2503c6
BK
10 * Definitions specific to the ka630 uvax2 cpu card. Includes the tod
11 * clock chip and the cpu registers.
12 */
13#ifdef VAX630
14/* Bdr register bits */
15#define KA630BDR_PWROK 0x8000
16#define KA630BDR_HLTENB 0x4000
17#define KA630BDR_CPU 0x0c00
18#define KA630BDR_BDG 0x0300
19#define KA630BDR_DSPL 0x000f
20
21/* Memory system err reg. */
22#define KA630MSER_CD 0x00000300
23#define KA630MSER_NXM 0x00000080
24#define KA630MSER_LPE 0x00000040
25#define KA630MSER_QPE 0x00000020
26#define KA630MSER_MERR 0x000000f0
27#define KA630MSER_CPUER 0x00000060
28#define KA630MSER_DQPE 0x00000010
29#define KA630MSER_LEB 0x00000008
30#define KA630MSER_WRWP 0x00000002
31#define KA630MSER_PAREN 0x00000001
32
33/* Mem. error address regs. */
34#define KA630CEAR_PG 0x00007fff
35#define KA630DEAR_PG 0x00007fff
36
37/* Clock registers and constants */
38#define MINSEC 60
39#define HRSEC 3600
40
41#define KA630CLK_VRT 0200
42#define KA630CLK_UIP 0200
43#define KA630CLK_RATE 040
44#define KA630CLK_ENABLE 06
45#define KA630CLK_SET 0206
46/* cpmbx bits */
47#define KA630CLK_HLTACT 03
48/* halt action values */
49#define KA630CLK_RESTRT 01
50#define KA630CLK_REBOOT 02
51#define KA630CLK_HALT 03
52/* in progress flags */
53#define KA630CLK_BOOT 04
54#define KA630CLK_RSTRT 010
55#define KA630CLK_LANG 0360
56
57#ifndef LOCORE
9a0de372 58struct ka630clock {
9d2503c6
BK
59 u_short sec;
60 u_short secalrm;
61 u_short min;
62 u_short minalrm;
63 u_short hr;
64 u_short hralrm;
65 u_short dayofwk;
66 u_short day;
67 u_short mon;
68 u_short yr;
69 u_short csr0;
70 u_short csr1;
71 u_short csr2;
72 u_short csr3;
73 u_short cpmbx; /* CPMBX is used by the boot rom. see ka630-ug-3.3.3 */
74};
75
76struct ka630cpu {
77 u_short ka630_bdr;
78 u_short ka630_xxx;
79 u_long ka630_mser;
80 u_long ka630_cear;
81 u_long ka630_dear;
82};
83#endif
84#endif