diff mbox

ARM: mach-shmobile: add INTCS macros

Message ID 20100311053030.26699.955.sendpatchset@t400s (mailing list archive)
State Accepted
Commit ff9170aeff93575b05474f29533ac9688891742e
Headers show

Commit Message

Magnus Damm March 11, 2010, 5:30 a.m. UTC
None
diff mbox

Patch

--- 0001/arch/arm/mach-shmobile/include/mach/irqs.h
+++ work/arch/arm/mach-shmobile/include/mach/irqs.h	2010-03-09 21:13:19.000000000 +0900
@@ -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 */