static void omap_rtc_reset(struct omap_rtc_s *s)

{

    struct tm tm;



    s->interrupts = 0;

    s->comp_reg = 0;

    s->running = 0;

    s->pm_am = 0;

    s->auto_comp = 0;

    s->round = 0;

    s->tick = qemu_get_clock(rt_clock);

    memset(&s->alarm_tm, 0, sizeof(s->alarm_tm));

    s->alarm_tm.tm_mday = 0x01;

    s->status = 1 << 7;

    qemu_get_timedate(&tm, 0);

    s->ti = mktimegm(&tm);



    omap_rtc_alarm_update(s);

    omap_rtc_tick(s);

}

static void omap_rtc_reset(struct omap_rtc_s *s)

{

    struct tm tm;



    s->interrupts = 0;

    s->comp_reg = 0;

    s->running = 0;

    s->pm_am = 0;

    s->auto_comp = 0;

    s->round = 0;

    s->tick = qemu_get_clock(rt_clock);

    memset(&s->alarm_tm, 0, sizeof(s->alarm_tm));

    s->alarm_tm.tm_mday = 0x01;

    s->status = 1 << 7;

    qemu_get_timedate(&tm, 0);

    s->ti = mktimegm(&tm);



    omap_rtc_alarm_update(s);

    omap_rtc_tick(s);

}

static void FUNC_0(struct omap_rtc_s *VAR_0)

{

    struct VAR_1 VAR_1;



    VAR_0->interrupts = 0;

    VAR_0->comp_reg = 0;

    VAR_0->running = 0;

    VAR_0->pm_am = 0;

    VAR_0->auto_comp = 0;

    VAR_0->round = 0;

    VAR_0->tick = qemu_get_clock(rt_clock);

    memset(&VAR_0->alarm_tm, 0, sizeof(VAR_0->alarm_tm));

    VAR_0->alarm_tm.tm_mday = 0x01;

    VAR_0->status = 1 << 7;

    qemu_get_timedate(&VAR_1, 0);

    VAR_0->ti = mktimegm(&VAR_1);



    omap_rtc_alarm_update(VAR_0);

    omap_rtc_tick(VAR_0);

}

static void FUNC_0(struct omap_rtc_s *VAR_0)
{ struct VAR_1 VAR_1; VAR_0->interrupts = 0; VAR_0->comp_reg = 0; VAR_0->running = 0; VAR_0->pm_am = 0; VAR_0->auto_comp = 0; VAR_0->round = 0; VAR_0->tick = qemu_get_clock(rt_clock); memset(&VAR_0->alarm_tm, 0, sizeof(VAR_0->alarm_tm)); VAR_0->alarm_tm.tm_mday = 0x01; VAR_0->status = 1 << 7; qemu_get_timedate(&VAR_1, 0); VAR_0->ti = mktimegm(&VAR_1); omap_rtc_alarm_update(VAR_0); omap_rtc_tick(VAR_0); }