Received: from eggs.gnu.org ([2001:4830:134:3::10]:45866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7JLQ-0004pF-TE for qemu-devel@nongnu.org; Mon, 30 May 2016 05:18:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7JLL-0008Mf-Ab for qemu-devel@nongnu.org; Mon, 30 May 2016 05:18:43 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:38656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7JLL-0008MY-3k for qemu-devel@nongnu.org; Mon, 30 May 2016 05:18:39 -0400 Received: by mail-wm0-x230.google.com with SMTP id n129so63551547wmn.1 for ; Mon, 30 May 2016 02:18:39 -0700 (PDT) From: Leonid Bloch Date: Mon, 30 May 2016 12:14:27 +0300 Message-Id: <1464599682-14592-3-git-send-email-leonid.bloch@ravellosystems.com> In-Reply-To: <1464599682-14592-1-git-send-email-leonid.bloch@ravellosystems.com> References: <1464599682-14592-1-git-send-email-leonid.bloch@ravellosystems.com> Subject: [Qemu-devel] [PATCH v6 02/17] 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: Jason Wang , "Michael S. Tsirkin" , Dmitry Fleytman , Leonid Bloch , Shmulik Ladkani 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.5