X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fqat%2Fqat_common.h;h=9411a7930125c848b3896b59e18bcbaa6f673ae6;hb=b8ac8b089cebd5d415641c4a5fb7f7a955c296b7;hp=cf840fea9b40f5a02d6ee4b7c981f5216102416a;hpb=47c3f7a41a26c9943f9804691d03828b2ce09f40;p=dpdk.git diff --git a/drivers/common/qat/qat_common.h b/drivers/common/qat/qat_common.h index cf840fea9b..9411a79301 100644 --- a/drivers/common/qat/qat_common.h +++ b/drivers/common/qat/qat_common.h @@ -13,22 +13,33 @@ #define QAT_64_BTYE_ALIGN_MASK (~0x3f) /* Intel(R) QuickAssist Technology device generation is enumerated - * from one according to the generation of the device + * from one according to the generation of the device. + * QAT_GEN* is used as the index to find all devices */ enum qat_device_gen { - QAT_GEN1 = 1, + QAT_GEN1, QAT_GEN2, - QAT_GEN3 + QAT_GEN3, + QAT_GEN4, + QAT_N_GENS }; enum qat_service_type { - QAT_SERVICE_ASYMMETRIC = 0, + QAT_SERVICE_ASYMMETRIC, QAT_SERVICE_SYMMETRIC, QAT_SERVICE_COMPRESSION, - QAT_SERVICE_INVALID + QAT_MAX_SERVICES }; -#define QAT_MAX_SERVICES (QAT_SERVICE_INVALID) +#define QAT_SERVICE_INVALID (QAT_MAX_SERVICES) + +enum qat_svc_list { + QAT_SVC_UNUSED = 0, + QAT_SVC_CRYPTO = 1, + QAT_SVC_COMPRESSION = 2, + QAT_SVC_SYM = 3, + QAT_SVC_ASYM = 4, +}; /**< Common struct for scatter-gather list operations */ struct qat_flat_buf { @@ -80,4 +91,7 @@ void qat_stats_reset(struct qat_pci_device *dev, enum qat_service_type service); +const char * +qat_service_get_str(enum qat_service_type type); + #endif /* _QAT_COMMON_H_ */