TianoCore EDK2 master
Loading...
Searching...
No Matches
RedfishPlatformConfigImpl.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS DumpHiiString (IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId)
 
EFI_STATUS DumpFormset (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate)
 
EFI_STATUS DumpFormsetList (IN LIST_ENTRY *FormsetList)
 
UINTN EFIAPI HiiStrLen (IN CONST CHAR16 *String)
 
UINTN EFIAPI HiiStrSize (IN CONST CHAR16 *String)
 
INTN EFIAPI HiiStrCmp (IN CONST CHAR16 *FirstString, IN CONST CHAR16 *SecondString)
 
EFI_STATUS HiiDeleteString (IN EFI_STRING_ID StringId, IN EFI_HII_HANDLE HiiHandle)
 
EFI_STRING HiiGetRedfishString (IN EFI_HII_HANDLE HiiHandle, IN CHAR8 *Language, IN EFI_STRING_ID StringId)
 
CHAR8 * HiiGetRedfishAsciiString (IN EFI_HII_HANDLE HiiHandle, IN CHAR8 *Language, IN EFI_STRING_ID StringId)
 
CHAR8 * HiiGetEnglishAsciiString (IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId)
 
BOOLEAN CheckSupportedSchema (IN REDFISH_PLATFORM_CONFIG_SCHEMA *SupportedSchema, IN CHAR8 *Schema)
 
EFI_STATUS GetSupportedSchema (IN EFI_HII_HANDLE HiiHandle, OUT REDFISH_PLATFORM_CONFIG_SCHEMA *SupportedSchema)
 
EFI_STATUS GetStatementPrivateByConfigureLangRegex (IN EFI_REGULAR_EXPRESSION_PROTOCOL *RegularExpressionProtocol, IN LIST_ENTRY *FormsetList, IN CHAR8 *Schema, IN EFI_STRING Pattern, OUT REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE_LIST *StatementList)
 
REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATEGetStatementPrivateByConfigureLang (IN LIST_ENTRY *FormsetList, IN CHAR8 *Schema, IN EFI_STRING ConfigureLang)
 
REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATEGetFormsetPrivateByHiiHandle (IN EFI_HII_HANDLE HiiHandle, IN LIST_ENTRY *FormsetList)
 
EFI_STATUS ReleaseXuefiStringDatabase (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate)
 
EFI_STATUS ReleaseFormset (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate)
 
REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATENewFormsetPrivate (VOID)
 
EFI_STATUS NewRedfishXuefiStringArray (IN REDFISH_X_UEFI_STRING_DATABASE *XuefiRedfishStringDatabase)
 
REDFISH_X_UEFI_STRING_DATABASEGetExistOrCreateXuefiStringDatabase (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate, IN EFI_HII_STRING_PACKAGE_HDR *HiiStringPackageHeader)
 
EFI_STATUS RedfishXuefiStringAdjustArrays (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate, IN REDFISH_X_UEFI_STRING_DATABASE *XuefiRedfishStringDatabase, IN EFI_STRING_ID StringId)
 
EFI_STATUS RedfishXuefiStringInsertDatabase (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate, IN EFI_HII_STRING_PACKAGE_HDR *HiiStringPackageHeader, IN EFI_STRING_ID StringId, IN CHAR16 *StringTextPtr)
 
BOOLEAN CreateXuefiLanguageStringIdMap (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate, IN EFI_HII_STRING_PACKAGE_HDR *HiiStringPackageHeader, OUT UINTN *TotalStringAdded)
 
EFI_STATUS GetXuefiStringAndLangByStringId (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate, IN EFI_STRING_ID StringId, OUT CHAR16 **String OPTIONAL, OUT CHAR8 **Language OPTIONAL, OUT REDFISH_X_UEFI_STRING_DATABASE **XuefiStringDatabase OPTIONAL)
 
VOID BuildXUefiRedfishStringDatabase (IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate)
 
EFI_STATUS LoadFormset (IN EFI_HII_HANDLE HiiHandle, OUT REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE *FormsetPrivate)
 
