static void musicpal_lcd_init(DisplayState *ds, uint32_t base)

{

    musicpal_lcd_state *s;

    int iomemtype;



    s = qemu_mallocz(sizeof(musicpal_lcd_state));

    if (!s)

        return;

    s->base = base;

    s->ds = ds;

    iomemtype = cpu_register_io_memory(0, musicpal_lcd_readfn,

                                       musicpal_lcd_writefn, s);

    cpu_register_physical_memory(base, MP_LCD_SIZE, iomemtype);



    graphic_console_init(ds, lcd_refresh, NULL, NULL, NULL, s);

    dpy_resize(ds, 128*3, 64*3);

}

static void musicpal_lcd_init(DisplayState *ds, uint32_t base)

{

    musicpal_lcd_state *s;

    int iomemtype;



    s = qemu_mallocz(sizeof(musicpal_lcd_state));

    if (!s)

        return;

    s->base = base;

    s->ds = ds;

    iomemtype = cpu_register_io_memory(0, musicpal_lcd_readfn,

                                       musicpal_lcd_writefn, s);

    cpu_register_physical_memory(base, MP_LCD_SIZE, iomemtype);



    graphic_console_init(ds, lcd_refresh, NULL, NULL, NULL, s);

    dpy_resize(ds, 128*3, 64*3);

}

static void FUNC_0(DisplayState *VAR_0, uint32_t VAR_1)

{

    musicpal_lcd_state *s;

    int VAR_2;



    s = qemu_mallocz(sizeof(musicpal_lcd_state));

    if (!s)

        return;

    s->VAR_1 = VAR_1;

    s->VAR_0 = VAR_0;

    VAR_2 = cpu_register_io_memory(0, musicpal_lcd_readfn,

                                       musicpal_lcd_writefn, s);

    cpu_register_physical_memory(VAR_1, MP_LCD_SIZE, VAR_2);



    graphic_console_init(VAR_0, lcd_refresh, NULL, NULL, NULL, s);

    dpy_resize(VAR_0, 128*3, 64*3);

}

static void FUNC_0(DisplayState *VAR_0, uint32_t VAR_1)
{ musicpal_lcd_state *s; int VAR_2; s = qemu_mallocz(sizeof(musicpal_lcd_state)); if (!s)
return; s->VAR_1 = VAR_1; s->VAR_0 = VAR_0; VAR_2 = cpu_register_io_memory(0, musicpal_lcd_readfn,
musicpal_lcd_writefn, s); cpu_register_physical_memory(VAR_1, MP_LCD_SIZE, VAR_2); graphic_console_init(VAR_0, lcd_refresh, NULL, NULL, NULL, s); dpy_resize(VAR_0, 128*3, 64*3); }