summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ccree/cc_lli_defs.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-06-04 11:02:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-04 10:16:25 +0200
commitb9532954214491354a07c6408c6275f09fe9775a (patch)
tree71fa90a3c4ca5b33d52eeb51b6cb16228c28ebe0 /drivers/staging/ccree/cc_lli_defs.h
parentc6f7f2f4591f63ec0eba903fceb242af3af5d12c (diff)
downloadlinux-b9532954214491354a07c6408c6275f09fe9775a.tar.bz2
staging: ccree: move M/LLI defines to header file
A bunch of macros used to define M/LLI descriptors where being defined in the C file. Move them over to private include file where other relevant definitions are stored. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/cc_lli_defs.h')
-rw-r--r--drivers/staging/ccree/cc_lli_defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/ccree/cc_lli_defs.h b/drivers/staging/ccree/cc_lli_defs.h
index 876dde00f6e3..78811aa2c513 100644
--- a/drivers/staging/ccree/cc_lli_defs.h
+++ b/drivers/staging/ccree/cc_lli_defs.h
@@ -28,6 +28,14 @@
#define CC_MAX_MLLI_ENTRY_SIZE 0xFFFF
+#define LLI_MAX_NUM_OF_DATA_ENTRIES 128
+#define LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES 4
+#define MLLI_TABLE_MIN_ALIGNMENT 4 /* 32 bit alignment */
+#define MAX_NUM_OF_BUFFERS_IN_MLLI 4
+#define MAX_NUM_OF_TOTAL_MLLI_ENTRIES \
+ (2 * LLI_MAX_NUM_OF_DATA_ENTRIES + \
+ LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES)
+
/* Size of entry */
#define LLI_ENTRY_WORD_SIZE 2
#define LLI_ENTRY_BYTE_SIZE (LLI_ENTRY_WORD_SIZE * sizeof(u32))