+/*++\r
+\r
+Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved\r
+\r
+ This program and the accompanying materials are licensed and made available under\r
+ the terms and conditions of the BSD License that accompanies this distribution.\r
+ 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
+Module Name:\r
+\r
+ Capsule.h\r
+\r
+Abstract:\r
+\r
+ Capsule PPI definitions.\r
+\r
+--*/\r
+//\r
+//\r
+#ifndef _PEI_CAPSULE_PPI_H_\r
+#define _PEI_CAPSULE_PPI_H_\r
+\r
+#define PEI_CAPSULE_PPI_GUID \\r
+ { \\r
+ 0x3acf33ee, 0xd892, 0x40f4, 0xa2, 0xfc, 0x38, 0x54, 0xd2, 0xe1, 0x32, 0x3d \\r
+ }\r
+\r
+EFI_FORWARD_DECLARATION (PEI_CAPSULE_PPI);\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *PEI_CAPSULE_COALESCE) (\r
+ IN EFI_PEI_SERVICES **PeiServices,\r
+ IN OUT VOID **MemoryBase,\r
+ IN OUT UINTN *MemSize\r
+ );\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *PEI_CAPSULE_CREATE_STATE) (\r
+ IN EFI_PEI_SERVICES **PeiServices,\r
+ IN VOID *CapsuleBase, // returned from coalesce\r
+ IN UINTN CapsuleSize // returned from coalesce\r
+ );\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *PEI_CAPSULE_CHECK_CAPSULE_UPDATE) (\r
+ IN EFI_PEI_SERVICES **PeiServices\r
+ );\r
+\r
+typedef struct _PEI_CAPSULE_PPI {\r
+ PEI_CAPSULE_COALESCE Coalesce;\r
+ PEI_CAPSULE_CHECK_CAPSULE_UPDATE CheckCapsuleUpdate;\r
+ PEI_CAPSULE_CREATE_STATE CreateState;\r
+} PEI_CAPSULE_PPI;\r
+\r
+extern EFI_GUID gPeiCapsulePpiGuid;\r
+\r
+#endif // #ifndef _PEI_CAPSULE_PPI_H_\r