static struct omap_rtc_s *omap_rtc_init(MemoryRegion *system_memory,

                                        hwaddr base,

                                        qemu_irq timerirq, qemu_irq alarmirq,

                                        omap_clk clk)

{

    struct omap_rtc_s *s = (struct omap_rtc_s *)

            g_malloc0(sizeof(struct omap_rtc_s));



    s->irq = timerirq;

    s->alarm = alarmirq;

    s->clk = timer_new_ms(rtc_clock, omap_rtc_tick, s);



    omap_rtc_reset(s);



    memory_region_init_io(&s->iomem, NULL, &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,

                                        hwaddr base,

                                        qemu_irq timerirq, qemu_irq alarmirq,

                                        omap_clk clk)

{

    struct omap_rtc_s *s = (struct omap_rtc_s *)

            g_malloc0(sizeof(struct omap_rtc_s));



    s->irq = timerirq;

    s->alarm = alarmirq;

    s->clk = timer_new_ms(rtc_clock, omap_rtc_tick, s);



    omap_rtc_reset(s);



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

                          "omap-rtc", 0x800);

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



    return s;

}

    struct omap_rtc_s *s = (struct omap_rtc_s *)             g_malloc0(sizeof(struct omap_rtc_s));
static struct omap_rtc_s *FUNC_0(MemoryRegion *VAR_0,

                                        hwaddr VAR_1,

                                        qemu_irq VAR_2, qemu_irq VAR_3,

                                        omap_clk VAR_4)

{

    struct omap_rtc_s *VAR_5 = (struct omap_rtc_s *)

            g_malloc0(sizeof(struct omap_rtc_s));



    VAR_5->irq = VAR_2;

    VAR_5->alarm = VAR_3;

    VAR_5->VAR_4 = timer_new_ms(rtc_clock, omap_rtc_tick, VAR_5);



    omap_rtc_reset(VAR_5);



    memory_region_init_io(&VAR_5->iomem, NULL, &omap_rtc_ops, VAR_5,

                          "omap-rtc", 0x800);

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



    return VAR_5;

}

static struct omap_rtc_s *FUNC_0(MemoryRegion *VAR_0,
hwaddr VAR_1,
qemu_irq VAR_2, qemu_irq VAR_3,
omap_clk VAR_4)
{ struct omap_rtc_s *VAR_5 = (struct omap_rtc_s *)
g_malloc0(sizeof(struct omap_rtc_s)); VAR_5->irq = VAR_2; VAR_5->alarm = VAR_3; VAR_5->VAR_4 = timer_new_ms(rtc_clock, omap_rtc_tick, VAR_5); omap_rtc_reset(VAR_5); memory_region_init_io(&VAR_5->iomem, NULL, &omap_rtc_ops, VAR_5,
"omap-rtc", 0x800); memory_region_add_subregion(VAR_0, VAR_1, &VAR_5->iomem); return VAR_5; }