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)) \
27 #define irq_node(irq) (irq_get_irq_data(irq)->node)
29 #define irq_node(irq) 0
32 # define for_each_active_irq(irq) \
33 for (irq = irq_get_next_irq(0); irq < nr_irqs; \
34 irq = irq_get_next_irq(irq + 1))
36 #define for_each_irq_nr(irq) \
37 for (irq = 0; irq < nr_irqs; irq++)