static void vmsvga_init(struct vmsvga_state_s *s, DisplayState *ds,

                uint8_t *vga_ram_base, unsigned long vga_ram_offset,

                int vga_ram_size)

{

    s->ds = ds;

    s->vram = vga_ram_base;

    s->vram_size = vga_ram_size;

    s->vram_offset = vga_ram_offset;



    s->scratch_size = SVGA_SCRATCH_SIZE;

    s->scratch = (uint32_t *) qemu_malloc(s->scratch_size * 4);



    vmsvga_reset(s);



    s->console = graphic_console_init(ds, vmsvga_update_display,

                                      vmsvga_invalidate_display,

                                      vmsvga_screen_dump,

                                      vmsvga_text_update, s);



#ifdef EMBED_STDVGA

    vga_common_init((VGAState *) s, ds,

                    vga_ram_base, vga_ram_offset, vga_ram_size);

    vga_init((VGAState *) s);

#endif

}

static void vmsvga_init(struct vmsvga_state_s *s, DisplayState *ds,

                uint8_t *vga_ram_base, unsigned long vga_ram_offset,

                int vga_ram_size)

{

    s->ds = ds;

    s->vram = vga_ram_base;

    s->vram_size = vga_ram_size;

    s->vram_offset = vga_ram_offset;



    s->scratch_size = SVGA_SCRATCH_SIZE;

    s->scratch = (uint32_t *) qemu_malloc(s->scratch_size * 4);



    vmsvga_reset(s);



    s->console = graphic_console_init(ds, vmsvga_update_display,

                                      vmsvga_invalidate_display,

                                      vmsvga_screen_dump,

                                      vmsvga_text_update, s);



#ifdef EMBED_STDVGA

    vga_common_init((VGAState *) s, ds,

                    vga_ram_base, vga_ram_offset, vga_ram_size);

    vga_init((VGAState *) s);

#endif

}

static void FUNC_0(struct vmsvga_state_s *VAR_0, DisplayState *VAR_1,

                uint8_t *VAR_2, unsigned long VAR_3,

                int VAR_4)

{

    VAR_0->VAR_1 = VAR_1;

    VAR_0->vram = VAR_2;

    VAR_0->vram_size = VAR_4;

    VAR_0->vram_offset = VAR_3;



    VAR_0->scratch_size = SVGA_SCRATCH_SIZE;

    VAR_0->scratch = (uint32_t *) qemu_malloc(VAR_0->scratch_size * 4);



    vmsvga_reset(VAR_0);



    VAR_0->console = graphic_console_init(VAR_1, vmsvga_update_display,

                                      vmsvga_invalidate_display,

                                      vmsvga_screen_dump,

                                      vmsvga_text_update, VAR_0);



#ifdef EMBED_STDVGA

    vga_common_init((VGAState *) VAR_0, VAR_1,

                    VAR_2, VAR_3, VAR_4);

    vga_init((VGAState *) VAR_0);

#endif

}

static void FUNC_0(struct vmsvga_state_s *VAR_0, DisplayState *VAR_1,
uint8_t *VAR_2, unsigned long VAR_3,
int VAR_4)
{ VAR_0->VAR_1 = VAR_1; VAR_0->vram = VAR_2; VAR_0->vram_size = VAR_4; VAR_0->vram_offset = VAR_3; VAR_0->scratch_size = SVGA_SCRATCH_SIZE; VAR_0->scratch = (uint32_t *) qemu_malloc(VAR_0->scratch_size * 4); vmsvga_reset(VAR_0); VAR_0->console = graphic_console_init(VAR_1, vmsvga_update_display,
vmsvga_invalidate_display,
vmsvga_screen_dump,
vmsvga_text_update, VAR_0); #ifdef EMBED_STDVGA
vga_common_init((VGAState *) VAR_0, VAR_1,
VAR_2, VAR_3, VAR_4); vga_init((VGAState *) VAR_0); #endif
}