ARM: mach-shmobile: add INTCS macros
authorMagnus Damm <damm@opensource.se>
Thu, 11 Mar 2010 05:30:30 +0000 (05:30 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 7 Apr 2010 07:23:56 +0000 (16:23 +0900)
Add SH-Mobile ARM INTCS macros for the INTCS controller.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/include/mach/irqs.h

index 5179b72..51b4a6a 100644 (file)
@@ -4,7 +4,13 @@
 #define NR_IRQS         512
 #define NR_IRQS_LEGACY  8
 
+/* INTCA */
 #define evt2irq(evt)           (((evt) >> 5) - 16)
 #define irq2evt(irq)           (((irq) + 16) << 5)
 
+/* INTCS */
+#define INTCS_VECT_BASE                0x3400
+#define INTCS_VECT(n, vect)    INTC_VECT((n), INTCS_VECT_BASE + (vect))
+#define intcs_evt2irq(evt)     evt2irq(INTCS_VECT_BASE + (evt))
+
 #endif /* __ASM_MACH_IRQS_H */