coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rtc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rtc_time
 

Functions

int rtc_set (const struct rtc_time *time)
 
int rtc_get (struct rtc_time *time)
 
int rtc_to_tm (int tim, struct rtc_time *tm)
 
unsigned long rtc_mktime (const struct rtc_time *tm)
 
void rtc_display (const struct rtc_time *tm)
 
int rtc_invalid (const struct rtc_time *tm)
 

Function Documentation

◆ rtc_display()

void rtc_display ( const struct rtc_time tm)

◆ rtc_get()

◆ rtc_invalid()

int rtc_invalid ( const struct rtc_time tm)

Definition at line 132 of file rtc.c.

References rtc_time::hour, rtc_time::mday, rtc_time::min, rtc_time::mon, rtc_month_days(), rtc_time::sec, and rtc_time::year.

Referenced by cmos_date_invalid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rtc_mktime()

unsigned long rtc_mktime ( const struct rtc_time tm)

◆ rtc_set()

◆ rtc_to_tm()

int rtc_to_tm ( int  tim,
struct rtc_time tm 
)

Definition at line 46 of file rtc.c.

References DAYS_IN_MONTH, DAYS_IN_YEAR, FEBRUARY, rtc_time::hour, LEAP_YEAR, rtc_time::mday, rtc_time::min, rtc_time::mon, rtc_calc_weekday(), rtc_time::sec, SECDAY, STARTOFTIME, and rtc_time::year.

Here is the call graph for this function: