rtc_def.h 713 B

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