]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | GenCRC32Section.h \r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Header file for GenFfsFile. Mainly defines the header of section\r | |
19 | header for CRC32 GUID defined sections. Share with GenSection.c\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | //\r | |
24 | // External Files Referenced\r | |
25 | //\r | |
26 | \r | |
27 | /* Standard Headers */\r | |
28 | #include <stdio.h>\r | |
29 | #include <stdlib.h>\r | |
30 | #include <string.h>\r | |
31 | #include <assert.h>\r | |
32 | \r | |
33 | /* MDE Headers */\r | |
34 | #include <Base.h>\r | |
35 | #include <UefiBaseTypes.h>\r | |
36 | #include <Common/EfiImage.h>\r | |
37 | #include <Common/FirmwareVolumeImageFormat.h>\r | |
38 | #include <Common/FirmwareFileSystem.h>\r | |
39 | #include <Common/FirmwareVolumeHeader.h>\r | |
40 | #include <Protocol/GuidedSectionExtraction.h>\r | |
41 | \r | |
42 | /* Tool Headers */\r | |
43 | #include <CommonLib.h>\r | |
44 | #include <Crc32.h>\r | |
45 | #include <EfiCompress.h>\r | |
46 | #include <EfiUtilityMsgs.h>\r | |
47 | #include <ParseInf.h>\r | |
48 | \r | |
49 | //\r | |
50 | // Module Coded to Tiano Coding Conventions\r | |
51 | //\r | |
52 | #ifndef _EFI_GEN_CRC32_SECTION_H\r | |
53 | #define _EFI_GEN_CRC32_SECTION_H\r | |
54 | \r | |
55 | \r | |
56 | typedef struct {\r | |
57 | EFI_GUID_DEFINED_SECTION GuidSectionHeader;\r | |
58 | UINT32 CRC32Checksum;\r | |
59 | } CRC32_SECTION_HEADER;\r | |
60 | \r | |
61 | #define EFI_SECTION_CRC32_GUID_DEFINED 0\r | |
62 | #define CRC32_SECTION_HEADER_SIZE (sizeof (CRC32_SECTION_HEADER))\r | |
63 | \r | |
64 | #endif\r |