Skip to content
Commit 44629f57 authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent e8184a47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment