Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
zcrypt_pcixcc.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/atomic.h>
#include <asm/uaccess.h>
#include "ap_bus.h"
#include "zcrypt_api.h"
#include "zcrypt_error.h"
#include "zcrypt_msgtype6.h"
#include "zcrypt_pcixcc.h"
#include "zcrypt_cca_key.h"

Go to the source code of this file.

Data Structures

struct  response_type
 

Macros

#define PCIXCC_MIN_MOD_SIZE   16 /* 128 bits */
 
#define PCIXCC_MIN_MOD_SIZE_OLD   64 /* 512 bits */
 
#define PCIXCC_MAX_MOD_SIZE   256 /* 2048 bits */
 
#define CEX3C_MIN_MOD_SIZE   PCIXCC_MIN_MOD_SIZE
 
#define CEX3C_MAX_MOD_SIZE   512 /* 4096 bits */
 
#define PCIXCC_MCL2_SPEED_RATING   7870
 
#define PCIXCC_MCL3_SPEED_RATING   7870
 
#define CEX2C_SPEED_RATING   7000
 
#define CEX3C_SPEED_RATING   6500
 
#define PCIXCC_MAX_ICA_MESSAGE_SIZE   0x77c /* max size type6 v2 crt message */
 
#define PCIXCC_MAX_ICA_RESPONSE_SIZE   0x77c /* max size type86 v2 reply */
 
#define PCIXCC_MAX_XCRB_MESSAGE_SIZE   (12*1024)
 
#define PCIXCC_CLEANUP_TIME   (15*HZ)
 
#define CEIL4(x)   ((((x)+3)/4)*4)
 
#define PCIXCC_RESPONSE_TYPE_ICA   0
 
#define PCIXCC_RESPONSE_TYPE_XCRB   1
 

Functions

 MODULE_DEVICE_TABLE (ap, zcrypt_pcixcc_ids)
 
 MODULE_AUTHOR ("IBM Corporation")
 
 MODULE_DESCRIPTION ("PCIXCC Cryptographic Coprocessor device driver, ""Copyright IBM Corp. 2001, 2012")
 
 MODULE_LICENSE ("GPL")
 
int __init zcrypt_pcixcc_init (void)
 
void zcrypt_pcixcc_exit (void)
 
 module_init (zcrypt_pcixcc_init)
 
 module_exit (zcrypt_pcixcc_exit)
 

Variables

struct response_type __attribute__
 

Macro Definition Documentation

#define CEIL4 (   x)    ((((x)+3)/4)*4)

Definition at line 61 of file zcrypt_pcixcc.c.

#define CEX2C_SPEED_RATING   7000

Definition at line 51 of file zcrypt_pcixcc.c.

#define CEX3C_MAX_MOD_SIZE   512 /* 4096 bits */

Definition at line 47 of file zcrypt_pcixcc.c.

#define CEX3C_MIN_MOD_SIZE   PCIXCC_MIN_MOD_SIZE

Definition at line 46 of file zcrypt_pcixcc.c.

#define CEX3C_SPEED_RATING   6500

Definition at line 52 of file zcrypt_pcixcc.c.

#define PCIXCC_CLEANUP_TIME   (15*HZ)

Definition at line 59 of file zcrypt_pcixcc.c.

#define PCIXCC_MAX_ICA_MESSAGE_SIZE   0x77c /* max size type6 v2 crt message */

Definition at line 54 of file zcrypt_pcixcc.c.

#define PCIXCC_MAX_ICA_RESPONSE_SIZE   0x77c /* max size type86 v2 reply */

Definition at line 55 of file zcrypt_pcixcc.c.

#define PCIXCC_MAX_MOD_SIZE   256 /* 2048 bits */

Definition at line 45 of file zcrypt_pcixcc.c.

#define PCIXCC_MAX_XCRB_MESSAGE_SIZE   (12*1024)

Definition at line 57 of file zcrypt_pcixcc.c.

#define PCIXCC_MCL2_SPEED_RATING   7870

Definition at line 49 of file zcrypt_pcixcc.c.

#define PCIXCC_MCL3_SPEED_RATING   7870

Definition at line 50 of file zcrypt_pcixcc.c.

#define PCIXCC_MIN_MOD_SIZE   16 /* 128 bits */

Definition at line 43 of file zcrypt_pcixcc.c.

#define PCIXCC_MIN_MOD_SIZE_OLD   64 /* 512 bits */

Definition at line 44 of file zcrypt_pcixcc.c.

#define PCIXCC_RESPONSE_TYPE_ICA   0

Definition at line 67 of file zcrypt_pcixcc.c.

#define PCIXCC_RESPONSE_TYPE_XCRB   1

Definition at line 68 of file zcrypt_pcixcc.c.

Function Documentation

MODULE_AUTHOR ( "IBM Corporation"  )
MODULE_DESCRIPTION ( "PCIXCC Cryptographic Coprocessor device  driver,
""Copyright IBM Corp.  2001,
2012"   
)
MODULE_DEVICE_TABLE ( ap  ,
zcrypt_pcixcc_ids   
)
module_exit ( zcrypt_pcixcc_exit  )
module_init ( zcrypt_pcixcc_init  )
MODULE_LICENSE ( "GPL"  )
void zcrypt_pcixcc_exit ( void  )

Definition at line 362 of file zcrypt_pcixcc.c.

int __init zcrypt_pcixcc_init ( void  )

Definition at line 357 of file zcrypt_pcixcc.c.

Variable Documentation