Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
time.c File Reference
#include <linux/types.h>
#include <linux/mc146818rtc.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <asm/atariints.h>

Go to the source code of this file.

Macros

#define TICK_SIZE   10000
 
#define COPY(v)   val->v=(mste_rtc.v & 0xf)
 
#define COPY(v)   mste_rtc.v=val->v
 
#define RTC_READ(reg)
 
#define RTC_WRITE(reg, val)
 
#define HWCLK_POLL_INTERVAL   5
 

Functions

 DEFINE_SPINLOCK (rtc_lock)
 
 EXPORT_SYMBOL_GPL (rtc_lock)
 
void __init atari_sched_init (irq_handler_t timer_routine)
 
unsigned long atari_gettimeoffset (void)
 
int atari_mste_hwclk (int op, struct rtc_time *t)
 
int atari_tt_hwclk (int op, struct rtc_time *t)
 
int atari_mste_set_clock_mmss (unsigned long nowtime)
 
int atari_tt_set_clock_mmss (unsigned long nowtime)
 

Macro Definition Documentation

#define COPY (   v)    val->v=(mste_rtc.v & 0xf)
#define COPY (   v)    mste_rtc.v=val->v
#define HWCLK_POLL_INTERVAL   5

Definition at line 106 of file time.c.

#define RTC_READ (   reg)
Value:
({ unsigned char __val; \
(void) atari_writeb(reg,&tt_rtc.regsel); \
__val = tt_rtc.data; \
__val; \
})

Definition at line 92 of file time.c.

#define RTC_WRITE (   reg,
  val 
)
Value:
do { \
atari_writeb(reg,&tt_rtc.regsel); \
tt_rtc.data = (val); \
} while(0)

Definition at line 99 of file time.c.

#define TICK_SIZE   10000

Definition at line 42 of file time.c.

Function Documentation

unsigned long atari_gettimeoffset ( void  )

Definition at line 45 of file time.c.

int atari_mste_hwclk ( int  op,
struct rtc_time t 
)

Definition at line 108 of file time.c.

int atari_mste_set_clock_mmss ( unsigned long  nowtime)

Definition at line 290 of file time.c.

void __init atari_sched_init ( irq_handler_t  timer_routine)

Definition at line 28 of file time.c.

int atari_tt_hwclk ( int  op,
struct rtc_time t 
)

Definition at line 167 of file time.c.

int atari_tt_set_clock_mmss ( unsigned long  nowtime)

Definition at line 313 of file time.c.

DEFINE_SPINLOCK ( rtc_lock  )
EXPORT_SYMBOL_GPL ( rtc_lock  )