blob: 6cb490c420bd6b97631bbac2faa0d89c25728ead [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassaac51192015-04-20 12:37:21 -06002/*
3 * (C) Copyright 2001
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Simon Glassaac51192015-04-20 12:37:21 -06005 */
6
7#ifndef __rtc_def_h
8#define __rtc_def_h
9
10/*
11 * The struct used to pass data from the generic interface code to
12 * the hardware dependend low-level code ande vice versa. Identical
13 * to struct rtc_time used by the Linux kernel.
14 *
15 * Note that there are small but significant differences to the
16 * common "struct time":
17 *
18 * struct time: struct rtc_time:
19 * tm_mon 0 ... 11 1 ... 12
20 * tm_year years since 1900 years since 0
21 */
22
23struct rtc_time {
24 int tm_sec;
25 int tm_min;
26 int tm_hour;
27 int tm_mday;
28 int tm_mon;
29 int tm_year;
30 int tm_wday;
31 int tm_yday;
32 int tm_isdst;
33};
34
35#endif