From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outbound1-res-R.bigfish.com (outbound-res.frontbridge.com [63.161.60.49]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "*.bigfish.com", Issuer "*.bigfish.com" (not verified)) by ozlabs.org (Postfix) with ESMTP id 097EE67C1E for ; Sat, 26 Aug 2006 09:23:07 +1000 (EST) Message-ID: <44EF818B.9080301@am.sony.com> Date: Fri, 25 Aug 2006 16:02:35 -0700 From: Geoff Levand MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: powerpc virq: new routine virq_to_hw Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Ben, Please consider this accessor routine which hides the details of the map. Signed-off-by: Geoff Levand --- 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