1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (C) 2019 Marvell International Ltd. 3 */ 4 5 #ifndef _OTX2_CRYPTODEV_CAPABILITIES_H_ 6 #define _OTX2_CRYPTODEV_CAPABILITIES_H_ 7 8 #include <rte_cryptodev.h> 9 10 #include "otx2_mbox.h" 11 12 enum otx2_cpt_egrp { 13 OTX2_CPT_EGRP_SE = 0, 14 OTX2_CPT_EGRP_SE_IE = 1, 15 OTX2_CPT_EGRP_AE = 2, 16 OTX2_CPT_EGRP_MAX, 17 }; 18 19 /* 20 * Initialize crypto capabilities for the device 21 * 22 */ 23 void otx2_crypto_capabilities_init(union cpt_eng_caps *hw_caps); 24 25 /* 26 * Get capabilities list for the device 27 * 28 */ 29 const struct rte_cryptodev_capabilities * 30 otx2_cpt_capabilities_get(void); 31 32 /* 33 * Initialize security capabilities for the device 34 * 35 */ 36 void otx2_crypto_sec_capabilities_init(union cpt_eng_caps *hw_caps); 37 38 /* 39 * Get security capabilities list for the device 40 * 41 */ 42 const struct rte_security_capability * 43 otx2_crypto_sec_capabilities_get(void *device __rte_unused); 44 45 #endif /* _OTX2_CRYPTODEV_CAPABILITIES_H_ */ 46