NetBSD/sys/arch/hpcmips/vr/icureg.h

200 lines
8.1 KiB
C

/* $NetBSD: icureg.h,v 1.1.1.1 1999/09/16 12:23:32 takemura Exp $ */
/*-
* Copyright (c) 1999 Shin Takemura. All rights reserved.
* Copyright (c) 1999 SATO Kazumi. All rights reserved.
* Copyright (c) 1999 PocketBSD Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the PocketBSD project
* and its contributors.
* 4. Neither the name of the project nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*/
/*
* ICU (Interrupt Control UNIT) Registers definitions
* start 0x0B000080
*/
#define SYSINT1_REG_W 0x000 /* Level1 System intr reg 1 */
#define MSYSINT1_REG_W 0x00c /* Level1 Mask System intr reg 1 */
#define SYSINT1_INT15 (1<<15)
#define SYSINT1_INT14 (1<<14)
#define SYSINT1_DOZEPIU (1<<13) /* PIU intr during Suspend */
#define SYSINT1_INT12 (1<<12)
#define SYSINT1_SOFT (1<<11) /* Software intr */
#define SYSINT1_WRBERR (1<<10) /* Bus error intr */
#define SYSINT1_SIU (1<<9) /* SIU intr */
#define SYSINT1_GIU (1<<8) /* GIU intr */
#define SYSINT1_KIU (1<<7) /* KIU intr */
#define SYSINT1_AIU (1<<6) /* AIU intr */
#define SYSINT1_PIU (1<<5) /* PIU intr */
#define SYSINT1_INT4 (1<<4)
#define SYSINT1_ETIMER (1<<3) /* ETIMER intr */
#define SYSINT1_RTCL1 (1<<2) /* RTClong1 intr */
#define SYSINT1_POWER (1<<1) /* PowerSW intr */
#define SYSINT1_BAT (1<<0) /* Battery intr */
#define PIUINT_REG_W 0x002 /* Level2 PIU intr reg */
#define MPIUINT_REG_W 0x00e /* Level2 Mask PIU intr reg */
#define PIUINT_PADCMD (1<<6) /* PIU command scan intr */
#define PIUINT_PADADP (1<<5) /* PIU AD port scan intr */
#define PIUINT_PADPAGE1 (1<<4) /* PIU data page 1 intr */
#define PIUINT_PADPAGE0 (1<<3) /* PIU data page 0 intr */
#define PIUINT_PADLOST (1<<2) /* A/D data timeout intr */
#define PIUINT_PENCHG (1) /* Touch Panel contact intr */
#define AIUINT_REG_W 0x004 /* Level2 AIU intr reg */
#define MAIUINT_REG_W 0x010 /* Level2 Mask AIU intr reg */
#define AIUINT_INTMEND (1<<11) /* Audio input DMA buffer 2 page */
#define AIUINT_INTM (1<<10) /* Audio input DMA buffer 1 page */
#define AIUINT_INTMIDLE (1<<9) /* Audio input idle intr */
#define AIUINT_INTMST (1<<8) /* Audio input receive completion intr */
#define AIUINT_INTSEND (1<<3) /* Audio output buffer 2 page */
#define AIUINT_INTS (1<<2) /* Audio output buffer 1 page */
#define AIUINT_INTSIDLE (1<<1) /* Audio output idle intr */
#define KIUINT_REG_W 0x006 /* Level2 KIU intr reg */
#define MKIUINT_REG_W 0x012 /* Level2 Mask KIU intr reg */
#define KIUINT_KDATLOST (1<<2) /* Key scan data lost */
#define KIUINT_KDATRDY (1<<1) /* Key scan data complete */
#define KIUINT_SCANINT (1) /* Key input detect intr */
#define GIUINT_L_REG_W 0x008 /* Level2 GIU intr reg Low */
#define MGIUINT_L_REG_W 0x014 /* Level2 Mask GIU intr reg Low */
#define GIUINT_GPIO15 (1<<15) /* GPIO 15 */
#define GIUINT_GPIO14 (1<<14) /* GPIO 14 */
#define GIUINT_GPIO13 (1<<13) /* GPIO 13 */
#define GIUINT_GPIO12 (1<<12) /* GPIO 12 */
#define GIUINT_GPIO11 (1<<11) /* GPIO 11 */
#define GIUINT_GPIO10 (1<<10) /* GPIO 10 */
#define GIUINT_GPIO9 (1<<9) /* GPIO 9 */
#define GIUINT_GPIO8 (1<<8) /* GPIO 8 */
#define GIUINT_GPIO7 (1<<7) /* GPIO 7 */
#define GIUINT_GPIO6 (1<<6) /* GPIO 6 */
#define GIUINT_GPIO5 (1<<5) /* GPIO 5 */
#define GIUINT_GPIO4 (1<<4) /* GPIO 4 */
#define GIUINT_GPIO3 (1<<3) /* GPIO 3 */
#define GIUINT_GPIO2 (1<<2) /* GPIO 2 */
#define GIUINT_GPIO1 (1<<1) /* GPIO 1 */
#define GIUINT_GPIO0 (1) /* GPIO 0 */
#define DSIUINT_REG_W 0x00a /* Level2 DSIU intr reg */
#define MDSIUINT_REG_W 0x016 /* Level2 Mask DSIU intr reg */
#define DSIUINT_DCTS (1<<11) /* DCTS# change */
#define DSIUINT_SER0 (1<<10) /* Debug serial receive error */
#define DSIUINT_SR0 (1<<9) /* Debug serial receive */
#define DSIUINT_ST0 (1<<8) /* Debug serial transmit */
#define NMI_REG_W 0x018 /* NMI reg */
#define LOWBATT_NMIORINT (1) /* Low battery type */
#define LOWBATT_INT0 (1) /* Low battery int 0 */
#define LOWBATT_NMI (0) /* Low battery NMI */
#define SOFTINT_REG_W 0x01a /* Software intr reg */
#define SOFTINT_MASK3 (1<<3) /* Softint3 mask */
#define SOFTINT_SET3 (1<<3) /* Softint3 set */
#define SOFTINT_CLEAR3 (0<<3) /* Softint3 clear */
#define SOFTINT_MASK2 (1<<2) /* Softint2 mask */
#define SOFTINT_SET2 (1<<2) /* Softint2 set */
#define SOFTINT_CLEAR2 (0<<2) /* Softint2 clear */
#define SOFTINT_MASK1 (1<<1) /* Softint1 mask */
#define SOFTINT_SET1 (1<<1) /* Softint1 set */
#define SOFTINT_CLEAR1 (0<<1) /* Softint1 clear */
#define SOFTINT_MASK0 (1) /* Softint0 mask */
#define SOFTINT_SET0 (1) /* Softint0 set */
#define SOFTINT_CLEAR0 (0) /* Softint0 clear */
#define SYSINT2_REG_W 0x180 /* Level1 System intr reg 2 */
#define MSYSINT2_REG_W 0x186 /* Level1 Mask System intr reg 2 */
#define SYSINT2_INT31 (1<<15)
#define SYSINT2_INT30 (1<<14)
#define SYSINT2_INT29 (1<<13)
#define SYSINT2_INT28 (1<<12)
#define SYSINT2_INT27 (1<<11)
#define SYSINT2_INT26 (1<<10)
#define SYSINT2_INT25 (1<<9)
#define SYSINT2_INT24 (1<<8)
#define SYSINT2_INT23 (1<<7)
#define SYSINT2_INT22 (1<<6)
#define SYSINT2_DSIU (1<<5) /* DSUI intr */
#define SYSINT2_FIR (1<<4) /* FIR intr */
#define SYSINT2_TCLK (1<<3) /* TClock Counter intr */
#define SYSINT2_HSP (1<<2) /* HSP intr */
#define SYSINT2_LED (1<<1) /* LED intr */
#define SYSINT2_RTCL2 (1<<0) /* RTCLong2 intr */
#define GIUINT_H_REG_W 0x182 /* Level2 GIU intr reg High */
#define MGIUINT_H_REG_W 0x188 /* Level2 Mask GIU intr reg High */
#define GIUINT_GPIO31 (1<<15) /* GPIO 31 */
#define GIUINT_GPIO30 (1<<14) /* GPIO 30 */
#define GIUINT_GPIO29 (1<<13) /* GPIO 29 */
#define GIUINT_GPIO28 (1<<12) /* GPIO 28 */
#define GIUINT_GPIO27 (1<<11) /* GPIO 27 */
#define GIUINT_GPIO26 (1<<10) /* GPIO 26 */
#define GIUINT_GPIO25 (1<<9) /* GPIO 25 */
#define GIUINT_GPIO24 (1<<8) /* GPIO 24 */
#define GIUINT_GPIO23 (1<<7) /* GPIO 23 */
#define GIUINT_GPIO22 (1<<6) /* GPIO 22 */
#define GIUINT_GPIO21 (1<<5) /* GPIO 21 */
#define GIUINT_GPIO20 (1<<4) /* GPIO 20 */
#define GIUINT_GPIO19 (1<<3) /* GPIO 19 */
#define GIUINT_GPIO18 (1<<2) /* GPIO 18 */
#define GIUINT_GPIO17 (1<<1) /* GPIO 17 */
#define GIUINT_GPIO16 (1) /* GPIO 16 */
#define FIRINT_REG_W 0x184 /* Level2 FIR intr reg */
#define MFIRINT_REG_W 0x18a /* Level2 Mask FIR intr reg */
#define FIRINT_FIR (1<<4) /* FIR intr */
#define FIRINT_RECV2 (1<<3) /* FIR DMA buf recv buffer2 */
#define FIRINT_TRNS2 (1<<2) /* FIR DMA buf transmit buffer2 */
#define FIRINT_RECV1 (1<<1) /* FIR DMA buf recv buffer1 */
#define FIRINT_TRNS1 (1) /* FIR DMA buf transmit buffer1 */
/* END icureg.h */