Skip to content
  • Paul Mundt's avatar
    sh: intc: Implement reverse mapping for IRQs to per-controller IDs. · 44629f57
    Paul Mundt authored
    
    
    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>
    44629f57