Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
timer.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/interrupt.h>
#include <linux/profile.h>
#include <linux/irq.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/io.h>
#include <linux/bug.h>
#include <asm/cpuinfo.h>
#include <asm/setup.h>
#include <asm/prom.h>
#include <asm/irq.h>
#include <linux/cnt32_to_63.h>

Go to the source code of this file.

Macros

#define TIMER_BASE   timer_baseaddr
 
#define TCSR0   (0x00)
 
#define TLR0   (0x04)
 
#define TCR0   (0x08)
 
#define TCSR1   (0x10)
 
#define TLR1   (0x14)
 
#define TCR1   (0x18)
 
#define TCSR_MDT   (1<<0)
 
#define TCSR_UDT   (1<<1)
 
#define TCSR_GENT   (1<<2)
 
#define TCSR_CAPT   (1<<3)
 
#define TCSR_ARHT   (1<<4)
 
#define TCSR_LOAD   (1<<5)
 
#define TCSR_ENIT   (1<<6)
 
#define TCSR_ENT   (1<<7)
 
#define TCSR_TINT   (1<<8)
 
#define TCSR_PWMA   (1<<9)
 
#define TCSR_ENALL   (1<<10)
 

Functions

void __init time_init (void)
 
unsigned long long notrace sched_clock (void)
 

Macro Definition Documentation

#define TCR0   (0x08)

Definition at line 45 of file timer.c.

#define TCR1   (0x18)

Definition at line 48 of file timer.c.

#define TCSR0   (0x00)

Definition at line 43 of file timer.c.

#define TCSR1   (0x10)

Definition at line 46 of file timer.c.

#define TCSR_ARHT   (1<<4)

Definition at line 54 of file timer.c.

#define TCSR_CAPT   (1<<3)

Definition at line 53 of file timer.c.

#define TCSR_ENALL   (1<<10)

Definition at line 60 of file timer.c.

#define TCSR_ENIT   (1<<6)

Definition at line 56 of file timer.c.

#define TCSR_ENT   (1<<7)

Definition at line 57 of file timer.c.

#define TCSR_GENT   (1<<2)

Definition at line 52 of file timer.c.

#define TCSR_LOAD   (1<<5)

Definition at line 55 of file timer.c.

#define TCSR_MDT   (1<<0)

Definition at line 50 of file timer.c.

#define TCSR_PWMA   (1<<9)

Definition at line 59 of file timer.c.

#define TCSR_TINT   (1<<8)

Definition at line 58 of file timer.c.

#define TCSR_UDT   (1<<1)

Definition at line 51 of file timer.c.

#define TIMER_BASE   timer_baseaddr

Definition at line 37 of file timer.c.

#define TLR0   (0x04)

Definition at line 44 of file timer.c.

#define TLR1   (0x14)

Definition at line 47 of file timer.c.

Function Documentation

unsigned long long notrace sched_clock ( void  )

Definition at line 305 of file timer.c.

void __init time_init ( void  )

Definition at line 243 of file timer.c.