Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pasemi-rng.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/hw_random.h>
#include <linux/delay.h>
#include <linux/of_platform.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define SDCRNG_CTL_REG   0x00
 
#define SDCRNG_CTL_FVLD_M   0x0000f000
 
#define SDCRNG_CTL_FVLD_S   12
 
#define SDCRNG_CTL_KSZ   0x00000800
 
#define SDCRNG_CTL_RSRC_CRG   0x00000010
 
#define SDCRNG_CTL_RSRC_RRG   0x00000000
 
#define SDCRNG_CTL_CE   0x00000004
 
#define SDCRNG_CTL_RE   0x00000002
 
#define SDCRNG_CTL_DR   0x00000001
 
#define SDCRNG_CTL_SELECT_RRG_RNG   (SDCRNG_CTL_RE | SDCRNG_CTL_RSRC_RRG)
 
#define SDCRNG_CTL_SELECT_CRG_RNG   (SDCRNG_CTL_CE | SDCRNG_CTL_RSRC_CRG)
 
#define SDCRNG_VAL_REG   0x20
 
#define MODULE_NAME   "pasemi_rng"
 

Functions

 module_platform_driver (rng_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Egor Martovetsky <[email protected]>")
 
 MODULE_DESCRIPTION ("H/W RNG driver for PA Semi processor")
 

Macro Definition Documentation

#define MODULE_NAME   "pasemi_rng"

Definition at line 43 of file pasemi-rng.c.

#define SDCRNG_CTL_CE   0x00000004

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

#define SDCRNG_CTL_DR   0x00000001

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

#define SDCRNG_CTL_FVLD_M   0x0000f000

Definition at line 31 of file pasemi-rng.c.

#define SDCRNG_CTL_FVLD_S   12

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

#define SDCRNG_CTL_KSZ   0x00000800

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

#define SDCRNG_CTL_RE   0x00000002

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

#define SDCRNG_CTL_REG   0x00

Definition at line 30 of file pasemi-rng.c.

#define SDCRNG_CTL_RSRC_CRG   0x00000010

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

#define SDCRNG_CTL_RSRC_RRG   0x00000000

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

#define SDCRNG_CTL_SELECT_CRG_RNG   (SDCRNG_CTL_CE | SDCRNG_CTL_RSRC_CRG)

Definition at line 40 of file pasemi-rng.c.

#define SDCRNG_CTL_SELECT_RRG_RNG   (SDCRNG_CTL_RE | SDCRNG_CTL_RSRC_RRG)

Definition at line 39 of file pasemi-rng.c.

#define SDCRNG_VAL_REG   0x20

Definition at line 41 of file pasemi-rng.c.

Function Documentation

MODULE_AUTHOR ( "Egor Martovetsky <[email protected]>"  )
MODULE_DESCRIPTION ( "H/W RNG driver for PA Semi processor )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( rng_driver  )