Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
em_sti.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/slab.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  em_sti_priv
 

Macros

#define STI_CONTROL   0x00
 
#define STI_COMPA_H   0x10
 
#define STI_COMPA_L   0x14
 
#define STI_COMPB_H   0x18
 
#define STI_COMPB_L   0x1c
 
#define STI_COUNT_H   0x20
 
#define STI_COUNT_L   0x24
 
#define STI_COUNT_RAW_H   0x28
 
#define STI_COUNT_RAW_L   0x2c
 
#define STI_SET_H   0x30
 
#define STI_SET_L   0x34
 
#define STI_INTSTATUS   0x40
 
#define STI_INTRAWSTATUS   0x44
 
#define STI_INTENSET   0x48
 
#define STI_INTENCLR   0x4c
 
#define STI_INTFFCLR   0x50
 

Enumerations

enum  { USER_CLOCKSOURCE, USER_CLOCKEVENT, USER_NR }
 

Functions

 MODULE_DEVICE_TABLE (of, em_sti_dt_ids)
 
 module_platform_driver (em_sti_device_driver)
 
 MODULE_AUTHOR ("Magnus Damm")
 
 MODULE_DESCRIPTION ("Renesas Emma Mobile STI Timer Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define STI_COMPA_H   0x10

Definition at line 49 of file em_sti.c.

#define STI_COMPA_L   0x14

Definition at line 50 of file em_sti.c.

#define STI_COMPB_H   0x18

Definition at line 51 of file em_sti.c.

#define STI_COMPB_L   0x1c

Definition at line 52 of file em_sti.c.

#define STI_CONTROL   0x00

Definition at line 48 of file em_sti.c.

#define STI_COUNT_H   0x20

Definition at line 53 of file em_sti.c.

#define STI_COUNT_L   0x24

Definition at line 54 of file em_sti.c.

#define STI_COUNT_RAW_H   0x28

Definition at line 55 of file em_sti.c.

#define STI_COUNT_RAW_L   0x2c

Definition at line 56 of file em_sti.c.

#define STI_INTENCLR   0x4c

Definition at line 62 of file em_sti.c.

#define STI_INTENSET   0x48

Definition at line 61 of file em_sti.c.

#define STI_INTFFCLR   0x50

Definition at line 63 of file em_sti.c.

#define STI_INTRAWSTATUS   0x44

Definition at line 60 of file em_sti.c.

#define STI_INTSTATUS   0x40

Definition at line 59 of file em_sti.c.

#define STI_SET_H   0x30

Definition at line 57 of file em_sti.c.

#define STI_SET_L   0x34

Definition at line 58 of file em_sti.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
USER_CLOCKSOURCE 
USER_CLOCKEVENT 
USER_NR 

Definition at line 35 of file em_sti.c.

Function Documentation

MODULE_AUTHOR ( "Magnus Damm"  )
MODULE_DESCRIPTION ( "Renesas Emma Mobile STI Timer Driver"  )
MODULE_DEVICE_TABLE ( of  ,
em_sti_dt_ids   
)
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( em_sti_device_driver  )