uboot/include/rtc_def.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0+ */
   2/*
   3 * (C) Copyright 2001
   4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
   5 */
   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
  36