From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aniyP-0005WP-LG for qemu-devel@nongnu.org; Wed, 06 Apr 2016 04:38:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aniyN-0000J6-Pu for qemu-devel@nongnu.org; Wed, 06 Apr 2016 04:38:01 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aniyN-0000J1-Jj for qemu-devel@nongnu.org; Wed, 06 Apr 2016 04:37:59 -0400 Received: by mail-wm0-x243.google.com with SMTP id n3so11081946wmn.1 for ; Wed, 06 Apr 2016 01:37:59 -0700 (PDT) From: Dmitry Fleytman Date: Wed, 6 Apr 2016 11:37:14 +0300 Message-Id: <1459931849-29336-2-git-send-email-dmitry@daynix.com> In-Reply-To: <1459931849-29336-1-git-send-email-dmitry@daynix.com> References: <1459931849-29336-1-git-send-email-dmitry@daynix.com> Subject: [Qemu-devel] [PATCH v3 01/16] msix: make msix_clr_pending() visible for clients List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Yan Vugenfirer , Jason Wang , Leonid Bloch , Shmulik Ladkani , "Michael S. Tsirkin" 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); -- 2.5.0