Patchwork [v3,09/10] pci: add some stubs

login
register
mail settings
Submitter Hervé Poussineau
Date July 9, 2012, 10:02 a.m.
Message ID <1341828152-15199-10-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/169735/
State New
Headers show

Comments

Hervé Poussineau - July 9, 2012, 10:02 a.m.
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/pci-stub.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

Patch

diff --git a/hw/pci-stub.c b/hw/pci-stub.c
index 134c448..e083191 100644
--- a/hw/pci-stub.c
+++ b/hw/pci-stub.c
@@ -34,6 +34,21 @@  static void pci_error_message(Monitor *mon)
     monitor_printf(mon, "PCI devices not supported\n");
 }
 
+void pci_register_bar(PCIDevice *pci_dev, int region_num,
+                      uint8_t type, MemoryRegion *memory)
+{
+}
+
+const VMStateDescription vmstate_pci_device = {
+    .name = "PCIDeviceStub",
+    .version_id = 1,
+    .minimum_version_id = 1,
+    .minimum_version_id_old = 1,
+    .fields      = (VMStateField[]) {
+        VMSTATE_END_OF_LIST()
+    }
+};
+
 int do_pcie_aer_inject_error(Monitor *mon,
                              const QDict *qdict, QObject **ret_data)
 {