diff options
Diffstat (limited to 'arch/powerpc/include/asm/irq.h')
-rw-r--r-- | arch/powerpc/include/asm/irq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/irq.h b/arch/powerpc/include/asm/irq.h index 67ab5fb7d153..47b7905a6369 100644 --- a/arch/powerpc/include/asm/irq.h +++ b/arch/powerpc/include/asm/irq.h | |||
@@ -142,6 +142,12 @@ extern struct irq_map_entry irq_map[NR_IRQS]; | |||
142 | 142 | ||
143 | extern irq_hw_number_t virq_to_hw(unsigned int virq); | 143 | extern irq_hw_number_t virq_to_hw(unsigned int virq); |
144 | 144 | ||
145 | /* This will eventually -replace- virq_to_hw if/when we stash the | ||
146 | * HW number in the irq_data itself. We use a macro so we can inline | ||
147 | * it as irq_data isn't defined yet | ||
148 | */ | ||
149 | #define irq_data_to_hw(d) (irq_map[(d)->irq].hwirq) | ||
150 | |||
145 | /** | 151 | /** |
146 | * irq_alloc_host - Allocate a new irq_host data structure | 152 | * irq_alloc_host - Allocate a new irq_host data structure |
147 | * @of_node: optional device-tree node of the interrupt controller | 153 | * @of_node: optional device-tree node of the interrupt controller |