e1000: bounds packet size against buffer size
[qemu.git] / hw / vmware_vga.h
blob5132573a56f3ad239642201cf568c19e24629110
1 #ifndef QEMU_VMWARE_VGA_H
2 #define QEMU_VMWARE_VGA_H
4 #include "qemu-common.h"
6 /* vmware_vga.c */
7 static inline bool pci_vmsvga_init(PCIBus *bus)
9 PCIDevice *dev;
11 dev = pci_try_create(bus, -1, "vmware-svga");
12 if (!dev || qdev_init(&dev->qdev) < 0) {
13 return false;
14 } else {
15 return true;
19 #endif