summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx/nx-842.h
diff options
context:
space:
mode:
authorDan Streetman2015-05-07 19:49:18 +0200
committerHerbert Xu2015-05-11 09:06:46 +0200
commit959e6659b6f74ec1fa4d391a3b88d63dc0189f36 (patch)
tree13e716f492a528a093e061fec08e7ed74dbaddcc /drivers/crypto/nx/nx-842.h
parentcrypto: nx - add NX-842 platform frontend driver (diff)
downloadkernel-qcow2-linux-959e6659b6f74ec1fa4d391a3b88d63dc0189f36.tar.gz
kernel-qcow2-linux-959e6659b6f74ec1fa4d391a3b88d63dc0189f36.tar.xz
kernel-qcow2-linux-959e6659b6f74ec1fa4d391a3b88d63dc0189f36.zip
crypto: nx - add nx842 constraints
Add "constraints" for the NX-842 driver. The constraints are used to indicate what the current NX-842 platform driver is capable of. The constraints tell the NX-842 user what alignment, min and max length, and length multiple each provided buffers should conform to. These are required because the 842 hardware requires buffers to meet specific constraints that vary based on platform - for example, the pSeries max length is much lower than the PowerNV max length. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx/nx-842.h')
-rw-r--r--drivers/crypto/nx/nx-842.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/nx/nx-842.h b/drivers/crypto/nx/nx-842.h
index 2a5d4e197c72..c6ceb0f1d04c 100644
--- a/drivers/crypto/nx/nx-842.h
+++ b/drivers/crypto/nx/nx-842.h
@@ -12,6 +12,8 @@
struct nx842_driver {
struct module *owner;
+ struct nx842_constraints *constraints;
+
int (*compress)(const unsigned char *in, unsigned int in_len,
unsigned char *out, unsigned int *out_len,
void *wrkmem);