1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <uapi/linux/irqnr.h>
9 extern struct irq_desc
*irq_to_desc(unsigned int irq
);
10 unsigned int irq_get_next_irq(unsigned int offset
);
12 # define for_each_irq_desc(irq, desc) \
13 for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \
14 irq++, desc = irq_to_desc(irq)) \
20 # define for_each_irq_desc_reverse(irq, desc) \
21 for (irq = nr_irqs - 1, desc = irq_to_desc(irq); irq >= 0; \
22 irq--, desc = irq_to_desc(irq)) \
27 # define for_each_active_irq(irq) \
28 for (irq = irq_get_next_irq(0); irq < nr_irqs; \
29 irq = irq_get_next_irq(irq + 1))
31 #define for_each_irq_nr(irq) \
32 for (irq = 0; irq < nr_irqs; irq++)