Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cevt-txx9.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <asm/time.h>
#include <asm/txx9tmr.h>

Go to the source code of this file.

Data Structures

struct  txx9_clocksource
 
struct  txx9_clock_event_device
 

Macros

#define TCR_BASE   (TXx9_TMTCR_CCDE | TXx9_TMTCR_CRE | TXx9_TMTCR_TMODE_ITVL)
 
#define TIMER_CCD   0 /* 1/2 */
 
#define TIMER_CLK(imclk)   ((imclk) / (2 << TIMER_CCD))
 
#define TXX9_CLOCKSOURCE_BITS   (TXX9_TIMER_BITS - 1)
 

Functions

void __init txx9_clocksource_init (unsigned long baseaddr, unsigned int imbusclk)
 
void __init txx9_clockevent_init (unsigned long baseaddr, int irq, unsigned int imbusclk)
 
void __init txx9_tmr_init (unsigned long baseaddr)
 

Macro Definition Documentation

Definition at line 20 of file cevt-txx9.c.

#define TIMER_CCD   0 /* 1/2 */

Definition at line 21 of file cevt-txx9.c.

#define TIMER_CLK (   imclk)    ((imclk) / (2 << TIMER_CCD))

Definition at line 22 of file cevt-txx9.c.

#define TXX9_CLOCKSOURCE_BITS   (TXX9_TIMER_BITS - 1)

Definition at line 37 of file cevt-txx9.c.

Function Documentation

void __init txx9_clockevent_init ( unsigned long  baseaddr,
int  irq,
unsigned int  imbusclk 
)

Definition at line 154 of file cevt-txx9.c.

void __init txx9_clocksource_init ( unsigned long  baseaddr,
unsigned int  imbusclk 
)

Definition at line 49 of file cevt-txx9.c.

void __init txx9_tmr_init ( unsigned long  baseaddr)

Definition at line 178 of file cevt-txx9.c.