diff options
author | 2012-07-19 09:42:40 -0500 | |
---|---|---|
committer | 2012-08-01 17:47:56 +0800 | |
commit | 0e16aafb12046e12effbdaab179fbe1a38427ba9 (patch) | |
tree | 743ce60ba95bf9a5ee3cff7f664dd99a7498473e /include/linux/nx842.h | |
parent | powerpc/crypto: add compression support to arch vec (diff) | |
download | linux-0e16aafb12046e12effbdaab179fbe1a38427ba9.tar.gz linux-0e16aafb12046e12effbdaab179fbe1a38427ba9.tar.bz2 linux-0e16aafb12046e12effbdaab179fbe1a38427ba9.zip |
powerpc/crypto: add 842 hardware compression driver
This patch adds the driver for interacting with the 842
compression accelerator on IBM Power7+ systems.
The device is a child of the Platform Facilities Option (PFO)
and shows up as a child of the IBM VIO bus.
The compression/decompression API takes the same arguments
as existing compression methods like lzo and deflate. The 842
hardware operates on 4K hardware pages and the driver breaks up
input on 4K boundaries to submit it to the hardware accelerator.
Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/nx842.h')
-rw-r--r-- | include/linux/nx842.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/nx842.h b/include/linux/nx842.h new file mode 100644 index 000000000000..a4d324c6406a --- /dev/null +++ b/include/linux/nx842.h @@ -0,0 +1,11 @@ +#ifndef __NX842_H__ +#define __NX842_H__ + +int nx842_get_workmem_size(void); +int nx842_get_workmem_size_aligned(void); +int nx842_compress(const unsigned char *in, unsigned int in_len, + unsigned char *out, unsigned int *out_len, void *wrkmem); +int nx842_decompress(const unsigned char *in, unsigned int in_len, + unsigned char *out, unsigned int *out_len, void *wrkmem); + +#endif |