Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
omap-rng.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/random.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/hw_random.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <asm/io.h>
#include <plat/cpu.h>

Go to the source code of this file.

Data Structures

struct  omap_rng_private_data
 

Macros

#define RNG_OUT_REG   0x00 /* Output register */
 
#define RNG_STAT_REG
 
#define RNG_ALARM_REG
 
#define RNG_CONFIG_REG
 
#define RNG_REV_REG
 
#define RNG_MASK_REG
 
#define RNG_SYSSTATUS
 
#define OMAP_RNG_PM   NULL
 

Functions

 MODULE_ALIAS ("platform:omap_rng")
 
 module_init (omap_rng_init)
 
 module_exit (omap_rng_exit)
 
 MODULE_AUTHOR ("Deepak Saxena (and others)")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define OMAP_RNG_PM   NULL

Definition at line 194 of file omap-rng.c.

#define RNG_ALARM_REG
Value:
0x24 /* Alarm register
[7:0] = ALARM_COUNTER */

Definition at line 34 of file omap-rng.c.

#define RNG_CONFIG_REG
Value:
0x28 /* Configuration register
[11:6] = RESET_COUNT
[5:3] = RING2_DELAY
[2:0] = RING1_DELAY */

Definition at line 35 of file omap-rng.c.

#define RNG_MASK_REG
Value:
0x40 /* Mask and reset register
[2] = IT_EN
[1] = SOFTRESET
[0] = AUTOIDLE */

Definition at line 37 of file omap-rng.c.

#define RNG_OUT_REG   0x00 /* Output register */

Definition at line 32 of file omap-rng.c.

#define RNG_REV_REG
Value:
0x3c /* Revision register
[7:0] = REV_NB */

Definition at line 36 of file omap-rng.c.

#define RNG_STAT_REG
Value:
0x04 /* Status register
[0] = STAT_BUSY */

Definition at line 33 of file omap-rng.c.

#define RNG_SYSSTATUS
Value:
0x44 /* System status
[0] = RESETDONE */

Definition at line 38 of file omap-rng.c.

Function Documentation

MODULE_ALIAS ( "platform:omap_rng"  )
MODULE_AUTHOR ( "Deepak Saxena (and others)"  )
module_exit ( omap_rng_exit  )
module_init ( omap_rng_init  )
MODULE_LICENSE ( "GPL"  )