void pl181_init(uint32_t base, BlockDriverState *bd,

                qemu_irq irq0, qemu_irq irq1)

{

    int iomemtype;

    pl181_state *s;



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

    iomemtype = cpu_register_io_memory(0, pl181_readfn,

                                       pl181_writefn, s);

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);

    s->base = base;

    s->card = sd_init(bd);

    s->irq[0] = irq0;

    s->irq[1] = irq1;

    qemu_register_reset(pl181_reset, s);

    pl181_reset(s);

    /* ??? Save/restore.  */

}

void pl181_init(uint32_t base, BlockDriverState *bd,

                qemu_irq irq0, qemu_irq irq1)

{

    int iomemtype;

    pl181_state *s;



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

    iomemtype = cpu_register_io_memory(0, pl181_readfn,

                                       pl181_writefn, s);

    cpu_register_physical_memory(base, 0x00000fff, iomemtype);

    s->base = base;

    s->card = sd_init(bd);

    s->irq[0] = irq0;

    s->irq[1] = irq1;

    qemu_register_reset(pl181_reset, s);

    pl181_reset(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, BlockDriverState *VAR_1,

                qemu_irq VAR_2, qemu_irq VAR_3)

{

    int VAR_4;

    pl181_state *s;



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

    VAR_4 = cpu_register_io_memory(0, pl181_readfn,

                                       pl181_writefn, s);

    cpu_register_physical_memory(VAR_0, 0x00000fff, VAR_4);

    s->VAR_0 = VAR_0;

    s->card = sd_init(VAR_1);

    s->irq[0] = VAR_2;

    s->irq[1] = VAR_3;

    qemu_register_reset(pl181_reset, s);

    pl181_reset(s);

    

}

void FUNC_0(uint32_t VAR_0, BlockDriverState *VAR_1,
qemu_irq VAR_2, qemu_irq VAR_3)
{ int VAR_4; pl181_state *s; s = (pl181_state *)qemu_mallocz(sizeof(pl181_state)); VAR_4 = cpu_register_io_memory(0, pl181_readfn,
pl181_writefn, s); cpu_register_physical_memory(VAR_0, 0x00000fff, VAR_4); s->VAR_0 = VAR_0; s->card = sd_init(VAR_1); s->irq[0] = VAR_2; s->irq[1] = VAR_3; qemu_register_reset(pl181_reset, s); pl181_reset(s); }