static struct omap_prcm_s *omap_prcm_init(struct omap_target_agent_s *ta,

                qemu_irq mpu_int, qemu_irq dsp_int, qemu_irq iva_int,

                struct omap_mpu_state_s *mpu)

{

    struct omap_prcm_s *s = (struct omap_prcm_s *)

            g_malloc0(sizeof(struct omap_prcm_s));



    s->irq[0] = mpu_int;

    s->irq[1] = dsp_int;

    s->irq[2] = iva_int;

    s->mpu = mpu;

    omap_prcm_coldreset(s);



    memory_region_init_io(&s->iomem0, NULL, &omap_prcm_ops, s, "omap.pcrm0",

                          omap_l4_region_size(ta, 0));

    memory_region_init_io(&s->iomem1, NULL, &omap_prcm_ops, s, "omap.pcrm1",

                          omap_l4_region_size(ta, 1));

    omap_l4_attach(ta, 0, &s->iomem0);

    omap_l4_attach(ta, 1, &s->iomem1);



    return s;

}

static struct omap_prcm_s *omap_prcm_init(struct omap_target_agent_s *ta,

                qemu_irq mpu_int, qemu_irq dsp_int, qemu_irq iva_int,

                struct omap_mpu_state_s *mpu)

{

    struct omap_prcm_s *s = (struct omap_prcm_s *)

            g_malloc0(sizeof(struct omap_prcm_s));



    s->irq[0] = mpu_int;

    s->irq[1] = dsp_int;

    s->irq[2] = iva_int;

    s->mpu = mpu;

    omap_prcm_coldreset(s);



    memory_region_init_io(&s->iomem0, NULL, &omap_prcm_ops, s, "omap.pcrm0",

                          omap_l4_region_size(ta, 0));

    memory_region_init_io(&s->iomem1, NULL, &omap_prcm_ops, s, "omap.pcrm1",

                          omap_l4_region_size(ta, 1));

    omap_l4_attach(ta, 0, &s->iomem0);

    omap_l4_attach(ta, 1, &s->iomem1);



    return s;

}

    struct omap_prcm_s *s = (struct omap_prcm_s *)             g_malloc0(sizeof(struct omap_prcm_s));
static struct omap_prcm_s *FUNC_0(struct omap_target_agent_s *VAR_0,

                qemu_irq VAR_1, qemu_irq VAR_2, qemu_irq VAR_3,

                struct omap_mpu_state_s *VAR_4)

{

    struct omap_prcm_s *VAR_5 = (struct omap_prcm_s *)

            g_malloc0(sizeof(struct omap_prcm_s));



    VAR_5->irq[0] = VAR_1;

    VAR_5->irq[1] = VAR_2;

    VAR_5->irq[2] = VAR_3;

    VAR_5->VAR_4 = VAR_4;

    omap_prcm_coldreset(VAR_5);



    memory_region_init_io(&VAR_5->iomem0, NULL, &omap_prcm_ops, VAR_5, "omap.pcrm0",

                          omap_l4_region_size(VAR_0, 0));

    memory_region_init_io(&VAR_5->iomem1, NULL, &omap_prcm_ops, VAR_5, "omap.pcrm1",

                          omap_l4_region_size(VAR_0, 1));

    omap_l4_attach(VAR_0, 0, &VAR_5->iomem0);

    omap_l4_attach(VAR_0, 1, &VAR_5->iomem1);



    return VAR_5;

}

static struct omap_prcm_s *FUNC_0(struct omap_target_agent_s *VAR_0,
qemu_irq VAR_1, qemu_irq VAR_2, qemu_irq VAR_3,
struct omap_mpu_state_s *VAR_4)
{ struct omap_prcm_s *VAR_5 = (struct omap_prcm_s *)
g_malloc0(sizeof(struct omap_prcm_s)); VAR_5->irq[0] = VAR_1; VAR_5->irq[1] = VAR_2; VAR_5->irq[2] = VAR_3; VAR_5->VAR_4 = VAR_4; omap_prcm_coldreset(VAR_5); memory_region_init_io(&VAR_5->iomem0, NULL, &omap_prcm_ops, VAR_5, "omap.pcrm0",
omap_l4_region_size(VAR_0, 0)); memory_region_init_io(&VAR_5->iomem1, NULL, &omap_prcm_ops, VAR_5, "omap.pcrm1",
omap_l4_region_size(VAR_0, 1)); omap_l4_attach(VAR_0, 0, &VAR_5->iomem0); omap_l4_attach(VAR_0, 1, &VAR_5->iomem1); return VAR_5; }