Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dw_apb_timer.h File Reference
#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Data Structures

struct  dw_apb_timer
 
struct  dw_apb_clock_event_device
 
struct  dw_apb_clocksource
 

Macros

#define APBTMRS_REG_SIZE   0x14
 

Functions

void dw_apb_clockevent_register (struct dw_apb_clock_event_device *dw_ced)
 
void dw_apb_clockevent_pause (struct dw_apb_clock_event_device *dw_ced)
 
void dw_apb_clockevent_resume (struct dw_apb_clock_event_device *dw_ced)
 
void dw_apb_clockevent_stop (struct dw_apb_clock_event_device *dw_ced)
 
struct dw_apb_clock_event_devicedw_apb_clockevent_init (int cpu, const char *name, unsigned rating, void __iomem *base, int irq, unsigned long freq)
 
struct dw_apb_clocksourcedw_apb_clocksource_init (unsigned rating, const char *name, void __iomem *base, unsigned long freq)
 
void dw_apb_clocksource_register (struct dw_apb_clocksource *dw_cs)
 
void dw_apb_clocksource_start (struct dw_apb_clocksource *dw_cs)
 
cycle_t dw_apb_clocksource_read (struct dw_apb_clocksource *dw_cs)
 
void dw_apb_clocksource_unregister (struct dw_apb_clocksource *dw_cs)
 

Variables

struct sys_timer dw_apb_timer
 

Macro Definition Documentation

#define APBTMRS_REG_SIZE   0x14

Definition at line 20 of file dw_apb_timer.h.

Function Documentation

struct dw_apb_clock_event_device* dw_apb_clockevent_init ( int  cpu,
const char name,
unsigned  rating,
void __iomem base,
int  irq,
unsigned long  freq 
)
read

Definition at line 215 of file dw_apb_timer.c.

void dw_apb_clockevent_pause ( struct dw_apb_clock_event_device dw_ced)

dw_apb_clockevent_pause() - stop the clock_event_device from running

: The APB clock to stop generating events.

Definition at line 76 of file dw_apb_timer.c.

void dw_apb_clockevent_register ( struct dw_apb_clock_event_device dw_ced)

dw_apb_clockevent_register() - register the clock with the generic layer

: The APB clock to register as a clock_event_device.

Definition at line 285 of file dw_apb_timer.c.

void dw_apb_clockevent_resume ( struct dw_apb_clock_event_device dw_ced)

dw_apb_clockevent_resume() - resume a clock that has been paused.

: The APB clock to resume.

Definition at line 265 of file dw_apb_timer.c.

void dw_apb_clockevent_stop ( struct dw_apb_clock_event_device dw_ced)

dw_apb_clockevent_stop() - stop the clock_event_device and release the IRQ.

: The APB clock to stop generating the events.

Definition at line 275 of file dw_apb_timer.c.

struct dw_apb_clocksource* dw_apb_clocksource_init ( unsigned  rating,
const char name,
void __iomem base,
unsigned long  freq 
)
read

Definition at line 351 of file dw_apb_timer.c.

cycle_t dw_apb_clocksource_read ( struct dw_apb_clocksource dw_cs)

dw_apb_clocksource_read() - read the current value of a clocksource.

: The clocksource to read.

Definition at line 386 of file dw_apb_timer.c.

void dw_apb_clocksource_register ( struct dw_apb_clocksource dw_cs)

dw_apb_clocksource_register() - register the APB clocksource.

: The clocksource to register.

Definition at line 376 of file dw_apb_timer.c.

void dw_apb_clocksource_start ( struct dw_apb_clocksource dw_cs)

dw_apb_clocksource_start() - start the clocksource counting.

: The clocksource to start.

This is used to start the clocksource before registration and can be used to enable calibration of timers.

Definition at line 300 of file dw_apb_timer.c.

void dw_apb_clocksource_unregister ( struct dw_apb_clocksource dw_cs)

dw_apb_clocksource_unregister() - unregister and free a clocksource.

: The clocksource to unregister/free.

Definition at line 396 of file dw_apb_timer.c.

Variable Documentation

Definition at line 129 of file dw_apb_timer_of.c.