aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc/irq.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2006-11-23 00:46:48 +0100
committerPaul Mackerras <paulus@samba.org>2006-12-04 20:40:37 +1100
commite34226d2cd443a67f46fc531e3a6bc6e03843ce2 (patch)
tree9a7e3842f5e9d3ec73e609e6811e2f503b95d325 /include/asm-powerpc/irq.h
parent897f112bb42ed9e220ce441e7e52aba3a144a7d6 (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>
Diffstat (limited to 'include/asm-powerpc/irq.h')
-rw-r--r--include/asm-powerpc/irq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h
index f960f5346f4..46476e9a494 100644
--- a/include/asm-powerpc/irq.h
+++ b/include/asm-powerpc/irq.h
@@ -135,6 +135,10 @@ struct irq_map_entry {
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