From patchwork Tue Aug 5 11:26:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 34946 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 97152202A1 for ; Tue, 5 Aug 2014 11:29:32 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id at20sf3369496iec.11 for ; Tue, 05 Aug 2014 04:29:32 -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=/jAfWzlsiS5C3E3AE1GeFA71c/F8uOHEmCaV3MattIA=; b=AimBjE7J62ocyAvXllbXGOicq4ncJJ7YWPiwkD2xWGGMtyGtLyk+hGgfQiYxymhu1y NB5HfxNXF7uoC9Ma5f5yaYYClA15ZemCF5MCLWvWcdchSLjJY7VNv1SvS1b5T4tWESwX rFcKAZWzmebKw48zwqcERDoNoX5gPIcV19Wxjz9U355iXBtor7rWH7sfI38eZHAKKCpR q2dRiv4NgssKXsECrooKHOeOo3QjLoEOG2Agen4b1yHGSh0X2+Mfi+oyI51+8YG5Wmwd NzAkwEJaC7Qj4+7F4Hl/rz28RZBVxnqVD94vyF09IADRHLeGsm/iseDtTARrGm0Vvvvn u3GQ== X-Gm-Message-State: ALoCoQlO/0SIQgsR8/IK/zGJnCex8dA0lzgrkd0wRhBAUob9gyh4yF3TcPUBSPjWIkT8LbdCTNjC X-Received: by 10.182.186.4 with SMTP id fg4mr1659738obc.9.1407238171928; Tue, 05 Aug 2014 04:29:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.139 with SMTP id h11ls6380qgf.66.gmail; Tue, 05 Aug 2014 04:29:31 -0700 (PDT) X-Received: by 10.52.162.74 with SMTP id xy10mr912215vdb.51.1407238171776; Tue, 05 Aug 2014 04:29:31 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id yi17si833715vdb.55.2014.08.05.04.29.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Aug 2014 04:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so1165674vcb.7 for ; Tue, 05 Aug 2014 04:29:31 -0700 (PDT) X-Received: by 10.221.5.137 with SMTP id og9mr1622355vcb.18.1407238171716; Tue, 05 Aug 2014 04:29:31 -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.37.5 with SMTP id tc5csp379345vcb; Tue, 5 Aug 2014 04:29:31 -0700 (PDT) X-Received: by 10.50.25.71 with SMTP id a7mr45965964igg.17.1407238171119; Tue, 05 Aug 2014 04:29:31 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id mi6si3420654icb.102.2014.08.05.04.29.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Aug 2014 04:29:31 -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 1XEcuE-0004XL-Uz; Tue, 05 Aug 2014 11:27:50 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XEcuE-0004Wy-6O for xen-devel@lists.xensource.com; Tue, 05 Aug 2014 11:27:50 +0000 Received: from [85.158.143.35:9274] by server-1.bemta-4.messagelabs.com id 73/8E-05872-5BFB0E35; Tue, 05 Aug 2014 11:27:49 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-6.tower-21.messagelabs.com!1407238067!13490174!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 17103 invoked from network); 5 Aug 2014 11:27:48 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-6.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 5 Aug 2014 11:27:48 -0000 X-IronPort-AV: E=Sophos;i="5.01,804,1400025600"; d="scan'208";a="158837270" 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; Tue, 5 Aug 2014 07:27:46 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1XEcu5-0002cW-Jb; Tue, 05 Aug 2014 12:27:41 +0100 From: Stefano Stabellini To: Date: Tue, 5 Aug 2014 12:26:28 +0100 Message-ID: <1407237989-27654-9-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: MIA1 Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com, Jan Beulich , Stefano Stabellini Subject: [Xen-devel] [PATCH v10 09/10] 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.220.176 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 Acked-by: Julien Grall CC: Jan Beulich --- Changes in v9: - do not rename IRQF_SHARED to IRQ_SHARED. --- xen/include/xen/irq.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/xen/include/xen/irq.h b/xen/include/xen/irq.h index 40c0f3f..96d818f 100644 --- a/xen/include/xen/irq.h +++ b/xen/include/xen/irq.h @@ -22,15 +22,24 @@ 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 IRQF_SHARED (1<<8) /* IRQ is shared */ +#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 _IRQF_SHARED 8 /* IRQ is shared */ +#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) +#define IRQF_SHARED (1u<<_IRQF_SHARED) /* Special IRQ numbers. */ #define AUTO_ASSIGN_IRQ (-1)