VLSI Solution Oy / MegaLib Documentation

mappertiny.h File Reference

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

Include dependency graph for mappertiny.h:

Go to the source code of this file.

Data Structures

struct  FsMapperTiny

Functions

FsMapperFsMapTnCreate (struct FsPhysical *physical, u_int16 cacheSize)
s_int16 FsMapTnDelete (struct FsMapper *map)
s_int16 FsMapTnRead (struct FsMapper *map, u_int32 firstLogicalBlock, u_int16 logicalBlocks, u_int16 *data)
s_int16 FsMapTnWrite (struct FsMapper *map, u_int32 firstLogicalBlock, u_int16 logicalBlocks, u_int16 *data)
s_int16 FsMapTnFlush (struct FsMapper *map, u_int16 hard)
s_int16 FsMapTnFree (struct FsMapper *m, u_int32 logicalBlockNo, u_int32 logicalBlocks)
s_int16 FsMapFlNullFail ()
s_int16 FsMapFlNullOk ()


Detailed Description

File System: Tiny Flash Mapper.

Introduction

The Tiny Flash Mapper is a read-only mapper that reads a wear-levelled buffers created by the Flash Mapper (mapperflash.h). It acts as a converter tool between a file system logical and Flash physical layers.

This tiny mapper is not a very efficient implementation. For every logical block read there are max five physical read operations.

Version:
1.0
Date:
2006-08-25

Definition in file mappertiny.h.


Function Documentation

s_int16 FsMapFlNullFail  ) 
 

s_int16 FsMapFlNullOk  ) 
 

struct FsMapper* FsMapTnCreate struct FsPhysical physical,
u_int16  cacheSize
 

Create a tiny mapper

s_int16 FsMapTnDelete struct FsMapper map  ) 
 

Delete a tiny mapper

s_int16 FsMapTnFlush struct FsMapper map,
u_int16  hard
 

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

s_int16 FsMapTnFree struct FsMapper m,
u_int32  logicalBlockNo,
u_int32  logicalBlocks
 

Free blocks.

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

Read blocks

s_int16 FsMapTnWrite 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.