TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | CreateCmObjDesc (IN CM_OBJECT_ID ObjectId, IN UINT32 Count, IN VOID *Data, IN UINT32 Size, OUT CM_OBJ_DESCRIPTOR **NewCmObjDesc) |
EFI_STATUS EFIAPI | FreeCmObjDesc (IN CM_OBJ_DESCRIPTOR *CmObjDesc) |
EFI_STATUS EFIAPI | AddSingleCmObj (IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN CM_OBJECT_ID ObjectId, IN VOID *Data, IN UINT32 Size, OUT CM_OBJECT_TOKEN *Token OPTIONAL) |
EFI_STATUS EFIAPI | AddMultipleCmObj (IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN CONST CM_OBJ_DESCRIPTOR *CmObjDesc, IN UINT32 TokenCount, OPTIONAL OUT CM_OBJECT_TOKEN *TokenTable OPTIONAL) |
EFI_STATUS EFIAPI | AddMultipleCmObjWithCmObjRef (IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN CM_OBJ_DESCRIPTOR *CmObjDesc, OUT CM_OBJECT_TOKEN *Token) |
Configuration manager Object Descriptor Utility.
Copyright (c) 2021, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CmObjectDescUtility.h.
EFI_STATUS EFIAPI AddMultipleCmObj | ( | IN CONST FDT_HW_INFO_PARSER_HANDLE | FdtParserHandle, |
IN CONST CM_OBJ_DESCRIPTOR * | CmObjDesc, | ||
IN UINT32 | TokenCount, | ||
OPTIONAL OUT CM_OBJECT_TOKEN *TokenTable | OPTIONAL | ||
) |
Add multiple CmObj to the Configuration Manager.
[in] | FdtParserHandle | A handle to the parser instance. |
[in] | CmObjDesc | CmObjDesc containing multiple CmObj to add. |
[in] | TokenCount | If provided, count of entries in the TokenTable. |
[out] | TokenTable | If provided and success, token generated for these CmObj. Address of an array of CM_OBJECT_TOKEN with the same number of elements as the CmObjDesc. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Invalid parameter. |
Definition at line 167 of file CmObjectDescUtility.c.
EFI_STATUS EFIAPI AddMultipleCmObjWithCmObjRef | ( | IN CONST FDT_HW_INFO_PARSER_HANDLE | FdtParserHandle, |
IN CM_OBJ_DESCRIPTOR * | CmObjDesc, | ||
OUT CM_OBJECT_TOKEN * | Token | ||
) |
Add multiple CmObj to the Configuration Manager.
Get one token referencing a EArchCommonObjCmRef CmObj itself referencing the input CmObj. In the table below, RefToken is returned.
Token referencing an Array of tokens Array of CmObj array of EArchCommonObjCmRef referencing each from the input: CmObj: CmObj from the input:
RefToken —> CmObjToken[0] —> CmObj[0] CmObjToken[1] —> CmObj[1] CmObjToken[2] —> CmObj[2]
[in] | FdtParserHandle | A handle to the parser instance. |
[in] | CmObjDesc | CmObjDesc containing multiple CmObj to add. |
[out] | Token | If success, token referencing an array of EArchCommonObjCmRef CmObj, themselves referencing the input CmObjs. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Invalid parameter. |
EFI_OUT_OF_RESOURCES | An allocation has failed. |
Definition at line 246 of file CmObjectDescUtility.c.
EFI_STATUS EFIAPI AddSingleCmObj | ( | IN CONST FDT_HW_INFO_PARSER_HANDLE | FdtParserHandle, |
IN CM_OBJECT_ID | ObjectId, | ||
IN VOID * | Data, | ||
IN UINT32 | Size, | ||
OUT CM_OBJECT_TOKEN *Token | OPTIONAL | ||
) |
Add a single CmObj to the Configuration Manager.
[in] | FdtParserHandle | A handle to the parser instance. |
[in] | ObjectId | CmObj ObjectId. |
[in] | Data | CmObj Data. |
[in] | Size | CmObj Size. |
[out] | Token | If provided and success, token generated for this CmObj. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Invalid parameter. |
Definition at line 112 of file CmObjectDescUtility.c.
EFI_STATUS EFIAPI CreateCmObjDesc | ( | IN CM_OBJECT_ID | ObjectId, |
IN UINT32 | Count, | ||
IN VOID * | Data, | ||
IN UINT32 | Size, | ||
OUT CM_OBJ_DESCRIPTOR ** | NewCmObjDesc | ||
) |
Create a CM_OBJ_DESCRIPTOR.
[in] | ObjectId | CM_OBJECT_ID of the node. |
[in] | Count | Number of CmObj stored in the data field. |
[in] | Data | Pointer to one or more CmObj objects. The content of this Data buffer is copied. |
[in] | Size | Size of the Data buffer. |
[out] | NewCmObjDesc | The created CM_OBJ_DESCRIPTOR. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Invalid parameter. |
EFI_OUT_OF_RESOURCES | An allocation has failed. |
Definition at line 29 of file CmObjectDescUtility.c.
EFI_STATUS EFIAPI FreeCmObjDesc | ( | IN CM_OBJ_DESCRIPTOR * | CmObjDesc | ) |
Free resources allocated for the CM_OBJ_DESCRIPTOR.
[in] | CmObjDesc | Pointer to the CM_OBJ_DESCRIPTOR. |
EFI_SUCCESS | The function completed successfully. |
EFI_INVALID_PARAMETER | Invalid parameter. |
Definition at line 81 of file CmObjectDescUtility.c.