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/platform_device.h>
#include <linux/mc146818rtc.h>
#include <linux/acpi.h>
#include <linux/bcd.h>
#include <linux/export.h>
#include <linux/pnp.h>
#include <linux/of.h>
#include <asm/vsyscall.h>
#include <asm/x86_init.h>
#include <asm/time.h>
#include <asm/mrst.h>

Go to the source code of this file.

Macros

#define CMOS_YEARS_OFFS   2000
 

Functions

 DEFINE_SPINLOCK (rtc_lock)
 
 EXPORT_SYMBOL (rtc_lock)
 
int mach_set_rtc_mmss (unsigned long nowtime)
 
unsigned long mach_get_cmos_time (void)
 
unsigned char rtc_cmos_read (unsigned char addr)
 
 EXPORT_SYMBOL (rtc_cmos_read)
 
void rtc_cmos_write (unsigned char val, unsigned char addr)
 
 EXPORT_SYMBOL (rtc_cmos_write)
 
int update_persistent_clock (struct timespec now)
 
void read_persistent_clock (struct timespec *ts)
 
unsigned long long native_read_tsc (void)
 
 EXPORT_SYMBOL (native_read_tsc)
 
 device_initcall (add_rtc_cmos)
 

Macro Definition Documentation

#define CMOS_YEARS_OFFS   2000

Definition at line 28 of file rtc.c.

Function Documentation

DEFINE_SPINLOCK ( rtc_lock  )
device_initcall ( add_rtc_cmos  )
EXPORT_SYMBOL ( rtc_lock  )
EXPORT_SYMBOL ( rtc_cmos_read  )
EXPORT_SYMBOL ( rtc_cmos_write  )
EXPORT_SYMBOL ( native_read_tsc  )
unsigned long mach_get_cmos_time ( void  )

Definition at line 106 of file rtc.c.

int mach_set_rtc_mmss ( unsigned long  nowtime)

Definition at line 43 of file rtc.c.

unsigned long long native_read_tsc ( void  )

Definition at line 198 of file rtc.c.

void read_persistent_clock ( struct timespec ts)

Definition at line 188 of file rtc.c.

unsigned char rtc_cmos_read ( unsigned char  addr)

Definition at line 160 of file rtc.c.

void rtc_cmos_write ( unsigned char  val,
unsigned char  addr 
)

Definition at line 173 of file rtc.c.

int update_persistent_clock ( struct timespec  now)

Definition at line 182 of file rtc.c.