Go to the documentation of this file.
12 #ifndef __JFFS2_COMPR_H__
13 #define __JFFS2_COMPR_H__
15 #include <linux/kernel.h>
17 #include <linux/list.h>
18 #include <linux/types.h>
19 #include <linux/string.h>
20 #include <linux/slab.h>
21 #include <linux/errno.h>
28 #define JFFS2_RUBINMIPS_PRIORITY 10
29 #define JFFS2_DYNRUBIN_PRIORITY 20
30 #define JFFS2_LZARI_PRIORITY 30
31 #define JFFS2_RTIME_PRIORITY 50
32 #define JFFS2_ZLIB_PRIORITY 60
33 #define JFFS2_LZO_PRIORITY 80
36 #define JFFS2_RUBINMIPS_DISABLED
37 #define JFFS2_DYNRUBIN_DISABLED
39 #define JFFS2_COMPR_MODE_NONE 0
40 #define JFFS2_COMPR_MODE_PRIORITY 1
41 #define JFFS2_COMPR_MODE_SIZE 2
42 #define JFFS2_COMPR_MODE_FAVOURLZO 3
43 #define JFFS2_COMPR_MODE_FORCELZO 4
44 #define JFFS2_COMPR_MODE_FORCEZLIB 5
46 #define FAVOUR_LZO_PERCENT 80
74 unsigned char *data_in,
unsigned char **cpage_out,
78 uint16_t comprtype,
unsigned char *cdata_in,
86 #ifdef CONFIG_JFFS2_RUBIN
92 #ifdef CONFIG_JFFS2_RTIME
96 #ifdef CONFIG_JFFS2_ZLIB
100 #ifdef CONFIG_JFFS2_LZO