Initial import.
[mirror_edk2.git] / Tools / Source / TianoTools / 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
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
56typedef 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