projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove old code/tests that are in commented out.
[yaffs2.git]
/
yaffs_ramem2k.c
diff --git
a/yaffs_ramem2k.c
b/yaffs_ramem2k.c
index 2c113dbdba37db3c8c06b00a00572081e736d2e6..2b05e98c8a68cc4e7e7f5e8b3d55b67dfa141655 100644
(file)
--- a/
yaffs_ramem2k.c
+++ b/
yaffs_ramem2k.c
@@
-15,10
+15,12
@@
//yaffs_ramem2k.c: RAM emulation in-kernel for 2K pages (YAFFS2)
//yaffs_ramem2k.c: RAM emulation in-kernel for 2K pages (YAFFS2)
-const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.
1 2004-12-17 04:39:04 charles
Exp $";
+const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.
4 2005-07-31 04:08:08 marty
Exp $";
#ifndef __KERNEL__
#define CONFIG_YAFFS_RAM_ENABLED
#ifndef __KERNEL__
#define CONFIG_YAFFS_RAM_ENABLED
+#else
+#include <linux/config.h>
#endif
#ifdef CONFIG_YAFFS_RAM_ENABLED
#endif
#ifdef CONFIG_YAFFS_RAM_ENABLED
@@
-33,7
+35,7
@@
const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.1 2004-12-17 04:
-#define EM_SIZE_IN_MEG
2
+#define EM_SIZE_IN_MEG
(32)
#define PAGE_DATA_SIZE (2048)
#define PAGE_SPARE_SIZE (64)
#define PAGES_PER_BLOCK (64)
#define PAGE_DATA_SIZE (2048)
#define PAGE_SPARE_SIZE (64)
#define PAGES_PER_BLOCK (64)
@@
-260,7
+262,7
@@
int nandemul2k_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8
}
}
-int nandemul2k_CheckChunkErased(yaffs_Device *dev,int chunkInNAND)
+
static
int nandemul2k_CheckChunkErased(yaffs_Device *dev,int chunkInNAND)
{
int blk;
int pg;
{
int blk;
int pg;