Patchwork [21/29] pci_bridge_dev: qidl_declare PCIBridgeDev

login
register
mail settings
Submitter Michael Roth
Date Nov. 1, 2012, 1:04 p.m.
Message ID <1351775071-7644-22-git-send-email-mdroth@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/196218/
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/pci_bridge_dev.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/pci_bridge_dev.c b/hw/pci_bridge_dev.c
index f706396..d793857 100644
--- a/hw/pci_bridge_dev.c
+++ b/hw/pci_bridge_dev.c
@@ -26,19 +26,21 @@ 
 #include "slotid_cap.h"
 #include "memory.h"
 #include "pci_internals.h"
+#include "qidl.h"
 
 #define REDHAT_PCI_VENDOR_ID 0x1b36
 #define PCI_BRIDGE_DEV_VENDOR_ID REDHAT_PCI_VENDOR_ID
 #define PCI_BRIDGE_DEV_DEVICE_ID 0x1
 
-struct PCIBridgeDev {
+typedef struct PCIBridgeDev PCIBridgeDev;
+
+QIDL_DECLARE(PCIBridgeDev) {
     PCIBridge bridge;
     MemoryRegion bar;
     uint8_t chassis_nr;
 #define PCI_BRIDGE_DEV_F_MSI_REQ 0
     uint32_t flags;
 };
-typedef struct PCIBridgeDev PCIBridgeDev;
 
 /* Mapping mandated by PCI-to-PCI Bridge architecture specification,
  * revision 1.2 */