Patchwork [RFC,07/11] qdev: Add sysbus_dev_info to system_bus_info

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

Comments

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

Patch

diff --git a/hw/sysbus.c b/hw/sysbus.c
index 2092d9f..5d2bbb4 100644
--- a/hw/sysbus.c
+++ b/hw/sysbus.c
@@ -23,11 +23,13 @@ 
 #include "qjson.h"
 
 static void sysbus_dev_print(Monitor *mon, DeviceState *dev, int indent);
+static QObject *sysbus_dev_info(Monitor *mon, DeviceState *dev);
 
 struct BusInfo system_bus_info = {
     .name       = "System",
     .size       = sizeof(BusState),
     .print_dev  = sysbus_dev_print,
+    .info_dev  = sysbus_dev_info,
 };
 
 void sysbus_connect_irq(SysBusDevice *dev, int n, qemu_irq irq)