linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/16] powerpc: add virq_to_hw accessor routine
@ 2006-11-17  3:41 Geoff Levand
  2006-11-17  7:34 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Geoff Levand @ 2006-11-17  3:41 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, Arnd Bergmann

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: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>

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

Index: linux-2.6/include/asm-powerpc/irq.h
===================================================================
--- linux-2.6.orig/include/asm-powerpc/irq.h
+++ 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/16] powerpc: add virq_to_hw accessor routine
  2006-11-17  3:41 [PATCH 2/16] powerpc: add virq_to_hw accessor routine Geoff Levand
@ 2006-11-17  7:34 ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2006-11-17  7:34 UTC (permalink / raw)
  To: Geoff Levand; +Cc: linuxppc-dev, Paul Mackerras, Arnd Bergmann

On Thu, 2006-11-16 at 19:41 -0800, Geoff Levand wrote:
> 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: Geoff Levand <geoffrey.levand@am.sony.com>
> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> ---
>  include/asm-powerpc/irq.h |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> Index: linux-2.6/include/asm-powerpc/irq.h
> ===================================================================
> --- linux-2.6.orig/include/asm-powerpc/irq.h
> +++ 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
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-17  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17  3:41 [PATCH 2/16] powerpc: add virq_to_hw accessor routine Geoff Levand
2006-11-17  7:34 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).