yaffs Update RAM simulator to support start and end blocks
[yaffs2.git] / direct / basic-test / yramsim.h
index 694ceaf552c138e55770168e5ffe1c8772cb5240..d842848f696111683c6cd767b6cd12f53bc1dec8 100644 (file)
@@ -1,11 +1,14 @@
-// NAND Simulator for testing YAFFS\r
-#ifndef __YAFF_RAM_SIM_H__\r
-#define __YAFF_RAM_SIM_H__\r
-\r
-\r
-#include "yaffs_guts.h"\r
-\r
-struct yaffs_DeviceStruct *yramsim_CreateSim(const YCHAR *name, int nBlocks);\r
-\r
-\r
-#endif\r
+// NAND RAM Simulator for testing YAFFS
+#ifndef __YAFFS_RAM_SIM_H__
+#define __YAFFS_RAM_SIM_H__
+
+
+#include "yaffs_guts.h"
+
+#define N_RAM_SIM_DEVS  2
+
+struct yaffs_DeviceStruct *yramsim_CreateSim(const YCHAR *name,
+                                               __u32 devId, __u32 nBlocks,
+                                               __u32 startBlock, __u32 endBlock);
+
+#endif