EFI_STATUS LoadFormsetList (IN EFI_HII_HANDLE *HiiHandle, OUT LIST_ENTRY *FormsetList)
 
EFI_STATUS ReleaseFormsetList (IN LIST_ENTRY *FormsetList)
 
REDFISH_PLATFORM_CONFIG_PENDING_LISTGetPendingList (IN EFI_HII_HANDLE *HiiHandle, IN LIST_ENTRY *PendingList)
 
EFI_STATUS NotifyFormsetUpdate (IN EFI_HII_HANDLE *HiiHandle, IN LIST_ENTRY *PendingList)
 
EFI_STATUS NotifyFormsetDeleted (IN EFI_HII_HANDLE *HiiHandle, IN LIST_ENTRY *PendingList)
 
EFI_STATUS ProcessPendingList (IN LIST_ENTRY *FormsetList, IN LIST_ENTRY *PendingList)
 
EFI_STATUS ReleaseStatementList (IN REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE_LIST *StatementList)
 

Variables

REDFISH_PLATFORM_CONFIG_PRIVATEmRedfishPlatformConfigPrivate
 

Detailed Description

The implementation of EDKII Redfish Platform Config Protocol.

(C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file RedfishPlatformConfigImpl.c.

Function Documentation

◆ BuildXUefiRedfishStringDatabase()

VOID BuildXUefiRedfishStringDatabase ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate)

Build a x-UEFI-redfish database for the newly added x-UEFI-redfish language.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.

Definition at line 1498 of file RedfishPlatformConfigImpl.c.

◆ CheckSupportedSchema()

BOOLEAN CheckSupportedSchema ( IN REDFISH_PLATFORM_CONFIG_SCHEMA SupportedSchema,
IN CHAR8 *  Schema 
)

Check and see if this is supported schema or not.

Parameters
[in]SupportedSchemaThe list of supported schema.
[in]SchemaSchema string to be checked.
Return values
BOOLEANTRUE if this is supported schema. FALSE otherwise.

Definition at line 431 of file RedfishPlatformConfigImpl.c.

◆ CreateXuefiLanguageStringIdMap()

BOOLEAN CreateXuefiLanguageStringIdMap ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate,
IN EFI_HII_STRING_PACKAGE_HDR HiiStringPackageHeader,
OUT UINTN TotalStringAdded 
)

Get x-UEFI-redfish string and language by string ID.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
[in]HiiStringPackageHeaderHII string package header.
[out]TotalStringAddedReturn the total strings added to database.
Return values
TRUEx-UEFI-redfish string and ID map is inserted to database. FALSE Something is wrong when insert x-UEFI-redfish string and ID map.

Definition at line 1210 of file RedfishPlatformConfigImpl.c.

◆ DumpFormset()

EFI_STATUS DumpFormset ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate)

Debug dump HII form-set data.

Parameters
[in]FormsetPrivateHII form-set private instance.
Return values
EFI_SUCCESSDump form-set successfully
OthersErrors occur

Definition at line 60 of file RedfishPlatformConfigImpl.c.

◆ DumpFormsetList()

EFI_STATUS DumpFormsetList ( IN LIST_ENTRY FormsetList)

Debug dump HII form-set list.

Parameters
[in]FormsetListForm-set list instance
Return values
EFI_SUCCESSDump list successfully
OthersErrors occur

Definition at line 114 of file RedfishPlatformConfigImpl.c.

◆ DumpHiiString()

EFI_STATUS DumpHiiString ( IN EFI_HII_HANDLE  HiiHandle,
IN EFI_STRING_ID  StringId 
)

Debug dump HII string.

Parameters
[in]HiiHandleHII handle instance
[in]StringIdHII string to dump
Return values
EFI_SUCCESSDump HII string successfully
OthersErrors occur

Definition at line 27 of file RedfishPlatformConfigImpl.c.

◆ GetExistOrCreateXuefiStringDatabase()

REDFISH_X_UEFI_STRING_DATABASE * GetExistOrCreateXuefiStringDatabase ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate,
IN EFI_HII_STRING_PACKAGE_HDR HiiStringPackageHeader 
)

