summary refs log tree commit diff stats
path: root/hw/vmware_vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/vmware_vga.h')
-rw-r--r--hw/vmware_vga.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/hw/vmware_vga.h b/hw/vmware_vga.h
index 2e0813c81b..5132573a56 100644
--- a/hw/vmware_vga.h
+++ b/hw/vmware_vga.h
@@ -4,6 +4,16 @@
 #include "qemu-common.h"
 
 /* vmware_vga.c */
-void pci_vmsvga_init(PCIBus *bus);
+static inline bool pci_vmsvga_init(PCIBus *bus)
+{
+    PCIDevice *dev;
+
+    dev = pci_try_create(bus, -1, "vmware-svga");
+    if (!dev || qdev_init(&dev->qdev) < 0) {
+        return false;
+    } else {
+        return true;
+    }
+}
 
 #endif