pci: add some stubs
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 9 Jul 2012 10:02:30 +0000 (12:02 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 14 Jul 2012 10:12:59 +0000 (10:12 +0000)
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pci-stub.c

index 134c4484b68fef8929cd8ecd7d635249ee7019c7..e08319152918619f81f2cbcec0f1c9abc46659d3 100644 (file)
@@ -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)
 {