]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/Fsp.h
Add IntelFspWrapper to support boot EDKII on FSP bin.
[mirror_edk2.git] / IntelFspWrapperPkg / Library / SecPeiFspPlatformSecLibSample / Ia32 / Fsp.h
diff --git a/IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/Fsp.h b/IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/Fsp.h
new file mode 100644 (file)
index 0000000..289d663
--- /dev/null
@@ -0,0 +1,43 @@
+/** @file\r
+  Fsp related definitions\r
+\r
+  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  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
+**/\r
+\r
+//\r
+// Fv Header\r
+//\r
+#define FVH_SIGINATURE_OFFSET         0x28\r
+#define FVH_SIGINATURE_VALID_VALUE    0x4856465F  // valid signature:_FVH\r
+#define FVH_HEADER_LENGTH_OFFSET      0x30\r
+#define FVH_EXTHEADER_OFFSET_OFFSET   0x34\r
+#define FVH_EXTHEADER_SIZE_OFFSET     0x10\r
+\r
+//\r
+// Ffs Header\r
+//\r
+#define FSP_HEADER_GUID_DWORD1        0x912740BE\r
+#define FSP_HEADER_GUID_DWORD2        0x47342284\r
+#define FSP_HEADER_GUID_DWORD3        0xB08471B9\r
+#define FSP_HEADER_GUID_DWORD4        0x0C3F3527\r
+#define FFS_HEADER_SIZE_VALUE         0x18\r
+\r
+//\r
+// Section Header\r
+//\r
+#define SECTION_HEADER_TYPE_OFFSET    0x03\r
+#define RAW_SECTION_HEADER_SIZE_VALUE 0x04\r
+\r
+//\r
+// Fsp Header\r
+//\r
+#define FSP_HEADER_IMAGEBASE_OFFSET     0x1C\r
+#define FSP_HEADER_TEMPRAMINIT_OFFSET   0x30\r