Home | History | Annotate | Line # | Download | only in include
exception.h revision 1.1.2.1
      1 /*	$NetBSD: exception.h,v 1.1.2.1 2002/04/01 07:42:31 nathanw Exp $	*/
      2 
      3 /*-
      4  * Copyright (c) 2002 The NetBSD Foundation, Inc.
      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 by the NetBSD
     18  *        Foundation, Inc. and its contributors.
     19  * 4. Neither the name of The NetBSD Foundation nor the names of its
     20  *    contributors may be used to endorse or promote products derived
     21  *    from this software without specific prior written permission.
     22  *
     23  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     24  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     25  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     26  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     27  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     28  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     29  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     30  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     31  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     32  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     33  * POSSIBILITY OF SUCH DAMAGE.
     34  */
     35 
     36 #ifndef _SH3_EXCEPTION_H_
     37 #define	_SH3_EXCEPTION_H_
     38 #include <sh3/devreg.h>
     39 
     40 #define SH3_TRA			0xffffffd0	/* 32bit */
     41 #define SH3_EXPEVT		0xffffffd4	/* 32bit */
     42 #define SH3_INTEVT		0xffffffd8	/* 32bit */
     43 #define SH7709_INTEVT2		0xa4000000	/* 32bit */
     44 
     45 #define SH4_TRA			0xff000020	/* 32bit */
     46 #define SH4_EXPEVT		0xff000024	/* 32bit */
     47 #define SH4_INTEVT		0xff000028	/* 32bit */
     48 
     49 #define	SH_INTEVT_NMI		0x1c0
     50 
     51 #define	SH_INTEVT_TMU0_TUNI0	0x400
     52 #define	SH_INTEVT_TMU1_TUNI1	0x420
     53 #define	SH_INTEVT_TMU2_TUNI2	0x440
     54 #define	SH_INTEVT_TMU2_TICPI2	0x460
     55 
     56 #define	SH_INTEVT_SCI_ERI	0x4e0
     57 #define	SH_INTEVT_SCI_RXI	0x500
     58 #define	SH_INTEVT_SCI_TXI	0x520
     59 #define	SH_INTEVT_SCI_TEI	0x540
     60 
     61 #define	SH_INTEVT_WDT_ITI	0x560
     62 
     63 #define	SH_INTEVT_IRL9		0x320
     64 #define	SH_INTEVT_IRL11		0x360
     65 #define	SH_INTEVT_IRL13		0x3a0
     66 
     67 #define	SH4_INTEVT_SCIF_ERI	0x700
     68 #define	SH4_INTEVT_SCIF_RXI	0x720
     69 #define	SH4_INTEVT_SCIF_BRI	0x740
     70 #define	SH4_INTEVT_SCIF_TXI	0x760
     71 
     72 #define	SH7709_INTEVT2_SCIF_ERI	0x900
     73 #define	SH7709_INTEVT2_SCIF_RXI	0x920
     74 #define	SH7709_INTEVT2_SCIF_BRI	0x940
     75 #define	SH7709_INTEVT2_SCIF_TXI	0x960
     76 
     77 #define	SH7709_INTEVT2_IRQ4	0x680
     78 
     79 #ifndef _LOCORE
     80 #if defined(SH3) && defined(SH4)
     81 extern u_int32_t __sh_TRA;
     82 extern u_int32_t __sh_EXPEVT;
     83 extern u_int32_t __sh_INTEVT;
     84 #endif /* SH3 && SH4 */
     85 #endif /* !_LOCORE */
     86 #endif /* !_SH3_EXCEPTION_H_ */
     87