Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtc.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/bcd.h>
#include <linux/rtc.h>
#include <linux/spinlock.h>
#include <asm/io.h>
#include <asm/rtc.h>

Go to the source code of this file.

Macros

#define RTC_BASE   0xb0000000
 
#define RTC_SEC1   (RTC_BASE + 0)
 
#define RTC_SEC10   (RTC_BASE + 1)
 
#define RTC_MIN1   (RTC_BASE + 2)
 
#define RTC_MIN10   (RTC_BASE + 3)
 
#define RTC_HOU1   (RTC_BASE + 4)
 
#define RTC_HOU10   (RTC_BASE + 5)
 
#define RTC_WEE1   (RTC_BASE + 6)
 
#define RTC_DAY1   (RTC_BASE + 7)
 
#define RTC_DAY10   (RTC_BASE + 8)
 
#define RTC_MON1   (RTC_BASE + 9)
 
#define RTC_MON10   (RTC_BASE + 10)
 
#define RTC_YEA1   (RTC_BASE + 11)
 
#define RTC_YEA10   (RTC_BASE + 12)
 
#define RTC_YEA100   (RTC_BASE + 13)
 
#define RTC_YEA1000   (RTC_BASE + 14)
 
#define RTC_CTL   (RTC_BASE + 15)
 
#define RTC_BUSY   1
 
#define RTC_STOP   2
 

Functions

unsigned long get_cmos_time (void)
 
void sh03_rtc_gettimeofday (struct timespec *tv)
 
int sh03_rtc_settimeofday (const time_t secs)
 
void sh03_time_init (void)
 

Macro Definition Documentation

#define RTC_BASE   0xb0000000

Definition at line 18 of file rtc.c.

#define RTC_BUSY   1

Definition at line 35 of file rtc.c.

#define RTC_CTL   (RTC_BASE + 15)

Definition at line 34 of file rtc.c.

#define RTC_DAY1   (RTC_BASE + 7)

Definition at line 26 of file rtc.c.

#define RTC_DAY10   (RTC_BASE + 8)

Definition at line 27 of file rtc.c.

#define RTC_HOU1   (RTC_BASE + 4)

Definition at line 23 of file rtc.c.

#define RTC_HOU10   (RTC_BASE + 5)

Definition at line 24 of file rtc.c.

#define RTC_MIN1   (RTC_BASE + 2)

Definition at line 21 of file rtc.c.

#define RTC_MIN10   (RTC_BASE + 3)

Definition at line 22 of file rtc.c.

#define RTC_MON1   (RTC_BASE + 9)

Definition at line 28 of file rtc.c.

#define RTC_MON10   (RTC_BASE + 10)

Definition at line 29 of file rtc.c.

#define RTC_SEC1   (RTC_BASE + 0)

Definition at line 19 of file rtc.c.

#define RTC_SEC10   (RTC_BASE + 1)

Definition at line 20 of file rtc.c.

#define RTC_STOP   2

Definition at line 36 of file rtc.c.

#define RTC_WEE1   (RTC_BASE + 6)

Definition at line 25 of file rtc.c.

#define RTC_YEA1   (RTC_BASE + 11)

Definition at line 30 of file rtc.c.

#define RTC_YEA10   (RTC_BASE + 12)

Definition at line 31 of file rtc.c.

#define RTC_YEA100   (RTC_BASE + 13)

Definition at line 32 of file rtc.c.

#define RTC_YEA1000   (RTC_BASE + 14)

Definition at line 33 of file rtc.c.

Function Documentation

unsigned long get_cmos_time ( void  )

Definition at line 40 of file rtc.c.

void sh03_rtc_gettimeofday ( struct timespec tv)

Definition at line 80 of file rtc.c.

int sh03_rtc_settimeofday ( const time_t  secs)

Definition at line 121 of file rtc.c.

void sh03_time_init ( void  )

Definition at line 128 of file rtc.c.