2009-11-11 13:59:56 +01:00
|
|
|
#ifndef QEMU_VMWARE_VGA_H
|
|
|
|
#define QEMU_VMWARE_VGA_H
|
|
|
|
|
|
|
|
#include "qemu-common.h"
|
|
|
|
|
|
|
|
/* vmware_vga.c */
|
2011-12-12 21:29:41 +01:00
|
|
|
static inline DeviceState *pci_vmsvga_init(PCIBus *bus)
|
2011-02-05 15:34:19 +01:00
|
|
|
{
|
2011-02-05 15:34:37 +01:00
|
|
|
PCIDevice *dev;
|
|
|
|
|
|
|
|
dev = pci_try_create(bus, -1, "vmware-svga");
|
|
|
|
if (!dev || qdev_init(&dev->qdev) < 0) {
|
2011-12-12 21:29:41 +01:00
|
|
|
return NULL;
|
2011-02-05 15:34:37 +01:00
|
|
|
} else {
|
2011-12-12 21:29:41 +01:00
|
|
|
return &dev->qdev;
|
2011-02-05 15:34:37 +01:00
|
|
|
}
|
2011-02-05 15:34:19 +01:00
|
|
|
}
|
2009-11-11 13:59:56 +01:00
|
|
|
|
|
|
|
#endif
|