]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/FfsTypes.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / FfsTypes.java
CommitLineData
878ddf1f 1/** @file\r
2 FfsTypes class.\r
3\r
4 FfsType class record the costant value of Ffs File attribute, type, and \r
5 architecture.\r
6 \r
7 Copyright (c) 2006, Intel Corporation\r
8 All rights reserved. This program and the accompanying materials\r
9 are licensed and made available under the terms and conditions of the BSD License\r
10 which accompanies this distribution. The full text of the license may be found at\r
11 http://opensource.org/licenses/bsd-license.php\r
12 \r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15\r
16 **/\r
17package org.tianocore.framework.tasks;\r
18\r
19/**\r
20 FfsType\r
21 \r
22 FfsType class record the costant value of Ffs File attribute, type, and \r
23 architecture.\r
24 \r
25**/\r
26public interface FfsTypes {\r
27 //\r
28 // Ffs file attributes\r
29 //\r
30 static final int FFS_ATTRIB_TAIL_PRESENT = 0x01;\r
31\r
32 static final int FFS_ATTRIB_RECOVERY = 0x02;\r
33\r
34 static final int FFS_ATTRIB_HEADER_EXTENSION = 0x04;\r
35\r
36 static final int FFS_ATTRIB_DATA_ALIGNMENT = 0x38;\r
37\r
38 static final int FFS_ATTRIB_CHECKSUM = 0x40;\r
39\r
40 //\r
41 // Ffs states difinitions\r
42 //\r
43 static final int EFI_FILE_HEADER_CONSTRUCTION = 0x01;\r
44\r
45 static final int EFI_FILE_HEADER_VALID = 0x02;\r
46\r
47 static final int EFI_FILE_DATA_VALID = 0x04;\r
48\r
49 static final int EFI_FILE_MARKED_FOR_UPDATE = 0x08;\r
50\r
51 static final int EFI_FILE_DELETED = 0x10;\r
52\r
53 static final int EFI_FILE_HEADER_INVALID = 0x20;\r
54\r
55 //\r
56 // FFS_FIXED_CHECKSUM is the default checksum value used when the\r
57 // FFS_ATTRIB_CHECKSUM attribute bit is clear note this is NOT an\r
58 // architecturally defined value, but is in this file for implementation\r
59 // convenience\r
60 //\r
61 static final int FFS_FIXED_CHECKSUM = 0x5a;\r
62\r
63 //\r
64 // Architectural file types\r
65 //\r
66 static final int EFI_FV_FILETYPE_ALL = 0x00;\r
67\r
68 static final int EFI_FV_FILETYPE_RAW = 0x01;\r
69\r
70 static final int EFI_FV_FILETYPE_FREEFORM = 0x02;\r
71\r
72 static final int EFI_FV_FILETYPE_SECURITY_CORE = 0x03;\r
73\r
74 static final int EFI_FV_FILETYPE_PEI_CORE = 0x04;\r
75\r
76 static final int EFI_FV_FILETYPE_DXE_CORE = 0x05;\r
77\r
78 static final int EFI_FV_FILETYPE_PEIM = 0x06;\r
79\r
80 static final int EFI_FV_FILETYPE_DRIVER = 0x07;\r
81\r
82 static final int EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER = 0x08;\r
83\r
84 static final int EFI_FV_FILETYPE_APPLICATION = 0x09;\r
85\r
86 static final int EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE = 0x0B;\r
87\r
88 static final int EFI_FV_FILETYPE_FFS_PAD = 0xF0;\r
89\r
90 //\r
91 // Ffs file type\r
92 //\r
93 static final String EFI_FV_FFS_FILETYPE_STR = ".FFS";\r
94 static final String EFI_FV_DXE_FILETYPE_STR = ".DXE";\r
95 static final String EFI_FV_PEI_FILETYPE_STR = ".PEI";\r
96 static final String EFI_FV_APP_FILETYPE_STR = ".APP";\r
97 static final String EFI_FV_FVI_FILETYPE_STR = ".FVI";\r
98 static final String EFI_FV_SEC_FILETYPE_STR = ".SEC";\r
99 \r
100 //\r
101 // Section Type copy from EfiImageFormat.h\r
102 //\r
103 static final int EFI_SECTION_COMPRESSION = 0x01;\r
104 static final int EFI_SECTION_GUID_DEFINED = 0x02;\r
105 \r
106 //\r
107 // CompressionType values, we currently don't support \r
108 // "EFI_CUSTOMIZED_COMPRESSION".\r
109 //\r
110 static final int EFI_NOT_COMPRESSED = 0x00;\r
111 static final int EFI_STANDARD_COMPRESSION = 0x01;\r
112 static final int EFI_CUSTOMIZED_COMPRESSION = 0x02;\r
113 \r
114\r
115}