19 #include <sys/param.h> 20 #include <sys/ioccom.h> 179 unsigned char *buffer,
180 size_t size_of_buffer
196 rtems_jffs2_flash_control *
self,
198 const unsigned char *buffer,
199 size_t size_of_buffer
215 rtems_jffs2_flash_control *
self,
229 rtems_jffs2_flash_control *self
243 rtems_jffs2_flash_control *self
249 struct rtems_jffs2_flash_control {
322 unsigned char *data_in,
323 unsigned char *cdata_out,
343 rtems_jffs2_compressor_control *
self,
345 unsigned char *cdata_in,
346 unsigned char *data_out,
361 rtems_jffs2_compressor_control *self
367 struct rtems_jffs2_compressor_control {
388 unsigned char buffer[PAGE_SIZE];
395 rtems_jffs2_compressor_control *
self,
396 unsigned char *data_in,
397 unsigned char *cdata_out,
406 rtems_jffs2_compressor_control *
self,
408 unsigned char *cdata_in,
409 unsigned char *data_out,
418 rtems_jffs2_compressor_control super;
426 rtems_jffs2_compressor_control *
self,
427 unsigned char *data_in,
428 unsigned char *cdata_out,
437 rtems_jffs2_compressor_control *
self,
439 unsigned char *cdata_in,
440 unsigned char *data_out,
579 #define RTEMS_JFFS2_GET_INFO _IOR('F', 1, rtems_jffs2_info) 588 #define RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION _IO('F', 2) 596 #define RTEMS_JFFS2_FORCE_GARBAGE_COLLECTION _IO('F', 3) void(* rtems_jffs2_flash_destroy)(rtems_jffs2_flash_control *self)
Flash destroy operation.
Definition: jffs2.h:228
ZLIB compressor control structure.
Definition: jffs2.h:417
uint32_t used_size
Used size in bytes.
Definition: jffs2.h:508
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.
Definition: compr_zlib.c:121
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.
Definition: jffs2.h:320
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.
Definition: jffs2.h:176
rtems_jffs2_flash_erase erase
Flash erase operation.
Definition: jffs2.h:276
uint32_t free_blocks
Count of free blocks.
Definition: jffs2.h:564
rtems_jffs2_flash_control * flash_control
Flash control.
Definition: jffs2.h:454
void(* rtems_jffs2_trigger_garbage_collection)(rtems_jffs2_flash_control *self)
Trigger garbage collection operation.
Definition: jffs2.h:242
JFFS2 filesystem instance information.
Definition: jffs2.h:487
uint32_t block_size
The size in bytes of the erasable unit of the flash device.
Definition: jffs2.h:253
rtems_jffs2_flash_read read
Read from flash operation.
Definition: jffs2.h:266
int(* rtems_jffs2_flash_erase)(rtems_jffs2_flash_control *self, uint32_t offset)
Flash erase operation.
Definition: jffs2.h:214
rtems_jffs2_compressor_decompress decompress
Decompress operation.
Definition: jffs2.h:376
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.
Definition: compr_zlib.c:46
rtems_jffs2_compressor_control * compressor_control
Compressor control.
Definition: jffs2.h:461
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.
Definition: jffs2.h:195
rtems_jffs2_compressor_destroy destroy
Compressor destroy operation.
Definition: jffs2.h:383
rtems_jffs2_trigger_garbage_collection trigger_garbage_collection
Trigger garbage collection operation.
Definition: jffs2.h:300
uint32_t dirty_size
Dirty size in bytes.
Definition: jffs2.h:515
rtems_jffs2_compressor_compress compress
Compress operation.
Definition: jffs2.h:371
uint32_t free_size
Free size in bytes.
Definition: jffs2.h:529
uint32_t flash_blocks
Count of flash blocks (erasable units).
Definition: jffs2.h:496
rtems_jffs2_flash_write write
Write to flash operation.
Definition: jffs2.h:271
uint32_t flash_size
The size in bytes of the flash device.
Definition: jffs2.h:261
uint32_t flash_size
Flash size in bytes.
Definition: jffs2.h:491
Mount table entry.
Definition: libio.h:1606
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.
Definition: compr_rtime.c:33
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.
Definition: jffs2.h:342
uint32_t erasable_blocks
Count of erasable blocks.
Definition: jffs2.h:557
dev_t device_identifier
The device identifier of the flash device.
Definition: jffs2.h:291
uint32_t clean_blocks
Count of clean blocks.
Definition: jffs2.h:543
uint32_t dirty_blocks
Count of dirty blocks.
Definition: jffs2.h:550
rtems_jffs2_flash_destroy destroy
Flash destroy operation.
Definition: jffs2.h:283
void(* rtems_jffs2_compressor_destroy)(rtems_jffs2_compressor_control *self)
Compressor destroy operation.
Definition: jffs2.h:360
JFFS2 compressor control.
Definition: jffs2.h:367
uint32_t bad_blocks
Count of bad blocks.
Definition: jffs2.h:571
uint32_t wasted_size
Wasted size in bytes.
Definition: jffs2.h:522
JFFS2 mount options.
Definition: jffs2.h:450
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.
Definition: compr_rtime.c:80
JFFS2 flash device control.
Definition: jffs2.h:249
uint32_t bad_size
Bad size in bytes.
Definition: jffs2.h:536
uint32_t flash_block_size
Size of a flash block in bytes.
Definition: jffs2.h:501
int rtems_jffs2_initialize(rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
Initialization handler of the JFFS2 file system.
Definition: fs-rtems.c:1216