crypto: caam - move sec4_sg_entry to sg_sw_sec4.h
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 9 Nov 2016 08:46:22 +0000 (10:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 13 Nov 2016 09:45:14 +0000 (17:45 +0800)
sec4_sg_entry structure is used only by helper functions in sg_sw_sec4.h.
Since SEC HW S/G entries are to be manipulated only indirectly, via these
functions, move sec4_sg_entry to the corresponding header.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/desc.h
drivers/crypto/caam/sg_sw_sec4.h

index 61059abef7372a0d5951efe76fc04677cc6bda42..2e6766a1573f3b2eb789bb7824eac93abad0a3ec 100644 (file)
 #define SEC4_SG_LEN_MASK       0x3fffffff      /* Excludes EXT and FINAL */
 #define SEC4_SG_OFFSET_MASK    0x00001fff
 
-struct sec4_sg_entry {
-       u64 ptr;
-       u32 len;
-       u32 bpid_offset;
-};
-
 /* Max size of any CAAM descriptor in 32-bit words, inclusive of header */
 #define MAX_CAAM_DESCSIZE      64
 
index 41cd5a356d050adaaf9cdaf40a143833422c7ef6..6afa20c4a0132ff0c5f11b44aaf45a31bf5ed096 100644 (file)
@@ -7,7 +7,11 @@
 
 #include "regs.h"
 
-struct sec4_sg_entry;
+struct sec4_sg_entry {
+       u64 ptr;
+       u32 len;
+       u32 bpid_offset;
+};
 
 /*
  * convert single dma address to h/w link table format