Get the pointer of x-UEFI-redfish database or create a new database.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
[in]HiiStringPackageHeaderHII string package header.
Return values
Pointerto REDFISH_X_UEFI_STRING_DATABASE. If NULL, it fails to obtain x-UEFI-redfish database.

Definition at line 1041 of file RedfishPlatformConfigImpl.c.

◆ GetFormsetPrivateByHiiHandle()

REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE * GetFormsetPrivateByHiiHandle ( IN EFI_HII_HANDLE  HiiHandle,
IN LIST_ENTRY FormsetList 
)

Get form-set private instance by the given HII handle.

Parameters
[in]HiiHandleHII handle instance.
[in]FormsetListForm-set list to search.
Return values
REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE* Pointer to form-set private instance.

Definition at line 789 of file RedfishPlatformConfigImpl.c.

◆ GetPendingList()

REDFISH_PLATFORM_CONFIG_PENDING_LIST * GetPendingList ( IN EFI_HII_HANDLE HiiHandle,
IN LIST_ENTRY PendingList 
)

Get all pending list.

Parameters
[in]HiiHandleHII handle instance.
[in]PendingListPending list to keep pending data.
Return values
REDFISH_PLATFORM_CONFIG_PENDING_LIST* Pointer to pending list data.

Definition at line 1910 of file RedfishPlatformConfigImpl.c.

◆ GetStatementPrivateByConfigureLang()

REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE * GetStatementPrivateByConfigureLang ( IN LIST_ENTRY FormsetList,
IN CHAR8 *  Schema,
IN EFI_STRING  ConfigureLang 
)

Get statement private instance by the given configure language.

Parameters
[in]FormsetListForm-set list to search.
[in]SchemaSchema to be matched.
[in]ConfigureLangConfigure language.
Return values
REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE* Pointer to statement private instance.

Definition at line 689 of file RedfishPlatformConfigImpl.c.

◆ GetStatementPrivateByConfigureLangRegex()

EFI_STATUS GetStatementPrivateByConfigureLangRegex ( IN EFI_REGULAR_EXPRESSION_PROTOCOL RegularExpressionProtocol,
IN LIST_ENTRY FormsetList,
IN CHAR8 *  Schema,
IN EFI_STRING  Pattern,
OUT REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE_LIST StatementList 
)

Search and find statement private instance by given regular expression pattern which describes the Configure Language.

Parameters
[in]RegularExpressionProtocolRegular express protocol.
[in]FormsetListForm-set list to search.
[in]SchemaSchema to be matched.
[in]PatternRegular expression pattern.
[out]StatementListStatement list that match above pattern.
Return values
EFI_SUCCESSStatement list is returned.
EFI_INVALID_PARAMETERInput parameter is NULL.
EFI_NOT_READYRegular express protocol is NULL.
EFI_NOT_FOUNDNo statement is found.
EFI_OUT_OF_RESOURCESSystem is out of memory.

Definition at line 563 of file RedfishPlatformConfigImpl.c.

◆ GetSupportedSchema()

EFI_STATUS GetSupportedSchema ( IN EFI_HII_HANDLE  HiiHandle,
OUT REDFISH_PLATFORM_CONFIG_SCHEMA SupportedSchema 
)

Get the list of supported schema from the given HII handle.

Parameters
[in]HiiHandleHII handle instance.
[out]SupportedSchemaSupported schema on this HII handle.
Return values
EFI_SUCCESSSchema list is returned.
EFI_INVALID_PARAMETERHiiHandle is NULL or SupportedSchema is NULL.
EFI_NOT_FOUNDNo supported schema found.
EFI_OUT_OF_RESOURCESSystem is out of memory.

Definition at line 468 of file RedfishPlatformConfigImpl.c.

◆ GetXuefiStringAndLangByStringId()

