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

Go to the source code of this file.

Data Structures

struct  mxc_rng
 

Macros

#define RNGA_CONTROL   0x00
 
#define RNGA_STATUS   0x04
 
#define RNGA_ENTROPY   0x08
 
#define RNGA_OUTPUT_FIFO   0x0c
 
#define RNGA_MODE   0x10
 
#define RNGA_VERIFICATION_CONTROL   0x14
 
#define RNGA_OSC_CONTROL_COUNTER   0x18
 
#define RNGA_OSC1_COUNTER   0x1c
 
#define RNGA_OSC2_COUNTER   0x20
 
#define RNGA_OSC_COUNTER_STATUS   0x24
 
#define RNG_ADDR_RANGE   0x28
 
#define RNGA_CONTROL_SLEEP   0x00000010
 
#define RNGA_CONTROL_CLEAR_INT   0x00000008
 
#define RNGA_CONTROL_MASK_INTS   0x00000004
 
#define RNGA_CONTROL_HIGH_ASSURANCE   0x00000002
 
#define RNGA_CONTROL_GO   0x00000001
 
#define RNGA_STATUS_LEVEL_MASK   0x0000ff00
 
#define RNGA_STATUS_OSC_DEAD   0x80000000
 
#define RNGA_STATUS_SLEEP   0x00000010
 
#define RNGA_STATUS_ERROR_INT   0x00000008
 
#define RNGA_STATUS_FIFO_UNDERFLOW   0x00000004
 
#define RNGA_STATUS_LAST_READ_STATUS   0x00000002
 
#define RNGA_STATUS_SECURITY_VIOLATION   0x00000001
 

Functions

 module_init (mod_init)
 
 module_exit (mod_exit)
 
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 
 MODULE_DESCRIPTION ("H/W RNGA driver for i.MX")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define RNG_ADDR_RANGE   0x28

Definition at line 43 of file mxc-rnga.c.

#define RNGA_CONTROL   0x00

Definition at line 31 of file mxc-rnga.c.

#define RNGA_CONTROL_CLEAR_INT   0x00000008

Definition at line 47 of file mxc-rnga.c.

#define RNGA_CONTROL_GO   0x00000001

Definition at line 50 of file mxc-rnga.c.

#define RNGA_CONTROL_HIGH_ASSURANCE   0x00000002

Definition at line 49 of file mxc-rnga.c.

#define RNGA_CONTROL_MASK_INTS   0x00000004

Definition at line 48 of file mxc-rnga.c.

#define RNGA_CONTROL_SLEEP   0x00000010

Definition at line 46 of file mxc-rnga.c.

#define RNGA_ENTROPY   0x08

Definition at line 33 of file mxc-rnga.c.

#define RNGA_MODE   0x10

Definition at line 35 of file mxc-rnga.c.

#define RNGA_OSC1_COUNTER   0x1c

Definition at line 38 of file mxc-rnga.c.

#define RNGA_OSC2_COUNTER   0x20

Definition at line 39 of file mxc-rnga.c.

#define RNGA_OSC_CONTROL_COUNTER   0x18

Definition at line 37 of file mxc-rnga.c.

#define RNGA_OSC_COUNTER_STATUS   0x24

Definition at line 40 of file mxc-rnga.c.

#define RNGA_OUTPUT_FIFO   0x0c

Definition at line 34 of file mxc-rnga.c.

#define RNGA_STATUS   0x04

Definition at line 32 of file mxc-rnga.c.

#define RNGA_STATUS_ERROR_INT   0x00000008

Definition at line 57 of file mxc-rnga.c.

#define RNGA_STATUS_FIFO_UNDERFLOW   0x00000004

Definition at line 58 of file mxc-rnga.c.

#define RNGA_STATUS_LAST_READ_STATUS   0x00000002

Definition at line 59 of file mxc-rnga.c.

#define RNGA_STATUS_LEVEL_MASK   0x0000ff00

Definition at line 52 of file mxc-rnga.c.

#define RNGA_STATUS_OSC_DEAD   0x80000000

Definition at line 55 of file mxc-rnga.c.

#define RNGA_STATUS_SECURITY_VIOLATION   0x00000001

Definition at line 60 of file mxc-rnga.c.

#define RNGA_STATUS_SLEEP   0x00000010

Definition at line 56 of file mxc-rnga.c.

#define RNGA_VERIFICATION_CONTROL   0x14

Definition at line 36 of file mxc-rnga.c.

Function Documentation

MODULE_AUTHOR ( "Freescale  Semiconductor,
Inc."   
)
MODULE_DESCRIPTION ( "H/W RNGA driver for i.MX"  )
module_exit ( mod_exit  )
module_init ( mod_init  )
MODULE_LICENSE ( "GPL"  )