cy                105 bsp/drv/dev/rtc/mc146818.c 	struct clock_ymdhms cy;
cy                113 bsp/drv/dev/rtc/mc146818.c 	cy.nsec = 0;
cy                114 bsp/drv/dev/rtc/mc146818.c 	cy.sec = mc_read(RTC_SEC);
cy                115 bsp/drv/dev/rtc/mc146818.c 	cy.min = mc_read(RTC_MIN);
cy                116 bsp/drv/dev/rtc/mc146818.c 	cy.hour = mc_read(RTC_HOUR);
cy                117 bsp/drv/dev/rtc/mc146818.c 	cy.dow = mc_read(RTC_DOW);
cy                118 bsp/drv/dev/rtc/mc146818.c 	cy.day = mc_read(RTC_DAY);
cy                119 bsp/drv/dev/rtc/mc146818.c 	cy.mon = mc_read(RTC_MON);
cy                120 bsp/drv/dev/rtc/mc146818.c 	cy.year = mc_read(RTC_YEAR);
cy                123 bsp/drv/dev/rtc/mc146818.c 		cy.sec = FROMBCD(cy.sec);
cy                124 bsp/drv/dev/rtc/mc146818.c 		cy.min = FROMBCD(cy.min);
cy                125 bsp/drv/dev/rtc/mc146818.c 		cy.hour = FROMBCD(cy.hour);
cy                126 bsp/drv/dev/rtc/mc146818.c 		cy.day = FROMBCD(cy.day);
cy                127 bsp/drv/dev/rtc/mc146818.c 		cy.mon = FROMBCD(cy.mon);
cy                128 bsp/drv/dev/rtc/mc146818.c 		cy.year = FROMBCD(cy.year);
cy                130 bsp/drv/dev/rtc/mc146818.c 	if (cy.year < 80)
cy                131 bsp/drv/dev/rtc/mc146818.c 		cy.year += 2000;
cy                133 bsp/drv/dev/rtc/mc146818.c 		cy.year += 1900;
cy                136 bsp/drv/dev/rtc/mc146818.c 		cy.year, cy.mon, cy.day, cy.hour, cy.min, cy.sec);
cy                139 bsp/drv/dev/rtc/mc146818.c 	tv->tv_sec = rtc_ymdhms_to_secs(&cy);