s390: add support for cex2a crypto cards.
Subsystems (2)
PATCH 17/17 s390: add support for cex2a crypto cards.
From: Eric Rossman <[email protected]>
[patch 17/17] s390: add support for cex2a crypto cards.
Signed-off-by Eric Rossman <[email protected]>
Signed-off-by Martin Schwidefsky <[email protected]>
---
drivers/s390/crypto/z90common.h | 9 - drivers/s390/crypto/z90crypt.h | 13 + drivers/s390/crypto/z90hardware.c | 301 ++++++++++++++++++++++++++++++++++++-- drivers/s390/crypto/z90main.c | 111 +++++++++----- 4 files changed, 383 insertions(+), 51 deletions(-)
drivers/s390/crypto/z90common.h +5 -4
@@ -1,9 +1,9 @@/* * linux/drivers/s390/crypto/z90common.h * -* z90crypt 1.3.2 +* z90crypt 1.3.3 * -* Copyright (C) 2001, 2004 IBM Corporation +* Copyright (C) 2001, 2005 IBM Corporation * Author(s): Robert Burroughs ([email protected]) * Eric Rossman ([email protected]) *
@@ -91,12 +91,13 @@ enum hdstat {#define TSQ_FATAL_ERROR 34#define RSQ_FATAL_ERROR 35 -#define Z90CRYPT_NUM_TYPES 5 +#define Z90CRYPT_NUM_TYPES 6#define PCICA 0#define PCICC 1#define PCIXCC_MCL2 2#define PCIXCC_MCL3 3#define CEX2C 4 +#define CEX2A 5#define NILDEV -1#define ANYDEV -1#define PCIXCC_UNK -2
@@ -105,7 +106,7 @@ enum hdevice_type {PCICC_HW =3 ,PCICA_HW =4 ,PCIXCC_HW =5 , -OTHER_HW =6 , +CEX2A_HW =6 , CEX2C_HW = 7 };
drivers/s390/crypto/z90crypt.h +9 -4
@@ -1,9 +1,9 @@/* * linux/drivers/s390/crypto/z90crypt.h * -* z90crypt 1.3.2 +* z90crypt 1.3.3 * -* Copyright (C) 2001, 2004 IBM Corporation +* Copyright (C) 2001, 2005 IBM Corporation * Author(s): Robert Burroughs ([email protected]) * Eric Rossman ([email protected]) *
@@ -29,11 +29,11 @@#include <linux/ioctl.h> -#define VERSION_Z90CRYPT_H "$Revision: 1.11 $" +#define VERSION_Z90CRYPT_H "$Revision: 1.2.2.4 $"#define z90crypt_VERSION 1#define z90crypt_RELEASE 3 // 2 = PCIXCC, 3 = rewrite for coding standards -#define z90crypt_VARIANT 2 // 2 = added PCIXCC MCL3 and CEX2C support +#define z90crypt_VARIANT 3 // 3 = CEX2A support/** * struct ica_rsa_modexpo
@@ -122,6 +122,9 @@ struct ica_rsa_modexpo_crt {* Z90STAT_CEX2CCOUNT * Return an integer count of all CEX2Cs. * +* Z90STAT_CEX2ACOUNT +* Return an integer count of all CEX2As. +* * Z90STAT_REQUESTQ_COUNT * Return an integer count of the number of entries waiting to be * sent to a device.
@@ -144,6 +147,7 @@ struct ica_rsa_modexpo_crt {* 0x03: PCIXCC_MCL2 * 0x04: PCIXCC_MCL3 * 0x05: CEX2C +* 0x06: CEX2A * 0x0d: device is disabled via the proc filesystem * * Z90STAT_QDEPTH_MASK
@@ -199,6 +203,7 @@ struct ica_rsa_modexpo_crt {#define Z90STAT_PCIXCCMCL2COUNT _IOR(Z90_IOCTL_MAGIC, 0x4b, int)#define Z90STAT_PCIXCCMCL3COUNT _IOR(Z90_IOCTL_MAGIC, 0x4c, int)#define Z90STAT_CEX2CCOUNT _IOR(Z90_IOCTL_MAGIC, 0x4d, int) +#define Z90STAT_CEX2ACOUNT _IOR(Z90_IOCTL_MAGIC, 0x4e, int)#define Z90STAT_REQUESTQ_COUNT _IOR(Z90_IOCTL_MAGIC, 0x44, int)#define Z90STAT_PENDINGQ_COUNT _IOR(Z90_IOCTL_MAGIC, 0x45, int)#define Z90STAT_TOTALOPEN_COUNT _IOR(Z90_IOCTL_MAGIC, 0x46, int)
drivers/s390/crypto/z90hardware.c +293 -8
380 lines not on this page · raw message
drivers/s390/crypto/z90main.c +76 -35
231 lines not on this page · raw message