Patchwork [03/29] isa: qidl_declare ISADevice

login
register
mail settings
Submitter Michael Roth
Date Nov. 1, 2012, 1:04 p.m.
Message ID <1351775071-7644-4-git-send-email-mdroth@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/196253/
State New
Headers show

Comments

Michael Roth - Nov. 1, 2012, 1:04 p.m.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
 hw/isa-bus.c |    4 ++++
 hw/isa.h     |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

Patch

diff --git a/hw/isa-bus.c b/hw/isa-bus.c
index 685fdc0..821a16c 100644
--- a/hw/isa-bus.c
+++ b/hw/isa-bus.c
@@ -22,6 +22,10 @@ 
 #include "sysemu.h"
 #include "isa.h"
 #include "exec-memory.h"
+#include "qidl.h"
+
+QIDL_ENABLE()
+QIDL_IMPLEMENT_PUBLIC(ISADevice)
 
 static ISABus *isabus;
 hwaddr isa_mem_base = 0;
diff --git a/hw/isa.h b/hw/isa.h
index f9382e8..8f8e6c2 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -6,6 +6,7 @@ 
 #include "ioport.h"
 #include "memory.h"
 #include "qdev.h"
+#include "qidl.h"
 
 #define ISA_NUM_IRQS 16
 
@@ -31,7 +32,7 @@  struct ISABus {
     qemu_irq *irqs;
 };
 
-struct ISADevice {
+QIDL_DECLARE_PUBLIC(ISADevice) {
     DeviceState qdev;
     uint32_t isairq[2];
     int nirqs;