Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mc146818rtc.h File Reference
#include <asm/io.h>
#include <asm/processor.h>
#include <linux/mc146818rtc.h>

Go to the source code of this file.

Macros

#define RTC_PORT(x)   (0x70 + (x))
 
#define RTC_ALWAYS_BCD   1 /* RTC operates in binary mode */
 
#define lock_cmos_prefix(reg)   do {} while (0)
 
#define lock_cmos_suffix(reg)   do {} while (0)
 
#define lock_cmos(reg)   do { } while (0)
 
#define unlock_cmos()   do { } while (0)
 
#define do_i_have_lock_cmos()   0
 
#define current_lock_cmos_reg()   0
 
#define CMOS_READ(addr)   rtc_cmos_read(addr)
 
#define CMOS_WRITE(val, addr)   rtc_cmos_write(val, addr)
 
#define RTC_IRQ   8
 

Functions

unsigned char rtc_cmos_read (unsigned char addr)
 
void rtc_cmos_write (unsigned char val, unsigned char addr)
 
int mach_set_rtc_mmss (unsigned long nowtime)
 
unsigned long mach_get_cmos_time (void)
 

Macro Definition Documentation

#define CMOS_READ (   addr)    rtc_cmos_read(addr)

Definition at line 93 of file mc146818rtc.h.

#define CMOS_WRITE (   val,
  addr 
)    rtc_cmos_write(val, addr)

Definition at line 94 of file mc146818rtc.h.

#define current_lock_cmos_reg ( )    0

Definition at line 86 of file mc146818rtc.h.

#define do_i_have_lock_cmos ( )    0

Definition at line 85 of file mc146818rtc.h.

#define lock_cmos (   reg)    do { } while (0)

Definition at line 83 of file mc146818rtc.h.

#define lock_cmos_prefix (   reg)    do {} while (0)

Definition at line 81 of file mc146818rtc.h.

#define lock_cmos_suffix (   reg)    do {} while (0)

Definition at line 82 of file mc146818rtc.h.

#define RTC_ALWAYS_BCD   1 /* RTC operates in binary mode */

Definition at line 13 of file mc146818rtc.h.

#define RTC_IRQ   8

Definition at line 101 of file mc146818rtc.h.

#define RTC_PORT (   x)    (0x70 + (x))

Definition at line 12 of file mc146818rtc.h.

#define unlock_cmos ( )    do { } while (0)

Definition at line 84 of file mc146818rtc.h.

Function Documentation

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 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.