Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rtc.h File Reference
#include <cpu/rtc.h>

Go to the source code of this file.

Data Structures

struct  sh_rtc_platform_info
 

Macros

#define RTC_BATT_BAD   0x100 /* battery bad */
 
#define RTC_SQWE   0x08 /* enable square-wave output */
 
#define RTC_DM_BINARY   0x04 /* all time/date values are BCD if clear */
 
#define RTC_24H   0x02 /* 24 hour mode - else hours bit 7 means pm */
 
#define RTC_DST_EN   0x01 /* auto switch DST - works f. USA only */
 
#define RTC_CAP_4_DIGIT_YEAR   (1 << 0)
 

Functions

void time_init (void)
 
unsigned int get_rtc_time (struct rtc_time *)
 
int set_rtc_time (struct rtc_time *)
 

Variables

void(* board_time_init )(void)
 
void(* rtc_sh_get_time )(struct timespec *)
 
int(* rtc_sh_set_time )(const time_t)
 

Macro Definition Documentation

#define RTC_24H   0x02 /* 24 hour mode - else hours bit 7 means pm */

Definition at line 13 of file rtc.h.

#define RTC_BATT_BAD   0x100 /* battery bad */

Definition at line 10 of file rtc.h.

#define RTC_CAP_4_DIGIT_YEAR   (1 << 0)

Definition at line 20 of file rtc.h.

#define RTC_DM_BINARY   0x04 /* all time/date values are BCD if clear */

Definition at line 12 of file rtc.h.

#define RTC_DST_EN   0x01 /* auto switch DST - works f. USA only */

Definition at line 14 of file rtc.h.

#define RTC_SQWE   0x08 /* enable square-wave output */

Definition at line 11 of file rtc.h.

Function Documentation

unsigned int get_rtc_time ( struct rtc_time )

Definition at line 53 of file time.c.

int set_rtc_time ( struct rtc_time )

Definition at line 66 of file time.c.

void time_init ( void  )

Definition at line 386 of file time.c.

Variable Documentation

void(* board_time_init)(void)

Definition at line 90 of file time.c.

void(* rtc_sh_get_time)(struct timespec *)

Definition at line 38 of file time.c.

int(* rtc_sh_set_time)(const time_t)

Definition at line 39 of file time.c.