]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Library/CbParseLib.h
CorebootModulePkgPkg: Expose FindCbTag API from CbParseLib
[mirror_edk2.git] / CorebootModulePkg / Include / Library / CbParseLib.h
index 064baf3d0c6d36aec21a11f7eeba06ec070bc918..12dd4fa979aa495094977b8917abc00043c8b0b5 100644 (file)
@@ -2,7 +2,7 @@
   This library will parse the coreboot table in memory and extract those required\r
   information.\r
 \r
-  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 typedef RETURN_STATUS \\r
         (*CB_MEM_INFO_CALLBACK) (UINT64 Base, UINT64 Size, UINT32 Type, VOID *Param);\r
 \r
+/**\r
+  Find coreboot record with given Tag from the memory Start in 4096\r
+  bytes range.\r
+\r
+  @param  Start              The start memory to be searched in\r
+  @param  Tag                The tag id to be found\r
+\r
+  @retval NULL              The Tag is not found.\r
+  @retval Others            The poiter to the record found.\r
+\r
+**/\r
+VOID *\r
+EFIAPI\r
+FindCbTag (\r
+  IN  VOID     *Start,\r
+  IN  UINT32   Tag\r
+  );\r
+\r
 /**\r
   Acquire the memory information from the coreboot table in memory.\r
 \r
@@ -28,6 +46,7 @@ typedef RETURN_STATUS \
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseMemoryInfo (\r
   IN  CB_MEM_INFO_CALLBACK  MemInfoCallback,\r
   IN  VOID                  *pParam\r
@@ -46,6 +65,7 @@ CbParseMemoryInfo (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseCbMemTable (\r
   IN UINT32     TableId,
   IN VOID**     pMemTable,\r
@@ -64,6 +84,7 @@ CbParseCbMemTable (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseAcpiTable (\r
   IN VOID**     pMemTable,\r
   IN UINT32*    pMemTableSize\r
@@ -81,6 +102,7 @@ CbParseAcpiTable (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseSmbiosTable (\r
   IN VOID**     pMemTable,\r
   IN UINT32*    pMemTableSize\r
@@ -101,6 +123,7 @@ CbParseSmbiosTable (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseFadtInfo (\r
   IN UINTN*     pPmCtrlReg,\r
   IN UINTN*     pPmTimerReg,\r
@@ -125,6 +148,7 @@ CbParseFadtInfo (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseSerialInfo (\r
   OUT UINT32     *pRegBase,
   OUT UINT32     *pRegAccessType,
@@ -145,6 +169,7 @@ CbParseSerialInfo (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseGetCbHeader (\r
   IN UINTN  Level,\r
   IN VOID** HeaderPtr\r
@@ -160,6 +185,7 @@ CbParseGetCbHeader (
 \r
 **/\r
 RETURN_STATUS\r
+EFIAPI\r
 CbParseFbInfo (\r
   IN FRAME_BUFFER_INFO*     pFbInfo\r
   );\r