From: Ian Campbell Subject: [PATCH] arm: define domain_pirq_to_irq Date: Thu, 9 Feb 2012 14:53:21 +0000 Message-ID: References: <1328798741.6133.188.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1328798741.6133.188.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini , xen-devel@lists.xensource.comxen-devel@lists.xensource.com Cc: "Tim Deegan (3P)" List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Ian Campbell # Date 1328798112 0 # Node ID abd72cc240fa3d643541d435f3cb72b75c8a5977 # Parent 18b9ea53c8ac0e2d6aee68dd50a50c0b08a01a1e arm: define domain_pirq_to_irq Signed-off-by: Ian Campbell diff -r 18b9ea53c8ac -r abd72cc240fa xen/include/asm-arm/irq.h --- a/xen/include/asm-arm/irq.h Thu Feb 09 11:33:30 2012 +0000 +++ b/xen/include/asm-arm/irq.h Thu Feb 09 14:35:12 2012 +0000 @@ -11,6 +11,7 @@ typedef struct { struct arch_pirq { + int irq; }; struct irq_cfg { @@ -19,6 +20,8 @@ struct irq_cfg { void do_IRQ(struct cpu_user_regs *regs, unsigned int irq, int is_fiq); +#define domain_pirq_to_irq(d, pirq) pirq_field(d, pirq, arch.irq) + #endif /* _ASM_HW_IRQ_H */ /* * Local variables: