sh: intc: Implement reverse mapping for IRQs to per-controller IDs.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 23 Sep 2010 11:09:38 +0000 (20:09 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 4 Oct 2010 16:15:47 +0000 (01:15 +0900)
commit44629f57accccbb8e6d443246fe6f51b42f7f781
treeb75bab4a39a2be40f58a9d6daac4a208035300fe
parente8184a47c9cc04380553114815356d1042a27788
sh: intc: Implement reverse mapping for IRQs to per-controller IDs.

This implements a scheme roughly analogous to the PowerPC virtual to
hardware IRQ mapping, which we use for IRQ to per-controller ID mapping.
This makes it possible for drivers to use the IDs directly for lookup
instead of hardcoding the vector.

The main motivation for this work is as a building block for dynamically
allocating virtual IRQs for demuxing INTC events sharing a single INTEVT
in addition to a common masking source.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/Kconfig
drivers/sh/intc.c
include/linux/sh_intc.h