CbPlatformSupportLib might use FindCbTag() API to parse
platform specific information. So expose this API.
And add EFIAPI to all functions in CbParseLib.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
This library will parse the coreboot table in memory and extract those required\r
information.\r
\r
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
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
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
/**\r
Acquire the memory information from the coreboot table in memory.\r
\r
CbParseMemoryInfo (\r
IN CB_MEM_INFO_CALLBACK MemInfoCallback,\r
IN VOID *pParam\r
CbParseMemoryInfo (\r
IN CB_MEM_INFO_CALLBACK MemInfoCallback,\r
IN VOID *pParam\r
CbParseCbMemTable (\r
IN UINT32 TableId,
IN VOID** pMemTable,\r
CbParseCbMemTable (\r
IN UINT32 TableId,
IN VOID** pMemTable,\r
CbParseAcpiTable (\r
IN VOID** pMemTable,\r
IN UINT32* pMemTableSize\r
CbParseAcpiTable (\r
IN VOID** pMemTable,\r
IN UINT32* pMemTableSize\r
CbParseSmbiosTable (\r
IN VOID** pMemTable,\r
IN UINT32* pMemTableSize\r
CbParseSmbiosTable (\r
IN VOID** pMemTable,\r
IN UINT32* pMemTableSize\r
CbParseFadtInfo (\r
IN UINTN* pPmCtrlReg,\r
IN UINTN* pPmTimerReg,\r
CbParseFadtInfo (\r
IN UINTN* pPmCtrlReg,\r
IN UINTN* pPmTimerReg,\r
CbParseSerialInfo (\r
OUT UINT32 *pRegBase,
OUT UINT32 *pRegAccessType,
CbParseSerialInfo (\r
OUT UINT32 *pRegBase,
OUT UINT32 *pRegAccessType,
CbParseGetCbHeader (\r
IN UINTN Level,\r
IN VOID** HeaderPtr\r
CbParseGetCbHeader (\r
IN UINTN Level,\r
IN VOID** HeaderPtr\r
CbParseFbInfo (\r
IN FRAME_BUFFER_INFO* pFbInfo\r
);\r
CbParseFbInfo (\r
IN FRAME_BUFFER_INFO* pFbInfo\r
);\r
FindCbTag (\r
IN VOID *Start,\r
IN UINT32 Tag\r
FindCbTag (\r
IN VOID *Start,\r
IN UINT32 Tag\r
FindCbMemTable (\r
IN struct cbmem_root *Root,\r
IN UINT32 TableId,\r
FindCbMemTable (\r
IN struct cbmem_root *Root,\r
IN UINT32 TableId,\r
CbParseMemoryInfo (\r
IN CB_MEM_INFO_CALLBACK MemInfoCallback,\r
IN VOID *pParam\r
CbParseMemoryInfo (\r
IN CB_MEM_INFO_CALLBACK MemInfoCallback,\r
IN VOID *pParam\r
CbParseCbMemTable (\r
IN UINT32 TableId,\r
OUT VOID **pMemTable,\r
CbParseCbMemTable (\r
IN UINT32 TableId,\r
OUT VOID **pMemTable,\r
CbParseAcpiTable (\r
OUT VOID **pMemTable,\r
OUT UINT32 *pMemTableSize\r
CbParseAcpiTable (\r
OUT VOID **pMemTable,\r
OUT UINT32 *pMemTableSize\r
CbParseSmbiosTable (\r
OUT VOID **pMemTable,\r
OUT UINT32 *pMemTableSize\r
CbParseSmbiosTable (\r
OUT VOID **pMemTable,\r
OUT UINT32 *pMemTableSize\r
CbParseFadtInfo (\r
OUT UINTN *pPmCtrlReg,\r
OUT UINTN *pPmTimerReg,\r
CbParseFadtInfo (\r
OUT UINTN *pPmCtrlReg,\r
OUT UINTN *pPmTimerReg,\r
CbParseSerialInfo (\r
OUT UINT32 *pRegBase,\r
OUT UINT32 *pRegAccessType,\r
CbParseSerialInfo (\r
OUT UINT32 *pRegBase,\r
OUT UINT32 *pRegAccessType,\r
CbParseGetCbHeader (\r
IN UINTN Level,\r
OUT VOID **HeaderPtr\r
CbParseGetCbHeader (\r
IN UINTN Level,\r
OUT VOID **HeaderPtr\r
CbParseFbInfo (\r
OUT FRAME_BUFFER_INFO *pFbInfo\r
)\r
CbParseFbInfo (\r
OUT FRAME_BUFFER_INFO *pFbInfo\r
)\r