crypto: nx - add NX-842 platform frontend driver
[linux-2.6-block.git] / drivers / crypto / nx / nx-842.h
1
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
12 struct nx842_driver {
13         struct module *owner;
14
15         int (*compress)(const unsigned char *in, unsigned int in_len,
16                         unsigned char *out, unsigned int *out_len,
17                         void *wrkmem);
18         int (*decompress)(const unsigned char *in, unsigned int in_len,
19                           unsigned char *out, unsigned int *out_len,
20                           void *wrkmem);
21 };
22
23 void nx842_register_driver(struct nx842_driver *driver);
24 void nx842_unregister_driver(struct nx842_driver *driver);
25
26
27 /* To allow the main nx-compress module to load platform module */
28 #define NX842_PSERIES_MODULE_NAME       "nx-compress-pseries"
29 #define NX842_PSERIES_COMPAT_NAME       "ibm,compression"
30
31
32 #endif /* __NX_842_H__ */