EFI_STATUS GetXuefiStringAndLangByStringId ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate,
IN EFI_STRING_ID  StringId,
OUT CHAR16 **String  OPTIONAL,
OUT CHAR8 **Language  OPTIONAL,
OUT REDFISH_X_UEFI_STRING_DATABASE **XuefiStringDatabase  OPTIONAL 
)

Get x-UEFI-redfish string and language by string ID.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
[in]StringIdThe HII string ID.
[out]StringOptionally return USC string.
[out]LanguageOptionally return x-UEFI-redfish language.
[out]XuefiStringDatabaseOptionally return x-UEFI-redfish database.
Return values
EFI_SUCCESSString information is returned. EFI_INVALID_PARAMETER One of the given parameters to this function is invalid. EFI_NOT_FOUND String is not found.

Definition at line 1416 of file RedfishPlatformConfigImpl.c.

◆ HiiDeleteString()

EFI_STATUS HiiDeleteString ( IN EFI_STRING_ID  StringId,
IN EFI_HII_HANDLE  HiiHandle 
)

Delete a string from HII Package List by given HiiHandle.

Parameters
[in]StringIdId of the string in HII database.
[in]HiiHandleThe HII package list handle.
Return values
EFI_SUCCESSThe string was deleted successfully.
EFI_INVALID_PARAMETERStringId is zero.

Definition at line 240 of file RedfishPlatformConfigImpl.c.

◆ HiiGetEnglishAsciiString()

CHAR8 * HiiGetEnglishAsciiString ( IN EFI_HII_HANDLE  HiiHandle,
IN EFI_STRING_ID  StringId 
)

Get ASCII string from HII database in English language. The returned string is allocated using AllocatePool(). The caller is responsible for freeing the allocated buffer using FreePool().

Parameters
[in]HiiHandleA handle that was previously registered in the HII Database.
[in]StringIdThe identifier of the string to retrieved from the string package associated with HiiHandle.
Return values
NULLThe string specified by StringId is not present in the string package.
OtherThe string was returned.

Definition at line 401 of file RedfishPlatformConfigImpl.c.

◆ HiiGetRedfishAsciiString()

CHAR8 * HiiGetRedfishAsciiString ( IN EFI_HII_HANDLE  HiiHandle,
IN CHAR8 *  Language,
IN EFI_STRING_ID  StringId 
)

Retrieves a ASCII string from a string package in a given language. The returned string is allocated using AllocatePool(). The caller is responsible for freeing the allocated buffer using FreePool().

If HiiHandle is NULL, then ASSERT(). If StringId is 0, then ASSET.

Parameters
[in]HiiHandleA handle that was previously registered in the HII Database.
[in]LanguageThe specified configure language to get string.
[in]StringIdThe identifier of the string to retrieved from the string package associated with HiiHandle.
Return values
NULLThe string specified by StringId is not present in the string package.
OtherThe string was returned.

Definition at line 366 of file RedfishPlatformConfigImpl.c.

◆ HiiGetRedfishString()

EFI_STRING HiiGetRedfishString ( IN EFI_HII_HANDLE  HiiHandle,
IN CHAR8 *  Language,
IN EFI_STRING_ID  StringId 
)

Retrieves a unicode string from a string package in a given language. The returned string is allocated using AllocatePool(). The caller is responsible for freeing the allocated buffer using FreePool().

If HiiHandle is NULL, then ASSERT(). If StringId is 0, then ASSET.

Parameters
[in]HiiHandleA handle that was previously registered in the HII Database.
[in]LanguageThe specified configure language to get string.
[in]StringIdThe identifier of the string to retrieved from the string package associated with HiiHandle.
Return values
NULLThe string specified by StringId is not present in the string package.
OtherThe string was returned.

Definition at line 275 of file RedfishPlatformConfigImpl.c.

◆ HiiStrCmp()

INTN EFIAPI HiiStrCmp ( IN CONST CHAR16 *  FirstString,
IN CONST CHAR16 *  SecondString 
)

Compare two HII strings. We don't check word alignment of the input string as same as the checking in StrLen function, because the HII string in the database is compact at the byte alignment.

