Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
time.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/time.h>
#include <linux/timex.h>
#include <linux/kernel_stat.h>
#include <linux/mc146818rtc.h>
#include <linux/init.h>
#include <linux/bcd.h>
#include <linux/ioport.h>
#include <asm/io.h>
#include <asm/nvram.h>
#include <asm/prom.h>
#include <asm/sections.h>
#include <asm/time.h>

Go to the source code of this file.

Macros

#define NVRAM_AS0   0x74
 
#define NVRAM_AS1   0x75
 
#define NVRAM_DATA   0x77
 

Functions

long __init chrp_time_init (void)
 
int chrp_cmos_clock_read (int addr)
 
void chrp_cmos_clock_write (unsigned long val, int addr)
 
int chrp_set_rtc_time (struct rtc_time *tmarg)
 
void chrp_get_rtc_time (struct rtc_time *tm)
 

Variables

spinlock_t rtc_lock
 

Macro Definition Documentation

#define NVRAM_AS0   0x74

Definition at line 32 of file time.c.

#define NVRAM_AS1   0x75

Definition at line 33 of file time.c.

#define NVRAM_DATA   0x77

Definition at line 34 of file time.c.

Function Documentation

int chrp_cmos_clock_read ( int  addr)

Definition at line 65 of file time.c.

void chrp_cmos_clock_write ( unsigned long  val,
int  addr 
)

Definition at line 73 of file time.c.

void chrp_get_rtc_time ( struct rtc_time tm)

Definition at line 129 of file time.c.

int chrp_set_rtc_time ( struct rtc_time tmarg)

Definition at line 85 of file time.c.

long __init chrp_time_init ( void  )

Definition at line 40 of file time.c.

Variable Documentation

spinlock_t rtc_lock