All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/14] powerpc: add virq_to_hw accessor routine
@ 2006-11-22  4:19 Geoff Levand
  0 siblings, 0 replies; only message in thread
From: Geoff Levand @ 2006-11-22  4:19 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

Subject: powerpc: add virq_to_hw accessor routine

From: Geoff Levand <geoffrey.levand@am.sony.com>

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: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>

---
 include/asm-powerpc/irq.h |    4 ++++
 1 files changed, 4 insertions(+)

Index: cell--common--6/include/asm-powerpc/irq.h
===================================================================
--- cell--common--6.orig/include/asm-powerpc/irq.h
+++ cell--common--6/include/asm-powerpc/irq.h
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-22  4:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22  4:19 [PATCH 1/14] powerpc: add virq_to_hw accessor routine Geoff Levand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.