Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtas-rtc.c File Reference
#include <linux/kernel.h>
#include <linux/time.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/rtc.h>
#include <linux/delay.h>
#include <linux/ratelimit.h>
#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/time.h>

Go to the source code of this file.


#define MAX_RTC_WAIT   5000 /* 5 sec */
#define RTAS_CLOCK_BUSY   (-2)


unsigned long __init rtas_get_boot_time (void)
void rtas_get_rtc_time (struct rtc_time *rtc_tm)
int rtas_set_rtc_time (struct rtc_time *tm)

Macro Definition Documentation

#define MAX_RTC_WAIT   5000 /* 5 sec */

Definition at line 13 of file rtas-rtc.c.

#define RTAS_CLOCK_BUSY   (-2)

Definition at line 14 of file rtas-rtc.c.

Function Documentation

unsigned long __init rtas_get_boot_time ( void  )

Definition at line 15 of file rtas-rtc.c.

void rtas_get_rtc_time ( struct rtc_time rtc_tm)

Definition at line 47 of file rtas-rtc.c.

int rtas_set_rtc_time ( struct rtc_time tm)

Definition at line 86 of file rtas-rtc.c.