2 * $Id: nftl-user.h,v 1.2 2005/11/07 11:14:56 gleixner Exp $
4 * Parts of NFTL headers shared with userspace
8 #ifndef __MTD_NFTL_USER_H__
9 #define __MTD_NFTL_USER_H__
11 /* Block Control Information */
14 unsigned char ECCSig
[6];
17 }__attribute__((packed
));
19 /* Unit Control Information */
24 uint16_t SpareVirtUnitNum
;
25 uint16_t SpareReplUnitNum
;
26 } __attribute__((packed
));
32 } __attribute__((packed
));
38 } __attribute__((packed
));
51 /* NFTL Media Header */
53 struct NFTLMediaHeader
{
55 uint16_t NumEraseUnits
;
56 uint16_t FirstPhysicalEUN
;
57 uint32_t FormattedSize
;
58 unsigned char UnitSizeFactor
;
59 } __attribute__((packed
));
61 #define MAX_ERASE_ZONES (8192 - 512)
63 #define ERASE_MARK 0x3c69
64 #define SECTOR_FREE 0xff
65 #define SECTOR_USED 0x55
66 #define SECTOR_IGNORE 0x11
67 #define SECTOR_DELETED 0x00
69 #define FOLD_MARK_IN_PROGRESS 0x5555
71 #define ZONE_GOOD 0xff
72 #define ZONE_BAD_ORIGINAL 0
73 #define ZONE_BAD_MARKED 7
76 #endif /* __MTD_NFTL_USER_H__ */