blob: c6ceb0f1d04c1c6135db771665afefbd34c77235 [file] [log] [blame]
Dan Streetman7011a122015-05-07 13:49:17 -04001
2#ifndef __NX_842_H__
3#define __NX_842_H__
4
5#include <linux/kernel.h>
6#include <linux/module.h>
7#include <linux/nx842.h>
8#include <linux/of.h>
9#include <linux/slab.h>
10#include <linux/io.h>
11
12struct nx842_driver {
13 struct module *owner;
14
Dan Streetman959e6652015-05-07 13:49:18 -040015 struct nx842_constraints *constraints;
16
Dan Streetman7011a122015-05-07 13:49:17 -040017 int (*compress)(const unsigned char *in, unsigned int in_len,
18 unsigned char *out, unsigned int *out_len,
19 void *wrkmem);
20 int (*decompress)(const unsigned char *in, unsigned int in_len,
21 unsigned char *out, unsigned int *out_len,
22 void *wrkmem);
23};
24
25void nx842_register_driver(struct nx842_driver *driver);
26void nx842_unregister_driver(struct nx842_driver *driver);
27
28
29/* To allow the main nx-compress module to load platform module */
30#define NX842_PSERIES_MODULE_NAME "nx-compress-pseries"
31#define NX842_PSERIES_COMPAT_NAME "ibm,compression"
32
33
34#endif /* __NX_842_H__ */