struct omap_gp_timer_s *omap_gp_timer_init(struct omap_target_agent_s *ta,

                qemu_irq irq, omap_clk fclk, omap_clk iclk)

{

    struct omap_gp_timer_s *s = (struct omap_gp_timer_s *)

            g_malloc0(sizeof(struct omap_gp_timer_s));



    s->ta = ta;

    s->irq = irq;

    s->clk = fclk;

    s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_tick, s);

    s->match = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_match, s);

    s->in = qemu_allocate_irq(omap_gp_timer_input, s, 0);

    omap_gp_timer_reset(s);

    omap_gp_timer_clk_setup(s);



    memory_region_init_io(&s->iomem, NULL, &omap_gp_timer_ops, s, "omap.gptimer",

                          omap_l4_region_size(ta, 0));

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



    return s;

}

struct omap_gp_timer_s *omap_gp_timer_init(struct omap_target_agent_s *ta,

                qemu_irq irq, omap_clk fclk, omap_clk iclk)

{

    struct omap_gp_timer_s *s = (struct omap_gp_timer_s *)

            g_malloc0(sizeof(struct omap_gp_timer_s));



    s->ta = ta;

    s->irq = irq;

    s->clk = fclk;

    s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_tick, s);

    s->match = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_match, s);

    s->in = qemu_allocate_irq(omap_gp_timer_input, s, 0);

    omap_gp_timer_reset(s);

    omap_gp_timer_clk_setup(s);



    memory_region_init_io(&s->iomem, NULL, &omap_gp_timer_ops, s, "omap.gptimer",

                          omap_l4_region_size(ta, 0));

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



    return s;

}

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

                qemu_irq VAR_1, omap_clk VAR_2, omap_clk VAR_3)

{

    struct omap_gp_timer_s *VAR_4 = (struct omap_gp_timer_s *)

            g_malloc0(sizeof(struct omap_gp_timer_s));



    VAR_4->VAR_0 = VAR_0;

    VAR_4->VAR_1 = VAR_1;

    VAR_4->clk = VAR_2;

    VAR_4->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_tick, VAR_4);

    VAR_4->match = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_match, VAR_4);

    VAR_4->in = qemu_allocate_irq(omap_gp_timer_input, VAR_4, 0);

    omap_gp_timer_reset(VAR_4);

    omap_gp_timer_clk_setup(VAR_4);



    memory_region_init_io(&VAR_4->iomem, NULL, &omap_gp_timer_ops, VAR_4, "omap.gptimer",

                          omap_l4_region_size(VAR_0, 0));

    omap_l4_attach(VAR_0, 0, &VAR_4->iomem);



    return VAR_4;

}

struct omap_gp_timer_s *FUNC_0(struct omap_target_agent_s *VAR_0,
qemu_irq VAR_1, omap_clk VAR_2, omap_clk VAR_3)
{ struct omap_gp_timer_s *VAR_4 = (struct omap_gp_timer_s *)
g_malloc0(sizeof(struct omap_gp_timer_s)); VAR_4->VAR_0 = VAR_0; VAR_4->VAR_1 = VAR_1; VAR_4->clk = VAR_2; VAR_4->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_tick, VAR_4); VAR_4->match = timer_new_ns(QEMU_CLOCK_VIRTUAL, omap_gp_timer_match, VAR_4); VAR_4->in = qemu_allocate_irq(omap_gp_timer_input, VAR_4, 0); omap_gp_timer_reset(VAR_4); omap_gp_timer_clk_setup(VAR_4); memory_region_init_io(&VAR_4->iomem, NULL, &omap_gp_timer_ops, VAR_4, "omap.gptimer",
omap_l4_region_size(VAR_0, 0)); omap_l4_attach(VAR_0, 0, &VAR_4->iomem); return VAR_4; }