void *pl110_init(DisplayState *ds, uint32_t base, qemu_irq irq,

                 int versatile)

{

    pl110_state *s;

    int iomemtype;



    s = (pl110_state *)qemu_mallocz(sizeof(pl110_state));

    iomemtype = cpu_register_io_memory(0, pl110_readfn,

                                       pl110_writefn, s);

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);

    s->base = base;

    s->ds = ds;

    s->versatile = versatile;

    s->irq = irq;

    graphic_console_init(ds, pl110_update_display, pl110_invalidate_display,

                         NULL, s);

    /* ??? Save/restore.  */

    return s;

}

void *pl110_init(DisplayState *ds, uint32_t base, qemu_irq irq,

                 int versatile)

{

    pl110_state *s;

    int iomemtype;



    s = (pl110_state *)qemu_mallocz(sizeof(pl110_state));

    iomemtype = cpu_register_io_memory(0, pl110_readfn,

                                       pl110_writefn, s);

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);

    s->base = base;

    s->ds = ds;

    s->versatile = versatile;

    s->irq = irq;

    graphic_console_init(ds, pl110_update_display, pl110_invalidate_display,

                         NULL, s);

    

    return s;

}

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);     cpu_register_physical_memory(base, 0x00000fff, iomemtype);
void *FUNC_0(DisplayState *VAR_0, uint32_t VAR_1, qemu_irq VAR_2,

                 int VAR_3)

{

    pl110_state *s;

    int VAR_4;



    s = (pl110_state *)qemu_mallocz(sizeof(pl110_state));

    VAR_4 = cpu_register_io_memory(0, pl110_readfn,

                                       pl110_writefn, s);

    cpu_register_physical_memory(VAR_1, 0x00000fff, VAR_4);

    s->VAR_1 = VAR_1;

    s->VAR_0 = VAR_0;

    s->VAR_3 = VAR_3;

    s->VAR_2 = VAR_2;

    graphic_console_init(VAR_0, pl110_update_display, pl110_invalidate_display,

                         NULL, s);

    

    return s;

}

void *FUNC_0(DisplayState *VAR_0, uint32_t VAR_1, qemu_irq VAR_2,
int VAR_3)
{ pl110_state *s; int VAR_4; s = (pl110_state *)qemu_mallocz(sizeof(pl110_state)); VAR_4 = cpu_register_io_memory(0, pl110_readfn,
pl110_writefn, s); cpu_register_physical_memory(VAR_1, 0x00000fff, VAR_4); s->VAR_1 = VAR_1; s->VAR_0 = VAR_0; s->VAR_3 = VAR_3; s->VAR_2 = VAR_2; graphic_console_init(VAR_0, pl110_update_display, pl110_invalidate_display,
NULL, s); return s; }