void pl050_init(uint32_t base, qemu_irq irq, int is_mouse)

{

    int iomemtype;

    pl050_state *s;



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

    iomemtype = cpu_register_io_memory(0, pl050_readfn,

                                       pl050_writefn, s);

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);

    s->base = base;

    s->irq = irq;

    s->is_mouse = is_mouse;

    if (is_mouse)

        s->dev = ps2_mouse_init(pl050_update, s);

    else

        s->dev = ps2_kbd_init(pl050_update, s);

    /* ??? Save/restore.  */

}

void pl050_init(uint32_t base, qemu_irq irq, int is_mouse)

{

    int iomemtype;

    pl050_state *s;



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

    iomemtype = cpu_register_io_memory(0, pl050_readfn,

                                       pl050_writefn, s);

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);

    s->base = base;

    s->irq = irq;

    s->is_mouse = is_mouse;

    if (is_mouse)

        s->dev = ps2_mouse_init(pl050_update, s);

    else

        s->dev = ps2_kbd_init(pl050_update, 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(uint32_t VAR_0, qemu_irq VAR_1, int VAR_2)

{

    int VAR_3;

    pl050_state *s;



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

    VAR_3 = cpu_register_io_memory(0, pl050_readfn,

                                       pl050_writefn, s);

    cpu_register_physical_memory(VAR_0, 0x00000fff, VAR_3);

    s->VAR_0 = VAR_0;

    s->VAR_1 = VAR_1;

    s->VAR_2 = VAR_2;

    if (VAR_2)

        s->dev = ps2_mouse_init(pl050_update, s);

    else

        s->dev = ps2_kbd_init(pl050_update, s);

    

}

void FUNC_0(uint32_t VAR_0, qemu_irq VAR_1, int VAR_2)
{ int VAR_3; pl050_state *s; s = (pl050_state *)qemu_mallocz(sizeof(pl050_state)); VAR_3 = cpu_register_io_memory(0, pl050_readfn,
pl050_writefn, s); cpu_register_physical_memory(VAR_0, 0x00000fff, VAR_3); s->VAR_0 = VAR_0; s->VAR_1 = VAR_1; s->VAR_2 = VAR_2; if (VAR_2)
s->dev = ps2_mouse_init(pl050_update, s); else
s->dev = ps2_kbd_init(pl050_update, s); }