From patchwork Tue May 31 07:20:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Fleytman X-Patchwork-Id: 9143669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4598760761 for ; Tue, 31 May 2016 07:22:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3833120855 for ; Tue, 31 May 2016 07:22:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CC0627B89; Tue, 31 May 2016 07:22:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id D152920855 for ; Tue, 31 May 2016 07:21:59 +0000 (UTC) Received: from localhost ([::1]:34762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dzy-00009Z-TO for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 May 2016 03:21:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dzO-00006v-Is for qemu-devel@nongnu.org; Tue, 31 May 2016 03:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7dzJ-0008Qv-1A for qemu-devel@nongnu.org; Tue, 31 May 2016 03:21:21 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:36519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7dzI-0008Qr-Qm for qemu-devel@nongnu.org; Tue, 31 May 2016 03:21:16 -0400 Received: by mail-wm0-x244.google.com with SMTP id q62so29683337wmg.3 for ; Tue, 31 May 2016 00:21:16 -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=HbWpnKDpJvBZqib0GgxGZOfKQa7JtCd4xUeRzHOJIvY=; b=WGjnPEWowVaXgTUtdovS4nRSXi65n9Kf6r+LJXqqoNvZnDEfKsa1WYtluRcC+qMovj m0Ys0rYlsQnbIMAPB04y8jMQnu5YAYdmXT+z0Q5AyeiPQ0QfB5v+GFYgge76cmyChxP5 zgIqY7VMjd+FJNjHPp+TP/sCPIAicUSGPdCuoI7R22eM5kP75HJgIzMAQusfdPvpjer0 sBKAZipHGitt1OBrG6X/zTIDfFSugmZkl6vG1wREyHP9fBNPhCOO9U26Hn69B7nnATEg t5YSWTYxczYRv7T1EoHhzNTB0vEQVWVx3RvM9ds7GaRd9RNVT7zNLz0DiZwdUjG+F1ko QtnA== 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=ZeQs/xhJifdDl+IsHw63UzWrl87hxlZOq9qg8ZZ1l7SolZut8oQASajLP5Pe43xtLd 72+b+YGLCE5inUQx4XWChQaC1h3y8pZqL6vGw7inWKgFQTjsLUA/xrRUFhHjq4jN8ZrE 0O/oE3YPKkr9GihUSWu6xGJmOv9CCQA6Bt0zKRFH9o7tCOhxsOuJbvU82h3ksnnB8ISC ed+RkIzyp4FurQX5qFTteS1QjyUH9YvdaZQv6aEc3aRU5v3QvcPTl9Kf48PLRs7uZJyv mSyqEaRtY4KXBZ2h6yPCOSyRVVGNjM04EX0ib8Rdgm7lStpOoWbufAmgk4s+kw081ZiU DEAQ== X-Gm-Message-State: ALyK8tI6DDI83SRXH2YmNGzUSMVEqfL8zJR/Gbzpy/ILgQssPCUVqXjRJG+KV8rs3Ku4EQ== X-Received: by 10.28.223.132 with SMTP id w126mr13811939wmg.72.1464679276206; Tue, 31 May 2016 00:21:16 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id d5sm38256188wje.20.2016.05.31.00.21.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 00:21:15 -0700 (PDT) From: Dmitry Fleytman To: qemu-devel@nongnu.org Date: Tue, 31 May 2016 10:20:44 +0300 Message-Id: <1464679259-1378-3-git-send-email-dmitry@daynix.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464679259-1378-1-git-send-email-dmitry@daynix.com> References: <1464679259-1378-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::244 Subject: [Qemu-devel] [PATCH v7 02/17] 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-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);