From patchwork Sun May 15 13:49:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonid Bloch X-Patchwork-Id: 9096361 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 A7A80BF29F for ; Sun, 15 May 2016 13:50:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEE6F202BE for ; Sun, 15 May 2016 13:50:30 +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 0167A202AE for ; Sun, 15 May 2016 13:50:29 +0000 (UTC) Received: from localhost ([::1]:40396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1wRB-0007Gp-2n for patchwork-qemu-devel@patchwork.kernel.org; Sun, 15 May 2016 09:50:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1wQx-0007Cv-St for qemu-devel@nongnu.org; Sun, 15 May 2016 09:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1wQs-0007Us-BK for qemu-devel@nongnu.org; Sun, 15 May 2016 09:50:14 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:35908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1wQs-0007UY-0z for qemu-devel@nongnu.org; Sun, 15 May 2016 09:50:10 -0400 Received: by mail-wm0-x230.google.com with SMTP id n129so72927806wmn.1 for ; Sun, 15 May 2016 06:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravellosystems-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HbWpnKDpJvBZqib0GgxGZOfKQa7JtCd4xUeRzHOJIvY=; b=1atXfr9XfC2cp4MIF16Ze6Fc9oUeQNy/gTMpTnoR1ip0GArVoITHvC6N/F3QsRe4sx CQ2gbioCOQH06353sV1QJKftzjfdGZirO4x/J4k4M4gVVZ6j3gjAjOI/MDGeNcRxPY0T Dvr6WGcZrdf79SZ6DGUVWV+VREx4p5HJNRnQeKKE86zlHeUO7y6MlO8h/BK6jVknHq3O uoCqRVprHdA6PX16FKl6kxZzKXHeZuQRNiS1mNEhM8vfvXIWbQaR9NWWstWoIk6jsm/p RFhQd8jsDSIoB9fsPBIrk4ZUs55XCz6i03C/xkCJ81rGSQEwPLeGshAIXBhFnBpILt25 x4FQ== 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=HbWpnKDpJvBZqib0GgxGZOfKQa7JtCd4xUeRzHOJIvY=; b=UuJa37Yy+S2GQ1eyHfFEFeHqvADcNTjpOzjA8z6QkBCWklLnyIjMYqars9wH1oYlV4 Mf8k2GcguLbSbndc3Lw7Pg05nyBa3Mn6GXZAcUDmajsJEAJ0JgXtwJ1WC4Cb+/ulPYpT S4DzLTRT1ri/D0ANbfE/Up+E9DCGNupsOQqzsc/bQr7nH6rVAxyLLc38VQVbI9y5hxx5 M/1Q4rK5q2siNE80faCgCNeXeEj5/Xym4BXl/uREf/Yyb7ZKBqP9ynbRV0gOl2JLP2Bj WUCJjM7zBnCJ2zDKyC8FpQtVzuJuk05rqdIwEmuHC8ZatgOBoJFZi2KqcIf/Gn3fakw0 qc+w== X-Gm-Message-State: AOPr4FUNe4hd5+BPokiSJNnaEUDm0DKysK+HtoEs+TVOqc1JMIdEJNkIeeB1Wu0Dgvlt1LEP X-Received: by 10.28.101.215 with SMTP id z206mr12492514wmb.37.1463320209250; Sun, 15 May 2016 06:50:09 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id c4sm28742403wjm.24.2016.05.15.06.50.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 May 2016 06:50:08 -0700 (PDT) From: Leonid Bloch To: qemu-devel@nongnu.org Date: Sun, 15 May 2016 16:49:34 +0300 Message-Id: <1463320189-14108-2-git-send-email-leonid.bloch@ravellosystems.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1463320189-14108-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1463320189-14108-1-git-send-email-leonid.bloch@ravellosystems.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::230 Subject: [Qemu-devel] [PATCH v5 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: Dmitry Fleytman , 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);