Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
arch_timer.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/smp.h>
#include <linux/cpu.h>
#include <linux/jiffies.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/of_irq.h>
#include <linux/io.h>
#include <asm/cputype.h>
#include <asm/delay.h>
#include <asm/localtimer.h>
#include <asm/arch_timer.h>
#include <asm/system_info.h>
#include <asm/sched_clock.h>

Go to the source code of this file.

Macros

#define ARCH_TIMER_CTRL_ENABLE   (1 << 0)
 
#define ARCH_TIMER_CTRL_IT_MASK   (1 << 1)
 
#define ARCH_TIMER_CTRL_IT_STAT   (1 << 2)
 
#define ARCH_TIMER_REG_CTRL   0
 
#define ARCH_TIMER_REG_FREQ   1
 
#define ARCH_TIMER_REG_TVAL   2
 
#define ARCH_TIMER_PHYS_ACCESS   0
 
#define ARCH_TIMER_VIRT_ACCESS   1
 

Enumerations

enum  ppi_nr {
  PHYS_SECURE_PPI, PHYS_NONSECURE_PPI, VIRT_PPI, HYP_PPI,
  MAX_TIMER_PPI
}
 

Functions

struct timecounterarch_timer_get_timecounter (void)
 
int __init arch_timer_of_register (void)
 
int __init arch_timer_sched_clock_init (void)
 

Macro Definition Documentation

#define ARCH_TIMER_CTRL_ENABLE   (1 << 0)

Definition at line 51 of file arch_timer.c.

#define ARCH_TIMER_CTRL_IT_MASK   (1 << 1)

Definition at line 52 of file arch_timer.c.

#define ARCH_TIMER_CTRL_IT_STAT   (1 << 2)

Definition at line 53 of file arch_timer.c.

#define ARCH_TIMER_PHYS_ACCESS   0

Definition at line 59 of file arch_timer.c.

#define ARCH_TIMER_REG_CTRL   0

Definition at line 55 of file arch_timer.c.

#define ARCH_TIMER_REG_FREQ   1

Definition at line 56 of file arch_timer.c.

#define ARCH_TIMER_REG_TVAL   2

Definition at line 57 of file arch_timer.c.

#define ARCH_TIMER_VIRT_ACCESS   1

Definition at line 60 of file arch_timer.c.

Enumeration Type Documentation

enum ppi_nr
Enumerator:
PHYS_SECURE_PPI 
PHYS_NONSECURE_PPI 
VIRT_PPI 
HYP_PPI 
MAX_TIMER_PPI 

Definition at line 32 of file arch_timer.c.

Function Documentation

struct timecounter* arch_timer_get_timecounter ( void  )
read

Definition at line 357 of file arch_timer.c.

int __init arch_timer_of_register ( void  )

Definition at line 472 of file arch_timer.c.

int __init arch_timer_sched_clock_init ( void  )

Definition at line 508 of file arch_timer.c.