Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sh_cmt.c File Reference
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/irq.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/sh_timer.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>

Go to the source code of this file.

Data Structures

struct  sh_cmt_priv
 

Macros

#define CMSTR   -1 /* shared register */
 
#define CMCSR   0 /* channel register */
 
#define CMCNT   1 /* channel register */
 
#define CMCOR   2 /* channel register */
 
#define FLAG_CLOCKEVENT   (1 << 0)
 
#define FLAG_CLOCKSOURCE   (1 << 1)
 
#define FLAG_REPROGRAM   (1 << 2)
 
#define FLAG_SKIPEVENT   (1 << 3)
 
#define FLAG_IRQCONTEXT   (1 << 4)
 

Functions

 early_platform_init ("earlytimer",&sh_cmt_device_driver)
 
 module_init (sh_cmt_init)
 
 module_exit (sh_cmt_exit)
 
 MODULE_AUTHOR ("Magnus Damm")
 
 MODULE_DESCRIPTION ("SuperH CMT Timer Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define CMCNT   1 /* channel register */

Definition at line 63 of file sh_cmt.c.

#define CMCOR   2 /* channel register */

Definition at line 64 of file sh_cmt.c.

#define CMCSR   0 /* channel register */

Definition at line 62 of file sh_cmt.c.

#define CMSTR   -1 /* shared register */

Definition at line 61 of file sh_cmt.c.

#define FLAG_CLOCKEVENT   (1 << 0)

Definition at line 235 of file sh_cmt.c.

#define FLAG_CLOCKSOURCE   (1 << 1)

Definition at line 236 of file sh_cmt.c.

#define FLAG_IRQCONTEXT   (1 << 4)

Definition at line 239 of file sh_cmt.c.

#define FLAG_REPROGRAM   (1 << 2)

Definition at line 237 of file sh_cmt.c.

#define FLAG_SKIPEVENT   (1 << 3)

Definition at line 238 of file sh_cmt.c.

Function Documentation

early_platform_init ( "earlytimer"  ,
sh_cmt_device_driver 
)
MODULE_AUTHOR ( "Magnus Damm"  )
MODULE_DESCRIPTION ( "SuperH CMT Timer Driver"  )
module_exit ( sh_cmt_exit  )
module_init ( sh_cmt_init  )
MODULE_LICENSE ( "GPL v2 )