Documentation: Fix sphinx configuration
[coreboot.git] / src / include / rtc.h
blob0a380745d3263ff88742a10682d65113ae61cd1d
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _RTC_H_
4 #define _RTC_H_
6 struct rtc_time {
7 int sec;
8 int min;
9 int hour;
10 int mday;
11 int mon;
12 int year;
13 int wday;
16 /* Implemented by the RTC driver (there can be only one) */
17 int rtc_set(const struct rtc_time *time);
18 int rtc_get(struct rtc_time *time);
20 /* Common functions */
21 int rtc_to_tm(int tim, struct rtc_time *tm);
22 unsigned long rtc_mktime(const struct rtc_time *tm);
23 void rtc_display(const struct rtc_time *tm);
25 #endif /* _RTC_H_ */