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/kernel.h>
#include <linux/timer.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <asm/sched_clock.h>

Go to the source code of this file.

Macros

#define BRIDGE_CAUSE_OFF   0x0110
 
#define BRIDGE_MASK_OFF   0x0114
 
#define BRIDGE_INT_TIMER0   0x0002
 
#define BRIDGE_INT_TIMER1   0x0004
 
#define TIMER_CTRL_OFF   0x0000
 
#define TIMER0_EN   0x0001
 
#define TIMER0_RELOAD_EN   0x0002
 
#define TIMER1_EN   0x0004
 
#define TIMER1_RELOAD_EN   0x0008
 
#define TIMER0_RELOAD_OFF   0x0010
 
#define TIMER0_VAL_OFF   0x0014
 
#define TIMER1_RELOAD_OFF   0x0018
 
#define TIMER1_VAL_OFF   0x001c
 

Functions

void __init orion_time_set_base (void __iomem *_timer_base)
 
void __init orion_time_init (void __iomem *_bridge_base, u32 _bridge_timer1_clr_mask, unsigned int irq, unsigned int tclk)
 

Macro Definition Documentation

#define BRIDGE_CAUSE_OFF   0x0110

Definition at line 24 of file time.c.

#define BRIDGE_INT_TIMER0   0x0002

Definition at line 26 of file time.c.

#define BRIDGE_INT_TIMER1   0x0004

Definition at line 27 of file time.c.

#define BRIDGE_MASK_OFF   0x0114

Definition at line 25 of file time.c.

#define TIMER0_EN   0x0001

Definition at line 34 of file time.c.

#define TIMER0_RELOAD_EN   0x0002

Definition at line 35 of file time.c.

#define TIMER0_RELOAD_OFF   0x0010

Definition at line 38 of file time.c.

#define TIMER0_VAL_OFF   0x0014

Definition at line 39 of file time.c.

#define TIMER1_EN   0x0004

Definition at line 36 of file time.c.

#define TIMER1_RELOAD_EN   0x0008

Definition at line 37 of file time.c.

#define TIMER1_RELOAD_OFF   0x0018

Definition at line 40 of file time.c.

#define TIMER1_VAL_OFF   0x001c

Definition at line 41 of file time.c.

#define TIMER_CTRL_OFF   0x0000

Definition at line 33 of file time.c.

Function Documentation

void __init orion_time_init ( void __iomem _bridge_base,
u32  _bridge_timer1_clr_mask,
unsigned int  irq,
unsigned int  tclk 
)

Definition at line 189 of file time.c.

void __init orion_time_set_base ( void __iomem _timer_base)

Definition at line 183 of file time.c.