Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
at91x40_time.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/time.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <asm/mach/time.h>
#include <mach/at91_tc.h>

Go to the source code of this file.

Macros

#define at91_tc_read(field)   __raw_readl(AT91_IO_P2V(AT91_TC) + field)
 
#define at91_tc_write(field, value)   __raw_writel(value, AT91_IO_P2V(AT91_TC) + field);
 
#define AT91_TC_CLK0BASE   0
 
#define AT91_TC_CLK1BASE   0x40
 
#define AT91_TC_CLK2BASE   0x80
 

Functions

void __init at91x40_timer_init (void)
 

Variables

struct sys_timer at91x40_timer
 

Macro Definition Documentation

#define AT91_TC_CLK0BASE   0

Definition at line 40 of file at91x40_time.c.

#define AT91_TC_CLK1BASE   0x40

Definition at line 41 of file at91x40_time.c.

#define AT91_TC_CLK2BASE   0x80

Definition at line 42 of file at91x40_time.c.

#define at91_tc_read (   field)    __raw_readl(AT91_IO_P2V(AT91_TC) + field)

Definition at line 31 of file at91x40_time.c.

#define at91_tc_write (   field,
  value 
)    __raw_writel(value, AT91_IO_P2V(AT91_TC) + field);

Definition at line 34 of file at91x40_time.c.

Function Documentation

void __init at91x40_timer_init ( void  )

Definition at line 62 of file at91x40_time.c.

Variable Documentation

struct sys_timer at91x40_timer
Initial value:
= {
.offset = at91x40_gettimeoffset,
}

Definition at line 82 of file at91x40_time.c.