Dan Streetman | 7011a12 | 2015-05-07 13:49:17 -0400 | [diff] [blame] | 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 | |
Dan Streetman | 959e665 | 2015-05-07 13:49:18 -0400 | [diff] [blame^] | 15 | struct nx842_constraints *constraints; |
| 16 | |
Dan Streetman | 7011a12 | 2015-05-07 13:49:17 -0400 | [diff] [blame] | 17 | 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 | |
| 25 | void nx842_register_driver(struct nx842_driver *driver); |
| 26 | void 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__ */ |