summaryrefslogtreecommitdiff
path: root/yaffs_bitmap.h
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-06-30 16:06:45 +1200
committerCharles Manning <cdhmanning@gmail.com>2010-07-01 16:19:59 +1200
commit780469359d1051ab37ab281b0520137d73fee2e9 (patch)
treed94612d14879624dd120b3d6aacb718ebc2a2c6c /yaffs_bitmap.h
parent29e2dccbc8145ce3fd337a91a266d29e9b0f3f60 (diff)
yaffs Reactoring WIP
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_bitmap.h')
-rw-r--r--yaffs_bitmap.h31
1 files changed, 31 insertions, 0 deletions
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 <charles@aleph1.co.uk>
+ *
+ * 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