65
65
PCIVGAState *pvs = container_of(d, PCIVGAState, dev);
66
66
VGACommonState *s = &pvs->vga;
69
68
pci_default_write_config(d, address, val, len);
70
69
if (s->map_addr && pvs->dev.io_regions[0].addr == -1)
75
73
static int pci_vga_initfn(PCIDevice *dev)
77
75
PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev);
78
76
VGACommonState *s = &d->vga;
82
79
vga_common_init(s, VGA_RAM_SIZE);