static struct omap_rtc_s *omap_rtc_init(MemoryRegion *system_memory,

                target_phys_addr_t base,

                qemu_irq *irq, omap_clk clk)

{

    struct omap_rtc_s *s = (struct omap_rtc_s *)

            g_malloc0(sizeof(struct omap_rtc_s));



    s->irq = irq[0];

    s->alarm = irq[1];

    s->clk = qemu_new_timer_ms(rt_clock, omap_rtc_tick, s);



    omap_rtc_reset(s);



    memory_region_init_io(&s->iomem, &omap_rtc_ops, s,

                          "omap-rtc", 0x800);

    memory_region_add_subregion(system_memory, base, &s->iomem);



    return s;

}

static struct omap_rtc_s *omap_rtc_init(MemoryRegion *system_memory,

                target_phys_addr_t base,

                qemu_irq *irq, omap_clk clk)

{

    struct omap_rtc_s *s = (struct omap_rtc_s *)

            g_malloc0(sizeof(struct omap_rtc_s));



    s->irq = irq[0];

    s->alarm = irq[1];

    s->clk = qemu_new_timer_ms(rt_clock, omap_rtc_tick, s);



    omap_rtc_reset(s);



    memory_region_init_io(&s->iomem, &omap_rtc_ops, s,

                          "omap-rtc", 0x800);

    memory_region_add_subregion(system_memory, base, &s->iomem);



    return s;

}

static struct omap_rtc_s *FUNC_0(MemoryRegion *VAR_0,

                target_phys_addr_t VAR_1,

                qemu_irq *VAR_2, omap_clk VAR_3)

{

    struct omap_rtc_s *VAR_4 = (struct omap_rtc_s *)

            g_malloc0(sizeof(struct omap_rtc_s));



    VAR_4->VAR_2 = VAR_2[0];

    VAR_4->alarm = VAR_2[1];

    VAR_4->VAR_3 = qemu_new_timer_ms(rt_clock, omap_rtc_tick, VAR_4);



    omap_rtc_reset(VAR_4);



    memory_region_init_io(&VAR_4->iomem, &omap_rtc_ops, VAR_4,

                          "omap-rtc", 0x800);

    memory_region_add_subregion(VAR_0, VAR_1, &VAR_4->iomem);



    return VAR_4;

}

static struct omap_rtc_s *FUNC_0(MemoryRegion *VAR_0,
target_phys_addr_t VAR_1,
qemu_irq *VAR_2, omap_clk VAR_3)
{ struct omap_rtc_s *VAR_4 = (struct omap_rtc_s *)
g_malloc0(sizeof(struct omap_rtc_s)); VAR_4->VAR_2 = VAR_2[0]; VAR_4->alarm = VAR_2[1]; VAR_4->VAR_3 = qemu_new_timer_ms(rt_clock, omap_rtc_tick, VAR_4); omap_rtc_reset(VAR_4); memory_region_init_io(&VAR_4->iomem, &omap_rtc_ops, VAR_4,
"omap-rtc", 0x800); memory_region_add_subregion(VAR_0, VAR_1, &VAR_4->iomem); return VAR_4; }