diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2015-04-17 16:32:09 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-21 09:14:42 +0800 |
commit | 7d607c6a71f7a4905831fc2b1636e080533ab2db (patch) | |
tree | 6ae2d787c45fe73e22f1e74ca1aac979d74721a7 /drivers/crypto/talitos.h | |
parent | 922f9dc8d36651abea51c4f2ff9c08ba4db692ff (diff) | |
download | linux-stable-7d607c6a71f7a4905831fc2b1636e080533ab2db.tar.gz linux-stable-7d607c6a71f7a4905831fc2b1636e080533ab2db.tar.bz2 linux-stable-7d607c6a71f7a4905831fc2b1636e080533ab2db.zip |
crypto: talitos - adaptation of talitos_submit() for SEC1
SEC1 descriptor is a bit different to SEC2+ descriptor.
talitos_submit() will have to copy hdr field into hdr1 field and
send the descriptor starting at hdr1 up to next_desc.
For SEC2, it remains unchanged and next_desc is just ignored.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/talitos.h b/drivers/crypto/talitos.h index b0bdb4ec79fc..f827c04a6d1a 100644 --- a/drivers/crypto/talitos.h +++ b/drivers/crypto/talitos.h @@ -69,6 +69,8 @@ struct talitos_desc { __be32 next_desc; /* next descriptor (SEC1) */ }; +#define TALITOS_DESC_SIZE (sizeof(struct talitos_desc) - sizeof(__be32)) + /** * talitos_request - descriptor submission request * @desc: descriptor pointer (kernel virtual) |