From patchwork Fri Jun 13 11:24:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 31875 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2AB732054B for ; Fri, 13 Jun 2014 11:26:43 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf12624310oag.9 for ; Fri, 13 Jun 2014 04:26:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=Z6dpMocl4/RLrHcz6PDXjT+5k5cL0AXy3/tly3IYVBo=; b=JzeW+NBOAJnmsU1p+5M6Eve9FBF7O5HygA8hGiwAB4KpcoYomuiPlfCCg4vodNgIEQ 8hwrUZnPKQnjGZutKLlCi3ujR777Is8sLL18XpuNelfmTsmYm3sRlG3N8lyW4SkyDzZk RayS/MZ3IcbHKJboKOBDMnz7AW8BfrQSpvigOBOeOHvWuNE0MdXpADUm5TqgxkUlwi2b brjcCgoXNZ2x1AmLLBwY+UGGl+Ixb03ZdDHsMle6QLyYyfD95UWWIhCrxMd6OwIIHQ45 jPrnSnMEIC5wSrKfnS5hzCYJuoQNTGdDuD/DQqG0iDyNj1VvtpUx7hvk+ZY9voclTbBG GjKg== X-Gm-Message-State: ALoCoQkqBQapN/7NMTcvU5B720r2Yc0etN1uS3bSGlTCPpegSADvEryyjyC3SQ647n3FOGo7fp4h X-Received: by 10.50.12.106 with SMTP id x10mr3912705igb.1.1402658802472; Fri, 13 Jun 2014 04:26:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.68 with SMTP id k62ls1069872qgf.99.gmail; Fri, 13 Jun 2014 04:26:42 -0700 (PDT) X-Received: by 10.52.85.165 with SMTP id i5mr421890vdz.53.1402658802311; Fri, 13 Jun 2014 04:26:42 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id fw5si1303854vcb.46.2014.06.13.04.26.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Jun 2014 04:26:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so1248999veb.37 for ; Fri, 13 Jun 2014 04:26:42 -0700 (PDT) X-Received: by 10.220.9.201 with SMTP id m9mr1344613vcm.5.1402658802209; Fri, 13 Jun 2014 04:26:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp479168vcb; Fri, 13 Jun 2014 04:26:41 -0700 (PDT) X-Received: by 10.220.114.140 with SMTP id e12mr510075vcq.37.1402658801826; Fri, 13 Jun 2014 04:26:41 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id e4si1301006vej.62.2014.06.13.04.26.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Jun 2014 04:26:41 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WvPbM-0001Pb-62; Fri, 13 Jun 2014 11:24:56 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WvPbK-0001PL-I5 for xen-devel@lists.xensource.com; Fri, 13 Jun 2014 11:24:54 +0000 Received: from [85.158.137.68:39243] by server-12.bemta-3.messagelabs.com id 3B/E5-14831-58FDA935; Fri, 13 Jun 2014 11:24:53 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-3.tower-31.messagelabs.com!1402658691!9913799!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4425 invoked from network); 13 Jun 2014 11:24:52 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-3.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 13 Jun 2014 11:24:52 -0000 X-IronPort-AV: E=Sophos;i="5.01,471,1400025600"; d="scan'208";a="143462399" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 13 Jun 2014 11:24:51 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Fri, 13 Jun 2014 07:24:50 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WvPbA-0006bV-MD; Fri, 13 Jun 2014 12:24:44 +0100 From: Stefano Stabellini To: Date: Fri, 13 Jun 2014 12:24:22 +0100 Message-ID: <1402658663-2113-1-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-DLP: MIA2 Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com, Stefano Stabellini Subject: [Xen-devel] [PATCH 1/2] xen: introduce bit access macros for the IRQ line status flags X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Signed-off-by: Stefano Stabellini --- xen/include/xen/irq.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/xen/include/xen/irq.h b/xen/include/xen/irq.h index f2e6215..4aa1cb8 100644 --- a/xen/include/xen/irq.h +++ b/xen/include/xen/irq.h @@ -19,14 +19,22 @@ struct irqaction { /* * IRQ line status. */ -#define IRQ_INPROGRESS (1u<<0) /* IRQ handler active - do not enter! */ -#define IRQ_DISABLED (1u<<1) /* IRQ disabled - do not enter! */ -#define IRQ_PENDING (1u<<2) /* IRQ pending - replay on enable */ -#define IRQ_REPLAY (1u<<3) /* IRQ has been replayed but not acked yet */ -#define IRQ_GUEST (1u<<4) /* IRQ is handled by guest OS(es) */ -#define IRQ_MOVE_PENDING (1u<<5) /* IRQ is migrating to another CPUs */ -#define IRQ_PER_CPU (1u<<6) /* IRQ is per CPU */ -#define IRQ_GUEST_EOI_PENDING (1u<<7) /* IRQ was disabled, pending a guest EOI */ +#define _IRQ_INPROGRESS 0 /* IRQ handler active - do not enter! */ +#define _IRQ_DISABLED 1 /* IRQ disabled - do not enter! */ +#define _IRQ_PENDING 2 /* IRQ pending - replay on enable */ +#define _IRQ_REPLAY 3 /* IRQ has been replayed but not acked yet */ +#define _IRQ_GUEST 4 /* IRQ is handled by guest OS(es) */ +#define _IRQ_MOVE_PENDING 5 /* IRQ is migrating to another CPUs */ +#define _IRQ_PER_CPU 6 /* IRQ is per CPU */ +#define _IRQ_GUEST_EOI_PENDING 7 /* IRQ was disabled, pending a guest EOI */ +#define IRQ_INPROGRESS (1u<<_IRQ_INPROGRESS) +#define IRQ_DISABLED (1u<<_IRQ_DISABLED) +#define IRQ_PENDING (1u<<_IRQ_PENDING) +#define IRQ_REPLAY (1u<<_IRQ_REPLAY) +#define IRQ_GUEST (1u<<_IRQ_GUEST) +#define IRQ_MOVE_PENDING (1u<<_IRQ_MOVE_PENDING) +#define IRQ_PER_CPU (1u<<_IRQ_PER_CPU) +#define IRQ_GUEST_EOI_PENDING (1u<<_IRQ_GUEST_EOI_PENDING) /* Special IRQ numbers. */ #define AUTO_ASSIGN_IRQ (-1)