crypto: caam - Add defines for CAAM commands
authorAndrei Varvara <andrei.varvara@freescale.com>
Tue, 28 May 2013 07:37:08 +0000 (15:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 28 May 2013 07:37:08 +0000 (15:37 +0800)
add defines for:
    append load immediate command
    setting SEQ LIODN equal to the Non-SEQ LIODN for the job
    replace job descriptor command

Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com>
Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/desc.h

index 972ad145d76cbe92129167a5d3306151d7a92325..8214dc1c49e8514ba884e84c0238b1a8e53f6cd3 100644 (file)
@@ -1608,4 +1608,13 @@ struct sec4_sg_entry {
 #define NFIFOENTRY_PLEN_SHIFT  0
 #define NFIFOENTRY_PLEN_MASK   (0xFF << NFIFOENTRY_PLEN_SHIFT)
 
+/* Append Load Immediate Command */
+#define FD_CMD_APPEND_LOAD_IMMEDIATE                   0x80000000
+
+/* Set SEQ LIODN equal to the Non-SEQ LIODN for the job */
+#define FD_CMD_SET_SEQ_LIODN_EQUAL_NONSEQ_LIODN                0x40000000
+
+/* Frame Descriptor Command for Replacement Job Descriptor */
+#define FD_CMD_REPLACE_JOB_DESC                                0x20000000
+
 #endif /* DESC_H */