X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_bitmap.h;fp=yaffs_bitmap.h;h=a0ad1308696b5f507541221c25181e6b37e39bdf;hp=0000000000000000000000000000000000000000;hb=780469359d1051ab37ab281b0520137d73fee2e9;hpb=29e2dccbc8145ce3fd337a91a266d29e9b0f3f60 diff --git a/yaffs_bitmap.h b/yaffs_bitmap.h new file mode 100644 index 0000000..a0ad130 --- /dev/null +++ b/yaffs_bitmap.h @@ -0,0 +1,31 @@ +/* + * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. + * + * Copyright (C) 2002-2010 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Charles Manning + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/* + * Chunk bitmap manipulations + */ + +#ifndef __YAFFS_BITMAP_H__ +#define __YAFFS_BITMAP_H__ + +#include "yaffs_guts.h" + +void yaffs_VerifyChunkBitId(yaffs_Device *dev, int blk, int chunk); +void yaffs_ClearChunkBits(yaffs_Device *dev, int blk); +void yaffs_ClearChunkBit(yaffs_Device *dev, int blk, int chunk); +void yaffs_SetChunkBit(yaffs_Device *dev, int blk, int chunk); +int yaffs_CheckChunkBit(yaffs_Device *dev, int blk, int chunk); +int yaffs_StillSomeChunkBits(yaffs_Device *dev, int blk); +int yaffs_CountChunkBits(yaffs_Device *dev, int blk); + +#endif