X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_tagscompat.h;h=92d298a6f582b8d8475840fb13e8034d9d6b1381;hp=889bf5f4b7c873df778514e2732b8320f9c42d32;hb=33308768bd24abe4e1f59c5025a3dd824119ae1d;hpb=41573908f821bcb40750e7c069ea8f5178f630e5 diff --git a/yaffs_tagscompat.h b/yaffs_tagscompat.h index 889bf5f..92d298a 100644 --- a/yaffs_tagscompat.h +++ b/yaffs_tagscompat.h @@ -1,7 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -16,24 +16,29 @@ #ifndef __YAFFS_TAGSCOMPAT_H__ #define __YAFFS_TAGSCOMPAT_H__ + #include "yaffs_guts.h" -int yaffs_tags_compat_wr(yaffs_dev_t *dev, - int nand_chunk, - const __u8 *data, - const yaffs_ext_tags *tags); -int yaffs_tags_compat_rd(yaffs_dev_t *dev, - int nand_chunk, - __u8 *data, - yaffs_ext_tags *tags); -int yaffs_tags_compat_mark_bad(struct yaffs_dev_s *dev, - int block_no); -int yaffs_tags_compat_query_block(struct yaffs_dev_s *dev, - int block_no, - yaffs_block_state_t *state, - __u32 *seq_number); - -void yaffs_calc_tags_ecc(yaffs_tags_t *tags); -int yaffs_check_tags_ecc(yaffs_tags_t *tags); -int yaffs_count_bits(__u8 byte); + +#if 0 + + +int yaffs_tags_compat_wr(struct yaffs_dev *dev, + int nand_chunk, + const u8 *data, const struct yaffs_ext_tags *tags); +int yaffs_tags_compat_rd(struct yaffs_dev *dev, + int nand_chunk, + u8 *data, struct yaffs_ext_tags *tags); +int yaffs_tags_compat_mark_bad(struct yaffs_dev *dev, int block_no); +int yaffs_tags_compat_query_block(struct yaffs_dev *dev, + int block_no, + enum yaffs_block_state *state, + u32 *seq_number); + +#endif + + +void yaffs_tags_compat_install(struct yaffs_dev *dev); +void yaffs_calc_tags_ecc(struct yaffs_tags *tags); +int yaffs_check_tags_ecc(struct yaffs_tags *tags); #endif