Home | History | Annotate | Line # | Download | only in include
ka420.h revision 1.2.32.1
      1  1.2.32.1  thorpej /*	$NetBSD: ka420.h,v 1.2.32.1 2002/12/11 06:12:38 thorpej 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.32.1  thorpej #ifndef _VAX_KA420_H_
     36  1.2.32.1  thorpej #define _VAX_KA420_H_
     37  1.2.32.1  thorpej 
     38       1.1    ragge /*
     39       1.1    ragge  * Definitions for I/O addresses of
     40       1.1    ragge  *
     41       1.1    ragge  *	VAXstation 3100 models 30, 40	(PVAX)
     42       1.1    ragge  *	MicroVAX 3100 models 10, 20	(Teammate II)
     43       1.1    ragge  *	MicroVAX 3100 models 10e, 20e	(Teammate II)
     44       1.1    ragge  *	VAXstation 3100 models 38, 48	(PVAX rev#7)
     45       1.1    ragge  */
     46       1.1    ragge 
     47       1.1    ragge #define KA420_SIDEX	0x20040004	/* SID extension register */
     48       1.1    ragge 
     49       1.1    ragge #define KA420_CH2_BASE	0x10000000	/* 2nd level cache data area */
     50       1.1    ragge #define KA420_CH2_END	0x10007FFF
     51       1.1    ragge #define KA420_CH2_SIZE	    0x8000
     52       1.1    ragge #define KA420_CT2_BASE	0x10010000	/* 2nd level cache tag area */
     53       1.1    ragge #define KA420_CT2_END	0x10017FFF
     54       1.1    ragge #define KA420_CT2_SIZE	    0x8000
     55       1.1    ragge #define KA420_CH2_CREG	0x20084000	/* 2nd level cache control register */
     56       1.1    ragge 
     57       1.1    ragge #define KA420_CFGTST	0x20020000	/* Configuration and Test register */
     58       1.1    ragge #define KA420_IORESET	0x20020000	/* I/O Reset register */
     59       1.1    ragge 
     60       1.1    ragge #define KA420_ROM_BASE	0x20040000	/* System module ROM */
     61       1.1    ragge #define KA420_ROM_END	0x2007FFFF
     62       1.1    ragge #define KA420_ROM_SIZE	   0x40000	/* ??? */
     63       1.1    ragge 
     64       1.1    ragge #define KA420_IVN_BASE	0x20040020	/* Interrupt Vector Numbers */
     65       1.1    ragge #define KA420_IVN_END	0x2004003F
     66       1.1    ragge #define KA420_IVN_SIZE	      0x20
     67       1.1    ragge 
     68       1.1    ragge #define KA420_HLTCOD	0x20080000	/* Halt Code Register */
     69       1.1    ragge #define KA420_MSER	0x20080004	/* Memory System Error register */
     70       1.1    ragge #define KA420_MEAR	0x20080008	/* Memory Error Address register */
     71       1.1    ragge #define KA420_INTMSK	0x2008000C	/* Interrupt Mask register */
     72       1.1    ragge #define KA420_VDCORG	0x2008000D	/* Video Controller Origin Register */
     73       1.1    ragge #define KA420_VDCSEL	0x2008000E	/* Video Controller Select Register */
     74       1.1    ragge #define KA420_INTREQ	0x2008000F	/* Interrupt Request register */
     75       1.1    ragge #define KA420_INTCLR	0x2008000F	/* Interrupt Request clear register */
     76       1.1    ragge 
     77       1.2    ragge #define KA420_CACR	0x20084000	/* L2 cache ctrl reg */
     78       1.2    ragge 
     79       1.1    ragge /*
     80       1.1    ragge  * Other fixed addresses which should be mapped
     81       1.1    ragge  */
     82       1.1    ragge #define KA420_NWA_BASE	0x20090000	/* Network Address ROM */
     83       1.1    ragge #define KA420_NWA_END	0x2009007F
     84       1.1    ragge #define KA420_NWA_SIZE	      0x80
     85       1.1    ragge #define KA420_SER_BASE	0x200A0000	/* Serial line controller */
     86       1.1    ragge #define KA420_SER_END	0x200A000F
     87       1.1    ragge #define KA420_SER_SIZE        0x10
     88       1.1    ragge #define KA420_WAT_BASE	0x200B0000	/* TOY clock and NV-RAM */
     89       1.1    ragge #define KA420_WAT_END	0x200B00FF
     90       1.1    ragge #define KA420_WAT_SIZE	     0x100
     91       1.1    ragge #define KA420_DKC_BASE	0x200C0000	/* Disk Controller Ports */
     92       1.1    ragge #define KA420_DKC_END	0x200C0007
     93       1.1    ragge #define KA420_DKC_SIZE	      0x08
     94       1.1    ragge #define KA420_SCS_BASE	0x200C0080	/* Tape (SCSI) Controller Chip */
     95       1.1    ragge #define KA420_SCS_END	0x200C009F
     96       1.1    ragge #define KA420_SCS_SIZE	      0x20
     97       1.1    ragge #define KA420_D16_BASE	0x200D0000	/* 16KB (compatibility) Data Buffer */
     98       1.1    ragge #define KA420_D16_END	0x200D3FFF
     99       1.1    ragge #define KA420_D16_SIZE	    0x4000
    100       1.1    ragge #define KA420_LAN_BASE	0x200E0000	/* LANCE chip registers */
    101       1.1    ragge #define KA420_LAN_END	0x200E0007
    102       1.1    ragge #define KA420_LAN_SIZE	      0x08
    103       1.1    ragge #define KA420_CUR_BASE	0x200F0000	/* Monochrome video cursor chip */
    104       1.1    ragge #define KA420_CUR_END	0x200F0007
    105       1.1    ragge #define KA420_CUR_SIZE	      0x08
    106       1.1    ragge #define KA420_DMA_BASE	0x202D0000	/* 128KB Data Buffer */
    107       1.1    ragge #define KA420_DMA_END	0x202EFFFF
    108       1.1    ragge #define KA420_DMA_SIZE     0x20000
    109       1.1    ragge 
    110       1.1    ragge #define KA420_SCD_DADR	0x200C00A0	/* Tape(SCSI) DMA address register */
    111       1.1    ragge #define KA420_SCD_DCNT	0x200C00C0	/* Tape(SCSI) DMA byte count reg. */
    112       1.1    ragge #define KA420_SCD_DDIR	0x200C00C4	/* Tape(SCSI) DMA transfer direction */
    113       1.1    ragge 
    114       1.1    ragge #define KA420_STC_MODE	0x200C00E0	/* Storage Controller Mode register */
    115       1.1    ragge 
    116       1.1    ragge #define KA420_CUR_CMD	0x200F0000	/* Cursor Command Register */
    117       1.1    ragge #define KA420_CUR_XPOS	0x200F0004	/* Cursor X position */
    118       1.1    ragge #define KA420_CUR_YPOS	0x200F0008	/* Cursor Y position */
    119       1.1    ragge 
    120       1.1    ragge #define KA420_CUR_XMIN1	0x200F000C	/* Region 1 left edge */
    121       1.1    ragge #define KA420_CUR_XMAX1	0x200F0010	/* Region 1 right edge */
    122       1.1    ragge #define KA420_CUR_YMIN1	0x200F0014	/* Region 1 top edge */
    123       1.1    ragge #define KA420_CUR_YMAX1	0x200F0018	/* Region 1 bottom edge */
    124       1.1    ragge 
    125       1.1    ragge #define KA420_CUR_XMIN2	0x200F002C	/* Region 2 left edge */
    126       1.1    ragge #define KA420_CUR_XMAX2	0x200F0030	/* Region 2 right edge */
    127       1.1    ragge #define KA420_CUR_YMIN2	0x200F0034	/* Region 2 top edge */
    128       1.1    ragge #define KA420_CUR_YMAX2	0x200F0038	/* Region 2 bottom edge */
    129       1.1    ragge 
    130       1.1    ragge /*
    131       1.1    ragge  * Clock-Chip data in NVRAM
    132       1.1    ragge  */
    133       1.1    ragge #define KA420_CPMBX	0x200B0038	/* Console Mailbox (1 byte) */
    134       1.1    ragge #define KA420_CPFLG	0x200B003C	/* Console Program Flags (1 byte) */
    135       1.1    ragge #define KA420_LK201_ID	0x200B0040	/* Keyboard Variation (1 byte) */
    136       1.1    ragge #define KA420_CONS_ID	0x200B0044	/* Console Device Type (1 byte) */
    137       1.1    ragge #define KA420_SCR	0x200B0048	/* Console Scratch RAM */
    138       1.1    ragge #define KA420_TEMP	0x200B0058	/* Used by System Firmware */
    139       1.1    ragge #define KA420_BAT_CHK	0x200B0088	/* Battery Check Data */
    140       1.1    ragge #define KA420_BOOTDEV	0x200B0098	/* Default Boot Device (4 bytes) */
    141       1.1    ragge #define KA420_BOOTFLG	0x200B00A8	/* Default Boot Flags (4 bytes) */
    142       1.1    ragge #define KA420_SCRLEN	0x200B00B8	/* Number of pages of SCR (1 byte) */
    143       1.1    ragge #define KA420_SCSIPORT	0x200B00BC	/* Tape Controller Port Data */
    144       1.1    ragge #define KA420_RESERVED	0x200B00C0	/* Reserved (16 bytes) */
    145       1.2    ragge 
    146       1.2    ragge /* Used bits in the CFGTST (20020000) register */
    147       1.2    ragge #define	KA420_CFG_STCMSK	0xc000	/* Storage controller mask */
    148       1.2    ragge #define	KA420_CFG_RB		0x0000	/* RB (ST506/SCSI) present */
    149       1.2    ragge #define	KA420_CFG_RD		0x4000	/* RD (SCSI/SCSI) present */
    150       1.2    ragge #define	KA420_CFG_NONE		0xc000	/* No storage ctlr present */
    151       1.2    ragge #define	KA420_CFG_MULTU		0x80	/* MicroVAX or VAXstation */
    152       1.2    ragge #define	KA420_CFG_CACHPR	0x40	/* Secondary cache present */
    153       1.2    ragge #define	KA420_CFG_L3CON		0x20	/* Console on line #3 of dc */
    154       1.2    ragge #define	KA420_CFG_CURTEST	0x10	/* Cursor Test (monochrom) */
    155       1.2    ragge #define	KA420_CFG_VIDOPT	0x08	/* Video option present */
    156       1.2    ragge 
    157       1.2    ragge /* Primary cache bits (CADR, IPR 37) */
    158       1.2    ragge #define	KA420_CADR_S2E		0x80	/* set 2 enable */
    159       1.2    ragge #define	KA420_CADR_S1E		0x40	/* set 1 enable */
    160       1.2    ragge #define	KA420_CADR_ISE		0x20	/* insn caching enable */
    161       1.2    ragge #define	KA420_CADR_DSE		0x10	/* data caching enable */
    162       1.2    ragge #define	KA420_CADR_WWP		0x02	/* write wrong parity */
    163       1.2    ragge #define	KA420_CADR_DIA		0x01	/* diagnostic mode */
    164       1.2    ragge 
    165       1.2    ragge /* Secondary cache bits (CACR, 20084000) */
    166       1.2    ragge #define	KA420_CACR_CP3		0x80000000	/* last parity read */
    167       1.2    ragge #define	KA420_CACR_CP2		0x40000000	/* last parity read */
    168       1.2    ragge #define	KA420_CACR_CP1		0x20000000	/* last parity read */
    169       1.2    ragge #define	KA420_CACR_CP0		0x10000000	/* last parity read */
    170       1.2    ragge #define	KA420_CACR_TPP		0x00100000	/* tag predicted parity */
    171       1.2    ragge #define	KA420_CACR_TGP		0x00080000	/* tag parity read */
    172       1.2    ragge #define	KA420_CACR_TGV		0x00040000	/* valid flag */
    173       1.2    ragge #define	KA420_CACR_TPE		0x00000020	/* tag parity error */
    174       1.2    ragge #define	KA420_CACR_CEN		0x00000010	/* cache enable */
    175       1.1    ragge 
    176  1.2.32.1  thorpej #endif /* _VAX_KA420_H_ */
    177