zcryptstats: Add support for CEX7

Add the CEX7 crypto card to the list of known crypto cards.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2019-08-15 17:09:10 +02:00
committed by Jan Höppner
parent 4fc0c3cfef
commit e15e8a1bfa

View File

@@ -147,8 +147,9 @@ struct chsc_cmb_area {
#define CRYPTO_TYPE_CEX4S 10
#define CRYPTO_TYPE_CEX5S 11
#define CRYPTO_TYPE_CEX6S 12
#define CRYPTO_TYPE_CEX7S 13
#define CRYPTO_TYPE_TOLERATION CRYPTO_TYPE_CEX6S
#define CRYPTO_TYPE_TOLERATION CRYPTO_TYPE_CEX7S
struct crypto_counter {
const char *name;
@@ -235,8 +236,8 @@ const struct crypto_mode mode_pcica[1] = {
.counters = counter_pcica },
};
#define NUM_CEX456_MODES 11
const struct crypto_mode mode_cex456[NUM_CEX456_MODES] = {
#define NUM_CEX4567_MODES 11
const struct crypto_mode mode_cex4567[NUM_CEX4567_MODES] = {
{ 0 },
{ 0 },
{ 0 },
@@ -256,7 +257,7 @@ const struct crypto_mode mode_cex456[NUM_CEX456_MODES] = {
.counters = counter_ep11 },
};
#define NUM_CRYPTO_TYPES 13
#define NUM_CRYPTO_TYPES 14
const struct crypto_type crypto_types[NUM_CRYPTO_TYPES] = {
{ 0 },
{ 0 },
@@ -275,12 +276,14 @@ const struct crypto_type crypto_types[NUM_CRYPTO_TYPES] = {
.modes = mode_accel },
{ .name = "CEX3C", .num_modes = NUM_COPROC_MODES,
.modes = mode_coproc },
{ .name = "CEX4", .num_modes = NUM_CEX456_MODES,
.modes = mode_cex456 },
{ .name = "CEX5", .num_modes = NUM_CEX456_MODES,
.modes = mode_cex456 },
{ .name = "CEX6", .num_modes = NUM_CEX456_MODES,
.modes = mode_cex456 },
{ .name = "CEX4", .num_modes = NUM_CEX4567_MODES,
.modes = mode_cex4567 },
{ .name = "CEX5", .num_modes = NUM_CEX4567_MODES,
.modes = mode_cex4567 },
{ .name = "CEX6", .num_modes = NUM_CEX4567_MODES,
.modes = mode_cex4567 },
{ .name = "CEX7", .num_modes = NUM_CEX4567_MODES,
.modes = mode_cex4567 },
};