Make number of irqs configurable