crypto/cnxk: support AES-CMAC
[dpdk.git] / drivers / common / cnxk / roc_se.h
index 051d496..145a182 100644 (file)
 #define ROC_SE_FC_MINOR_OP_DECRYPT    0x1
 #define ROC_SE_FC_MINOR_OP_HMAC_FIRST 0x10
 
-#define ROC_SE_MAJOR_OP_HASH      0x34
-#define ROC_SE_MAJOR_OP_HMAC      0x35
-#define ROC_SE_MAJOR_OP_ZUC_SNOW3G 0x37
-#define ROC_SE_MAJOR_OP_KASUMI    0x38
-#define ROC_SE_MAJOR_OP_MISC      0x01
+#define ROC_SE_MAJOR_OP_HASH   0x34
+#define ROC_SE_MAJOR_OP_HMAC   0x35
+#define ROC_SE_MAJOR_OP_PDCP   0x37
+#define ROC_SE_MAJOR_OP_KASUMI 0x38
+
+#define ROC_SE_MAJOR_OP_MISC            0x01
+#define ROC_SE_MISC_MINOR_OP_PASSTHROUGH 0x03
+#define ROC_SE_MISC_MINOR_OP_DUMMY      0x04
+#define ROC_SE_MISC_MINOR_OP_HW_SUPPORT         0x08
 
 #define ROC_SE_MAX_AAD_SIZE 64
 #define ROC_SE_MAX_MAC_LEN  64
@@ -259,7 +263,8 @@ struct roc_se_fc_params {
        struct roc_se_buf_ptr meta_buf;
        struct roc_se_buf_ptr ctx_buf;
        uint32_t rsvd2;
-       uint16_t rsvd3;
+       uint8_t rsvd3;
+       uint8_t iv_ovr;
        uint8_t cipher_iv_len;
        uint8_t auth_iv_len;