Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
exynos-rng.c File Reference
#include <linux/hw_random.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
#include <linux/err.h>

Go to the source code of this file.

Data Structures

struct  exynos_rng
 

Macros

#define EXYNOS_PRNG_STATUS_OFFSET   0x10
 
#define EXYNOS_PRNG_SEED_OFFSET   0x140
 
#define EXYNOS_PRNG_OUT1_OFFSET   0x160
 
#define SEED_SETTING_DONE   BIT(1)
 
#define PRNG_START   0x18
 
#define PRNG_DONE   BIT(5)
 
#define EXYNOS_AUTOSUSPEND_DELAY   100
 

Functions

 UNIVERSAL_DEV_PM_OPS (exynos_rng_pm_ops, exynos_rng_runtime_suspend, exynos_rng_runtime_resume, NULL)
 
 module_platform_driver (exynos_rng_driver)
 
 MODULE_DESCRIPTION ("EXYNOS 4 H/W Random Number Generator driver")
 
 MODULE_AUTHOR ("Jonghwa Lee <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define EXYNOS_AUTOSUSPEND_DELAY   100

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

#define EXYNOS_PRNG_OUT1_OFFSET   0x160

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

#define EXYNOS_PRNG_SEED_OFFSET   0x140

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

#define EXYNOS_PRNG_STATUS_OFFSET   0x10

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

#define PRNG_DONE   BIT(5)

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

#define PRNG_START   0x18

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

#define SEED_SETTING_DONE   BIT(1)

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

Function Documentation

MODULE_AUTHOR ( "Jonghwa Lee <[email protected]>"  )
MODULE_DESCRIPTION ( "EXYNOS 4 H/W Random Number Generator driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( exynos_rng_driver  )
UNIVERSAL_DEV_PM_OPS ( exynos_rng_pm_ops  ,
exynos_rng_runtime_suspend  ,
exynos_rng_runtime_resume  ,
NULL   
)