Interworking with 2.6.18 kernel enabled
[yaffs2.git] / yaffs_packedtags1.h
1 // This is used to pack YAFFS1 tags, not YAFFS2 tags.
2
3 #ifndef __YAFFS_PACKEDTAGS1_H__
4 #define __YAFFS_PACKEDTAGS1_H__
5
6 #include "yaffs_guts.h"
7
8 typedef struct {
9         unsigned chunkId:20;
10         unsigned serialNumber:2;
11         unsigned byteCount:10;
12         unsigned objectId:18;
13         unsigned ecc:12;
14         unsigned deleted:1;
15         unsigned unusedStuff:1;
16         unsigned shouldBeFF;
17
18 } yaffs_PackedTags1;
19
20 void yaffs_PackTags1(yaffs_PackedTags1 * pt, const yaffs_ExtendedTags * t);
21 void yaffs_UnpackTags1(yaffs_ExtendedTags * t, const yaffs_PackedTags1 * pt);
22 #endif