From patchwork Sat Dec 26 21:19:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [05/11] qdev: Add pcibus_dev_info to pci_bus_info From: Nathan Baum X-Patchwork-Id: 41809 Message-Id: <1261862362-2530-6-git-send-email-nathan@parenthephobia.org.uk> To: qemu-devel@nongnu.org Date: Sat, 26 Dec 2009 21:19:16 +0000 Signed-off-by: Nathan Baum --- hw/pci.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 8688d8a..36605e7 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -59,11 +59,13 @@ struct PCIBus { }; static void pcibus_dev_print(Monitor *mon, DeviceState *dev, int indent); +static QObject *pcibus_dev_info(Monitor *mon, DeviceState *dev); static struct BusInfo pci_bus_info = { .name = "PCI", .size = sizeof(PCIBus), .print_dev = pcibus_dev_print, + .info_dev = pcibus_dev_info, .props = (Property[]) { DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1), DEFINE_PROP_STRING("romfile", PCIDevice, romfile),