]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ppi/PeiCoreFvLocation.h
MdePkg: Support EFI_PEI_CORE_FV_LOCATION_PPI
[mirror_edk2.git] / MdePkg / Include / Ppi / PeiCoreFvLocation.h
diff --git a/MdePkg/Include/Ppi/PeiCoreFvLocation.h b/MdePkg/Include/Ppi/PeiCoreFvLocation.h
new file mode 100644 (file)
index 0000000..3bea681
--- /dev/null
@@ -0,0 +1,48 @@
+/** @file\r
+  Header file for Pei Core FV Location PPI.\r
+\r
+  This PPI contains a pointer to the firmware volume which contains the PEI Foundation.\r
+  If the PEI Foundation does not reside in the BFV, then SEC must pass this PPI as a part\r
+  of the PPI list provided to the PEI Foundation Entry Point, otherwise the PEI Foundation\r
+  shall assume that it resides within the BFV.\r
+\r
+  Copyright (c) 2019, 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
+  @par Revision Reference:\r
+  This PPI is defined in UEFI Platform Initialization Specification 1.7 Volume 1:\r
+  Standards\r
+\r
+**/\r
+\r
+\r
+#ifndef _EFI_PEI_CORE_FV_LOCATION_H_\r
+#define _EFI_PEI_CORE_FV_LOCATION_H_\r
+\r
+///\r
+/// Global ID for EFI_PEI_CORE_FV_LOCATION_PPI\r
+///\r
+#define EFI_PEI_CORE_FV_LOCATION_GUID \\r
+  { \\r
+    0x52888eae, 0x5b10, 0x47d0, {0xa8, 0x7f, 0xb8, 0x22, 0xab, 0xa0, 0xca, 0xf4 } \\r
+  }\r
+\r
+///\r
+/// This PPI provides location of EFI PeiCoreFv.\r
+///\r
+typedef struct {\r
+  ///\r
+  /// Pointer to the first byte of the firmware volume which contains the PEI Foundation.\r
+  ///\r
+  VOID    *PeiCoreFvLocation;\r
+} EFI_PEI_CORE_FV_LOCATION_PPI;\r
+\r
+extern EFI_GUID gEfiPeiCoreFvLocationPpiGuid;\r
+\r
+#endif // _EFI_PEI_CORE_FV_LOCATION_H_\r