Revision 32902772

b/hw/vga-pci.c
74 74
{
75 75
     PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev);
76 76
     VGACommonState *s = &d->vga;
77
     uint8_t *pci_conf = d->dev.config;
78 77

  
79 78
     // vga + console init
80 79
     vga_common_init(s, VGA_RAM_SIZE);
......
83 82
     s->ds = graphic_console_init(s->update, s->invalidate,
84 83
                                  s->screen_dump, s->text_update, s);
85 84

  
86
     // dummy VGA (same as Bochs ID)
87
     pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_QEMU);
88
     pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_QEMU_VGA);
89
     pci_config_set_class(pci_conf, PCI_CLASS_DISPLAY_VGA);
90

  
91 85
     /* XXX: VGA_RAM_SIZE must be a power of two */
92 86
     pci_register_bar(&d->dev, 0, VGA_RAM_SIZE,
93 87
                      PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map);
......
114 108
    .init         = pci_vga_initfn,
115 109
    .config_write = pci_vga_write_config,
116 110
    .romfile      = "vgabios-stdvga.bin",
111

  
112
    /* dummy VGA (same as Bochs ID) */
113
    .vendor_id    = PCI_VENDOR_ID_QEMU,
114
    .device_id    = PCI_DEVICE_ID_QEMU_VGA,
115
    .class_id     = PCI_CLASS_DISPLAY_VGA,
117 116
};
118 117

  
119 118
static void vga_register(void)

Also available in: Unified diff