Patchwork [RFC,05/11] qdev: Add pcibus_dev_info to pci_bus_info

login
register
mail settings
Submitter Nathan Baum
Date Dec. 26, 2009, 9:11 p.m.
Message ID <1261861899-1984-6-git-send-email-nathan@parenthephobia.org.uk>
Download mbox | patch
Permalink /patch/41816/
State New
Headers show

Comments

Nathan Baum - Dec. 26, 2009, 9:11 p.m.
Signed-off-by: Nathan Baum <nathan@parenthephobia.org.uk>
---
 hw/pci.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

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),