diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 13:02:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 13:02:48 +0100 |
commit | 8b0217965418f2bd27214b075e8d538f1b75df48 (patch) | |
tree | f8413ca58fd121ad582d717a4478da73bc96ec7c /drivers/staging/ccree/cc_lli_defs.h | |
parent | 45b7c73226541e39ca4d6f3c5987aa1db2fb054c (diff) | |
download | linux-8b0217965418f2bd27214b075e8d538f1b75df48.tar.bz2 |
staging: ccree: remove ccree staging driver copy
The ccree driver is now in the cryptodev tree, so remove it from
drivers/staging as it's no longer needed here.
Based on a patch from Gilad, but the mailing list didn't like it :(
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.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/drivers/staging/ccree/cc_lli_defs.h b/drivers/staging/ccree/cc_lli_defs.h deleted file mode 100644 index 64b15ac9f1d3..000000000000 --- a/drivers/staging/ccree/cc_lli_defs.h +++ /dev/null @@ -1,59 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ - -#ifndef _CC_LLI_DEFS_H_ -#define _CC_LLI_DEFS_H_ - -#include <linux/types.h> - -/* Max DLLI size - * AKA CC_DSCRPTR_QUEUE_WORD1_DIN_SIZE_BIT_SIZE - */ -#define DLLI_SIZE_BIT_SIZE 0x18 - -#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)) - -/* Word0[31:0] = ADDR[31:0] */ -#define LLI_WORD0_OFFSET 0 -#define LLI_LADDR_BIT_OFFSET 0 -#define LLI_LADDR_BIT_SIZE 32 -/* Word1[31:16] = ADDR[47:32]; Word1[15:0] = SIZE */ -#define LLI_WORD1_OFFSET 1 -#define LLI_SIZE_BIT_OFFSET 0 -#define LLI_SIZE_BIT_SIZE 16 -#define LLI_HADDR_BIT_OFFSET 16 -#define LLI_HADDR_BIT_SIZE 16 - -#define LLI_SIZE_MASK GENMASK((LLI_SIZE_BIT_SIZE - 1), LLI_SIZE_BIT_OFFSET) -#define LLI_HADDR_MASK GENMASK( \ - (LLI_HADDR_BIT_OFFSET + LLI_HADDR_BIT_SIZE - 1),\ - LLI_HADDR_BIT_OFFSET) - -static inline void cc_lli_set_addr(u32 *lli_p, dma_addr_t addr) -{ - lli_p[LLI_WORD0_OFFSET] = (addr & U32_MAX); -#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT - lli_p[LLI_WORD1_OFFSET] &= ~LLI_HADDR_MASK; - lli_p[LLI_WORD1_OFFSET] |= FIELD_PREP(LLI_HADDR_MASK, (addr >> 32)); -#endif /* CONFIG_ARCH_DMA_ADDR_T_64BIT */ -} - -static inline void cc_lli_set_size(u32 *lli_p, u16 size) -{ - lli_p[LLI_WORD1_OFFSET] &= ~LLI_SIZE_MASK; - lli_p[LLI_WORD1_OFFSET] |= FIELD_PREP(LLI_SIZE_MASK, size); -} - -#endif /*_CC_LLI_DEFS_H_*/ |