TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/SmbiosStringTableLib.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | StringTableAddString (IN STRING_TABLE *CONST StrTable, IN CONST CHAR8 *Str, OUT UINT8 *StrRef OPTIONAL) |
UINTN EFIAPI | StringTableGetStringSetSize (IN STRING_TABLE *CONST StrTable) |
EFI_STATUS EFIAPI | StringTablePublishStringSet (IN STRING_TABLE *CONST StrTable, IN CHAR8 *CONST SmbiosStringAreaStart, IN CONST UINTN SmbiosStringAreaSize) |
EFI_STATUS EFIAPI | StringTableInitialize (IN STRING_TABLE *CONST StrTable, IN UINTN MaxStringElements) |
EFI_STATUS EFIAPI | StringTableFree (IN STRING_TABLE *CONST StrTable) |
SMBIOS String Table Helper
Copyright (c) 2022, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmbiosStringTableLib.c.
EFI_STATUS EFIAPI StringTableAddString | ( | IN STRING_TABLE *CONST | StrTable, |
IN CONST CHAR8 * | Str, | ||
OUT UINT8 *StrRef | OPTIONAL | ||
) |
Add a string to the string table.
[in] | StrTable | Pointer to the string table |
[in] | Str | Pointer to the string |
[out] | StrRef | Optional pointer to retrieve the string field reference of the string in the string table |
Definition at line 31 of file SmbiosStringTableLib.c.
EFI_STATUS EFIAPI StringTableFree | ( | IN STRING_TABLE *CONST | StrTable | ) |
Free memory allocated for the string elements in the string table.
[in] | StrTable | Pointer to the string table |
Definition at line 216 of file SmbiosStringTableLib.c.
UINTN EFIAPI StringTableGetStringSetSize | ( | IN STRING_TABLE *CONST | StrTable | ) |
Returns the total size required to publish the strings to the SMBIOS string area.
[in] | StrTable | Pointer to the string table |
Definition at line 81 of file SmbiosStringTableLib.c.
EFI_STATUS EFIAPI StringTableInitialize | ( | IN STRING_TABLE *CONST | StrTable, |
IN UINTN | MaxStringElements | ||
) |
Initialise the string table and allocate memory for the string elements.
[in] | StrTable | Pointer to the string table |
[in] | MaxStringElements | Maximum number of strings that the string table can hold. |
Definition at line 182 of file SmbiosStringTableLib.c.
EFI_STATUS EFIAPI StringTablePublishStringSet | ( | IN STRING_TABLE *CONST | StrTable, |
IN CHAR8 *CONST | SmbiosStringAreaStart, | ||
IN CONST UINTN | SmbiosStringAreaSize | ||
) |
Iterate through the string table and publish the strings in the SMBIOS string area.
[in] | StrTable | Pointer to the string table |
[in] | SmbiosStringAreaStart | Start address of the SMBIOS string area. |
[in] | SmbiosStringAreaSize | Size of the SMBIOS string area. |
Definition at line 120 of file SmbiosStringTableLib.c.