aboutsummaryrefslogtreecommitdiff
path: root/fs/yaffs2/yaffs_bitmap.h
diff options
context:
space:
mode:
authorMathieu J. Poirier <mathieu.poirier@linaro.org>2011-11-24 17:12:43 -0700
committerMathieu J. Poirier <mathieu.poirier@linaro.org>2011-11-24 17:12:43 -0700
commit3201e765069ff7dff39e135374f1938104cb58b1 (patch)
tree579cf40fbe017cc39b3b0e0fe5ad5e3adf6ee6cf /fs/yaffs2/yaffs_bitmap.h
parentf94904d17571ad46b48409f2a9724eddffcdcd52 (diff)
parentf5968c8833f0985b76d38593892acd6558bab149 (diff)
:Merge commit 'linux-linaro-3.0-2011.07-1-android-1' into igloocommunity.org#igloo-kernel#linux-integration-3.0-ux500
Conflicts: arch/arm/common/Makefile drivers/gpu/Makefile drivers/misc/Kconfig drivers/misc/Makefile drivers/mmc/card/block.c drivers/mmc/core/core.c drivers/usb/gadget/f_rndis.c drivers/video/Kconfig include/linux/mmc/host.h include/net/bluetooth/hci.h include/net/bluetooth/hci_core.h include/net/bluetooth/sco.h kernel/printk.c net/bluetooth/hci_conn.c net/bluetooth/hci_event.c net/bluetooth/l2cap_core.c net/bluetooth/mgmt.c net/bluetooth/sco.c Change-Id: Iad0d95c2345676e51a4990697896ded690b6bb3c
Diffstat (limited to 'fs/yaffs2/yaffs_bitmap.h')
-rw-r--r--fs/yaffs2/yaffs_bitmap.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/fs/yaffs2/yaffs_bitmap.h b/fs/yaffs2/yaffs_bitmap.h
new file mode 100644
index 00000000000..cf9ea58da0d
--- /dev/null
+++ b/fs/yaffs2/yaffs_bitmap.h
@@ -0,0 +1,33 @@
+/*
+ * 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 Lesser General Public License version 2.1 as
+ * published by the Free Software Foundation.
+ *
+ * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
+ */
+
+/*
+ * Chunk bitmap manipulations
+ */
+
+#ifndef __YAFFS_BITMAP_H__
+#define __YAFFS_BITMAP_H__
+
+#include "yaffs_guts.h"
+
+void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk);
+void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk);
+void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
+void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
+int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
+int yaffs_still_some_chunks(struct yaffs_dev *dev, int blk);
+int yaffs_count_chunk_bits(struct yaffs_dev *dev, int blk);
+
+#endif