xref: /aosp_15_r20/external/lzma/CPP/7zip/Archive/Iso/IsoHeader.h (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1 // Archive/IsoHeader.h
2 
3 #ifndef ZIP7_INC_ARCHIVE_ISO_HEADER_H
4 #define ZIP7_INC_ARCHIVE_ISO_HEADER_H
5 
6 #include "../../../Common/MyTypes.h"
7 
8 namespace NArchive {
9 namespace NIso {
10 
11 namespace NVolDescType
12 {
13   const Byte kBootRecord = 0;
14   const Byte kPrimaryVol = 1;
15   const Byte kSupplementaryVol = 2;
16   const Byte kVolParttition = 3;
17   const Byte kTerminator = 255;
18 }
19 
20 const Byte kVersion = 1;
21 
22 namespace NFileFlags
23 {
24   const Byte kDirectory = 1 << 1;
25   const Byte kNonFinalExtent = 1 << 7;
26 }
27 
28 extern const char * const kElToritoSpec;
29 
30 const UInt32 kStartPos = 0x8000;
31 
32 namespace NBootEntryId
33 {
34   const Byte kValidationEntry = 1;
35   const Byte kInitialEntryNotBootable = 0;
36   const Byte kInitialEntryBootable = 0x88;
37 
38   const Byte kMoreHeaders = 0x90;
39   const Byte kFinalHeader = 0x91;
40 
41   const Byte kExtensionIndicator = 0x44;
42 }
43 
44 namespace NBootPlatformId
45 {
46   const Byte kX86 = 0;
47   const Byte kPowerPC = 1;
48   const Byte kMac = 2;
49 }
50 
51 const Byte kBootMediaTypeMask = 0xF;
52 
53 namespace NBootMediaType
54 {
55   const Byte kNoEmulation = 0;
56   const Byte k1d2Floppy = 1;
57   const Byte k1d44Floppy = 2;
58   const Byte k2d88Floppy = 3;
59   const Byte kHardDisk = 4;
60 }
61 
62 }}
63 
64 #endif
65