X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyaffs_ramdisk.c;h=bcb44f8b99899249377453677fe515d00721d270;hb=12427f939eea34eaa0b5863782e2e005521d64c9;hp=b19d6cb2d12f57b083a6c6d77da0ea8eae7c5758;hpb=2e51ed27a28a076ee9eb870ba8c0eb09b8114b01;p=yaffs2.git diff --git a/direct/yaffs_ramdisk.c b/direct/yaffs_ramdisk.c index b19d6cb..bcb44f8 100644 --- a/direct/yaffs_ramdisk.c +++ b/direct/yaffs_ramdisk.c @@ -1,8 +1,8 @@ /* - * YAFFS: Yet another FFS. A NAND-flash specific file system. - * yaffs_ramdisk.c: yaffs ram disk component + * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002 Aleph One Ltd. + * Copyright (C) 2002-2007 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning * @@ -12,11 +12,14 @@ * */ -// This provides a rma disk under yaffs. -// NB this is not intended for NAND emulation. -// Use this with dev->useNANDECC enabled, then ECC overheads are not required. +/* + * yaffs_ramdisk.c: yaffs ram disk component + * This provides a ram disk under yaffs. + * NB this is not intended for NAND emulation. + * Use this with dev->useNANDECC enabled, then ECC overheads are not required. + */ -const char *yaffs_ramdisk_c_version = "$Id: yaffs_ramdisk.c,v 1.1 2004-11-03 08:29:28 charles Exp $"; +const char *yaffs_ramdisk_c_version = "$Id: yaffs_ramdisk.c,v 1.3 2007-02-12 16:49:50 wookey Exp $"; #include "yportenv.h" @@ -24,7 +27,7 @@ const char *yaffs_ramdisk_c_version = "$Id: yaffs_ramdisk.c,v 1.1 2004-11-03 08: #include "yaffs_ramdisk.h" #include "yaffs_guts.h" #include "devextras.h" -#include "yaffs_packedtags.h" +#include "yaffs_packedtags1.h" @@ -136,9 +139,9 @@ int yramdisk_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __ if(tags) { - yaffs_PackedTags pt; + yaffs_PackedTags1 pt; - yaffs_PackTags(&pt,tags); + yaffs_PackTags1(&pt,tags); memcpy(&ramdisk.block[blk]->page[pg].data[512],&pt,sizeof(pt)); } @@ -167,10 +170,10 @@ int yramdisk_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 * if(tags) { - yaffs_PackedTags pt; + yaffs_PackedTags1 pt; memcpy(&pt,&ramdisk.block[blk]->page[pg].data[512],sizeof(pt)); - yaffs_UnpackTags(tags,&pt); + yaffs_UnpackTags1(tags,&pt); }