Subversion Repositories QNX 8.QNX8 IFS tool

Rev

Rev 22 | Rev 33 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 26
Line 47... Line 47...
47
 
47
 
48
 
48
 
49
// bitmapped flags used in the flags1 member of the startup header
49
// bitmapped flags used in the flags1 member of the startup header
50
#define STARTUP_HDR_FLAGS1_VIRTUAL        (1 << 0)
50
#define STARTUP_HDR_FLAGS1_VIRTUAL        (1 << 0)
51
#define STARTUP_HDR_FLAGS1_BIGENDIAN      (1 << 1)
51
#define STARTUP_HDR_FLAGS1_BIGENDIAN      (1 << 1)
52
//#define STARTUP_HDR_FLAGS1_COMPRESS_MASK  0x1c
-
 
53
//#define STARTUP_HDR_FLAGS1_COMPRESS_SHIFT 0x02
52
#define STARTUP_HDR_FLAGS1_COMPRESS_NONE  ((0 << 4) | (0 << 3) | (0 << 2))
54
//#define STARTUP_HDR_FLAGS1_COMPRESS_NONE  0x00
53
#define STARTUP_HDR_FLAGS1_COMPRESS_ZLIB  ((0 << 4) | (0 << 3) | (1 << 2)) // deprecated in mkifs
55
//#define STARTUP_HDR_FLAGS1_COMPRESS_ZLIB  0x04 // TODO: add this compression scheme with libz
54
#define STARTUP_HDR_FLAGS1_COMPRESS_LZO   ((0 << 4) | (1 << 3) | (0 << 2)) // TODO: add this compression scheme with liblzo
56
//#define STARTUP_HDR_FLAGS1_COMPRESS_LZO   0x08 // TODO: add this compression scheme with liblzo
55
#define STARTUP_HDR_FLAGS1_COMPRESS_UCL   ((0 << 4) | (1 << 3) | (1 << 2))
57
//#define STARTUP_HDR_FLAGS1_COMPRESS_UCL   0x0c // TODO: add this compression scheme
56
#define STARTUP_HDR_FLAGS1_COMPRESS_MASK  ((1 << 4) | (1 << 3) | (1 << 2))
58
#define STARTUP_HDR_FLAGS1_TRAILER_V2     (1 << 5) // if set, then a struct startup_trailer_v2 follows the startup. If the image is compressed, then the compressed imagefs is followed by a struct image_trailer_v2
57
#define STARTUP_HDR_FLAGS1_TRAILER_V2     (1 << 5) // if set, then a struct startup_trailer_v2 follows the startup. If the image is compressed, then the compressed imagefs is followed by a struct image_trailer_v2
59
 
58
 
60
 
59
 
61
// bitmapped flags used in the flags member of the image header
60
// bitmapped flags used in the flags member of the image header
62
#define IMAGE_FLAGS_BIGENDIAN  (1 << 0) // header, trailer, dirents in big-endian format
61
#define IMAGE_FLAGS_BIGENDIAN  (1 << 0) // header, trailer, dirents in big-endian format