Skip to contentSkip to conversation

powerpc: add virq_to_hw accessor routine

PATCH In review Geoff Levand 2 participants 2 messages Nov 17, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 2/16 powerpc: add virq_to_hw accessor routine

Subject: powerpc: add virq_to_hw accessor routine

From: Geoff Levand <[email protected]> This adds an accessor routine virq_to_hw() to the virq routines which hides the implementation details of the virq to hwirq map.

---
 include/asm-powerpc/irq.h |    4 ++++
 1 file changed, 4 insertions(+)
include/asm-powerpc/irq.h +4 -0
Index: linux-2.6/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
Acked-by on v1 2/16
#1 lore raw
Quoted 10 lines · Geoff Levand

Subject: powerpc: add virq_to_hw accessor routine

From: Geoff Levand <[email protected]> This adds an accessor routine virq_to_hw() to the virq routines which hides the implementation details of the virq to hwirq map.

Quoted 23 lines
---
 include/asm-powerpc/irq.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-2.6/include/asm-powerpc/irq.h
===================================================================

include/asm-powerpc/irq.h +4 -0
@@ -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

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev