VLSI Solution Oy / MegaLib Documentation

mapperflash.h File Reference

#include <vstypes.h>
#include <mapper.h>

Include dependency graph for mapperflash.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FmfMeta
struct  FsMapperFlash

Defines

#define FS_MAP_FLASH_PAGE_SIZE   256
#define FS_MAP_FLASH_MAX_ERASE_PAGES   256
#define FS_MAP_NON_FULL   4
#define memcpyXY   memcpy
#define memcpyYX   memcpy
#define memcpyYY   memcpy
#define memsetY   memset
#define qsorty   qsort

Functions

FsMapperFsMapFlCreate (struct FsPhysical *physical, u_int16 format)
s_int16 FsMapFlDelete (struct FsMapper *map)
s_int16 FsMapFlRead (struct FsMapper *map, u_int32 firstLogicalBlock, u_int16 logicalBlocks, u_int16 *data)
s_int16 FsMapFlWrite (struct FsMapper *map, u_int32 firstLogicalBlock, u_int16 logicalBlocks, u_int16 *data)
s_int16 FsMapFlFlush (struct FsMapper *map, u_int16 hard)
s_int16 FsMapFlFree (struct FsMapper *m, u_int32 logicalBlockNo, u_int32 logicalBlocks)
void FsMapFlDump (struct FsMapper *map, s_int32 maxBlocks)
void FsMapFlCacheDump (struct FsMapper *map)
void FsMapFlPrint (s_int32 page)


Detailed Description

File System: Flash Mapper.

Introduction

The Flash Mapper creates a wear-levelling buffer between a file system and a Flash memory physical layer.

Version:
1.0
Date:
2006-xx-xx
Author:
Henrik Herranen

Definition in file mapperflash.h.


Define Documentation

#define FS_MAP_FLASH_MAX_ERASE_PAGES   256
 

4 x FS_MAP_FLASH_MAX_ERASE_PAGES + 1 words of memory is required

Definition at line 21 of file mapperflash.h.

#define FS_MAP_FLASH_PAGE_SIZE   256
 

Definition at line 19 of file mapperflash.h.

#define FS_MAP_NON_FULL   4
 

Definition at line 40 of file mapperflash.h.

#define memcpyXY   memcpy
 

Definition at line 97 of file mapperflash.h.

#define memcpyYX   memcpy
 

Definition at line 98 of file mapperflash.h.

#define memcpyYY   memcpy
 

Definition at line 99 of file mapperflash.h.

#define memsetY   memset
 

Definition at line 100 of file mapperflash.h.

#define qsorty   qsort
 

Definition at line 101 of file mapperflash.h.


Function Documentation

void FsMapFlCacheDump struct FsMapper map  ) 
 

struct FsMapper* FsMapFlCreate struct FsPhysical physical,
u_int16  format
 

Create a mapper

s_int16 FsMapFlDelete struct FsMapper map  ) 
 

Delete a mapper

void FsMapFlDump struct FsMapper map,
s_int32  maxBlocks
 

s_int16 FsMapFlFlush struct FsMapper map,
u_int16  hard
 

Flush all cached data. if hard is non-zero, all potential journals are also flushed.

s_int16 FsMapFlFree struct FsMapper m,
u_int32  logicalBlockNo,
u_int32  logicalBlocks
 

Free blocks.

void FsMapFlPrint s_int32  page  ) 
 

s_int16 FsMapFlRead struct FsMapper map,
u_int32  firstLogicalBlock,
u_int16  logicalBlocks,
u_int16 data
 

Read blocks

s_int16 FsMapFlWrite struct FsMapper map,
u_int32  firstLogicalBlock,
u_int16  logicalBlocks,
u_int16 data
 

Write blocks


All software copyright 2005-2006 VLSI Solution OY. Redistribution of this software is strictly forbidden.