Home | History | Annotate | Line # | Download | only in include
intcreg.h revision 1.4
      1 /*	$NetBSD: intcreg.h,v 1.4 2002/02/28 01:56:58 uch Exp $	*/
      2 
      3 /*-
      4  * Copyright (C) 1999 SAITOH Masanobu.  All rights reserved.
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  * 3. The name of the author may not be used to endorse or promote products
     15  *    derived from this software without specific prior written permission.
     16  *
     17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  */
     28 
     29 #ifndef _SH3_INTCREG_H_
     30 #define _SH3_INTCREG_H_
     31 #include <sh3/devreg.h>
     32 
     33 /*
     34  * INTC
     35  */
     36 /* SH3 SH7708*, SH7709* common */
     37 #define SH3_ICR0		0xfffffee0	/* 16bit */
     38 #define SH3_IPRA		0xfffffee2	/* 16bit */
     39 #define SH3_IPRB		0xfffffee4	/* 16bit */
     40 
     41 /* SH7709, SH7709A only */
     42 #define SH7709_ICR1		0xa4000010	/* 16bit */
     43 #define SH7709_ICR2		0xa4000012	/* 16bit */
     44 #define SH7709_PINTER		0xa4000014	/* 16bit */
     45 #define SH7709_IPRC		0xa4000016	/* 16bit */
     46 #define SH7709_IPRD		0xa4000018	/* 16bit */
     47 #define SH7709_IPRE		0xa400001a	/* 16bit */
     48 #define SH7709_IRR0		0xa4000004	/* 8bit */
     49 #define SH7709_IRR1		0xa4000006	/* 8bit */
     50 #define SH7709_IRR2		0xa4000008	/* 8bit */
     51 
     52 #define IPRC_IRQ3_MASK		0xf000
     53 #define IPRC_IRQ2_MASK		0x0f00
     54 #define IPRC_IRQ1_MASK		0x00f0
     55 #define IPRC_IRQ0_MASK		0x000f
     56 
     57 #define IPRD_PINT07_MASK	0xf000
     58 #define IPRD_PINT8F_MASK	0x0f00
     59 #define IPRD_IRQ5_MASK		0x00f0
     60 #define IPRD_IRQ4_MASK		0x000f
     61 
     62 #define IPRE_DMAC_MASK		0xf000
     63 #define IPRE_IRDA_MASK		0x0f00
     64 #define IPRE_SCIF_MASK		0x00f0
     65 #define IPRE_ADC_MASK		0x000f
     66 
     67 
     68 /* SH4 */
     69 #define SH4_ICR			0xffd00000	/* 16bit */
     70 #define SH4_IPRA		0xffd00004	/* 16bit */
     71 #define SH4_IPRB		0xffd00008	/* 16bit */
     72 #define SH4_IPRC		0xffd0000c	/* 16bit */
     73 
     74 #define IPRC_GPIO_MASK		0xf000
     75 #define IPRC_DMAC_MASK		0x0f00
     76 #define IPRC_SCIF_MASK		0x00f0
     77 #define IPRC_HUDI_MASK		0x000f
     78 
     79 #define IPRA_TMU0_MASK		0xf000
     80 #define IPRA_TMU1_MASK		0x0f00
     81 #define IPRA_TMU2_MASK		0x00f0
     82 #define IPRA_RTC_MASK		0x000f
     83 
     84 #define IPRB_WDT_MASK		0xf000
     85 #define IPRB_REF_MASK		0x0f00
     86 #define IPRB_SCI_MASK		0x00f0
     87 
     88 #endif /* !_SH3_INTCREG_H_ */
     89