Parameters
[in]FirstStringInput UCS format of string to search.
[in]SecondStringInput UCS format of string to look for in FirstString;
Return values
0The strings are identical. !0 The strings are not identical.

Definition at line 210 of file RedfishPlatformConfigImpl.c.

◆ HiiStrLen()

UINTN EFIAPI HiiStrLen ( IN CONST CHAR16 *  String)

Return the HII string length. We don't check word alignment of the input string as same as the checking in StrLen function, because the HII string in the database is compact at the byte alignment.

Parameters
[in]StringInput UCS format string.
Return values
Lengthof the string.

Definition at line 160 of file RedfishPlatformConfigImpl.c.

◆ HiiStrSize()

UINTN EFIAPI HiiStrSize ( IN CONST CHAR16 *  String)

Return the HII string size. We don't check word alignment of the input string as same as the checking in StrLen function, because the HII string in the database is compact at the byte alignment.

Parameters
[in]StringInput UCS format string.
Return values
Sizeof the string.

Definition at line 187 of file RedfishPlatformConfigImpl.c.

◆ LoadFormset()

EFI_STATUS LoadFormset ( IN EFI_HII_HANDLE  HiiHandle,
OUT REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate 
)

Load the HII formset from the given HII handle.

Parameters
[in]HiiHandleTarget HII handle to load.
[out]FormsetPrivateThe formset private data.
Return values
EFI_STATUSThe formset is loaded successfully.
EFI_UNSUPPORTEDThis formset doesn't have any x-UEFI-redfish configuration.

Definition at line 1606 of file RedfishPlatformConfigImpl.c.

◆ LoadFormsetList()

EFI_STATUS LoadFormsetList ( IN EFI_HII_HANDLE HiiHandle,
OUT LIST_ENTRY FormsetList 
)

Load formset list on given HII handle.

Parameters
[in]HiiHandleHII handle to load formset list.
[out]FormsetListPointer to formset list returned on given handle.
Return values
EFI_STATUS

Definition at line 1809 of file RedfishPlatformConfigImpl.c.

◆ NewFormsetPrivate()

REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE * NewFormsetPrivate ( VOID  )

Create new form-set instance.

Return values
REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE* Pointer to newly created form-set private instance.

Definition at line 971 of file RedfishPlatformConfigImpl.c.

◆ NewRedfishXuefiStringArray()

EFI_STATUS NewRedfishXuefiStringArray ( IN REDFISH_X_UEFI_STRING_DATABASE XuefiRedfishStringDatabase)

Create new x-UEFI-redfish string array.

Parameters
[in]XuefiRedfishStringDatabaseThe x-UEFI-redfish string database.
Return values
EFI_OUT_OF_RESOURCESNot enough memory for creating a new array. EFI_SUCCESS New array is created successfully.

Definition at line 1001 of file RedfishPlatformConfigImpl.c.

◆ NotifyFormsetDeleted()

EFI_STATUS NotifyFormsetDeleted ( IN EFI_HII_HANDLE HiiHandle,
IN LIST_ENTRY PendingList 
)

When HII database is updated and form-set is deleted. Keep deleted HII handle into pending list so we can process them later.

Parameters
[in]HiiHandleHII handle instance.
[in]PendingListPending list to keep HII handle which is recently updated.
Return values
EFI_SUCCESSHII handle is saved in pending list.
EFI_INVALID_PARAMETERHiiHandle is NULL or PendingList is NULL.
EFI_OUT_OF_RESOURCESSystem is out of memory.

Definition at line 2006 of file RedfishPlatformConfigImpl.c.

◆ NotifyFormsetUpdate()

EFI_STATUS NotifyFormsetUpdate ( IN EFI_HII_HANDLE HiiHandle,
IN LIST_ENTRY PendingList 
)

When HII database is updated. Keep updated HII handle into pending list so we can process them later.

Parameters
[in]HiiHandleHII handle instance.
[in]PendingListPending list to keep HII handle which is recently updated.
Return values
EFI_SUCCESSHII handle is saved in pending list.
EFI_INVALID_PARAMETERHiiHandle is NULL or PendingList is NULL.
EFI_OUT_OF_RESOURCESSystem is out of memory.

