]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/CCode/Source/GenCRC32Section/GenCRC32Section.h
Let specify GUID value for GUID-defined FV region, and remove potential dead loop...
[mirror_edk2.git] / Tools / CCode / Source / GenCRC32Section / GenCRC32Section.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 GenCRC32Section.h \r
15\r
16Abstract:\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
ce53a8c3 34#include <Common/UefiBaseTypes.h>\r
878ddf1f 35#include <Common/EfiImage.h>\r
36#include <Common/FirmwareVolumeImageFormat.h>\r
37#include <Common/FirmwareFileSystem.h>\r
38#include <Common/FirmwareVolumeHeader.h>\r
39#include <Protocol/GuidedSectionExtraction.h>\r
40\r
41/* Tool Headers */\r
ce53a8c3 42#include "CommonLib.h"\r
43#include "Crc32.h"\r
44#include "EfiCompress.h"\r
45#include "EfiUtilityMsgs.h"\r
46#include "ParseInf.h"\r
878ddf1f 47\r
48//\r
49// Module Coded to Tiano Coding Conventions\r
50//\r
51#ifndef _EFI_GEN_CRC32_SECTION_H\r
52#define _EFI_GEN_CRC32_SECTION_H\r
53\r
54\r
55typedef struct {\r
56 EFI_GUID_DEFINED_SECTION GuidSectionHeader;\r
57 UINT32 CRC32Checksum;\r
58} CRC32_SECTION_HEADER;\r
59\r
60#define EFI_SECTION_CRC32_GUID_DEFINED 0\r
61#define CRC32_SECTION_HEADER_SIZE (sizeof (CRC32_SECTION_HEADER))\r
62\r
63#endif\r