diff mbox

[15/29] i440fx: qidl_declare PCII440FXState

Message ID 1351775071-7644-16-git-send-email-mdroth@linux.vnet.ibm.com
State New
Headers show

Commit Message

Michael Roth Nov. 1, 2012, 1:04 p.m. UTC
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
 hw/piix_pci.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/hw/piix_pci.c b/hw/piix_pci.c
index 9af5847..a4c32aa 100644
--- a/hw/piix_pci.c
+++ b/hw/piix_pci.c
@@ -30,6 +30,7 @@ 
 #include "sysbus.h"
 #include "range.h"
 #include "xen.h"
+#include "qidl.h"
 
 /*
  * I440FX chipset data sheet.
@@ -68,12 +69,14 @@  typedef struct PIIX3State {
     int32_t pci_irq_levels_vmstate[PIIX_NUM_PIRQS];
 } PIIX3State;
 
-typedef struct PAMMemoryRegion {
+typedef struct PAMMemoryRegion PAMMemoryRegion;
+
+QIDL_DECLARE(PAMMemoryRegion) {
     MemoryRegion alias[4];  /* index = PAM value */
     unsigned current;
-} PAMMemoryRegion;
+};
 
-struct PCII440FXState {
+QIDL_DECLARE(PCII440FXState) {
     PCIDevice dev;
     MemoryRegion *system_memory;
     MemoryRegion *pci_address_space;