Revision 310faaed hw/vmware_vga.c

b/hw/vmware_vga.c
1280 1280
    struct pci_vmsvga_state_s *s =
1281 1281
        DO_UPCAST(struct pci_vmsvga_state_s, card, dev);
1282 1282

  
1283
    pci_config_set_vendor_id(s->card.config, PCI_VENDOR_ID_VMWARE);
1284
    pci_config_set_device_id(s->card.config, SVGA_PCI_DEVICE_ID);
1285
    pci_config_set_class(s->card.config, PCI_CLASS_DISPLAY_VGA);
1286 1283
    s->card.config[PCI_CACHE_LINE_SIZE]	= 0x08;		/* Cache line size */
1287 1284
    s->card.config[PCI_LATENCY_TIMER] = 0x40;		/* Latency timer */
1288
    s->card.config[PCI_SUBSYSTEM_VENDOR_ID] = PCI_VENDOR_ID_VMWARE & 0xff;
1289
    s->card.config[PCI_SUBSYSTEM_VENDOR_ID + 1]	= PCI_VENDOR_ID_VMWARE >> 8;
1290
    s->card.config[PCI_SUBSYSTEM_ID] = SVGA_PCI_DEVICE_ID & 0xff;
1291
    s->card.config[PCI_SUBSYSTEM_ID + 1] = SVGA_PCI_DEVICE_ID >> 8;
1292 1285
    s->card.config[PCI_INTERRUPT_LINE] = 0xff;		/* End */
1293 1286

  
1294 1287
    pci_register_bar(&s->card, 0, 0x10,
......
1316 1309
    .no_hotplug   = 1,
1317 1310
    .init         = pci_vmsvga_initfn,
1318 1311
    .romfile      = "vgabios-vmware.bin",
1312

  
1313
    .vendor_id    =  PCI_VENDOR_ID_VMWARE,
1314
    .device_id    = SVGA_PCI_DEVICE_ID,
1315
    .class_id     = PCI_CLASS_DISPLAY_VGA,
1316
    .subsystem_vendor_id = PCI_VENDOR_ID_VMWARE,
1317
    .subsystem_id = SVGA_PCI_DEVICE_ID,
1319 1318
};
1320 1319

  
1321 1320
static void vmsvga_register(void)

Also available in: Unified diff