Home | History | Annotate | Line # | Download | only in vr
icureg.h revision 1.5.4.2
      1  1.5.4.2  nathanw /*	$NetBSD: icureg.h,v 1.5.4.2 2002/02/28 04:10:04 nathanw Exp $	*/
      2  1.5.4.2  nathanw 
      3  1.5.4.2  nathanw /*-
      4  1.5.4.2  nathanw  * Copyright (c) 1999 Shin Takemura. All rights reserved.
      5  1.5.4.2  nathanw  * Copyright (c) 1999-2001 SATO Kazumi. All rights reserved.
      6  1.5.4.2  nathanw  * Copyright (c) 1999 PocketBSD Project. All rights reserved.
      7  1.5.4.2  nathanw  *
      8  1.5.4.2  nathanw  * Redistribution and use in source and binary forms, with or without
      9  1.5.4.2  nathanw  * modification, are permitted provided that the following conditions
     10  1.5.4.2  nathanw  * are met:
     11  1.5.4.2  nathanw  * 1. Redistributions of source code must retain the above copyright
     12  1.5.4.2  nathanw  *    notice, this list of conditions and the following disclaimer.
     13  1.5.4.2  nathanw  * 2. Redistributions in binary form must reproduce the above copyright
     14  1.5.4.2  nathanw  *    notice, this list of conditions and the following disclaimer in the
     15  1.5.4.2  nathanw  *    documentation and/or other materials provided with the distribution.
     16  1.5.4.2  nathanw  * 3. All advertising materials mentioning features or use of this software
     17  1.5.4.2  nathanw  *    must display the following acknowledgement:
     18  1.5.4.2  nathanw  *	This product includes software developed by the PocketBSD project
     19  1.5.4.2  nathanw  *	and its contributors.
     20  1.5.4.2  nathanw  * 4. Neither the name of the project nor the names of its contributors
     21  1.5.4.2  nathanw  *    may be used to endorse or promote products derived from this software
     22  1.5.4.2  nathanw  *    without specific prior written permission.
     23  1.5.4.2  nathanw  *
     24  1.5.4.2  nathanw  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     25  1.5.4.2  nathanw  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     26  1.5.4.2  nathanw  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     27  1.5.4.2  nathanw  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     28  1.5.4.2  nathanw  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     29  1.5.4.2  nathanw  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     30  1.5.4.2  nathanw  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     31  1.5.4.2  nathanw  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     32  1.5.4.2  nathanw  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     33  1.5.4.2  nathanw  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34  1.5.4.2  nathanw  * SUCH DAMAGE.
     35  1.5.4.2  nathanw  *
     36  1.5.4.2  nathanw  */
     37  1.5.4.2  nathanw 
     38  1.5.4.2  nathanw /*
     39  1.5.4.2  nathanw  *	ICU (Interrupt Control UNIT) Registers definitions
     40  1.5.4.2  nathanw  *		start 0x0B000080 (vr4102/4111/4121)
     41  1.5.4.2  nathanw  *		start 0x0F000080 (vr4122)
     42  1.5.4.2  nathanw  */
     43  1.5.4.2  nathanw #include "opt_vr41xx.h"
     44  1.5.4.2  nathanw #include <hpcmips/vr/vrcpudef.h>
     45  1.5.4.2  nathanw 
     46  1.5.4.2  nathanw #define ICU_NO_REG_W		0xffffffff	/* no register */
     47  1.5.4.2  nathanw 
     48  1.5.4.2  nathanw 
     49  1.5.4.2  nathanw /* SYSINT1 & MSYSINT1 */
     50  1.5.4.2  nathanw #define SYSINT1_REG_W		0x000	/* Level1 System intr reg 1 */
     51  1.5.4.2  nathanw #define MSYSINT1_REG_W		0x00c	/* Level1 Mask System intr reg 1 */
     52  1.5.4.2  nathanw 
     53  1.5.4.2  nathanw #define SYSINT1_INT15			(1<<15)
     54  1.5.4.2  nathanw #define SYSINT1_INT14			(1<<14)
     55  1.5.4.2  nathanw #define SYSINT1_INT13			(1<<13)
     56  1.5.4.2  nathanw #define SYSINT1_DOZEPIU			(1<<13)	/* PIU intr during Suspend */
     57  1.5.4.2  nathanw #define SYSINT1_INT12			(1<<12)
     58  1.5.4.2  nathanw #define SYSINT1_CLKRUN			(1<<12) /* CLKRUN intr (=vr4122) */
     59  1.5.4.2  nathanw #define SYSINT1_INT11			(1<<11)
     60  1.5.4.2  nathanw #define SYSINT1_SOFT			(1<<11)	/* Software intr */
     61  1.5.4.2  nathanw #define SYSINT1_INT10			(1<<10)
     62  1.5.4.2  nathanw #define SYSINT1_WRBERR			(1<<10)	/* Bus error intr (4102 <=,<= 4121)*/
     63  1.5.4.2  nathanw #define SYSINT1_INT9			(1<<9)
     64  1.5.4.2  nathanw #define SYSINT1_SIU			(1<<9)	/* SIU intr */
     65  1.5.4.2  nathanw #define SYSINT1_INT8			(1<<8)
     66  1.5.4.2  nathanw #define SYSINT1_GIU			(1<<8)	/* GIU intr */
     67  1.5.4.2  nathanw #define SYSINT1_INT7			(1<<7)
     68  1.5.4.2  nathanw #define SYSINT1_KIU			(1<<7)	/* KIU intr (4102 <=,<= 4121)*/
     69  1.5.4.2  nathanw #define SYSINT1_INT6			(1<<6)
     70  1.5.4.2  nathanw #define SYSINT1_AIU			(1<<6)	/* AIU intr (4102 <=,<= 4121)*/
     71  1.5.4.2  nathanw #define SYSINT1_INT5			(1<<5)
     72  1.5.4.2  nathanw #define SYSINT1_PIU			(1<<5)	/* PIU intr (4102 <=,<= 4121)*/
     73  1.5.4.2  nathanw #define SYSINT1_INT4			(1<<4)
     74  1.5.4.2  nathanw #define SYSINT1_INT3			(1<<3)
     75  1.5.4.2  nathanw #define SYSINT1_ETIMER			(1<<3)	/* ETIMER intr */
     76  1.5.4.2  nathanw #define SYSINT1_INT2			(1<<2)
     77  1.5.4.2  nathanw #define SYSINT1_RTCL1			(1<<2)	/* RTClong1 intr */
     78  1.5.4.2  nathanw #define SYSINT1_INT1			(1<<1)
     79  1.5.4.2  nathanw #define SYSINT1_POWER			(1<<1)	/* PowerSW intr */
     80  1.5.4.2  nathanw #define SYSINT1_INT0			(1<<0)
     81  1.5.4.2  nathanw #define SYSINT1_BAT			(1<<0)	/* Battery intr */
     82  1.5.4.2  nathanw 
     83  1.5.4.2  nathanw 
     84  1.5.4.2  nathanw /* PIUINT & MPIUINT */
     85  1.5.4.2  nathanw #define ICUPIUINT_REG_W		0x002	/* Level2 PIU intr reg */
     86  1.5.4.2  nathanw #define MPIUINT_REG_W		0x00e	/* Level2 Mask PIU intr reg */
     87  1.5.4.2  nathanw 
     88  1.5.4.2  nathanw #define		PIUINT_PADCMD		(1<<6)	/* PIU command scan intr */
     89  1.5.4.2  nathanw #define		PIUINT_PADADP		(1<<5)	/* PIU AD port scan intr */
     90  1.5.4.2  nathanw #define		PIUINT_PADPAGE1		(1<<4)	/* PIU data page 1 intr */
     91  1.5.4.2  nathanw #define		PIUINT_PADPAGE0		(1<<3)	/* PIU data page 0 intr */
     92  1.5.4.2  nathanw #define		PIUINT_PADLOST		(1<<2)	/* A/D data timeout intr */
     93  1.5.4.2  nathanw #define		PIUINT_PENCHG		(1)	/* Touch Panel contact intr */
     94  1.5.4.2  nathanw 
     95  1.5.4.2  nathanw 
     96  1.5.4.2  nathanw /* AIUINT & MAIUINT */
     97  1.5.4.2  nathanw #define VR4102_AIUINT_REG_W	0x004	/* Level2 AIU intr reg */
     98  1.5.4.2  nathanw #define VR4102_MAIUINT_REG_W	0x010	/* Level2 Mask AIU intr reg */
     99  1.5.4.2  nathanw #define VR4122_AIUINT_REG_W	ICU_NO_REG_W	/* Level2 AIU intr reg */
    100  1.5.4.2  nathanw #define VR4122_MAIUINT_REG_W	ICU_NO_REG_W	/* Level2 Mask AIU intr reg */
    101  1.5.4.2  nathanw #define VR4181_AIUINT_REG_W	0x004	/* Level2 AIU intr reg */
    102  1.5.4.2  nathanw #define VR4181_MAIUINT_REG_W	0x010	/* Level2 Mask AIU intr reg */
    103  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    104  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    105  1.5.4.2  nathanw #define AIUINT_REG_W		VR4102_AIUINT_REG_W
    106  1.5.4.2  nathanw #define MAIUINT_REG_W		VR4102_MAIUINT_REG_W
    107  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    108  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    109  1.5.4.2  nathanw #define AIUINT_REG_W		VR4122_AIUINT_REG_W
    110  1.5.4.2  nathanw #define MAIUINT_REG_W		VR4122_MAIUINT_REG_W
    111  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    112  1.5.4.2  nathanw #if defined VRGROUP_4181
    113  1.5.4.2  nathanw #define AIUINT_REG_W		VR4181_AIUINT_REG_W
    114  1.5.4.2  nathanw #define MAIUINT_REG_W		VR4181_MAIUINT_REG_W
    115  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    116  1.5.4.2  nathanw #endif
    117  1.5.4.2  nathanw 
    118  1.5.4.2  nathanw #define		AIUINT_INTMEND		(1<<11)	/* Audio input DMA buffer 2 page */
    119  1.5.4.2  nathanw #define		AIUINT_INTM		(1<<10)	/* Audio input DMA buffer 1 page */
    120  1.5.4.2  nathanw #define		AIUINT_INTMIDLE		(1<<9)	/* Audio input idle intr */
    121  1.5.4.2  nathanw #define		AIUINT_INTMST		(1<<8)	/* Audio input receive completion intr */
    122  1.5.4.2  nathanw #define		AIUINT_INTSEND		(1<<3)	/* Audio output buffer 2 page */
    123  1.5.4.2  nathanw #define		AIUINT_INTS		(1<<2)	/* Audio output buffer 1 page */
    124  1.5.4.2  nathanw #define		AIUINT_INTSIDLE		(1<<1)	/* Audio output idle intr */
    125  1.5.4.2  nathanw 
    126  1.5.4.2  nathanw 
    127  1.5.4.2  nathanw /* KIUINT & MKIUINT */
    128  1.5.4.2  nathanw #define VR4102_KIUINT_REG_W	0x006	/* Level2 KIU intr reg */
    129  1.5.4.2  nathanw #define VR4102_MKIUINT_REG_W	0x012	/* Level2 Mask KIU intr reg */
    130  1.5.4.2  nathanw #define VR4122_KIUINT_REG_W	ICU_NO_REG_W	/* Level2 KIU intr reg */
    131  1.5.4.2  nathanw #define VR4122_MKIUINT_REG_W	ICU_NO_REG_W	/* Level2 Mask KIU intr reg */
    132  1.5.4.2  nathanw #define VR4181_KIUINT_REG_W	0x118	/* Level2 KIU intr reg */
    133  1.5.4.2  nathanw #define VR4181_MKIUINT_REG_W	0x012	/* Level2 Mask KIU intr reg */
    134  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    135  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    136  1.5.4.2  nathanw #define KIUINT_REG_W		VR4102_KIUINT_REG_W
    137  1.5.4.2  nathanw #define MKIUINT_REG_W		VR4102_MKIUINT_REG_W
    138  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    139  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    140  1.5.4.2  nathanw #define KIUINT_REG_W		VR4122_KIUINT_REG_W
    141  1.5.4.2  nathanw #define MKIUINT_REG_W		VR4122_MKIUINT_REG_W
    142  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    143  1.5.4.2  nathanw #if defined VRGROUP_4181
    144  1.5.4.2  nathanw #define KIUINT_REG_W		VR4181_KIUINT_REG_W
    145  1.5.4.2  nathanw #define MKIUINT_REG_W		VR4181_MKIUINT_REG_W
    146  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    147  1.5.4.2  nathanw #endif
    148  1.5.4.2  nathanw 
    149  1.5.4.2  nathanw #define		KIUINT_KDATLOST		(1<<2)	/* Key scan data lost */
    150  1.5.4.2  nathanw #define		KIUINT_KDATRDY		(1<<1)	/* Key scan data complete */
    151  1.5.4.2  nathanw #define		KIUINT_SCANINT		(1)	/* Key input detect intr */
    152  1.5.4.2  nathanw 
    153  1.5.4.2  nathanw 
    154  1.5.4.2  nathanw /* GIUINTL & MGIUINTL */
    155  1.5.4.2  nathanw #define VR4102_GIUINT_L_REG_W	0x008	/* Level2 GIU intr reg Low */
    156  1.5.4.2  nathanw #define VR4102_MGIUINT_L_REG_W	0x014	/* Level2 Mask GIU intr reg Low */
    157  1.5.4.2  nathanw #define VR4122_GIUINT_L_REG_W	0x008	/* Level2 GIU intr reg Low */
    158  1.5.4.2  nathanw #define VR4122_MGIUINT_L_REG_W	0x014	/* Level2 Mask GIU intr reg Low */
    159  1.5.4.2  nathanw #define VR4181_GIUINT_L_REG_W	ICU_NO_REG_W	/* Level2 GIU intr reg Low */
    160  1.5.4.2  nathanw #define VR4181_MGIUINT_L_REG_W	ICU_NO_REG_W	/* Level2 Mask GIU intr reg Low */
    161  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    162  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    163  1.5.4.2  nathanw #define GIUINT_L_REG_W		VR4102_GIUINT_L_REG_W
    164  1.5.4.2  nathanw #define MGIUINT_L_REG_W		VR4102_MGIUINT_L_REG_W
    165  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    166  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    167  1.5.4.2  nathanw #define GIUINT_L_REG_W		VR4122_GIUINT_L_REG_W
    168  1.5.4.2  nathanw #define MGIUINT_L_REG_W		VR4122_MGIUINT_L_REG_W
    169  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    170  1.5.4.2  nathanw #if defined VRGROUP_4181
    171  1.5.4.2  nathanw #define GIUINT_L_REG_W		VR4181_GIUINT_L_REG_W
    172  1.5.4.2  nathanw #define MGIUINT_L_REG_W		VR4181_MGIUINT_L_REG_W
    173  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    174  1.5.4.2  nathanw #endif
    175  1.5.4.2  nathanw 
    176  1.5.4.2  nathanw #define		GIUINT_GPIO15		(1<<15)	/* GPIO 15 */
    177  1.5.4.2  nathanw #define		GIUINT_GPIO14		(1<<14)	/* GPIO 14 */
    178  1.5.4.2  nathanw #define		GIUINT_GPIO13		(1<<13)	/* GPIO 13 */
    179  1.5.4.2  nathanw #define		GIUINT_GPIO12		(1<<12)	/* GPIO 12 */
    180  1.5.4.2  nathanw #define		GIUINT_GPIO11		(1<<11)	/* GPIO 11 */
    181  1.5.4.2  nathanw #define		GIUINT_GPIO10		(1<<10)	/* GPIO 10 */
    182  1.5.4.2  nathanw #define		GIUINT_GPIO9		(1<<9)	/* GPIO 9 */
    183  1.5.4.2  nathanw #define		GIUINT_GPIO8		(1<<8)	/* GPIO 8 */
    184  1.5.4.2  nathanw #define		GIUINT_GPIO7		(1<<7)	/* GPIO 7 */
    185  1.5.4.2  nathanw #define		GIUINT_GPIO6		(1<<6)	/* GPIO 6 */
    186  1.5.4.2  nathanw #define		GIUINT_GPIO5		(1<<5)	/* GPIO 5 */
    187  1.5.4.2  nathanw #define		GIUINT_GPIO4		(1<<4)	/* GPIO 4 */
    188  1.5.4.2  nathanw #define		GIUINT_GPIO3		(1<<3)	/* GPIO 3 */
    189  1.5.4.2  nathanw #define		GIUINT_GPIO2		(1<<2)	/* GPIO 2 */
    190  1.5.4.2  nathanw #define		GIUINT_GPIO1		(1<<1)	/* GPIO 1 */
    191  1.5.4.2  nathanw #define		GIUINT_GPIO0		(1)	/* GPIO 0 */
    192  1.5.4.2  nathanw 
    193  1.5.4.2  nathanw 
    194  1.5.4.2  nathanw /* DSIUINT & MDSIUINT */
    195  1.5.4.2  nathanw #define VR4102_DSIUINT_REG_W		0x00a	/* Level2 DSIU intr reg */
    196  1.5.4.2  nathanw #define VR4102_MDSIUINT_REG_W		0x016	/* Level2 Mask DSIU intr reg */
    197  1.5.4.2  nathanw #define VR4122_DSIUINT_REG_W		0x00a	/* Level2 DSIU intr reg */
    198  1.5.4.2  nathanw #define VR4122_MDSIUINT_REG_W		0x016	/* Level2 Mask DSIU intr reg */
    199  1.5.4.2  nathanw #define VR4181_DSIUINT_REG_W		ICU_NO_REG_W	/* Level2 DSIU intr reg */
    200  1.5.4.2  nathanw #define VR4181_MDSIUINT_REG_W		ICU_NO_REG_W	/* Level2 Mask DSIU intr reg */
    201  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    202  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    203  1.5.4.2  nathanw #define DSIUINT_REG_W		VR4102_DSIUINT_REG_W
    204  1.5.4.2  nathanw #define MDSIUINT_REG_W		VR4102_MDSIUINT_REG_W
    205  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    206  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    207  1.5.4.2  nathanw #define DSIUINT_REG_W		VR4122_DSIUINT_REG_W
    208  1.5.4.2  nathanw #define MDSIUINT_REG_W		VR4122_MDSIUINT_REG_W
    209  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    210  1.5.4.2  nathanw #if defined VRGROUP_4181
    211  1.5.4.2  nathanw #define DSIUINT_REG_W		VR4181_DSIUINT_REG_W
    212  1.5.4.2  nathanw #define MDSIUINT_REG_W		VR4181_MDSIUINT_REG_W
    213  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    214  1.5.4.2  nathanw #endif
    215  1.5.4.2  nathanw 
    216  1.5.4.2  nathanw #define		DSIUINT_DCTS		(1<<11)	/* DCTS# change */
    217  1.5.4.2  nathanw #define		DSIUINT_SER0		(1<<10)	/* Debug serial receive error */
    218  1.5.4.2  nathanw #define		DSIUINT_SR0		(1<<9)	/* Debug serial receive */
    219  1.5.4.2  nathanw #define		DSIUINT_ST0		(1<<8)	/* Debug serial transmit */
    220  1.5.4.2  nathanw 
    221  1.5.4.2  nathanw 
    222  1.5.4.2  nathanw /* NMI */
    223  1.5.4.2  nathanw #define NMI_REG_W		0x018	/* NMI reg */
    224  1.5.4.2  nathanw 
    225  1.5.4.2  nathanw #define		LOWBATT_NMIORINT	(1)	/* Low battery type */
    226  1.5.4.2  nathanw #define		LOWBATT_INT0		(1)	/* Low battery int 0 */
    227  1.5.4.2  nathanw #define		LOWBATT_NMI		(0)	/* Low battery NMI */
    228  1.5.4.2  nathanw 
    229  1.5.4.2  nathanw 
    230  1.5.4.2  nathanw /* SOFTINT */
    231  1.5.4.2  nathanw #define SOFTINT_REG_W		0x01a	/* Software intr reg */
    232  1.5.4.2  nathanw 
    233  1.5.4.2  nathanw #define		SOFTINT_MASK3		(1<<3)	/* Softint3 mask */
    234  1.5.4.2  nathanw #define		SOFTINT_SET3		(1<<3)	/* Softint3 set */
    235  1.5.4.2  nathanw #define		SOFTINT_CLEAR3		(0<<3)	/* Softint3 clear */
    236  1.5.4.2  nathanw 
    237  1.5.4.2  nathanw #define		SOFTINT_MASK2		(1<<2)	/* Softint2 mask */
    238  1.5.4.2  nathanw #define		SOFTINT_SET2		(1<<2)	/* Softint2 set */
    239  1.5.4.2  nathanw #define		SOFTINT_CLEAR2		(0<<2)	/* Softint2 clear */
    240  1.5.4.2  nathanw 
    241  1.5.4.2  nathanw #define		SOFTINT_MASK1		(1<<1)	/* Softint1 mask */
    242  1.5.4.2  nathanw #define		SOFTINT_SET1		(1<<1)	/* Softint1 set */
    243  1.5.4.2  nathanw #define		SOFTINT_CLEAR1		(0<<1)	/* Softint1 clear */
    244  1.5.4.2  nathanw 
    245  1.5.4.2  nathanw #define		SOFTINT_MASK0		(1)	/* Softint0 mask */
    246  1.5.4.2  nathanw #define		SOFTINT_SET0		(1)	/* Softint0 set */
    247  1.5.4.2  nathanw #define		SOFTINT_CLEAR0		(0)	/* Softint0 clear */
    248  1.5.4.2  nathanw 
    249  1.5.4.2  nathanw 
    250  1.5.4.2  nathanw /* SYSINT2 & MSYSINT2 */
    251  1.5.4.2  nathanw #define VR4102_SYSINT2_REG_W	0x180	/* Level1 System intr reg 2 */
    252  1.5.4.2  nathanw #define VR4102_MSYSINT2_REG_W	0x186	/* Level1 Mask System intr reg 2 */
    253  1.5.4.2  nathanw #define VR4122_SYSINT2_REG_W	0x020	/* Level1 System intr reg 2 */
    254  1.5.4.2  nathanw #define VR4122_MSYSINT2_REG_W	0x026	/* Level1 Mask System intr reg 2 */
    255  1.5.4.2  nathanw #define VR4181_SYSINT2_REG_W	0x180	/* Level1 System intr reg 2 */
    256  1.5.4.2  nathanw #define VR4181_MSYSINT2_REG_W	0x186	/* Level1 Mask System intr reg 2 */
    257  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    258  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    259  1.5.4.2  nathanw #define SYSINT2_REG_W		VR4102_SYSINT2_REG_W
    260  1.5.4.2  nathanw #define MSYSINT2_REG_W		VR4102_MSYSINT2_REG_W
    261  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    262  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    263  1.5.4.2  nathanw #define SYSINT2_REG_W		VR4122_SYSINT2_REG_W
    264  1.5.4.2  nathanw #define MSYSINT2_REG_W		VR4122_MSYSINT2_REG_W
    265  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    266  1.5.4.2  nathanw #if defined VRGROUP_4181
    267  1.5.4.2  nathanw #define SYSINT2_REG_W		VR4181_SYSINT2_REG_W
    268  1.5.4.2  nathanw #define MSYSINT2_REG_W		VR4181_MSYSINT2_REG_W
    269  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    270  1.5.4.2  nathanw #endif
    271  1.5.4.2  nathanw 
    272  1.5.4.2  nathanw #define SYSINT2_INT31			(1<<15)
    273  1.5.4.2  nathanw #define SYSINT2_INT30			(1<<14)
    274  1.5.4.2  nathanw #define SYSINT2_INT29			(1<<13)
    275  1.5.4.2  nathanw #define SYSINT2_INT28			(1<<12)
    276  1.5.4.2  nathanw #define SYSINT2_INT27			(1<<11)
    277  1.5.4.2  nathanw #define SYSINT2_INT26			(1<<10)
    278  1.5.4.2  nathanw #define SYSINT2_INT25			(1<<9)
    279  1.5.4.2  nathanw #define SYSINT2_BCU			(1<<9)  /* BCU intr (=vr4122) */
    280  1.5.4.2  nathanw #define SYSINT2_INT24			(1<<8)
    281  1.5.4.2  nathanw #define SYSINT2_CSI			(1<<8)  /* CSI intr (=vr4122) */
    282  1.5.4.2  nathanw #define SYSINT2_INT23			(1<<7)
    283  1.5.4.2  nathanw #define SYSINT2_SCU			(1<<7)	/* SCU intr (=vr4122) */
    284  1.5.4.2  nathanw #define SYSINT2_INT22			(1<<6)
    285  1.5.4.2  nathanw #define SYSINT2_PCI			(1<<6)	/* PCI intr (=vr4122) */
    286  1.5.4.2  nathanw #define SYSINT2_LCD			(1<<6)	/* LCD intr (=vr4181) */
    287  1.5.4.2  nathanw #define SYSINT2_DSIU			(1<<5)	/* DSUI intr */
    288  1.5.4.2  nathanw #define SYSINT2_DCU81			(1<<5)	/* DCU intr (=4181) */
    289  1.5.4.2  nathanw #define SYSINT2_FIR			(1<<4)	/* FIR intr */
    290  1.5.4.2  nathanw #define SYSINT2_TCLK			(1<<3)	/* TClock Counter intr */
    291  1.5.4.2  nathanw #define SYSINT2_CSI81			(1<<3)	/* CSI intr (=4181) */
    292  1.5.4.2  nathanw #define SYSINT2_HSP			(1<<2)	/* HSP intr (4122>=4102)*/
    293  1.5.4.2  nathanw #define SYSINT2_ECU			(1<<2)	/* EUC intr (=4181)*/
    294  1.5.4.2  nathanw #define SYSINT2_LED			(1<<1)	/* LED intr */
    295  1.5.4.2  nathanw #define SYSINT2_RTCL2			(1<<0)	/* RTCLong2 intr */
    296  1.5.4.2  nathanw 
    297  1.5.4.2  nathanw 
    298  1.5.4.2  nathanw /* GIUINTH & MGIUINTH */
    299  1.5.4.2  nathanw #define VR4102_GIUINT_H_REG_W	0x182	/* Level2 GIU intr reg High */
    300  1.5.4.2  nathanw #define VR4102_MGIUINT_H_REG_W	0x188	/* Level2 Mask GIU intr reg High */
    301  1.5.4.2  nathanw #define VR4122_GIUINT_H_REG_W	0x022	/* Level2 GIU intr reg High */
    302  1.5.4.2  nathanw #define VR4122_MGIUINT_H_REG_W	0x028	/* Level2 Mask GIU intr reg High */
    303  1.5.4.2  nathanw #define VR4181_GIUINT_H_REG_W	ICU_NO_REG_W	/* Level2 GIU intr reg High */
    304  1.5.4.2  nathanw #define VR4181_MGIUINT_H_REG_W	ICU_NO_REG_W	/* Level2 Mask GIU intr reg High */
    305  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    306  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    307  1.5.4.2  nathanw #define GIUINT_H_REG_W		VR4102_GIUINT_H_REG_W
    308  1.5.4.2  nathanw #define MGIUINT_H_REG_W		VR4102_MGIUINT_H_REG_W
    309  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    310  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    311  1.5.4.2  nathanw #define GIUINT_H_REG_W		VR4122_GIUINT_H_REG_W
    312  1.5.4.2  nathanw #define MGIUINT_H_REG_W		VR4122_MGIUINT_H_REG_W
    313  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    314  1.5.4.2  nathanw #if defined VRGROUP_4181
    315  1.5.4.2  nathanw #define GIUINT_H_REG_W		VR4181_GIUINT_H_REG_W
    316  1.5.4.2  nathanw #define MGIUINT_H_REG_W		VR4181_MGIUINT_H_REG_W
    317  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    318  1.5.4.2  nathanw #endif
    319  1.5.4.2  nathanw 
    320  1.5.4.2  nathanw #define		GIUINT_GPIO31		(1<<15)	/* GPIO 31 */
    321  1.5.4.2  nathanw #define		GIUINT_GPIO30		(1<<14)	/* GPIO 30 */
    322  1.5.4.2  nathanw #define		GIUINT_GPIO29		(1<<13)	/* GPIO 29 */
    323  1.5.4.2  nathanw #define		GIUINT_GPIO28		(1<<12)	/* GPIO 28 */
    324  1.5.4.2  nathanw #define		GIUINT_GPIO27		(1<<11)	/* GPIO 27 */
    325  1.5.4.2  nathanw #define		GIUINT_GPIO26		(1<<10)	/* GPIO 26 */
    326  1.5.4.2  nathanw #define		GIUINT_GPIO25		(1<<9)	/* GPIO 25 */
    327  1.5.4.2  nathanw #define		GIUINT_GPIO24		(1<<8)	/* GPIO 24 */
    328  1.5.4.2  nathanw #define		GIUINT_GPIO23		(1<<7)	/* GPIO 23 */
    329  1.5.4.2  nathanw #define		GIUINT_GPIO22		(1<<6)	/* GPIO 22 */
    330  1.5.4.2  nathanw #define		GIUINT_GPIO21		(1<<5)	/* GPIO 21 */
    331  1.5.4.2  nathanw #define		GIUINT_GPIO20		(1<<4)	/* GPIO 20 */
    332  1.5.4.2  nathanw #define		GIUINT_GPIO19		(1<<3)	/* GPIO 19 */
    333  1.5.4.2  nathanw #define		GIUINT_GPIO18		(1<<2)	/* GPIO 18 */
    334  1.5.4.2  nathanw #define		GIUINT_GPIO17		(1<<1)	/* GPIO 17 */
    335  1.5.4.2  nathanw #define		GIUINT_GPIO16		(1)	/* GPIO 16 */
    336  1.5.4.2  nathanw 
    337  1.5.4.2  nathanw 
    338  1.5.4.2  nathanw /* FIRINT & MFIRINT */
    339  1.5.4.2  nathanw #define VR4102_FIRINT_REG_W	0x184	/* Level2 FIR intr reg */
    340  1.5.4.2  nathanw #define VR4102_MFIRINT_REG_W	0x18a	/* Level2 Mask FIR intr reg */
    341  1.5.4.2  nathanw #define VR4122_FIRINT_REG_W	0x024	/* Level2 FIR intr reg */
    342  1.5.4.2  nathanw #define VR4122_MFIRINT_REG_W	0x02a	/* Level2 Mask FIR intr reg */
    343  1.5.4.2  nathanw #define VR4181_FIRINT_REG_W	ICU_NO_REG_W	/* Level2 FIR intr reg */
    344  1.5.4.2  nathanw #define VR4181_MFIRINT_REG_W	ICU_NO_REG_W	/* Level2 Mask FIR intr reg */
    345  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    346  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    347  1.5.4.2  nathanw #define FIRINT_REG_W		VR4102_FIRINT_REG_W
    348  1.5.4.2  nathanw #define MFIRINT_REG_W		VR4102_MFIRINT_REG_W
    349  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    350  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    351  1.5.4.2  nathanw #define FIRINT_REG_W		VR4122_FIRINT_REG_W
    352  1.5.4.2  nathanw #define MFIRINT_REG_W		VR4122_MFIRINT_REG_W
    353  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    354  1.5.4.2  nathanw #if defined VRGROUP_4181
    355  1.5.4.2  nathanw #define FIRINT_REG_W		VR4181_FIRINT_REG_W
    356  1.5.4.2  nathanw #define MFIRINT_REG_W		VR4181_MFIRINT_REG_W
    357  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    358  1.5.4.2  nathanw #endif
    359  1.5.4.2  nathanw 
    360  1.5.4.2  nathanw #define		FIRINT_FIR		(1<<4)	/* FIR intr */
    361  1.5.4.2  nathanw #define		FIRINT_RECV2		(1<<3)	/* FIR DMA buf recv buffer2 */
    362  1.5.4.2  nathanw #define		FIRINT_TRNS2		(1<<2)	/* FIR DMA buf transmit buffer2 */
    363  1.5.4.2  nathanw #define		FIRINT_RECV1		(1<<1)	/* FIR DMA buf recv buffer1 */
    364  1.5.4.2  nathanw #define		FIRINT_TRNS1		(1)	/* FIR DMA buf transmit buffer1 */
    365  1.5.4.2  nathanw 
    366  1.5.4.2  nathanw 
    367  1.5.4.2  nathanw /* PCIINT & MPCIINT */
    368  1.5.4.2  nathanw #define VR4102_PCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr reg */
    369  1.5.4.2  nathanw #define VR4102_MPCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr mask */
    370  1.5.4.2  nathanw #define VR4122_PCIINT_REG_W	0x2c	/* Level2 PCI intr reg */
    371  1.5.4.2  nathanw #define VR4122_MPCIINT_REG_W	0x32	/* Level2 PCI intr mask */
    372  1.5.4.2  nathanw #define VR4181_PCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr reg */
    373  1.5.4.2  nathanw #define VR4181_MPCIINT_REG_W	ICU_NO_REG_W	/* Level2 PCI intr mask */
    374  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    375  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    376  1.5.4.2  nathanw #define PCIINT_REG_W		VR4102_PCIINT_REG_W
    377  1.5.4.2  nathanw #define MPCIINT_REG_W		VR4102_MPCIINT_REG_W
    378  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    379  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    380  1.5.4.2  nathanw #define PCIINT_REG_W		VR4122_PCIINT_REG_W
    381  1.5.4.2  nathanw #define MPCIINT_REG_W		VR4122_MPCIINT_REG_W
    382  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    383  1.5.4.2  nathanw #if defined VRGROUP_4181
    384  1.5.4.2  nathanw #define PCIINT_REG_W		VR4181_PCIINT_REG_W
    385  1.5.4.2  nathanw #define MPCIINT_REG_W		VR4181_MPCIINT_REG_W
    386  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    387  1.5.4.2  nathanw #endif
    388  1.5.4.2  nathanw 
    389  1.5.4.2  nathanw #define		PCIINT_INT0		(1)	/* PCI INT 0 */
    390  1.5.4.2  nathanw 
    391  1.5.4.2  nathanw 
    392  1.5.4.2  nathanw /* SCUINT & MSCUINT */
    393  1.5.4.2  nathanw #define VR4102_SCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr reg */
    394  1.5.4.2  nathanw #define VR4102_MSCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr mask */
    395  1.5.4.2  nathanw #define VR4122_SCUINT_REG_W	0x2e	/* Level2 SCU intr reg */
    396  1.5.4.2  nathanw #define VR4122_MSCUINT_REG_W	0x34	/* Level2 SCU intr mask */
    397  1.5.4.2  nathanw #define VR4181_SCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr reg */
    398  1.5.4.2  nathanw #define VR4181_MSCUINT_REG_W	ICU_NO_REG_W	/* Level2 SCU intr mask */
    399  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    400  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    401  1.5.4.2  nathanw #define SCUINT_REG_W		VR4102_SCUINT_REG_W
    402  1.5.4.2  nathanw #define MSCUINT_REG_W		VR4102_MSCUINT_REG_W
    403  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    404  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    405  1.5.4.2  nathanw #define SCUINT_REG_W		VR4122_SCUINT_REG_W
    406  1.5.4.2  nathanw #define MSCUINT_REG_W		VR4122_MSCUINT_REG_W
    407  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    408  1.5.4.2  nathanw #if defined VRGROUP_4181
    409  1.5.4.2  nathanw #define SCUINT_REG_W		VR4181_SCUINT_REG_W
    410  1.5.4.2  nathanw #define MSCUINT_REG_W		VR4181_MSCUINT_REG_W
    411  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    412  1.5.4.2  nathanw #endif
    413  1.5.4.2  nathanw 
    414  1.5.4.2  nathanw #define		SCUINT_INT0		(1)	/* SCU INT 0 */
    415  1.5.4.2  nathanw 
    416  1.5.4.2  nathanw 
    417  1.5.4.2  nathanw /* CSIINT & MCSIINT */
    418  1.5.4.2  nathanw #define VR4102_CSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr reg */
    419  1.5.4.2  nathanw #define VR4102_MCSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr mask */
    420  1.5.4.2  nathanw #define VR4122_CSIINT_REG_W	0x30	/* Level2 CSI intr reg */
    421  1.5.4.2  nathanw #define VR4122_MCSIINT_REG_W	0x36	/* Level2 CSI intr mask */
    422  1.5.4.2  nathanw #define VR4181_CSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr reg */
    423  1.5.4.2  nathanw #define VR4181_MCSIINT_REG_W	ICU_NO_REG_W	/* Level2 CSI intr mask */
    424  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    425  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    426  1.5.4.2  nathanw #define CSIINT_REG_W		VR4102_CSIINT_REG_W
    427  1.5.4.2  nathanw #define MCSIINT_REG_W		VR4102_MCSIINT_REG_W
    428  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    429  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    430  1.5.4.2  nathanw #define CSIINT_REG_W		VR4122_CSIINT_REG_W
    431  1.5.4.2  nathanw #define MCSIINT_REG_W		VR4122_MCSIINT_REG_W
    432  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    433  1.5.4.2  nathanw #if defined VRGROUP_4181
    434  1.5.4.2  nathanw #define CSIINT_REG_W		VR4181_CSIINT_REG_W
    435  1.5.4.2  nathanw #define MCSIINT_REG_W		VR4181_MCSIINT_REG_W
    436  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    437  1.5.4.2  nathanw #endif
    438  1.5.4.2  nathanw 
    439  1.5.4.2  nathanw #define		CSIINT_TRPAGE2		(1<<6)	/* DMA send page 2 intr */
    440  1.5.4.2  nathanw #define		CSIINT_TRPAGE1		(1<<5)	/* DMA send page 1 intr */
    441  1.5.4.2  nathanw #define		CSIINT_TREND		(1<<4)	/* send every data intr */
    442  1.5.4.2  nathanw #define		CSIINT_TREMPTY		(1<<3)	/* send FIFO empty intr */
    443  1.5.4.2  nathanw #define		CSIINT_RCPAGE2		(1<<2)	/* DMA recv page 2 intr */
    444  1.5.4.2  nathanw #define		CSIINT_RCPAGE1		(1<<1)	/* DMA recv page 1 intr */
    445  1.5.4.2  nathanw #define		CSIINT_RCOVER		(1)	/* recv FIFO overrun intr */
    446  1.5.4.2  nathanw 
    447  1.5.4.2  nathanw 
    448  1.5.4.2  nathanw /* BCUINT & MBCUINT */
    449  1.5.4.2  nathanw #define VR4102_BCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr reg */
    450  1.5.4.2  nathanw #define VR4102_MBCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr mask */
    451  1.5.4.2  nathanw #define VR4122_BCUINT_REG_W	0x38	/* Level2 BCU intr reg */
    452  1.5.4.2  nathanw #define VR4122_MBCUINT_REG_W	0x3a	/* Level2 BCU intr mask */
    453  1.5.4.2  nathanw #define VR4181_BCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr reg */
    454  1.5.4.2  nathanw #define VR4181_MBCUINT_REG_W	ICU_NO_REG_W	/* Level2 BCU intr mask */
    455  1.5.4.2  nathanw #if defined SINGLE_VRIP_BASE
    456  1.5.4.2  nathanw #if defined VRGROUP_4102_4121
    457  1.5.4.2  nathanw #define BCUINT_REG_W		VR4102_BCUINT_REG_W
    458  1.5.4.2  nathanw #define MBCUINT_REG_W		VR4102_MBCUINT_REG_W
    459  1.5.4.2  nathanw #endif /* VRGROUP_4102_4121 */
    460  1.5.4.2  nathanw #if defined VRGROUP_4122_4131
    461  1.5.4.2  nathanw #define BCUINT_REG_W		VR4122_BCUINT_REG_W
    462  1.5.4.2  nathanw #define MBCUINT_REG_W		VR4122_MBCUINT_REG_W
    463  1.5.4.2  nathanw #endif /* VRGROUP_4122_4131 */
    464  1.5.4.2  nathanw #if defined VRGROUP_4181
    465  1.5.4.2  nathanw #define BCUINT_REG_W		VR4181_BCUINT_REG_W
    466  1.5.4.2  nathanw #define MBCUINT_REG_W		VR4181_MBCUINT_REG_W
    467  1.5.4.2  nathanw #endif /* VRGROUP_4181 */
    468  1.5.4.2  nathanw #endif
    469  1.5.4.2  nathanw 
    470  1.5.4.2  nathanw #define		BCUINT_INT		(1)	/* BCU INT */
    471  1.5.4.2  nathanw 
    472  1.5.4.2  nathanw /* END icureg.h */
    473