From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v4 09/16] xen/arm: move vgic rank data to gic header file Date: Tue, 27 May 2014 12:32:35 +0100 Message-ID: <538477D3.2010602@linaro.org> References: <1401100009-7326-1-git-send-email-vijay.kilari@gmail.com> <1401100009-7326-10-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1401100009-7326-10-git-send-email-vijay.kilari@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: vijay.kilari@gmail.com, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, stefano.stabellini@citrix.com, xen-devel@lists.xen.org Cc: Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com List-Id: xen-devel@lists.xenproject.org Hi Vijay, On 05/26/2014 11:26 AM, vijay.kilari@gmail.com wrote: > diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h > new file mode 100644 > index 0000000..104a87d > --- /dev/null > +++ b/xen/include/asm-arm/vgic.h > @@ -0,0 +1,40 @@ > +/* > + * ARM Virtual Generic Interrupt Controller support > + * > + * Ian Campbell > + * Copyright (c) 2011 Citrix Systems. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + */ > + > +#ifndef __ASM_ARM_VGIC_H__ > +#define __ASM_ARM_VGIC_H__ > + > +/* Represents state corresponding to a block of 32 interrupts */ > +struct vgic_irq_rank { > + spinlock_t lock; /* Covers access to all other members of this struct */ > + uint32_t ienable, iactive, ipend, pendsgi; > + uint32_t icfg[2]; > + uint32_t ipriority[8]; > + uint32_t itargets[8]; > +}; > + > +extern int vcpu_vgic_free(struct vcpu *v); > +#endif NIT: this should be #endif /* __ASM_ARM_VGIC_H__ */ Acked-by: Julien Grall Regards, -- Julien Grall