1 1.10 christos /* $NetBSD: intcreg.h,v 1.10 2005/12/11 12:18:58 christos Exp $ */ 2 1.1 itojun 3 1.1 itojun /*- 4 1.1 itojun * Copyright (C) 1999 SAITOH Masanobu. All rights reserved. 5 1.1 itojun * 6 1.1 itojun * Redistribution and use in source and binary forms, with or without 7 1.1 itojun * modification, are permitted provided that the following conditions 8 1.1 itojun * are met: 9 1.1 itojun * 1. Redistributions of source code must retain the above copyright 10 1.1 itojun * notice, this list of conditions and the following disclaimer. 11 1.1 itojun * 2. Redistributions in binary form must reproduce the above copyright 12 1.1 itojun * notice, this list of conditions and the following disclaimer in the 13 1.1 itojun * documentation and/or other materials provided with the distribution. 14 1.1 itojun * 3. The name of the author may not be used to endorse or promote products 15 1.1 itojun * derived from this software without specific prior written permission. 16 1.1 itojun * 17 1.1 itojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 1.1 itojun * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 1.1 itojun * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 1.1 itojun * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 1.1 itojun * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 1.1 itojun * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 1.1 itojun * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 1.1 itojun * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 1.1 itojun * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 1.1 itojun * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 1.1 itojun */ 28 1.1 itojun 29 1.4 uch #ifndef _SH3_INTCREG_H_ 30 1.6 uch #define _SH3_INTCREG_H_ 31 1.4 uch #include <sh3/devreg.h> 32 1.1 itojun 33 1.6 uch /* 34 1.4 uch * INTC 35 1.1 itojun */ 36 1.4 uch /* SH3 SH7708*, SH7709* common */ 37 1.6 uch #define SH3_ICR0 0xfffffee0 /* 16bit */ 38 1.6 uch #define SH3_IPRA 0xfffffee2 /* 16bit */ 39 1.6 uch #define SH3_IPRB 0xfffffee4 /* 16bit */ 40 1.4 uch 41 1.4 uch /* SH7709, SH7709A only */ 42 1.6 uch #define SH7709_ICR1 0xa4000010 /* 16bit */ 43 1.6 uch #define SH7709_ICR2 0xa4000012 /* 16bit */ 44 1.6 uch #define SH7709_PINTER 0xa4000014 /* 16bit */ 45 1.6 uch #define SH7709_IPRC 0xa4000016 /* 16bit */ 46 1.6 uch #define SH7709_IPRD 0xa4000018 /* 16bit */ 47 1.6 uch #define SH7709_IPRE 0xa400001a /* 16bit */ 48 1.6 uch #define SH7709_IRR0 0xa4000004 /* 8bit */ 49 1.6 uch #define SH7709_IRR1 0xa4000006 /* 8bit */ 50 1.6 uch #define SH7709_IRR2 0xa4000008 /* 8bit */ 51 1.6 uch 52 1.6 uch #define IPRC_IRQ3_MASK 0xf000 53 1.6 uch #define IPRC_IRQ2_MASK 0x0f00 54 1.6 uch #define IPRC_IRQ1_MASK 0x00f0 55 1.6 uch #define IPRC_IRQ0_MASK 0x000f 56 1.6 uch 57 1.6 uch #define IPRD_PINT07_MASK 0xf000 58 1.6 uch #define IPRD_PINT8F_MASK 0x0f00 59 1.6 uch #define IPRD_IRQ5_MASK 0x00f0 60 1.6 uch #define IPRD_IRQ4_MASK 0x000f 61 1.6 uch 62 1.6 uch #define IPRE_DMAC_MASK 0xf000 63 1.6 uch #define IPRE_IRDA_MASK 0x0f00 64 1.6 uch #define IPRE_SCIF_MASK 0x00f0 65 1.6 uch #define IPRE_ADC_MASK 0x000f 66 1.7 uwe 67 1.7 uwe #define IRR0_PINT8F 0x80 68 1.7 uwe #define IRR0_PINT07 0x40 69 1.7 uwe #define IRR0_IRQ5 0x20 70 1.7 uwe #define IRR0_IRQ4 0x10 71 1.7 uwe #define IRR0_IRQ3 0x08 72 1.7 uwe #define IRR0_IRQ2 0x04 73 1.7 uwe #define IRR0_IRQ1 0x02 74 1.7 uwe #define IRR0_IRQ0 0x01 75 1.4 uch 76 1.4 uch 77 1.4 uch /* SH4 */ 78 1.6 uch #define SH4_ICR 0xffd00000 /* 16bit */ 79 1.6 uch #define SH4_IPRA 0xffd00004 /* 16bit */ 80 1.6 uch #define SH4_IPRB 0xffd00008 /* 16bit */ 81 1.6 uch #define SH4_IPRC 0xffd0000c /* 16bit */ 82 1.5 uch #define SH4_IPRD 0xffd00010 /* 16bit */ 83 1.8 christos #define SH4_INTPRI00 0xfe080000 /* 32bit */ 84 1.8 christos #define SH4_INTREQ00 0xfe080020 /* 32bit */ 85 1.8 christos #define SH4_INTMSK00 0xfe080040 /* 32bit */ 86 1.8 christos #define SH4_INTMSKCLR00 0xfe080060 /* 32bit */ 87 1.4 uch 88 1.6 uch #define IPRC_GPIO_MASK 0xf000 89 1.6 uch #define IPRC_DMAC_MASK 0x0f00 90 1.6 uch #define IPRC_SCIF_MASK 0x00f0 91 1.6 uch #define IPRC_HUDI_MASK 0x000f 92 1.6 uch 93 1.8 christos #define IPRD_IRL0_MASK 0xf000 94 1.8 christos #define IPRD_IRL1_MASK 0x0f00 95 1.8 christos #define IPRD_IRL2_MASK 0x00f0 96 1.8 christos #define IPRD_IRL3_MASK 0x000f 97 1.8 christos 98 1.6 uch #define IPRA_TMU0_MASK 0xf000 99 1.6 uch #define IPRA_TMU1_MASK 0x0f00 100 1.6 uch #define IPRA_TMU2_MASK 0x00f0 101 1.6 uch #define IPRA_RTC_MASK 0x000f 102 1.6 uch 103 1.6 uch #define IPRB_WDT_MASK 0xf000 104 1.6 uch #define IPRB_REF_MASK 0x0f00 105 1.6 uch #define IPRB_SCI_MASK 0x00f0 106 1.1 itojun 107 1.9 nonaka #define INTPRI00_PCI0_MASK 0x0000000f 108 1.9 nonaka #define INTPRI00_PCI1_MASK 0x000000f0 109 1.9 nonaka #define INTPRI00_TMU3_MASK 0x00000f00 110 1.9 nonaka #define INTPRI00_TMU4_MASK 0x0000f000 111 1.8 christos 112 1.8 christos /* INTREQ/INTMSK/INTMSKCLR */ 113 1.8 christos #define INTREQ00_PCISERR 0x00000001 114 1.8 christos #define INTREQ00_PCIDMA3 0x00000002 115 1.8 christos #define INTREQ00_PCIDMA2 0x00000004 116 1.8 christos #define INTREQ00_PCIDMA1 0x00000008 117 1.8 christos #define INTREQ00_PCIDMA0 0x00000010 118 1.8 christos #define INTREQ00_PCIPWON 0x00000020 119 1.8 christos #define INTREQ00_PCIPWDWN 0x00000040 120 1.8 christos #define INTREQ00_PCIERR 0x00000080 121 1.8 christos #define INTREQ00_TUNI3 0x00000100 122 1.8 christos #define INTREQ00_TUNI4 0x00000200 123 1.8 christos 124 1.9 nonaka #define INTMSK00_MASK_ALL 0x000003ff 125 1.9 nonaka 126 1.4 uch #endif /* !_SH3_INTCREG_H_ */ 127