blob: cdbaba7153ed5832a29c238ab338ef72534c0ef1 [file] [log] [blame]
William Juul0e8cc8b2007-11-15 11:13:05 +01001/*
Wolfgang Denk4b070802008-08-14 14:41:06 +02002 * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
William Juul0e8cc8b2007-11-15 11:13:05 +01003 *
Charles Manning753ac612012-05-09 16:55:17 +00004 * Copyright (C) 2002-2011 Aleph One Ltd.
William Juul0e8cc8b2007-11-15 11:13:05 +01005 * for Toby Churchill Ltd and Brightstar Engineering
6 *
7 * Created by Charles Manning <charles@aleph1.co.uk>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License version 2.1 as
11 * published by the Free Software Foundation.
12 *
13 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14 */
15
16#ifndef __YAFFS_CHECKPTRW_H__
17#define __YAFFS_CHECKPTRW_H__
18
19#include "yaffs_guts.h"
20
Charles Manning753ac612012-05-09 16:55:17 +000021int yaffs2_checkpt_open(struct yaffs_dev *dev, int writing);
William Juul0e8cc8b2007-11-15 11:13:05 +010022
Charles Manning753ac612012-05-09 16:55:17 +000023int yaffs2_checkpt_wr(struct yaffs_dev *dev, const void *data, int n_bytes);
William Juul0e8cc8b2007-11-15 11:13:05 +010024
Charles Manning753ac612012-05-09 16:55:17 +000025int yaffs2_checkpt_rd(struct yaffs_dev *dev, void *data, int n_bytes);
William Juul0e8cc8b2007-11-15 11:13:05 +010026
Charles Manning753ac612012-05-09 16:55:17 +000027int yaffs2_get_checkpt_sum(struct yaffs_dev *dev, u32 * sum);
William Juul0e8cc8b2007-11-15 11:13:05 +010028
Charles Manning753ac612012-05-09 16:55:17 +000029int yaffs_checkpt_close(struct yaffs_dev *dev);
William Juul0e8cc8b2007-11-15 11:13:05 +010030
Charles Manning753ac612012-05-09 16:55:17 +000031int yaffs2_checkpt_invalidate_stream(struct yaffs_dev *dev);
William Juul0e8cc8b2007-11-15 11:13:05 +010032
33#endif