rtc_def.h 713 B

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