Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qat/qat_api/common/include/sal_types_compression.h
Show All 17 Lines | |||||
#include "lac_sal_types.h" | #include "lac_sal_types.h" | ||||
#include "icp_qat_hw.h" | #include "icp_qat_hw.h" | ||||
#include "icp_buffer_desc.h" | #include "icp_buffer_desc.h" | ||||
#include "lac_mem_pools.h" | #include "lac_mem_pools.h" | ||||
#include "icp_adf_transport.h" | #include "icp_adf_transport.h" | ||||
#define DC_NUM_RX_RINGS (1) | #define DC_NUM_RX_RINGS (1) | ||||
#define DC_NUM_COMPRESSION_LEVELS (CPA_DC_L9) | |||||
/** | /** | ||||
***************************************************************************** | ***************************************************************************** | ||||
* @ingroup SalCtrl | * @ingroup SalCtrl | ||||
* Compression device specific data | * Compression device specific data | ||||
* | * | ||||
* @description | * @description | ||||
* Contains device specific information for a compression service. | * Contains device specific information for a compression service. | ||||
* | * | ||||
*****************************************************************************/ | *****************************************************************************/ | ||||
typedef struct sal_compression_device_data { | typedef struct sal_compression_device_data { | ||||
/* Device specific minimum output buffer size for static compression */ | /* Device specific minimum output buffer size for static compression */ | ||||
Cpa32U minOutputBuffSize; | Cpa32U minOutputBuffSize; | ||||
/* Device specific minimum output buffer size for dynamic compression */ | |||||
Cpa32U minOutputBuffSizeDynamic; | |||||
/* Enable/disable secureRam/acceleratorRam for intermediate buffers*/ | /* Enable/disable secureRam/acceleratorRam for intermediate buffers*/ | ||||
Cpa8U useDevRam; | Cpa8U useDevRam; | ||||
/* When set, implies device can decompress interim odd byte length | /* When set, implies device can decompress interim odd byte length | ||||
* stateful decompression requests. | * stateful decompression requests. | ||||
*/ | */ | ||||
CpaBoolean oddByteDecompInterim; | CpaBoolean oddByteDecompInterim; | ||||
/* When set, implies device can decompress odd byte length | /* When set, implies device can decompress odd byte length | ||||
* stateful decompression requests when bFinal is absent | * stateful decompression requests when bFinal is absent | ||||
*/ | */ | ||||
CpaBoolean oddByteDecompNobFinal; | CpaBoolean oddByteDecompNobFinal; | ||||
/* Flag to indicate if translator slice overflow is supported */ | /* Flag to indicate if translator slice overflow is supported */ | ||||
CpaBoolean translatorOverflow; | CpaBoolean translatorOverflow; | ||||
/* Flag to enable/disable delayed match mode */ | /* Flag to enable/disable delayed match mode */ | ||||
icp_qat_hw_compression_delayed_match_t enableDmm; | icp_qat_hw_compression_delayed_match_t enableDmm; | ||||
Cpa32U inflateContextSize; | Cpa32U inflateContextSize; | ||||
Cpa8U highestHwCompressionDepth; | Cpa8U highestHwCompressionDepth; | ||||
/* Mask that reports supported window sizes for comp/decomp */ | /* Mask that reports supported window sizes for comp/decomp */ | ||||
Cpa8U windowSizeMask; | Cpa8U windowSizeMask; | ||||
/* List representing compression levels that are the first to have | |||||
a unique search depth. */ | |||||
CpaBoolean uniqueCompressionLevels[DC_NUM_COMPRESSION_LEVELS + 1]; | |||||
Cpa8U numCompressionLevels; | |||||
/* Flag to indicate CompressAndVerifyAndRecover feature support */ | /* Flag to indicate CompressAndVerifyAndRecover feature support */ | ||||
CpaBoolean cnvnrSupported; | CpaBoolean cnvnrSupported; | ||||
} sal_compression_device_data_t; | } sal_compression_device_data_t; | ||||
/** | /** | ||||
***************************************************************************** | ***************************************************************************** | ||||
* @ingroup SalCtrl | * @ingroup SalCtrl | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |