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