summaryrefslogtreecommitdiff
path: root/yaffs_linux.h
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-07-21 15:23:56 +1200
committerCharles Manning <cdhmanning@gmail.com>2010-07-21 15:23:56 +1200
commit4a700fe570d217c2c5df87070db7c2652bc0eaaf (patch)
treeaae6bbaf2904b651fd7603d1a29821c1f32c4df1 /yaffs_linux.h
parent25f6e492e7010f585367a4f6abf4d2e17c5c0e1a (diff)
yaffs Refactor yaffs direct device list management, add nand abstraction, divide up test code
This all makes for a far cleaner layout of test code. The new yaffs direct list management allows partitions to be added synamically rather than statically. This is better for OSs that install partitions at runtime (eg. WInCE). The nand abstraction makes it tidier to add a new nand driver to yaffs direct and test code. The test code has been repartitioned to make porting and file management cleaner. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_linux.h')
-rw-r--r--yaffs_linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaffs_linux.h b/yaffs_linux.h
index 6832681..ce059fd 100644
--- a/yaffs_linux.h
+++ b/yaffs_linux.h
@@ -29,7 +29,6 @@ struct yaffs_LinuxContext {
__u8 *spareBuffer; /* For mtdif2 use. Don't know the size of the buffer
* at compile time so we have to allocate it.
*/
- struct mtd_info *mtd;
struct ylist_head searchContexts;
void (*putSuperFunc)(struct super_block *sb);
@@ -37,7 +36,8 @@ struct yaffs_LinuxContext {
unsigned mount_id;
};
-#define yaffs_DeviceToContext(dev) ((struct yaffs_LinuxContext *)((dev)->context))
+#define yaffs_DeviceToLC(dev) ((struct yaffs_LinuxContext *)((dev)->osContext))
+#define yaffs_DeviceToMtd(dev) ((struct mtd_info *)((dev)->driverContext))
#endif