mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
pci: convert to QEMU Object Model
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6e4ec3f9bb
commit
40021f0888
53 changed files with 1591 additions and 1042 deletions
|
@ -1199,20 +1199,26 @@ static int pci_vmsvga_initfn(PCIDevice *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static PCIDeviceInfo vmsvga_info = {
|
||||
.qdev.name = "vmware-svga",
|
||||
.qdev.size = sizeof(struct pci_vmsvga_state_s),
|
||||
.qdev.vmsd = &vmstate_vmware_vga,
|
||||
.qdev.reset = vmsvga_reset,
|
||||
.no_hotplug = 1,
|
||||
.init = pci_vmsvga_initfn,
|
||||
.romfile = "vgabios-vmware.bin",
|
||||
static void vmsvga_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
|
||||
.vendor_id = PCI_VENDOR_ID_VMWARE,
|
||||
.device_id = SVGA_PCI_DEVICE_ID,
|
||||
.class_id = PCI_CLASS_DISPLAY_VGA,
|
||||
.subsystem_vendor_id = PCI_VENDOR_ID_VMWARE,
|
||||
.subsystem_id = SVGA_PCI_DEVICE_ID,
|
||||
k->no_hotplug = 1;
|
||||
k->init = pci_vmsvga_initfn;
|
||||
k->romfile = "vgabios-vmware.bin";
|
||||
k->vendor_id = PCI_VENDOR_ID_VMWARE;
|
||||
k->device_id = SVGA_PCI_DEVICE_ID;
|
||||
k->class_id = PCI_CLASS_DISPLAY_VGA;
|
||||
k->subsystem_vendor_id = PCI_VENDOR_ID_VMWARE;
|
||||
k->subsystem_id = SVGA_PCI_DEVICE_ID;
|
||||
}
|
||||
|
||||
static DeviceInfo vmsvga_info = {
|
||||
.name = "vmware-svga",
|
||||
.size = sizeof(struct pci_vmsvga_state_s),
|
||||
.vmsd = &vmstate_vmware_vga,
|
||||
.reset = vmsvga_reset,
|
||||
.class_init = vmsvga_class_init,
|
||||
};
|
||||
|
||||
static void vmsvga_register(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue