static void g364fb_init(DeviceState *dev, G364State *s)

{

    s->vram = g_malloc0(s->vram_size);



    s->con = graphic_console_init(g364fb_update_display,

                                  g364fb_invalidate_display,

                                  g364fb_screen_dump, NULL, s);



    memory_region_init_io(&s->mem_ctrl, &g364fb_ctrl_ops, s, "ctrl", 0x180000);

    memory_region_init_ram_ptr(&s->mem_vram, "vram",

                               s->vram_size, s->vram);

    vmstate_register_ram(&s->mem_vram, dev);

    memory_region_set_coalescing(&s->mem_vram);

}

static void g364fb_init(DeviceState *dev, G364State *s)

{

    s->vram = g_malloc0(s->vram_size);



    s->con = graphic_console_init(g364fb_update_display,

                                  g364fb_invalidate_display,

                                  g364fb_screen_dump, NULL, s);



    memory_region_init_io(&s->mem_ctrl, &g364fb_ctrl_ops, s, "ctrl", 0x180000);

    memory_region_init_ram_ptr(&s->mem_vram, "vram",

                               s->vram_size, s->vram);

    vmstate_register_ram(&s->mem_vram, dev);

    memory_region_set_coalescing(&s->mem_vram);

}

static void FUNC_0(DeviceState *VAR_0, G364State *VAR_1)

{

    VAR_1->vram = g_malloc0(VAR_1->vram_size);



    VAR_1->con = graphic_console_init(g364fb_update_display,

                                  g364fb_invalidate_display,

                                  g364fb_screen_dump, NULL, VAR_1);



    memory_region_init_io(&VAR_1->mem_ctrl, &g364fb_ctrl_ops, VAR_1, "ctrl", 0x180000);

    memory_region_init_ram_ptr(&VAR_1->mem_vram, "vram",

                               VAR_1->vram_size, VAR_1->vram);

    vmstate_register_ram(&VAR_1->mem_vram, VAR_0);

    memory_region_set_coalescing(&VAR_1->mem_vram);

}

static void FUNC_0(DeviceState *VAR_0, G364State *VAR_1)
{ VAR_1->vram = g_malloc0(VAR_1->vram_size); VAR_1->con = graphic_console_init(g364fb_update_display,
g364fb_invalidate_display,
g364fb_screen_dump, NULL, VAR_1); memory_region_init_io(&VAR_1->mem_ctrl, &g364fb_ctrl_ops, VAR_1, "ctrl", 0x180000); memory_region_init_ram_ptr(&VAR_1->mem_vram, "vram",
VAR_1->vram_size, VAR_1->vram); vmstate_register_ram(&VAR_1->mem_vram, VAR_0); memory_region_set_coalescing(&VAR_1->mem_vram); }