net/mlx5: check metadata registers availability
[dpdk.git] / drivers / common / cpt / cpt_mcode_defines.h
index d5b3c59..f356e62 100644 (file)
 #define CPT_MAJOR_OP_KASUMI    0x38
 #define CPT_MAJOR_OP_MISC      0x01
 
+/* AE opcodes */
+#define CPT_MAJOR_OP_MODEX     0x03
+#define CPT_MINOR_OP_MODEX     0x01
+#define CPT_MINOR_OP_PKCS_ENC  0x02
+#define CPT_MINOR_OP_PKCS_ENC_CRT      0x03
+#define CPT_MINOR_OP_PKCS_DEC  0x04
+#define CPT_MINOR_OP_PKCS_DEC_CRT      0x05
+#define CPT_MINOR_OP_MODEX_CRT 0x06
+
+#define CPT_BLOCK_TYPE1 0
+#define CPT_BLOCK_TYPE2 1
+
 #define CPT_BYTE_16            16
 #define CPT_BYTE_24            24
 #define CPT_BYTE_32            32
@@ -214,6 +226,8 @@ struct cpt_sess_misc {
        uint16_t is_null:1;
        /** Flag for GMAC */
        uint16_t is_gmac:1;
+       /** Engine group */
+       uint16_t egrp:3;
        /** AAD length */
        uint16_t aad_length;
        /** MAC len in bytes */
@@ -366,6 +380,14 @@ typedef struct fc_params {
 
 } fc_params_t;
 
+/*
+ * Parameters for asymmetric operations
+ */
+struct asym_op_params {
+       struct cpt_request_info *req;
+       phys_addr_t meta_buf;
+};
+
 /*
  * Parameters for digest
  * generate requests