4 #include <uapi/linux/irqnr.h>
8 extern struct irq_desc
*irq_to_desc(unsigned int irq
);
9 unsigned int irq_get_next_irq(unsigned int offset
);
11 # define for_each_irq_desc(irq, desc) \
12 for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \
13 irq++, desc = irq_to_desc(irq)) \
19 # define for_each_irq_desc_reverse(irq, desc) \
20 for (irq = nr_irqs - 1, desc = irq_to_desc(irq); irq >= 0; \
21 irq--, desc = irq_to_desc(irq)) \
26 # define for_each_active_irq(irq) \
27 for (irq = irq_get_next_irq(0); irq < nr_irqs; \
28 irq = irq_get_next_irq(irq + 1))
30 #define for_each_irq_nr(irq) \
31 for (irq = 0; irq < nr_irqs; irq++)