Loading hw/display/vga-pci.c +9 −0 Original line number Diff line number Diff line Loading @@ -292,6 +292,14 @@ static void pci_secondary_vga_realize(PCIDevice *dev, Error **errp) pci_register_bar(&d->dev, 2, PCI_BASE_ADDRESS_SPACE_MEMORY, &d->mmio); } static void pci_secondary_vga_exit(PCIDevice *dev) { PCIVGAState *d = PCI_VGA(dev); VGACommonState *s = &d->vga; graphic_console_close(s->con); } static void pci_secondary_vga_init(Object *obj) { /* Expose framebuffer byteorder via QOM */ Loading Loading @@ -361,6 +369,7 @@ static void secondary_class_init(ObjectClass *klass, void *data) PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->realize = pci_secondary_vga_realize; k->exit = pci_secondary_vga_exit; k->class_id = PCI_CLASS_DISPLAY_OTHER; dc->props = secondary_pci_properties; dc->reset = pci_secondary_vga_reset; Loading Loading
hw/display/vga-pci.c +9 −0 Original line number Diff line number Diff line Loading @@ -292,6 +292,14 @@ static void pci_secondary_vga_realize(PCIDevice *dev, Error **errp) pci_register_bar(&d->dev, 2, PCI_BASE_ADDRESS_SPACE_MEMORY, &d->mmio); } static void pci_secondary_vga_exit(PCIDevice *dev) { PCIVGAState *d = PCI_VGA(dev); VGACommonState *s = &d->vga; graphic_console_close(s->con); } static void pci_secondary_vga_init(Object *obj) { /* Expose framebuffer byteorder via QOM */ Loading Loading @@ -361,6 +369,7 @@ static void secondary_class_init(ObjectClass *klass, void *data) PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->realize = pci_secondary_vga_realize; k->exit = pci_secondary_vga_exit; k->class_id = PCI_CLASS_DISPLAY_OTHER; dc->props = secondary_pci_properties; dc->reset = pci_secondary_vga_reset; Loading