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