diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-19 14:37:14 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-19 14:37:14 +0900 |
commit | 22cc83780e214f4f009384f9c1d0658629625d49 (patch) | |
tree | e9cf3c6889efb809c0d98bc1b9d5a0572405cf47 /include/linux/serial_sci.h | |
parent | e735038f3848a720f84a819c8191ed2f6a1beed8 (diff) | |
download | blackbird-op-linux-22cc83780e214f4f009384f9c1d0658629625d49.tar.gz blackbird-op-linux-22cc83780e214f4f009384f9c1d0658629625d49.zip |
serial: sh-sci: Provide a helper for muxed IRQs.
All of the muxed IRQs presently populate the IRQ array verbosely, this
simply provides a trivial helper to do it for them.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/serial_sci.h')
-rw-r--r-- | include/linux/serial_sci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index 789acf5b31d3..01ffe7c56e5b 100644 --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h @@ -34,6 +34,14 @@ enum { SCIx_NR_IRQS, }; +#define SCIx_IRQ_MUXED(irq) \ +{ \ + [SCIx_ERI_IRQ] = (irq), \ + [SCIx_RXI_IRQ] = (irq), \ + [SCIx_TXI_IRQ] = (irq), \ + [SCIx_BRI_IRQ] = (irq), \ +} + struct device; /* |