From patchwork Thu Jul 24 17:33:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 34242 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AEAA323B18 for ; Thu, 24 Jul 2014 17:36:14 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id h18sf11046589igc.9 for ; Thu, 24 Jul 2014 10:36:14 -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=fePBubs1/ldT1CQ48pDqOrZf03x82zf6H4D1dWctywE=; b=H6cF8eqXlyLPrZ6mUFvM4D+pMYlKPC98oOSRbya0m7zIcoSZap2EPyY/kpSHpKqy9H /sLug7AGohdqOoa6WkdaRG4mXcxA4JtdvVjTo/c4P/dt+X112EFSJCvRhATRp6A6BgQ3 XAM9zbYVcHUsiTBizkCj1OqvOSBCM7PjU5kC1K+fkBy7PfkejXMXmUyyHBsVR2kRVxIq vozBdQ66xIh/nPX+2xy67H5ALDdUevkULOOlNxqIatn0zoMFHxoXxMBaLpUlFjFbP/Sx 6+Ed7mwaK51jhB/bDu8nVuXu9eKuJCzOXqZn+qjchGZJ5C7MbnEYUvpd9NitWlv9py8S CkMA== X-Gm-Message-State: ALoCoQmsrqAzh3DpEF/SZrIHk7nNCanD5K2ygieQNXyW9rPU+or6o73xne3xpx2cv7QyBZrCrb0y X-Received: by 10.43.149.193 with SMTP id kl1mr4869881icc.5.1406223374293; Thu, 24 Jul 2014 10:36:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.245 with SMTP id l108ls907007qgf.83.gmail; Thu, 24 Jul 2014 10:36:14 -0700 (PDT) X-Received: by 10.220.7.131 with SMTP id d3mr14385556vcd.49.1406223374108; Thu, 24 Jul 2014 10:36:14 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id re13si5841925vcb.8.2014.07.24.10.36.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:36:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so5445358vcb.39 for ; Thu, 24 Jul 2014 10:36:14 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr14694948vcb.48.1406223374037; Thu, 24 Jul 2014 10:36:14 -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 tc5csp383666vcb; Thu, 24 Jul 2014 10:36:13 -0700 (PDT) X-Received: by 10.50.67.7 with SMTP id j7mr41028948igt.8.1406223373462; Thu, 24 Jul 2014 10:36:13 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id w15si16308255icq.84.2014.07.24.10.36.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:36:13 -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 1XAMup-0002V1-OZ; Thu, 24 Jul 2014 17:34:51 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XAMuo-0002TJ-6s for xen-devel@lists.xensource.com; Thu, 24 Jul 2014 17:34:50 +0000 Received: from [85.158.137.68:60991] by server-15.bemta-3.messagelabs.com id 09/3D-14271-9B341D35; Thu, 24 Jul 2014 17:34:49 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-12.tower-31.messagelabs.com!1406223285!17781062!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30641 invoked from network); 24 Jul 2014 17:34:48 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 24 Jul 2014 17:34:48 -0000 X-IronPort-AV: E=Sophos;i="5.01,725,1400025600"; d="scan'208";a="155886523" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 24 Jul 2014 17:34:18 +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; Thu, 24 Jul 2014 13:34:17 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1XAMuC-00067o-GK; Thu, 24 Jul 2014 18:34:12 +0100 From: Stefano Stabellini To: Date: Thu, 24 Jul 2014 18:33:11 +0100 Message-ID: <1406223192-26267-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: MIA2 Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com, Jan Beulich , Stefano Stabellini Subject: [Xen-devel] [PATCH v9 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.180 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 CC: Jan Beulich Acked-by: Julien Grall --- 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)