Skip to content

Commit 88fbf18

Browse files
e-rossmanLinus Torvalds
authored andcommitted
[PATCH] s390: add support for cex2a crypto cards
Signed-off-by: Eric Rossman <edrossma@us.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent fb6958a commit 88fbf18

4 files changed

Lines changed: 383 additions & 51 deletions

File tree

‎drivers/s390/crypto/z90common.h‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* linux/drivers/s390/crypto/z90common.h
33
*
4-
* z90crypt 1.3.2
4+
* z90crypt 1.3.3
55
*
6-
* Copyright (C) 2001, 2004 IBM Corporation
6+
* Copyright (C) 2001, 2005 IBM Corporation
77
* Author(s): Robert Burroughs (burrough@us.ibm.com)
88
* Eric Rossman (edrossma@us.ibm.com)
99
*
@@ -91,12 +91,13 @@ enum hdstat {
9191
#define TSQ_FATAL_ERROR 34
9292
#define RSQ_FATAL_ERROR 35
9393

94-
#define Z90CRYPT_NUM_TYPES 5
94+
#define Z90CRYPT_NUM_TYPES 6
9595
#define PCICA 0
9696
#define PCICC 1
9797
#define PCIXCC_MCL2 2
9898
#define PCIXCC_MCL3 3
9999
#define CEX2C 4
100+
#define CEX2A 5
100101
#define NILDEV -1
101102
#define ANYDEV -1
102103
#define PCIXCC_UNK -2
@@ -105,7 +106,7 @@ enum hdevice_type {
105106
PCICC_HW = 3,
106107
PCICA_HW = 4,
107108
PCIXCC_HW = 5,
108-
OTHER_HW = 6,
109+
CEX2A_HW = 6,
109110
CEX2C_HW = 7
110111
};
111112

‎drivers/s390/crypto/z90crypt.h‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
* linux/drivers/s390/crypto/z90crypt.h
33
*
4-
* z90crypt 1.3.2
4+
* z90crypt 1.3.3
55
*
6-
* Copyright (C) 2001, 2004 IBM Corporation
6+
* Copyright (C) 2001, 2005 IBM Corporation
77
* Author(s): Robert Burroughs (burrough@us.ibm.com)
88
* Eric Rossman (edrossma@us.ibm.com)
99
*
@@ -29,11 +29,11 @@
2929

3030
#include <linux/ioctl.h>
3131

32-
#define VERSION_Z90CRYPT_H "$Revision: 1.11 $"
32+
#define VERSION_Z90CRYPT_H "$Revision: 1.2.2.4 $"
3333

3434
#define z90crypt_VERSION 1
3535
#define z90crypt_RELEASE 3 // 2 = PCIXCC, 3 = rewrite for coding standards
36-
#define z90crypt_VARIANT 2 // 2 = added PCIXCC MCL3 and CEX2C support
36+
#define z90crypt_VARIANT 3 // 3 = CEX2A support
3737

3838
/**
3939
* struct ica_rsa_modexpo
@@ -122,6 +122,9 @@ struct ica_rsa_modexpo_crt {
122122
* Z90STAT_CEX2CCOUNT
123123
* Return an integer count of all CEX2Cs.
124124
*
125+
* Z90STAT_CEX2ACOUNT
126+
* Return an integer count of all CEX2As.
127+
*
125128
* Z90STAT_REQUESTQ_COUNT
126129
* Return an integer count of the number of entries waiting to be
127130
* sent to a device.
@@ -144,6 +147,7 @@ struct ica_rsa_modexpo_crt {
144147
* 0x03: PCIXCC_MCL2
145148
* 0x04: PCIXCC_MCL3
146149
* 0x05: CEX2C
150+
* 0x06: CEX2A
147151
* 0x0d: device is disabled via the proc filesystem
148152
*
149153
* Z90STAT_QDEPTH_MASK
@@ -199,6 +203,7 @@ struct ica_rsa_modexpo_crt {
199203
#define Z90STAT_PCIXCCMCL2COUNT _IOR(Z90_IOCTL_MAGIC, 0x4b, int)
200204
#define Z90STAT_PCIXCCMCL3COUNT _IOR(Z90_IOCTL_MAGIC, 0x4c, int)
201205
#define Z90STAT_CEX2CCOUNT _IOR(Z90_IOCTL_MAGIC, 0x4d, int)
206+
#define Z90STAT_CEX2ACOUNT _IOR(Z90_IOCTL_MAGIC, 0x4e, int)
202207
#define Z90STAT_REQUESTQ_COUNT _IOR(Z90_IOCTL_MAGIC, 0x44, int)
203208
#define Z90STAT_PENDINGQ_COUNT _IOR(Z90_IOCTL_MAGIC, 0x45, int)
204209
#define Z90STAT_TOTALOPEN_COUNT _IOR(Z90_IOCTL_MAGIC, 0x46, int)

0 commit comments

Comments
 (0)