]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/HobLib.h
Fix build breaks from comment clean up checkin
[mirror_edk2.git] / MdePkg / Include / Library / HobLib.h
index a92d37ad05b82e3309873f752e0004abb2f0a780..15905244938da7b08e629423c5444b525930392b 100644 (file)
@@ -317,6 +317,7 @@ BuildFv2Hob (
   It can only be invoked during PEI phase;\r
   for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
   \r
+  If the platform does not support Capsule Volume HOBs, then ASSERT().\r
   If there is no additional space for HOB creation, then ASSERT().\r
 \r
   @param  BaseAddress   The base address of the Capsule Volume.\r
@@ -422,10 +423,9 @@ BuildMemoryAllocationHob (
 \r
   @param  Hob   A pointer to a HOB.\r
   \r
-  @return HobType\r
+  @return HobType.\r
   \r
 **/\r
-//#define GET_HOB_TYPE(Hob)     ((Hob).Header->HobType)\r
 #define GET_HOB_TYPE(HobStart) \\r
   ((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobType)\r
 \r
@@ -437,10 +437,9 @@ BuildMemoryAllocationHob (
 \r
   @param  Hob   A pointer to a HOB.\r
 \r
-  @return HobLength\r
+  @return HobLength.\r
 \r
 **/\r
-//#define GET_HOB_LENGTH(Hob)   ((Hob).Header->HobLength)\r
 #define GET_HOB_LENGTH(HobStart) \\r
   ((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobLength)\r
 \r
@@ -455,7 +454,6 @@ BuildMemoryAllocationHob (
   @return A pointer to the next HOB in the HOB list.\r
 \r
 **/\r
-//#define GET_NEXT_HOB(Hob)     ((Hob).Raw + GET_HOB_LENGTH (Hob))\r
 #define GET_NEXT_HOB(HobStart) \\r
   (VOID *)(*(UINT8 **)&(HobStart) + GET_HOB_LENGTH (HobStart))\r
 \r
@@ -482,10 +480,9 @@ BuildMemoryAllocationHob (
 \r
   @param   GuidHob   A pointer to a HOB.\r
 \r
-  @return  A pointer to the data buffer in a HOB\r
+  @return  A pointer to the data buffer in a HOB.\r
   \r
 **/\r
-//#define GET_GUID_HOB_DATA(GuidHob)      ((VOID *) (((UINT8 *) &((GuidHob)->Name)) + sizeof (EFI_GUID)))\r
 #define GET_GUID_HOB_DATA(HobStart) \\r
   (VOID *)(*(UINT8 **)&(HobStart) + sizeof (EFI_HOB_GUID_TYPE))\r
 \r
@@ -497,9 +494,8 @@ BuildMemoryAllocationHob (
 \r
   @param   GuidHob   A pointer to a HOB.\r
 \r
-  @return  The size of the data buffer\r
+  @return  The size of the data buffer.\r
 **/\r
-//#define GET_GUID_HOB_DATA_SIZE(GuidHob) (((GuidHob)->Header).HobLength - sizeof (EFI_HOB_GUID_TYPE))\r
 #define GET_GUID_HOB_DATA_SIZE(HobStart) \\r
   (UINT16)(GET_HOB_LENGTH (HobStart) - sizeof (EFI_HOB_GUID_TYPE))\r
 \r