static void vmsvga_init(struct vmsvga_state_s *s,

                        MemoryRegion *address_space, MemoryRegion *io)

{

    s->scratch_size = SVGA_SCRATCH_SIZE;

    s->scratch = g_malloc(s->scratch_size * 4);



    s->vga.con = graphic_console_init(vmsvga_update_display,

                                      vmsvga_invalidate_display,

                                      vmsvga_screen_dump,

                                      vmsvga_text_update, s);



    s->fifo_size = SVGA_FIFO_SIZE;

    memory_region_init_ram(&s->fifo_ram, "vmsvga.fifo", s->fifo_size);

    vmstate_register_ram_global(&s->fifo_ram);

    s->fifo_ptr = memory_region_get_ram_ptr(&s->fifo_ram);



    vga_common_init(&s->vga);

    vga_init(&s->vga, address_space, io, true);

    vmstate_register(NULL, 0, &vmstate_vga_common, &s->vga);

    s->new_depth = 32;

}

static void vmsvga_init(struct vmsvga_state_s *s,

                        MemoryRegion *address_space, MemoryRegion *io)

{

    s->scratch_size = SVGA_SCRATCH_SIZE;

    s->scratch = g_malloc(s->scratch_size * 4);



    s->vga.con = graphic_console_init(vmsvga_update_display,

                                      vmsvga_invalidate_display,

                                      vmsvga_screen_dump,

                                      vmsvga_text_update, s);



    s->fifo_size = SVGA_FIFO_SIZE;

    memory_region_init_ram(&s->fifo_ram, "vmsvga.fifo", s->fifo_size);

    vmstate_register_ram_global(&s->fifo_ram);

    s->fifo_ptr = memory_region_get_ram_ptr(&s->fifo_ram);



    vga_common_init(&s->vga);

    vga_init(&s->vga, address_space, io, true);

    vmstate_register(NULL, 0, &vmstate_vga_common, &s->vga);

    s->new_depth = 32;

}

static void FUNC_0(struct vmsvga_state_s *VAR_0,

                        MemoryRegion *VAR_1, MemoryRegion *VAR_2)

{

    VAR_0->scratch_size = SVGA_SCRATCH_SIZE;

    VAR_0->scratch = g_malloc(VAR_0->scratch_size * 4);



    VAR_0->vga.con = graphic_console_init(vmsvga_update_display,

                                      vmsvga_invalidate_display,

                                      vmsvga_screen_dump,

                                      vmsvga_text_update, VAR_0);



    VAR_0->fifo_size = SVGA_FIFO_SIZE;

    memory_region_init_ram(&VAR_0->fifo_ram, "vmsvga.fifo", VAR_0->fifo_size);

    vmstate_register_ram_global(&VAR_0->fifo_ram);

    VAR_0->fifo_ptr = memory_region_get_ram_ptr(&VAR_0->fifo_ram);



    vga_common_init(&VAR_0->vga);

    vga_init(&VAR_0->vga, VAR_1, VAR_2, true);

    vmstate_register(NULL, 0, &vmstate_vga_common, &VAR_0->vga);

    VAR_0->new_depth = 32;

}

static void FUNC_0(struct vmsvga_state_s *VAR_0,
MemoryRegion *VAR_1, MemoryRegion *VAR_2)
{ VAR_0->scratch_size = SVGA_SCRATCH_SIZE; VAR_0->scratch = g_malloc(VAR_0->scratch_size * 4); VAR_0->vga.con = graphic_console_init(vmsvga_update_display,
vmsvga_invalidate_display,
vmsvga_screen_dump,
vmsvga_text_update, VAR_0); VAR_0->fifo_size = SVGA_FIFO_SIZE; memory_region_init_ram(&VAR_0->fifo_ram, "vmsvga.fifo", VAR_0->fifo_size); vmstate_register_ram_global(&VAR_0->fifo_ram); VAR_0->fifo_ptr = memory_region_get_ram_ptr(&VAR_0->fifo_ram); vga_common_init(&VAR_0->vga); vga_init(&VAR_0->vga, VAR_1, VAR_2, true); vmstate_register(NULL, 0, &vmstate_vga_common, &VAR_0->vga); VAR_0->new_depth = 32; }