powerpc: add virq_to_hw accessor routine
PATCH 1/16 powerpc: add virq_to_hw accessor routine
This adds an accessor routine virq_to_hw() to the virq routines which hides the implementation details of the virq to hwirq map.
Signed-off-by Geoff Levand <[email protected]>
--- include/asm-powerpc/irq.h | 4 ++++ 1 file changed, 4 insertions(+)
include/asm-powerpc/irq.h +4 -0
@@ -135,6 +135,10 @@extern struct irq_map_entry irq_map[NR_IRQS ]; +static inline irq_hw_number_t virq_to_hw (unsigned int virq) +{ +return irq_map[virq].hwirq; +}/** * irq_alloc_host - Allocate a new irq_host data structure
Quoted 6 lines · Geoff Levand
This adds an accessor routine
virq_to_hw()to the virq routines which hides the implementation details of the virq to hwirq map.Signed-off-by Geoff Levand <[email protected]>