52 return EFI_INVALID_PARAMETER;
57 return EFI_BUFFER_TOO_SMALL;
61 TokenMapDesc->
Token = Token;
64 CmObjDesc->
Size = Size;
67 CmObjDesc->
Data = Data;
114 (CmObjDesc ==
NULL) ||
119 return EFI_INVALID_PARAMETER;
124 for (Index = 0; Index < MaxCount; Index++) {
126 (TokenMapDesc->
Token == Token))
142 "INFO: Requested CmObj of type 0x%x with token 0x%x"
143 " not found in the dynamic repository\n.",
147 return EFI_NOT_FOUND;
168 return EFI_INVALID_PARAMETER;
172 if (DescriptorCount == 0) {
177 DEBUG ((DEBUG_ERROR,
"ERROR: Token mapper already initialised\n."));
179 return EFI_ALREADY_STARTED;
186 return EFI_OUT_OF_RESOURCES;
217 return EFI_INVALID_PARAMETER;
struct CmArchCommonObjRef CM_ARCH_COMMON_OBJ_REF
@ EArchCommonObjCmRef
7 - CM Object Reference
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
#define GET_CM_NAMESPACE_ID(CmObjectId)
#define GET_CM_OBJECT_ID(CmObjectId)
@ EObjNameSpaceArchCommon
Arch Common Objects Namespace.
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
#define DEBUG(Expression)
EFI_STATUS EFIAPI TokenMapperInitialise(IN TOKEN_MAPPER *TokenMapper, IN UINTN DescriptorCount)
EFI_STATUS EFIAPI TokenMapperGetObject(IN TOKEN_MAPPER *TokenMapper, IN CM_OBJECT_TOKEN Token, IN CM_OBJECT_ID ObjectId, OUT CM_OBJ_DESCRIPTOR *CmObjDesc)
EFI_STATUS EFIAPI TokenMapperShutdown(IN TOKEN_MAPPER *TokenMapper)
EFI_STATUS EFIAPI TokenMapperAddObject(IN TOKEN_MAPPER *TokenMapper, IN CM_OBJECT_TOKEN Token, IN CM_OBJECT_ID ObjectId, IN UINT32 Size, IN VOID *Data)
VOID * Data
Pointer to the described Object or Object List.
UINT32 Size
Size of the described Object or Object List.
UINT32 Count
Count of objects in the list.
CM_OBJECT_ID ObjectId
Object Id.
CM_OBJECT_TOKEN Token
Object Token.
CM_OBJ_DESCRIPTOR CmObjDesc
UINTN MaxTokenDescCount
Maximum number of TOKEN_MAP_DESCRIPTOR entries in TokenDescArray.
TOKEN_MAP_DESCRIPTOR * TokenDescArray
Array of TOKEN_MAP_DESCRIPTOR.
UINTN ItemCount
Next TOKEN_MAP_DESCRIPTOR entry to use in TokenDescArray.