From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH kvm-unit-tests 4/5] lib/pci: expose pci_dev_print Date: Mon, 16 Jan 2017 16:32:14 +0100 Message-ID: <20170116153215.6033-5-drjones@redhat.com> References: <20170116153215.6033-1-drjones@redhat.com> Cc: pbonzini@redhat.com, rkrcmar@redhat.com, peterx@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49916 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbdAPPcY (ORCPT ); Mon, 16 Jan 2017 10:32:24 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 24B42C0AF224 for ; Mon, 16 Jan 2017 15:32:25 +0000 (UTC) In-Reply-To: <20170116153215.6033-1-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Andrew Jones --- lib/pci.h | 1 + lib/pci.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pci.h b/lib/pci.h index 703c1fb689bf..3da3ccc8c791 100644 --- a/lib/pci.h +++ b/lib/pci.h @@ -65,6 +65,7 @@ extern bool pci_bar_is_memory(struct pci_dev *dev, int bar_num); extern bool pci_bar_is_valid(struct pci_dev *dev, int bar_num); extern void pci_bar_print(struct pci_dev *dev, int bar_num); extern void pci_dev_print_id(pcidevaddr_t dev); +extern void pci_dev_print(pcidevaddr_t dev); extern uint8_t pci_intx_line(struct pci_dev *dev); void pci_msi_set_enable(struct pci_dev *dev, bool enabled); diff --git a/lib/pci.c b/lib/pci.c index 99dd830e82ec..8ceb8ef91c75 100644 --- a/lib/pci.c +++ b/lib/pci.c @@ -274,7 +274,7 @@ void pci_dev_print_id(pcidevaddr_t dev) pci_config_readw(dev, PCI_DEVICE_ID)); } -static void pci_dev_print(pcidevaddr_t dev) +void pci_dev_print(pcidevaddr_t dev) { uint8_t header = pci_config_readb(dev, PCI_HEADER_TYPE); uint8_t progif = pci_config_readb(dev, PCI_CLASS_PROG); -- 2.9.3