diff options
author | LEROY Christophe | 2015-04-17 16:32:15 +0200 |
---|---|---|
committer | Herbert Xu | 2015-04-21 03:14:42 +0200 |
commit | 6f65f6ac5fb36a90ebf9a8d57cc4076b82d5009e (patch) | |
tree | 1835c6373067d6918b121ff2a73d6e9119e87447 /drivers/crypto/talitos.h | |
parent | crypto: talitos - adapt interrupts and reset functions to SEC1 (diff) | |
download | kernel-qcow2-linux-6f65f6ac5fb36a90ebf9a8d57cc4076b82d5009e.tar.gz kernel-qcow2-linux-6f65f6ac5fb36a90ebf9a8d57cc4076b82d5009e.tar.xz kernel-qcow2-linux-6f65f6ac5fb36a90ebf9a8d57cc4076b82d5009e.zip |
crypto: talitos - implement scatter/gather copy for SEC1
SEC1 doesn't support scatter/gather, SEC1 doesn't handle link tables.
Therefore, for SEC1 we have to do it by SW. For that, we reserve
space at the end of the extended descriptor, in lieu of the space
reserved for the link tables on SEC2, and we perform sg_copy() when
preparing the descriptors
We also adapt the max buffer size which is only 32k on SEC1 while it
is 64k on SEC2+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.h')
-rw-r--r-- | drivers/crypto/talitos.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.h b/drivers/crypto/talitos.h index 9507c4f620c0..314daf55e7f7 100644 --- a/drivers/crypto/talitos.h +++ b/drivers/crypto/talitos.h @@ -29,7 +29,8 @@ */ #define TALITOS_TIMEOUT 100000 -#define TALITOS_MAX_DATA_LEN 65535 +#define TALITOS1_MAX_DATA_LEN 32768 +#define TALITOS2_MAX_DATA_LEN 65535 #define DESC_TYPE(desc_hdr) ((be32_to_cpu(desc_hdr) >> 3) & 0x1f) #define PRIMARY_EU(desc_hdr) ((be32_to_cpu(desc_hdr) >> 28) & 0xf) |