From patchwork Wed Jun 1 08:23:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Fleytman X-Patchwork-Id: 9146351 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 718D160761 for ; Wed, 1 Jun 2016 08:24:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 606052654B for ; Wed, 1 Jun 2016 08:24:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 554582679B; Wed, 1 Jun 2016 08:24:40 +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 01EBF2654B for ; Wed, 1 Jun 2016 08:24:40 +0000 (UTC) Received: from localhost ([::1]:40829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b81SB-0000jB-4S for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Jun 2016 04:24:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b81Rd-0000hk-HA for qemu-devel@nongnu.org; Wed, 01 Jun 2016 04:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b81RY-00007h-0O for qemu-devel@nongnu.org; Wed, 01 Jun 2016 04:24:04 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b81RX-00007T-P9 for qemu-devel@nongnu.org; Wed, 01 Jun 2016 04:23:59 -0400 Received: by mail-wm0-x244.google.com with SMTP id a136so4499169wme.0 for ; Wed, 01 Jun 2016 01:23:59 -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=xvP8Oxyh0nW4OBRt0pdYNgD+jfDf+/lhvaMXUVjWH5I=; b=TkMH+faa+dJF39kpGOuSSqNJxo3tN8t7Ik9mROlZaYOVZryRe4t2csgE/t0LxmvYKO ChysNswUU3qp9BCUnYllOVoTpmLQRFLSdSXGGhg5OyQrx4E+VZ/8iFLp7gdfc1t189ZW WPsELw3whwPHhCFq4eRMZAxwWo1bCc7LXggFv30YNzyUJeVMFt9XF8QUf07VBLzuevgi Dc/kDNHBFm/YN0AFCZOnWcQo1c5QwibxnNVQskZDxgrEKiXhborFJK5T3YhOXfHiQLWm gSfQPgkaS/dF8gZZgtxn7Ibnq219G2bT59Iw9ufvHYAIMgNW4+/ojqynB7qYXmhDgOKg iIZw== 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=xvP8Oxyh0nW4OBRt0pdYNgD+jfDf+/lhvaMXUVjWH5I=; b=BRDs2S4zHFq7f5urdwbBWolKqYyJx81a8/Yr70yumRLZJydl5lHrNg24fv8jBlxEI7 5LnZkHNtP+UF1Lm/JxwulTaIO1jcyIq4uPDzdo2EQG/K3s94tWNO0cU3DKVXBeHGxlw5 ug8YD74zSsq4htqH0KaiGp4x/Hkah/MMajNz6mywMwfk2KsxHCV2HRW4n0/04H4VDcSV turIssCzBTTr5A2mUahqLkrGPMau1QIApQI78rk7qXuzCMWHjqliLAStFLOob1fiRjpf fKs+wnI/f1kpwbCLgJXs8yCIetIptTcm6ToJYOVp7Rl9JN3riDpqc84IU7In0VDqdKyc U/MA== X-Gm-Message-State: ALyK8tJgJOmnjYDNIjTd/5GKbx400ETi0Dn6NZk3cEtnl8bouM129xY7/9HMHYdcpG0Csw== X-Received: by 10.28.58.6 with SMTP id h6mr2387093wma.101.1464769439164; Wed, 01 Jun 2016 01:23:59 -0700 (PDT) Received: from bark.daynix ([5.102.236.99]) by smtp.gmail.com with ESMTPSA id o10sm29242719wjz.37.2016.06.01.01.23.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 01:23:58 -0700 (PDT) From: Dmitry Fleytman To: qemu-devel@nongnu.org Date: Wed, 1 Jun 2016 11:23:31 +0300 Message-Id: <1464769426-22276-3-git-send-email-dmitry@daynix.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464769426-22276-1-git-send-email-dmitry@daynix.com> References: <1464769426-22276-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 v8 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 Reviewed-by: Michael S. Tsirkin --- 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);