diff options
author | Sandeep Malik <Sandeep.Malik@freescale.com> | 2014-02-16 03:17:15 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-02-18 23:12:40 (GMT) |
commit | 3ea7c1eb6de1ba9431119b8eeb7c71a5aefded25 (patch) | |
tree | b1e1155b40fee07ead1bd6e7cb0366dd3e9d05af /drivers/crypto/caam | |
parent | b968c968c258cc741e2246077166ce5237c33c14 (diff) | |
download | linux-fsl-qoriq-3ea7c1eb6de1ba9431119b8eeb7c71a5aefded25.tar.xz |
ASF_IPSEC: Added some more commands in desc_constr.h to
support 3des-xcbc in ASF
desc_constr.h has been modified to provide commands which
are required to support 3des-xcbc Also added a minor correction
in disassembler of decriptor which caused kernel crash on
printing the descriptor using dis-assembler
CR:ENGR00272350
Signed-off-by: Nipun Gupta <nipun.gupta@freescale.com>
Signed-off-by: Sandeep Malik <Sandeep.Malik@freescale.com>
Change-Id: I7d25e8898f3fd7bdc88b3d689434534c4a017bca
Reviewed-on: http://git.am.freescale.net:8181/8827
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r-- | drivers/crypto/caam/desc.h | 1 | ||||
-rw-r--r-- | drivers/crypto/caam/desc_constr.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/caam/desc.h b/drivers/crypto/caam/desc.h index 79fce2e..262d45e 100644 --- a/drivers/crypto/caam/desc.h +++ b/drivers/crypto/caam/desc.h @@ -1439,6 +1439,7 @@ struct sec4_sg_entry { #define MATH_SRC1_INFIFO (0x0a << MATH_SRC1_SHIFT) #define MATH_SRC1_OUTFIFO (0x0b << MATH_SRC1_SHIFT) #define MATH_SRC1_ONE (0x0c << MATH_SRC1_SHIFT) +#define MATH_SRC1_ZERO (0x0f << MATH_SRC1_SHIFT) /* Destination selectors */ #define MATH_DEST_SHIFT 8 diff --git a/drivers/crypto/caam/desc_constr.h b/drivers/crypto/caam/desc_constr.h index cd5f678..7d6ca5f 100644 --- a/drivers/crypto/caam/desc_constr.h +++ b/drivers/crypto/caam/desc_constr.h @@ -188,6 +188,8 @@ static inline void append_##cmd(u32 *desc, unsigned int len, u32 options) \ APPEND_CMD_LEN(seq_store, SEQ_STORE) APPEND_CMD_LEN(seq_fifo_load, SEQ_FIFO_LOAD) APPEND_CMD_LEN(seq_fifo_store, SEQ_FIFO_STORE) +APPEND_CMD_LEN(seq_out_ptr_pre_rto, SEQ_OUT_PTR) +APPEND_CMD_LEN(seq_in_ptr_pre_rto, SEQ_IN_PTR) #define APPEND_CMD_PTR(cmd, op) \ static inline void append_##cmd(u32 *desc, dma_addr_t ptr, unsigned int len, \ |