diff options
author | Dan Streetman <ddstreet@ieee.org> | 2015-05-07 13:49:19 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-11 15:06:47 +0800 |
commit | 99182a42b7ef3d5e4180992ce01befd9e87526d2 (patch) | |
tree | 56b0d4e29202a01f0c400b8a2db12ad29eaa11e4 /include | |
parent | 959e6659b6f74ec1fa4d391a3b88d63dc0189f36 (diff) | |
download | linux-stable-99182a42b7ef3d5e4180992ce01befd9e87526d2.tar.gz linux-stable-99182a42b7ef3d5e4180992ce01befd9e87526d2.tar.bz2 linux-stable-99182a42b7ef3d5e4180992ce01befd9e87526d2.zip |
crypto: nx - add PowerNV platform NX-842 driver
Add driver for NX-842 hardware on the PowerNV platform.
This allows the use of the 842 compression hardware coprocessor on
the PowerNV platform.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nx842.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/nx842.h b/include/linux/nx842.h index aa1a97e90dea..4ddf68d9c0d4 100644 --- a/include/linux/nx842.h +++ b/include/linux/nx842.h @@ -1,9 +1,11 @@ #ifndef __NX842_H__ #define __NX842_H__ -#define __NX842_PSERIES_MEM_COMPRESS ((PAGE_SIZE * 2) + 10240) +#define __NX842_PSERIES_MEM_COMPRESS (10240) +#define __NX842_POWERNV_MEM_COMPRESS (1024) -#define NX842_MEM_COMPRESS __NX842_PSERIES_MEM_COMPRESS +#define NX842_MEM_COMPRESS (max_t(unsigned int, \ + __NX842_PSERIES_MEM_COMPRESS, __NX842_POWERNV_MEM_COMPRESS)) struct nx842_constraints { int alignment; |