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/interrupt.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <mach/global_reg.h>
#include <asm/mach/time.h>

Go to the source code of this file.

Macros

#define TIMER_COUNT(BASE_ADDR)   (BASE_ADDR + 0x00)
 
#define TIMER_LOAD(BASE_ADDR)   (BASE_ADDR + 0x04)
 
#define TIMER_MATCH1(BASE_ADDR)   (BASE_ADDR + 0x08)
 
#define TIMER_MATCH2(BASE_ADDR)   (BASE_ADDR + 0x0C)
 
#define TIMER_CR(BASE_ADDR)   (BASE_ADDR + 0x30)
 
#define TIMER_1_CR_ENABLE   (1 << 0)
 
#define TIMER_1_CR_CLOCK   (1 << 1)
 
#define TIMER_1_CR_INT   (1 << 2)
 
#define TIMER_2_CR_ENABLE   (1 << 3)
 
#define TIMER_2_CR_CLOCK   (1 << 4)
 
#define TIMER_2_CR_INT   (1 << 5)
 
#define TIMER_3_CR_ENABLE   (1 << 6)
 
#define TIMER_3_CR_CLOCK   (1 << 7)
 
#define TIMER_3_CR_INT   (1 << 8)
 

Functions

void __init gemini_timer_init (void)
 

Macro Definition Documentation

#define TIMER_1_CR_CLOCK   (1 << 1)

Definition at line 27 of file time.c.

#define TIMER_1_CR_ENABLE   (1 << 0)

Definition at line 26 of file time.c.

#define TIMER_1_CR_INT   (1 << 2)

Definition at line 28 of file time.c.

#define TIMER_2_CR_CLOCK   (1 << 4)

Definition at line 30 of file time.c.

#define TIMER_2_CR_ENABLE   (1 << 3)

Definition at line 29 of file time.c.

#define TIMER_2_CR_INT   (1 << 5)

Definition at line 31 of file time.c.

#define TIMER_3_CR_CLOCK   (1 << 7)

Definition at line 33 of file time.c.

#define TIMER_3_CR_ENABLE   (1 << 6)

Definition at line 32 of file time.c.

#define TIMER_3_CR_INT   (1 << 8)

Definition at line 34 of file time.c.

#define TIMER_COUNT (   BASE_ADDR)    (BASE_ADDR + 0x00)

Definition at line 20 of file time.c.

#define TIMER_CR (   BASE_ADDR)    (BASE_ADDR + 0x30)

Definition at line 24 of file time.c.

#define TIMER_LOAD (   BASE_ADDR)    (BASE_ADDR + 0x04)

Definition at line 21 of file time.c.

#define TIMER_MATCH1 (   BASE_ADDR)    (BASE_ADDR + 0x08)

Definition at line 22 of file time.c.

#define TIMER_MATCH2 (   BASE_ADDR)    (BASE_ADDR + 0x0C)

Definition at line 23 of file time.c.

Function Documentation

void __init gemini_timer_init ( void  )

Definition at line 55 of file time.c.