genirq: Add more helper functions to support stacked irq_chip