Home | History | Annotate | Line # | Download | only in dev
crimereg.h revision 1.2
      1 /*	$NetBSD: crimereg.h,v 1.2 2000/11/18 19:33:49 soren Exp $	*/
      2 
      3 /*
      4  * Copyright (c) 2000 Soren S. Jorvang
      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. All advertising materials mentioning features or use of this software
     16  *    must display the following acknowledgement:
     17  *          This product includes software developed for the
     18  *          NetBSD Project.  See http://www.netbsd.org/ for
     19  *          information about NetBSD.
     20  * 4. The name of the author may not be used to endorse or promote products
     21  *    derived from this software without specific prior written permission.
     22  *
     23  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     24  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     25  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     28  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     29  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     30  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     32  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     33  */
     34 
     35 /*
     36  * O2 CRIME register definitions
     37  */
     38 
     39 #define CRIME_REV		0x000
     40 #define CRIME_CONTROL		0x008
     41 #define CRIME_INTSTAT		0x010
     42 #define CRIME_INTMASK		0x018
     43 #define CRIME_SOFTINT		0x020
     44 #define CRIME_HARDINT		0x028
     45 #define CRIME_DOG		0x030
     46 #define McGriff			CRIME_DOG	/* Baseball compatibility */
     47 #define CRIME_TIME		0x038
     48 #define CRIME_CPU_ERROR_ADDR	0x040
     49 #define CRIME_CPU_ERROR_STAT	0x048
     50 #define CRIME_CPU_ERROR_ENA	0x050
     51 #define CRM_VICE_ERROR_ADDR	0x058
     52 #define CRM_MEM_CONTROL		0x200
     53 #define CRM_MEM_BANK_CTRL0	0x208
     54 #define CRM_MEM_BANK_CTRL1	0x218
     55 #define CRM_MEM_BANK_CTRL2	0x210
     56 #define CRM_MEM_BANK_CTRL3	0x228
     57 #define CRM_MEM_BANK_CTRL4	0x220
     58 #define CRM_MEM_BANK_CTRL5	0x238
     59 #define CRM_MEM_BANK_CTRL6	0x230
     60 #define CRM_MEM_BANK_CTRL7	0x248
     61 #define CRM_MEM_REFRESH_CNTR	0x248
     62 #define CRM_MEM_ERROR_STAT	0x250
     63 #define CRM_MEM_ERROR_ADDR	0x258
     64 #define CRM_MEM_ERROR_ECC_SYN	0x260
     65 #define CRM_MEM_ERROR_ECC_CHK	0x268
     66 #define CRM_MEM_ERROR_ECC_REPL	0x270
     67 
     68 #define CRM_INT_VICE		0x80000000
     69 #define CRM_INT_SOFT2		0x40000000
     70 #define CRM_CPU_SysCorErr	CRM_INT_SOFT2
     71 #define CRM_INT_SOFT1		0x20000000
     72 #define CRM_INT_SOFT0		0x10000000
     73 #define CRM_INT_RE5		0x08000000
     74 #define CRM_INT_RE4		0x04000000
     75 #define CRM_INT_RE3		0x02000000
     76 #define CRM_INT_RE2		0x01000000
     77 #define CRM_INT_RE1		0x00800000
     78 #define CRM_INT_RE0		0x00400000
     79 #define CRM_INT_MEMERR		0x00200000
     80 #define CRM_INT_CRMERR		0x00100000
     81 #define CRM_INT_GBE3		0x00080000
     82 #define CRM_INT_GBE2		0x00040000
     83 #define CRM_INT_GBE1		0x00020000
     84 #define CRM_INT_GBE0		0x00010000
     85 #define MACE_PCI_SHARED2	0x00008000
     86 #define MACE_PCI_SHARED1	0x00004000
     87 #define MACE_PCI_SHARED0	0x00002000
     88 #define MACE_PCI_SLOT2		0x00001000
     89 #define MACE_PCI_SLOT1		0x00000800
     90 #define MACE_PCI_SLOT0		0x00000400
     91 #define MACE_PCI_SCSI1		0x00000200
     92 #define MACE_PCI_SCSI0		0x00000100
     93 #define MACE_PCI_BRIDGE		0x00000080
     94 #define MACE_PERIPH_AUD		0x00000040
     95 #define MACE_PERIPH_MISC	0x00000020
     96 #define MACE_PERIPH_SERIAL	0x00000010
     97 #define MACE_ETHERNET		0x00000008
     98 #define MACE_VID_OUT		0x00000004
     99 #define MACE_VID_IN2		0x00000002
    100 #define MACE_VID_IN1		0x00000001
    101