soc/intel/xeon_sp/spr: Drop microcode constraints
[coreboot2.git] / src / include / rtc.h
blob6d562f76b068969c3274504783c559b36641e1ef
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);
24 int rtc_invalid(const struct rtc_time *tm);
26 #endif /* _RTC_H_ */