RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Typedefs | Functions
jffs2.h File Reference
#include <rtems/fs.h>
#include <sys/param.h>
#include <zlib.h>
Include dependency graph for jffs2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rtems_jffs2_flash_control
 JFFS2 flash device control. More...
 
struct  rtems_jffs2_compressor_control
 JFFS2 compressor control. More...
 
struct  rtems_jffs2_compressor_zlib_control
 ZLIB compressor control structure. More...
 
struct  rtems_jffs2_mount_data
 JFFS2 mount options. More...
 

Typedefs

typedef struct rtems_jffs2_flash_control rtems_jffs2_flash_control
 
typedef int(* rtems_jffs2_flash_read) (rtems_jffs2_flash_control *self, uint32_t offset, unsigned char *buffer, size_t size_of_buffer)
 Read from flash operation. More...
 
typedef int(* rtems_jffs2_flash_write) (rtems_jffs2_flash_control *self, uint32_t offset, const unsigned char *buffer, size_t size_of_buffer)
 Write to flash operation. More...
 
typedef int(* rtems_jffs2_flash_erase) (rtems_jffs2_flash_control *self, uint32_t offset)
 Flash erase operation. More...
 
typedef void(* rtems_jffs2_flash_destroy) (rtems_jffs2_flash_control *self)
 Flash destroy operation. More...
 
typedef struct rtems_jffs2_compressor_control rtems_jffs2_compressor_control
 
typedef uint16_t(* rtems_jffs2_compressor_compress) (rtems_jffs2_compressor_control *self, unsigned char *data_in, unsigned char *cdata_out, uint32_t *datalen, uint32_t *cdatalen)
 Compress operation. More...
 
typedef int(* rtems_jffs2_compressor_decompress) (rtems_jffs2_compressor_control *self, uint16_t comprtype, unsigned char *cdata_in, unsigned char *data_out, uint32_t cdatalen, uint32_t datalen)
 Decompress operation. More...
 
typedef void(* rtems_jffs2_compressor_destroy) (rtems_jffs2_compressor_control *self)
 Compressor destroy operation. More...
 

Functions

uint16_t rtems_jffs2_compressor_rtime_compress (rtems_jffs2_compressor_control *self, unsigned char *data_in, unsigned char *cdata_out, uint32_t *datalen, uint32_t *cdatalen)
 RTIME compressor compress operation.
 
int rtems_jffs2_compressor_rtime_decompress (rtems_jffs2_compressor_control *self, uint16_t comprtype, unsigned char *cdata_in, unsigned char *data_out, uint32_t cdatalen, uint32_t datalen)
 RTIME compressor decompress operation.
 
uint16_t rtems_jffs2_compressor_zlib_compress (rtems_jffs2_compressor_control *self, unsigned char *data_in, unsigned char *cdata_out, uint32_t *datalen, uint32_t *cdatalen)
 ZLIB compressor compress operation.
 
int rtems_jffs2_compressor_zlib_decompress (rtems_jffs2_compressor_control *self, uint16_t comprtype, unsigned char *cdata_in, unsigned char *data_out, uint32_t cdatalen, uint32_t datalen)
 ZLIB compressor decompress operation.
 
int rtems_jffs2_initialize (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
 Initialization handler of the JFFS2 file system. More...