aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nx842.h
blob: aa1a97e90deafe58162bf062ba9bf8875750ba4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __NX842_H__
#define __NX842_H__

#define __NX842_PSERIES_MEM_COMPRESS	((PAGE_SIZE * 2) + 10240)

#define NX842_MEM_COMPRESS	__NX842_PSERIES_MEM_COMPRESS

struct nx842_constraints {
	int alignment;
	int multiple;
	int minimum;
	int maximum;
};

int nx842_constraints(struct nx842_constraints *constraints);

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