Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pit.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/param.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/clockchips.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/coldfire.h>
#include <asm/mcfpit.h>
#include <asm/mcfsim.h>

Go to the source code of this file.

Macros

#define FREQ   ((MCF_CLK / 2) / 64)
 
#define TA(a)   (MCFPIT_BASE1 + (a))
 
#define PIT_CYCLES_PER_JIFFY   (FREQ / HZ)
 

Functions

void hw_timer_init (irq_handler_t handler)
 

Variables

struct clock_event_device cf_pit_clockevent
 

Macro Definition Documentation

#define FREQ   ((MCF_CLK / 2) / 64)

Definition at line 33 of file pit.c.

#define PIT_CYCLES_PER_JIFFY   (FREQ / HZ)

Definition at line 35 of file pit.c.

#define TA (   a)    (MCFPIT_BASE1 + (a))

Definition at line 34 of file pit.c.

Function Documentation

void hw_timer_init ( irq_handler_t  handler)

Definition at line 152 of file pit.c.

Variable Documentation

struct clock_event_device cf_pit_clockevent
Initial value:
= {
.name = "pit",
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
.set_mode = init_cf_pit_timer,
.set_next_event = cf_pit_next_event,
.shift = 32,
.irq = MCF_IRQ_PIT1,
}

Definition at line 90 of file pit.c.