diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2006-11-22 18:46:48 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:40:37 -0500 |
commit | e34226d2cd443a67f46fc531e3a6bc6e03843ce2 (patch) | |
tree | 9a7e3842f5e9d3ec73e609e6811e2f503b95d325 | |
parent | 897f112bb42ed9e220ce441e7e52aba3a144a7d6 (diff) |
[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.
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
-rw-r--r-- | include/asm-powerpc/irq.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index f960f5346f40..46476e9a494a 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h | |||
@@ -135,6 +135,10 @@ struct irq_map_entry { | |||
135 | 135 | ||
136 | extern struct irq_map_entry irq_map[NR_IRQS]; | 136 | extern struct irq_map_entry irq_map[NR_IRQS]; |
137 | 137 | ||
138 | static inline irq_hw_number_t virq_to_hw(unsigned int virq) | ||
139 | { | ||
140 | return irq_map[virq].hwirq; | ||
141 | } | ||
138 | 142 | ||
139 | /** | 143 | /** |
140 | * irq_alloc_host - Allocate a new irq_host data structure | 144 | * irq_alloc_host - Allocate a new irq_host data structure |