]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Library/CbParseLib.h
CorebootModulePkg: Fix memmap issue
[mirror_edk2.git] / CorebootModulePkg / Include / Library / CbParseLib.h
index a023246d71cd5deb9d49e0ab6a66542c2c674e18..064baf3d0c6d36aec21a11f7eeba06ec070bc918 100644 (file)
 **/\r
 #include <Guid/FrameBufferInfoGuid.h>\r
 \r
+typedef RETURN_STATUS \\r
+        (*CB_MEM_INFO_CALLBACK) (UINT64 Base, UINT64 Size, UINT32 Type, VOID *Param);\r
+\r
 /**\r
   Acquire the memory information from the coreboot table in memory.\r
 \r
-  @param  pLowMemorySize     Pointer to the variable of low memory size\r
-  @param  pHighMemorySize    Pointer to the variable of high memory size\r
+  @param  MemInfoCallback     The callback routine\r
+  @param  pParam              Pointer to the callback routine parameter\r
 \r
   @retval RETURN_SUCCESS     Successfully find out the memory information.\r
-  @retval RETURN_INVALID_PARAMETER    Invalid input parameters.\r
   @retval RETURN_NOT_FOUND   Failed to find the memory information.\r
 \r
 **/\r
 RETURN_STATUS\r
 CbParseMemoryInfo (\r
-  IN UINT64*    pLowMemorySize,\r
-  IN UINT64*    pHighMemorySize\r
+  IN  CB_MEM_INFO_CALLBACK  MemInfoCallback,\r
+  IN  VOID                  *pParam\r
   );\r
 
 /**\r