]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/GenCRC32Section.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GenCRC32Section / GenCRC32Section.h
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/GenCRC32Section.h b/EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/GenCRC32Section.h
new file mode 100644 (file)
index 0000000..7f88be2
--- /dev/null
@@ -0,0 +1,43 @@
+/*++\r
+\r
+Copyright (c) 2004, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+\r
+  GenCRC32Section.h \r
+\r
+Abstract:\r
+\r
+  Header file for GenFfsFile. Mainly defines the header of section\r
+  header for CRC32 GUID defined sections. Share with GenSection.c\r
+\r
+--*/\r
+\r
+//\r
+// Module Coded to Tiano Coding Conventions\r
+//\r
+#ifndef _EFI_GEN_CRC32_SECTION_H\r
+#define _EFI_GEN_CRC32_SECTION_H\r
+\r
+//\r
+// External Files Referenced\r
+//\r
+#include "TianoCommon.h"\r
+#include "EfiImageFormat.h"\r
+\r
+typedef struct {\r
+  EFI_GUID_DEFINED_SECTION  GuidSectionHeader;\r
+  UINT32                    CRC32Checksum;\r
+} CRC32_SECTION_HEADER;\r
+\r
+#define EFI_SECTION_CRC32_GUID_DEFINED  0\r
+#define CRC32_SECTION_HEADER_SIZE       (sizeof (CRC32_SECTION_HEADER))\r
+\r
+#endif\r