Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sh_mtu2.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/delay.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/irq.h>
#include <linux/err.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_mtu2_priv
 

Macros

#define TSTR   -1 /* shared register */
 
#define TCR   0 /* channel register */
 
#define TMDR   1 /* channel register */
 
#define TIOR   2 /* channel register */
 
#define TIER   3 /* channel register */
 
#define TSR   4 /* channel register */
 
#define TCNT   5 /* channel register */
 
#define TGR   6 /* channel register */
 

Functions

 early_platform_init ("earlytimer",&sh_mtu2_device_driver)
 
 module_init (sh_mtu2_init)
 
 module_exit (sh_mtu2_exit)
 
 MODULE_AUTHOR ("Magnus Damm")
 
 MODULE_DESCRIPTION ("SuperH MTU2 Timer Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define TCNT   5 /* channel register */

Definition at line 55 of file sh_mtu2.c.

#define TCR   0 /* channel register */

Definition at line 50 of file sh_mtu2.c.

#define TGR   6 /* channel register */

Definition at line 56 of file sh_mtu2.c.

#define TIER   3 /* channel register */

Definition at line 53 of file sh_mtu2.c.

#define TIOR   2 /* channel register */

Definition at line 52 of file sh_mtu2.c.

#define TMDR   1 /* channel register */

Definition at line 51 of file sh_mtu2.c.

#define TSR   4 /* channel register */

Definition at line 54 of file sh_mtu2.c.

#define TSTR   -1 /* shared register */

Definition at line 49 of file sh_mtu2.c.

Function Documentation

early_platform_init ( "earlytimer"  ,
sh_mtu2_device_driver 
)
MODULE_AUTHOR ( "Magnus Damm"  )
MODULE_DESCRIPTION ( "SuperH MTU2 Timer Driver"  )
module_exit ( sh_mtu2_exit  )
module_init ( sh_mtu2_init  )
MODULE_LICENSE ( "GPL v2 )