From: Nithin Dabilpuram <[email protected]> Adding common macros required by queue pair op functions.
Signed-off-by: Ankur Dwivedi <[email protected]> Signed-off-by: Anoob Joseph <[email protected]> Signed-off-by: Murthy NSSR <[email protected]> Signed-off-by: Nithin Dabilpuram <[email protected]> Signed-off-by: Ragothaman Jayaraman <[email protected]> Signed-off-by: Srisivasubramanian S <[email protected]> Signed-off-by: Tejasree Kondoj <[email protected]> --- drivers/common/cpt/cpt_common.h | 3 +++ drivers/common/cpt/cpt_hw_types.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.h index 1f78d42..61621dc 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -15,6 +15,9 @@ */ #define CRYPTO_OCTEONTX 0x1 +#define CPT_COUNT_THOLD 32 +#define CPT_TIMER_THOLD 0x3F + #define AE_TYPE 1 #define SE_TYPE 2 diff --git a/drivers/common/cpt/cpt_hw_types.h b/drivers/common/cpt/cpt_hw_types.h index 8cd1bf8..4b70dde 100644 --- a/drivers/common/cpt/cpt_hw_types.h +++ b/drivers/common/cpt/cpt_hw_types.h @@ -20,6 +20,10 @@ #define CPT_VF_INTR_HWERR_MASK (1<<5) #define CPT_VF_INTR_FAULT_MASK (1<<6) +#define CPT_INST_SIZE (64) +#define CPT_NEXT_CHUNK_PTR_SIZE (8) +#define DEFAULT_CMD_QLEN (DEFAULT_CMD_QCHUNK_SIZE * DEFAULT_CMD_QCHUNKS) + /* * CPT_INST_S software command definitions * Words EI (0-3) -- 2.7.4

