taglinefilesource code
rtc_tm82drivers/char/rtc.cvoid get_rtc_time (struct tm *rtc_tm);
rtc_tm298drivers/char/rtc.cstruct tm rtc_tm;
rtc_tm304drivers/char/rtc.cget_rtc_time(&rtc_tm);
rtc_tm305drivers/char/rtc.cmemcpy_tofs((struct tm*)arg, &rtc_tm, sizeof(struct tm));
rtc_tm311drivers/char/rtc.cstruct tm rtc_tm;
rtc_tm324drivers/char/rtc.cmemcpy_fromfs(&rtc_tm, (struct tm*)arg, sizeof(struct tm));
rtc_tm326drivers/char/rtc.cyrs = rtc_tm.tm_year + 1900;
rtc_tm327drivers/char/rtc.cmon = rtc_tm.tm_mon + 1;   /* tm_mon starts at zero */
rtc_tm328drivers/char/rtc.cday = rtc_tm.tm_mday;
rtc_tm329drivers/char/rtc.chrs = rtc_tm.tm_hour;
rtc_tm330drivers/char/rtc.cmin = rtc_tm.tm_min;
rtc_tm331drivers/char/rtc.csec = rtc_tm.tm_sec;
rtc_tm630drivers/char/rtc.cvoid get_rtc_time(struct tm *rtc_tm)
rtc_tm658drivers/char/rtc.crtc_tm->tm_sec = CMOS_READ(RTC_SECONDS);
rtc_tm659drivers/char/rtc.crtc_tm->tm_min = CMOS_READ(RTC_MINUTES);
rtc_tm660drivers/char/rtc.crtc_tm->tm_hour = CMOS_READ(RTC_HOURS);
rtc_tm661drivers/char/rtc.crtc_tm->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH);
rtc_tm662drivers/char/rtc.crtc_tm->tm_mon = CMOS_READ(RTC_MONTH);
rtc_tm663drivers/char/rtc.crtc_tm->tm_year = CMOS_READ(RTC_YEAR);
rtc_tm669drivers/char/rtc.cBCD_TO_BIN(rtc_tm->tm_sec);
rtc_tm670drivers/char/rtc.cBCD_TO_BIN(rtc_tm->tm_min);
rtc_tm671drivers/char/rtc.cBCD_TO_BIN(rtc_tm->tm_hour);
rtc_tm672drivers/char/rtc.cBCD_TO_BIN(rtc_tm->tm_mday);
rtc_tm673drivers/char/rtc.cBCD_TO_BIN(rtc_tm->tm_mon);
rtc_tm674drivers/char/rtc.cBCD_TO_BIN(rtc_tm->tm_year);
rtc_tm681drivers/char/rtc.cif (rtc_tm->tm_year <= 69)
rtc_tm682drivers/char/rtc.crtc_tm->tm_year += 100;
rtc_tm684drivers/char/rtc.crtc_tm->tm_mon--;