sh: intc: Implement reverse mapping for IRQs to per-controller IDs.