]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Pei/Include/peihoblib.h
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / Include / peihoblib.h
index 23101754b1eada1776e19434eff0cdb4a5e68895..0e90e454fac2bd049543e94d0b38535ac02bbf4b 100644 (file)
@@ -313,6 +313,30 @@ Returns:
 --*/\r
 ;\r
 \r
+VOID *\r
+GetHob (\r
+  IN UINT16  Type,\r
+  IN VOID    *HobStart\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  This function returns the first instance of a HOB type in a HOB list.\r
+  \r
+Arguments:\r
+\r
+  Type          The HOB type to return.\r
+  HobStart      The first HOB in the HOB list.\r
+    \r
+Returns:\r
+\r
+  HobStart      There were no HOBs found with the requested type.\r
+  else          Returns the first HOB with the matching type.\r
+\r
+--*/\r
+;\r
+\r
 EFI_STATUS\r
 GetFirstGuidHob (\r
   IN     VOID      **HobStart,\r
@@ -342,4 +366,35 @@ Returns:
 \r
 --*/\r
 ;\r
+\r
+EFI_STATUS\r
+GetNextGuidHob (\r
+  IN OUT VOID      **HobStart,\r
+  IN     EFI_GUID  * Guid,\r
+  OUT    VOID      **Buffer,\r
+  OUT    UINTN     *BufferSize OPTIONAL\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+  Get the next guid hob.\r
+  \r
+Arguments:\r
+  HobStart        A pointer to the start hob.\r
+  Guid            A pointer to a guid.\r
+  Buffer          A pointer to the buffer.\r
+  BufferSize      Buffer size.\r
+  \r
+Returns:\r
+  Status code.\r
+\r
+  EFI_NOT_FOUND          - Next Guid hob not found\r
+  \r
+  EFI_SUCCESS            - Next Guid hob found and data for this Guid got\r
+  \r
+  EFI_INVALID_PARAMETER  - invalid parameter\r
+\r
+--*/\r
+;\r
+\r
 #endif\r