diff options
Diffstat (limited to 'drivers/crypto/intel/qat/qat_common/adf_cfg_services.h')
-rw-r--r-- | drivers/crypto/intel/qat/qat_common/adf_cfg_services.h | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/drivers/crypto/intel/qat/qat_common/adf_cfg_services.h b/drivers/crypto/intel/qat/qat_common/adf_cfg_services.h index c6b0328b0f5b..913d717280af 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_cfg_services.h +++ b/drivers/crypto/intel/qat/qat_common/adf_cfg_services.h @@ -7,22 +7,38 @@ struct adf_accel_dev; -enum adf_services { - SVC_CY = 0, - SVC_CY2, - SVC_DC, - SVC_DCC, +enum adf_base_services { + SVC_ASYM = 0, SVC_SYM, - SVC_ASYM, - SVC_DC_ASYM, - SVC_ASYM_DC, - SVC_DC_SYM, - SVC_SYM_DC, + SVC_DC, + SVC_DECOMP, + SVC_BASE_COUNT +}; + +enum adf_extended_services { + SVC_DCC = SVC_BASE_COUNT, SVC_COUNT }; -extern const char *const adf_cfg_services[SVC_COUNT]; +enum adf_composed_services { + SVC_SYM_ASYM = SVC_COUNT, + SVC_SYM_DC, + SVC_ASYM_DC, +}; + +enum { + ADF_ONE_SERVICE = 1, + ADF_TWO_SERVICES, + ADF_THREE_SERVICES, +}; + +#define MAX_NUM_CONCURR_SVC ADF_THREE_SERVICES +int adf_parse_service_string(struct adf_accel_dev *accel_dev, const char *in, + size_t in_len, char *out, size_t out_len); int adf_get_service_enabled(struct adf_accel_dev *accel_dev); +int adf_get_service_mask(struct adf_accel_dev *accel_dev, unsigned long *mask); +enum adf_cfg_service_type adf_srv_to_cfg_svc_type(enum adf_base_services svc); +bool adf_is_service_enabled(struct adf_accel_dev *accel_dev, enum adf_base_services svc); #endif |