aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2007-08-03 01:25:32 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-20 22:57:47 -0400
commit51da64264b8d59a1e5fceebd94a975690b70b086 (patch)
treebb3042c8e14f162bda662ec9e93c807aef37de05 /include
parent2635e8558a7ec0002724e3da8c0a221d2c08af33 (diff)
sh: intc - add single bitmap register support
This patch adds single bitmap register support to intc. The current code only handles 16 and 32 bit registers where a set bit means interrupt enabled, but this is easy to extend in the future. The INTC_IRQ() macro is also added to provide a way to hook in interrupt controllers for FPGAs in boards or companion chips. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sh/hw_irq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-sh/hw_irq.h b/include/asm-sh/hw_irq.h
index 8f5bf98d053e..9f55c2dc1b50 100644
--- a/include/asm-sh/hw_irq.h
+++ b/include/asm-sh/hw_irq.h
@@ -49,6 +49,7 @@ struct intc_vect {
49}; 49};
50 50
51#define INTC_VECT(enum_id, vect) { enum_id, vect } 51#define INTC_VECT(enum_id, vect) { enum_id, vect }
52#define INTC_IRQ(enum_id, irq) INTC_VECT(enum_id, irq2evt(irq))
52 53
53struct intc_prio { 54struct intc_prio {
54 intc_enum enum_id; 55 intc_enum enum_id;