diff mbox

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

Message ID 1261861899-1984-6-git-send-email-nathan@parenthephobia.org.uk
State New
Headers show

Commit Message

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

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