VLSI Solution Oy / MegaLib Documentation

mappertiny.h

Go to the documentation of this file.
00001 
00018 #ifndef FS_MAP_TINY
00019 #define FS_MAP_TINY
00020 
00021 #ifndef ASM
00022 #include <vstypes.h>
00023 #include <mapper.h>
00024 #include <mapperflash.h>
00025 
00026 struct FsPhysical;
00027 
00036 struct FsMapperTiny {
00038   struct FsMapper m;
00040   s_int32 root;
00042   s_int16 blocksPerErase;
00044   s_int32 firstBlock;
00046   s_int32 lastBlock;
00048   s_int32 logToPhys;
00050   struct FmfMeta meta;
00051 };
00052 #endif /* !ASM */
00053 
00054 
00055 
00056 
00057 #ifndef ASM
00058 
00059 struct FsMapper *FsMapTnCreate(struct FsPhysical *physical,
00060                                u_int16 cacheSize);
00062 s_int16 FsMapTnDelete(struct FsMapper *map);
00064 s_int16 FsMapTnRead(struct FsMapper *map, u_int32 firstLogicalBlock,
00065                     u_int16 logicalBlocks, u_int16 *data);
00067 s_int16 FsMapTnWrite(struct FsMapper *map, u_int32 firstLogicalBlock,
00068                      u_int16 logicalBlocks, u_int16 *data);
00071 s_int16 FsMapTnFlush(struct FsMapper *map, u_int16 hard);
00073 s_int16 FsMapTnFree(struct FsMapper *m, u_int32 logicalBlockNo,
00074                     u_int32 logicalBlocks);
00075 
00076 s_int16 FsMapFlNullFail(); /*< intentionally incomplete prototype */
00077 s_int16 FsMapFlNullOk();   /*< intentionally incomplete prototype */
00078 #endif /* !ASM */
00079 
00080 #endif /* !FS_MAP_FLASH */

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