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

Go to the source code of this file.

Macros

#define DATA_REG_OFFSET   0x0200
 
#define CSR_REG_OFFSET   0x0278
 
#define CSR_OUT_EMPTY_MASK   (1 << 24)
 
#define CSR_FAULT_MASK   (1 << 1)
 
#define TRNG_BLOCK_RESET_MASK   (1 << 0)
 
#define TAI_REG_OFFSET   0x0380
 
#define PICO_TRNG_TIMEOUT   20
 

Functions

 module_platform_driver (picoxcell_trng_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jamie Iles")
 
 MODULE_DESCRIPTION ("Picochip picoXcell TRNG driver")
 

Variables

struct devicerng_dev
 

Macro Definition Documentation

#define CSR_FAULT_MASK   (1 << 1)

Definition at line 22 of file picoxcell-rng.c.

#define CSR_OUT_EMPTY_MASK   (1 << 24)

Definition at line 21 of file picoxcell-rng.c.

#define CSR_REG_OFFSET   0x0278

Definition at line 20 of file picoxcell-rng.c.

#define DATA_REG_OFFSET   0x0200

Definition at line 19 of file picoxcell-rng.c.

#define PICO_TRNG_TIMEOUT   20

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

#define TAI_REG_OFFSET   0x0380

Definition at line 24 of file picoxcell-rng.c.

#define TRNG_BLOCK_RESET_MASK   (1 << 0)

Definition at line 23 of file picoxcell-rng.c.

Function Documentation

MODULE_AUTHOR ( "Jamie Iles"  )
MODULE_DESCRIPTION ( "Picochip picoXcell TRNG driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( picoxcell_trng_driver  )

Variable Documentation

struct device* rng_dev

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