Main Page | Data Structures | File List | Data Fields | Globals

des_io.h File Reference


Detailed Description

Defines structures and defines need for DES support.

Author:
Andrew Roca
Defines structures and defines used by the driver to manage DES operations

#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/list.h>
#include <linux/ioport.h>
#include <linux/serial.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/mtd/mtd.h>
#include <linux/crypto.h>
#include <asm/uaccess.h>
#include "axis_hardware.h"

Include dependency graph for des_io.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  axis_des_hardware_key
 defines and controls the use of a key slot in the axis 3DES hardware More...

struct  axis_des_hardware_channel
 defines and controls one 3DES hardware channel More...

struct  axis_des_key
 Struct tracks a key and its properties. More...

struct  crypto_state
 associates a key (crypto session) and a hardware device More...

struct  axis_des_op
 Structure to contain a DES operation. More...


Defines

#define DES_A_REG   (0x50+CONTROL_OFFSET)
#define DES_B_REG   (0x54+CONTROL_OFFSET)
#define DES_C_REG   (0x58+CONTROL_OFFSET)
#define DES_D_REG   (0x5C+CONTROL_OFFSET)
#define DES_A_BUFFER   (0)
#define DES_B_BUFFER   (0x200)
#define DES_C_BUFFER   (0x400)
#define DES_D_BUFFER   (0x600)
#define DES_START_BIT   (1<<0)
#define DES_ENCRYPT_BIT   (1<<1)
#define DES_MASTER_BIT   (1<<2)
#define HEBER_DES3_BLOCK_SIZE   8
#define HEBER_DES3_KEY_SIZE   24
#define NUMBER_OF_KEY_STORES   16
#define NUMBER_OF_DES_CHANNELS   3
#define MAX_DES_OPS   512
#define KEY_SIZE   192
#define INTERNAL_KEY_SIZE   0x20

Functions

void init_axis_des_hardware_key (struct axis_des_hardware_key *ptr, unsigned char *addr, unsigned char *reg, int index)
 Function to initalise hardware key structure prior to use.

void init_axis_des_hardware_channel (struct axis_des_hardware_channel *ptr, unsigned char *reg, unsigned char *buffer, unsigned index)
 Initalise a DES hardware channel structure.

void init_axis_des_core (struct axis_pci_device_entry *device)
 Performs initalisation of DES structures.


Variables

file_operations crypto_file_operations
 Define a file operations structure for cryptographic devices.


Define Documentation

#define DES_A_BUFFER   (0)
 

#define DES_A_REG   (0x50+CONTROL_OFFSET)
 

#define DES_B_BUFFER   (0x200)
 

#define DES_B_REG   (0x54+CONTROL_OFFSET)
 

#define DES_C_BUFFER   (0x400)
 

#define DES_C_REG   (0x58+CONTROL_OFFSET)
 

#define DES_D_BUFFER   (0x600)
 

#define DES_D_REG   (0x5C+CONTROL_OFFSET)
 

#define DES_ENCRYPT_BIT   (1<<1)
 

#define DES_MASTER_BIT   (1<<2)
 

#define DES_START_BIT   (1<<0)
 

#define HEBER_DES3_BLOCK_SIZE   8
 

#define HEBER_DES3_KEY_SIZE   24
 

#define INTERNAL_KEY_SIZE   0x20
 

#define KEY_SIZE   192
 

#define MAX_DES_OPS   512
 

#define NUMBER_OF_DES_CHANNELS   3
 

#define NUMBER_OF_KEY_STORES   16
 


Function Documentation

void init_axis_des_core struct axis_pci_device_entry device  ) 
 

Performs initalisation of DES structures.

Parameters:
device - hardware master structure
Returns:
none

Performs initalisation of the DES structures in the master structure

Here is the call graph for this function:

void init_axis_des_hardware_channel struct axis_des_hardware_channel ptr,
unsigned char *  reg,
unsigned char *  buffer,
unsigned  index
 

Initalise a DES hardware channel structure.

Parameters:
ptr - structure to initalise
reg - address of control register associated with DES channel
buffer - address of channels storage in Axis device
index - DES channels id number
Returns:
none

Initalise a DES hardware channel structure, called as part of the initialisation of a new instance of Axis hardware

void init_axis_des_hardware_key struct axis_des_hardware_key ptr,
unsigned char *  addr,
unsigned char *  reg,
int  index
 

Function to initalise hardware key structure prior to use.

Parameters:
ptr - structure to initalise
addr - address of key in Axis device
reg - address of control register associated with key
index - keys id number
Returns:
none

Function to initalise hardware key structure prior to use, called as part of the initialisation of a new instance of Axis hardware


Variable Documentation

struct file_operations crypto_file_operations
 

Define a file operations structure for cryptographic devices.


Generated on Fri Jan 28 12:36:19 2005 for Axis Kernel Driver by doxygen 1.3.6