7eb89d44e55f8758f4307636398513096bc3cc5c
[yaffs2.git] / yaffs_packedtags2.h
1 // This is used to pack YAFFS2 tags, not YAFFS1tags.
2
3 #ifndef __YAFFS_PACKEDTAGS2_H__
4 #define __YAFFS_PACKEDTAGS2_H__
5
6
7 #include "yaffs_guts.h"
8 #include "yaffs_ecc.h"
9
10 typedef struct
11 {   
12     unsigned sequenceNumber;
13     unsigned chunkId;
14     unsigned objectId;
15     unsigned byteCount;
16     unsigned nandTagsEcc;
17     
18 } yaffs_PackedTags2TagsPart;
19
20 typedef struct
21 {
22     yaffs_PackedTags2TagsPart t;
23     yaffs_ECCOther ecc;
24 } yaffs_PackedTags2;
25
26
27 void yaffs_PackTags2(yaffs_PackedTags2 *pt, const  yaffs_ExtendedTags *t);
28 void yaffs_UnpackTags2(yaffs_ExtendedTags *t, const yaffs_PackedTags2 *pt);
29 #endif
30
31