Debian Codegraph @

src/include/rtc.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef _RTC_H_
4 #define _RTC_H_
5
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;
14 };
15
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);
19
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);
25
26 #endif /* _RTC_H_ */