diff options
author | Magnus Damm <damm@igel.co.jp> | 2007-08-03 14:25:32 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-21 11:57:47 +0900 |
commit | 51da64264b8d59a1e5fceebd94a975690b70b086 (patch) | |
tree | bb3042c8e14f162bda662ec9e93c807aef37de05 /include/asm-sh/hw_irq.h | |
parent | 2635e8558a7ec0002724e3da8c0a221d2c08af33 (diff) | |
download | op-kernel-dev-51da64264b8d59a1e5fceebd94a975690b70b086.zip op-kernel-dev-51da64264b8d59a1e5fceebd94a975690b70b086.tar.gz |
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/asm-sh/hw_irq.h')
-rw-r--r-- | include/asm-sh/hw_irq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-sh/hw_irq.h b/include/asm-sh/hw_irq.h index 8f5bf98..9f55c2d 100644 --- a/include/asm-sh/hw_irq.h +++ b/include/asm-sh/hw_irq.h @@ -49,6 +49,7 @@ struct intc_vect { }; #define INTC_VECT(enum_id, vect) { enum_id, vect } +#define INTC_IRQ(enum_id, irq) INTC_VECT(enum_id, irq2evt(irq)) struct intc_prio { intc_enum enum_id; |