Mercurial > sos > sos
view include/os/fs.h @ 150:e72f984619c7
Consolidated a lot of the defines which relate to the memory layout
There is a new file (include/os/memLayout.h) which now includes just
about all the #defines
author | Jonathan Pevarnek <pevarnj@gmail.com> |
---|---|
date | Wed, 02 Nov 2011 09:55:09 -0400 |
parents | b6b3f04a732f |
children |
line wrap: on
line source
#ifndef __FS_H #define __FS_H #include <std.h> #include <error.h> #include <os/fsStructs.h> #define CACHESPACE 1 //percentage of heap to use for the FS Cache #define FSMAGICNUM 0x42420374 #define DEPBLK (FSBLKSIZE / sizeof(Direntry)) //director entries per block #define ERR_FSBLKREADFAIL mkError(MODFS, BLKREADFAIL, ERROR) ErrCode init_fs(u32 devnum, u64 __memsize); ErrCode getFInfo(u32 n, void* de); ErrCode lookupFile(char *fname, u32 *fid); ErrCode makeFile(char *fname, u32 *fid); ErrCode deleteFile(u32 fid); ErrCode fileAppend(u32 fid, void *data, u32 length); ErrCode fileWrite(u32 fid, void *data, u32 length, u32 offset); ErrCode getFileSize(u32 fid, u32 *size); ErrCode getFileData(u32 fid, void *ptr); void printFname(char *name); void getFname(char *fname); int fnameCmp(const char *a, const char *b); #endif //__FS_H