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