All of lore.kernel.org
 help / color / mirror / Atom feed
* powerpc virq: new routine virq_to_hw
@ 2006-08-25 23:02 Geoff Levand
  2006-08-28  1:22 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Geoff Levand @ 2006-08-25 23:02 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev

Ben,

Please consider this accessor routine which hides the details
of the map.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>

---
Index: cell--common--4/include/asm-powerpc/irq.h
===================================================================
--- cell--common--4.orig/include/asm-powerpc/irq.h
+++ cell--common--4/include/asm-powerpc/irq.h
@@ -136,6 +136,11 @@
 
 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] 5+ messages in thread

end of thread, other threads:[~2006-08-29 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25 23:02 powerpc virq: new routine virq_to_hw Geoff Levand
2006-08-28  1:22 ` Benjamin Herrenschmidt
2006-08-28  7:16   ` Segher Boessenkool
2006-08-28 15:03   ` Geoff Levand
2006-08-29 22:36     ` Benjamin Herrenschmidt

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.