mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
![Seth Jennings](/assets/img/avatar_default.png)
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>
11 lines
377 B
C
11 lines
377 B
C
#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
|