VLSI Solution Oy / MegaLib Documentation

physical.h

Go to the documentation of this file.
00001 
00007 #ifndef FS_PHYSICAL_H
00008 #define FS_PHYSICAL_H
00009 
00010 #include <vstypes.h>
00011 
00021 #define FS_PHYSICAL_VERSION 0x010B
00022 
00023 
00028 struct FsPhysical {
00031   u_int16 version;
00033   u_int16 pageSize;
00035   u_int16 eraseBlockSize;
00037   u_int16 eraseBlocks;
00040   struct FsPhysical *(*Create)(u_int16 param);
00042   s_int16 (*Delete)(struct FsPhysical *p);
00046   s_int16 (*Read)(struct FsPhysical *p, s_int32 firstPage, u_int16 pages,
00047                   u_int16 *data, u_int16 *meta);
00051   s_int16 (*Write)(struct FsPhysical *p, s_int32 firstPage, u_int16 pages,
00052                    u_int16 *data, u_int16 *meta);
00055   s_int16 (*Erase)(struct FsPhysical *p, s_int32 page);
00057   s_int16 (*FreeBus)(struct FsPhysical *p);
00059   s_int16 (*Reinitialize)(struct FsPhysical *p);
00060 };
00061 
00062 
00063 #endif /* !PHYSICAL */

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