X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcrypto%2Focteontx2%2Fotx2_cryptodev_capabilities.h;h=c1e00011903465e5c92ba22357c16eaeb15b714b;hb=306a2fcd1b2d549b4094232f0a03c9c62228e298;hp=f103c32eda3d57428a24c8a4327aadbc1892a165;hpb=6aa9ceaddf1d5a057045e32dfbd3772a951fa670;p=dpdk.git diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h b/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h index f103c32eda..c1e0001190 100644 --- a/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h +++ b/drivers/crypto/octeontx2/otx2_cryptodev_capabilities.h @@ -7,10 +7,39 @@ #include +#include "otx2_mbox.h" + +enum otx2_cpt_egrp { + OTX2_CPT_EGRP_SE = 0, + OTX2_CPT_EGRP_SE_IE = 1, + OTX2_CPT_EGRP_AE = 2, + OTX2_CPT_EGRP_MAX, +}; + +/* + * Initialize crypto capabilities for the device + * + */ +void otx2_crypto_capabilities_init(union cpt_eng_caps *hw_caps); + /* * Get capabilities list for the device * */ -const struct rte_cryptodev_capabilities *otx2_cpt_capabilities_get(void); +const struct rte_cryptodev_capabilities * +otx2_cpt_capabilities_get(void); + +/* + * Initialize security capabilities for the device + * + */ +void otx2_crypto_sec_capabilities_init(union cpt_eng_caps *hw_caps); + +/* + * Get security capabilities list for the device + * + */ +const struct rte_security_capability * +otx2_crypto_sec_capabilities_get(void *device __rte_unused); #endif /* _OTX2_CRYPTODEV_CAPABILITIES_H_ */