Definition at line 1953 of file RedfishPlatformConfigImpl.c.

◆ ProcessPendingList()

EFI_STATUS ProcessPendingList ( IN LIST_ENTRY FormsetList,
IN LIST_ENTRY PendingList 
)

There are HII database update and we need to process them accordingly so that we won't use stale data. This function will parse updated HII handle again in order to get updated data-set.

Parameters
[in]FormsetListList to keep HII form-set.
[in]PendingListList to keep HII handle that is updated.
Return values
EFI_SUCCESSHII handle is saved in pending list.
EFI_INVALID_PARAMETERFormsetList is NULL or PendingList is NULL.

Definition at line 2059 of file RedfishPlatformConfigImpl.c.

◆ RedfishXuefiStringAdjustArrays()

EFI_STATUS RedfishXuefiStringAdjustArrays ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate,
IN REDFISH_X_UEFI_STRING_DATABASE XuefiRedfishStringDatabase,
IN EFI_STRING_ID  StringId 
)

Check and allocate a new x-UEFI-redfish array if it is insufficient for the newly added x-UEFI-redfish string.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
[in]XuefiRedfishStringDatabasePointer to the x-UEFI-redfish database.
[in]StringIdString ID added to database.
Return values
EFI_SUCCESSThe size of x-UEFI-string array is adjusted or is not required to be adjusted. Otherwise, refer to the error code returned from NewRedfishXuefiStringArray().

Definition at line 1117 of file RedfishPlatformConfigImpl.c.

◆ RedfishXuefiStringInsertDatabase()

EFI_STATUS RedfishXuefiStringInsertDatabase ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate,
IN EFI_HII_STRING_PACKAGE_HDR HiiStringPackageHeader,
IN EFI_STRING_ID  StringId,
IN CHAR16 *  StringTextPtr 
)

Insert a x-UEFI-redfish string to database.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
[in]HiiStringPackageHeaderPointer to HII string package.
[in]StringIdThe HII string ID
[in]StringTextPtrPointer to HII string text.
Return values
EFI_SUCCESSThe HII string is added to database. EFI_LOAD_ERROR Something wrong when insert an HII string to database.

Definition at line 1150 of file RedfishPlatformConfigImpl.c.

◆ ReleaseFormset()

EFI_STATUS ReleaseFormset ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate)

Release formset and all the forms and statements that belong to this formset.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
Return values
EFI_STATUS

Definition at line 894 of file RedfishPlatformConfigImpl.c.

◆ ReleaseFormsetList()

EFI_STATUS ReleaseFormsetList ( IN LIST_ENTRY FormsetList)

Release formset list and all the forms that belong to this formset.

Parameters
[in]FormsetListPointer to formset list that needs to be released.
Return values
EFI_STATUS

Definition at line 1867 of file RedfishPlatformConfigImpl.c.

◆ ReleaseStatementList()

EFI_STATUS ReleaseStatementList ( IN REDFISH_PLATFORM_CONFIG_STATEMENT_PRIVATE_LIST StatementList)

Release all resource in statement list.

Parameters
[in]StatementListStatement list to be released.
Return values
EFI_SUCCESSAll resource are released.
EFI_INVALID_PARAMETERStatementList is NULL.

Definition at line 2143 of file RedfishPlatformConfigImpl.c.

◆ ReleaseXuefiStringDatabase()

EFI_STATUS ReleaseXuefiStringDatabase ( IN REDFISH_PLATFORM_CONFIG_FORM_SET_PRIVATE FormsetPrivate)

Release x-UEFI-string related information.

Parameters
[in]FormsetPrivatePointer to HII form-set private instance.
Return values
EFI_STATUS

Definition at line 830 of file RedfishPlatformConfigImpl.c.

Variable Documentation

◆ mRedfishPlatformConfigPrivate

REDFISH_PLATFORM_CONFIG_PRIVATE* mRedfishPlatformConfigPrivate
extern

Definition at line 15 of file RedfishPlatformConfigDxe.c.