Searched refs:rtc_from_bcd (Results 1 - 1 of 1) sorted by relevance

/external/qemu/hw/
H A Dmc146818rtc.c276 static inline int rtc_from_bcd(RTCState *s, int a) function
289 tm->tm_sec = rtc_from_bcd(s, s->cmos_data[RTC_SECONDS]);
290 tm->tm_min = rtc_from_bcd(s, s->cmos_data[RTC_MINUTES]);
291 tm->tm_hour = rtc_from_bcd(s, s->cmos_data[RTC_HOURS] & 0x7f);
296 tm->tm_wday = rtc_from_bcd(s, s->cmos_data[RTC_DAY_OF_WEEK]) - 1;
297 tm->tm_mday = rtc_from_bcd(s, s->cmos_data[RTC_DAY_OF_MONTH]);
298 tm->tm_mon = rtc_from_bcd(s, s->cmos_data[RTC_MONTH]) - 1;
299 tm->tm_year = rtc_from_bcd(s, s->cmos_data[RTC_YEAR]) + s->base_year - 1900;

Completed in 41 milliseconds