From patchwork Sun Apr 10 15:14:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Fleytman X-Patchwork-Id: 8789421 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7DA46C0553 for ; Sun, 10 Apr 2016 15:15:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A5F02021A for ; Sun, 10 Apr 2016 15:15:50 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9AFF5201F4 for ; Sun, 10 Apr 2016 15:15:49 +0000 (UTC) Received: from localhost ([::1]:35232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apH5Y-0007R0-Qw for patchwork-qemu-devel@patchwork.kernel.org; Sun, 10 Apr 2016 11:15:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apH5E-0007O1-On for qemu-devel@nongnu.org; Sun, 10 Apr 2016 11:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apH5C-00083h-Bi for qemu-devel@nongnu.org; Sun, 10 Apr 2016 11:15:28 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:36677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apH5C-00083d-56 for qemu-devel@nongnu.org; Sun, 10 Apr 2016 11:15:26 -0400 Received: by mail-wm0-x233.google.com with SMTP id v188so60450042wme.1 for ; Sun, 10 Apr 2016 08:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QUXKs7p74i8OJ6ez4h9bWvUc68IO2muPQup2tL5VMuQ=; b=wu0YcmG0Vqri22vVxNOZlAXhKKX3hzeIy82t1UTarPRGw10mTu2uNpAZkbrNwri62W TCnW/ImK3MHR5CsmXcvd3GVCcmk71oHX49jPO+7k/e2YisjIHjrkiRY59PEbVt/Nr9MT EwH4cP4s4jvg9ECHHhOJ3P5vzUPgMZr84Xb8rH0Tx1nP3BFldGBBE2+lc7cx1OQnaYPR HK3KYpFfBVFcK37KqN7pSsP1H7N27iRq7WFB6THPdTfoYesrvVcVq0jTV1xFLAp1ooq0 5EwQ13evC9oSyLjQvbP/cRnEUCFsdF5f81LQ0p6Q1jGe5BEkkrxesSeo1VY5R8nYLjJw +WpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QUXKs7p74i8OJ6ez4h9bWvUc68IO2muPQup2tL5VMuQ=; b=UnlpEKvxFo2BhH98CJhCDJ8DA//z8PLysbmC8gH4FPNqRSdd1y4NLwtjaLzo1L76jI wtfpCzl5SgrM0jgy2+Amt6OlIPeNYTbgFtTO4J4gNxTLluW69h5MRqpARKSg6mqsCob2 4HVcQE5J9WoB0X64F0IF888TvGMXkBCdCl9T9+MK05ePCtZc5fCKxALLlNgH2NKQQPkq mZFtebRRk5Mu3FSx9O5T5Xjv8/YrC1VYycLIR+02y5G+ezDdW47NbKs2tolRWBlb4XEY +aZr3cQWhy3P0mezr5CI9CJMFppXo1ZgP4CBgi8QUTGQaXM65PGTMe9Bu4uNOGgvh+Qc J8Sw== X-Gm-Message-State: AD7BkJI9FCjUbwztBwawwo7c9pByqUU8mBfE59FfheQaWHVeJiA96fTpYSK1nk+E5JN70Q== X-Received: by 10.194.135.6 with SMTP id po6mr16796324wjb.70.1460301325644; Sun, 10 Apr 2016 08:15:25 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id j71sm12685874wmj.21.2016.04.10.08.15.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Apr 2016 08:15:24 -0700 (PDT) From: Dmitry Fleytman To: qemu-devel@nongnu.org Date: Sun, 10 Apr 2016 18:14:50 +0300 Message-Id: <1460301305-5321-2-git-send-email-dmitry@daynix.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460301305-5321-1-git-send-email-dmitry@daynix.com> References: <1460301305-5321-1-git-send-email-dmitry@daynix.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 Subject: [Qemu-devel] [PATCH v4 01/16] msix: make msix_clr_pending() visible for clients X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yan Vugenfirer , Jason Wang , Leonid Bloch , Shmulik Ladkani , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dmitry Fleytman This function will be used by e1000e device code. Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch --- hw/pci/msix.c | 2 +- include/hw/pci/msix.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pci/msix.c b/hw/pci/msix.c index b75f0e9..0ec1cb1 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -72,7 +72,7 @@ void msix_set_pending(PCIDevice *dev, unsigned int vector) *msix_pending_byte(dev, vector) |= msix_pending_mask(vector); } -static void msix_clr_pending(PCIDevice *dev, int vector) +void msix_clr_pending(PCIDevice *dev, int vector) { *msix_pending_byte(dev, vector) &= ~msix_pending_mask(vector); } diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h index 72e5f93..048a29d 100644 --- a/include/hw/pci/msix.h +++ b/include/hw/pci/msix.h @@ -29,6 +29,7 @@ int msix_present(PCIDevice *dev); bool msix_is_masked(PCIDevice *dev, unsigned vector); void msix_set_pending(PCIDevice *dev, unsigned vector); +void msix_clr_pending(PCIDevice *dev, int vector); int msix_vector_use(PCIDevice *dev, unsigned vector); void msix_vector_unuse(PCIDevice *dev, unsigned vector);