]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add EFI_HOB_UEFI_CAPSULE type defined in PI 1.2 volume 3.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Aug 2009 08:21:07 +0000 (08:21 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Aug 2009 08:21:07 +0000 (08:21 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9092 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Pi/PiHob.h

index 0c51f8e01cec4e25086b3c6af1b201223e1959d5..6a62abcd71ceb1649a49f778c3c9349f455e2ee1 100644 (file)
@@ -402,6 +402,28 @@ typedef struct {
   EFI_HOB_GENERIC_HEADER  Header;\r
 } EFI_HOB_MEMORY_POOL;\r
 \r
+///\r
+/// Each UEFI capsule HOB details the location of a UEFI capsule. It includes a base address and length\r
+/// which is based upon memory blocks with a EFI_CAPSULE_HEADER and the associated\r
+/// CapsuleImageSize-based payloads. These HOB’s shall be created by the PEI PI firmware\r
+/// sometime after the UEFI UpdateCapsule service invocation with the\r
+/// CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE flag set in the EFI_CAPSULE_HEADER.\r
+///\r
+typedef struct {\r
+  ///\r
+  /// The HOB generic header where Header.HobType = EFI_HOB_TYPE_UEFI_CAPSULE.\r
+  ///\r
+  EFI_HOB_GENERIC_HEADER Header;\r
+  \r
+  ///\r
+  /// The physical memory-mapped base address of an UEFI capsule. This value is set to\r
+  /// point to the base of the contiguous memory of the UEFI capsule.\r
+  /// The length of the contiguous memory in bytes\r
+  ///\r
+  EFI_PHYSICAL_ADDRESS   BaseAddress;\r
+  UINT64                 Length;\r
+} EFI_HOB_UEFI_CAPSULE;\r
+\r
 ///\r
 /// Union of all the possible HOB Types\r
 ///\r
@@ -418,6 +440,7 @@ typedef union {
   EFI_HOB_FIRMWARE_VOLUME2            *FirmwareVolume2;\r
   EFI_HOB_CPU                         *Cpu;\r
   EFI_HOB_MEMORY_POOL                 *Pool;\r
+  EFI_HOB_UEFI_CAPSULE                *Capsule;\r
   UINT8                               *Raw;\r
 } EFI_PEI_HOB_POINTERS;\r
 \r