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 | 
 | 52 | #define STARTUP_HDR_FLAGS1_COMPRESS_NONE ((0 << 4) | (0 << 3) | (0 << 2)) | 
| 54 | 
 | 53 | #define STARTUP_HDR_FLAGS1_COMPRESS_ZLIB  ((0 << 4) | (0 << 3) | (1 << 2)) // deprecated in mkifs | 
| 55 | 
 | 54 | #define STARTUP_HDR_FLAGS1_COMPRESS_LZO   ((0 << 4) | (1 << 3) | (0 << 2)) // TODO: add this compression scheme with liblzo | 
| 56 | 
 | 55 | #define STARTUP_HDR_FLAGS1_COMPRESS_UCL ((0 << 4) | (1 << 3) | (1 << 2)) | 
| 57 | 
 | 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 |