TianoCore EDK2 master
Loading...
Searching...
No Matches
TokenMapper.h
Go to the documentation of this file.
1
13#ifndef TOKEN_MAPPER_H_
14#define TOKEN_MAPPER_H_
15
16#pragma pack(1)
17
22typedef struct TokenMapDescriptor {
25
31
36typedef struct TokenMapper {
39
42
46
47#pragma pack()
48
63EFIAPI
66 IN CM_OBJECT_TOKEN Token,
67 IN CM_OBJECT_ID ObjectId,
68 IN UINT32 Size,
69 IN VOID *Data
70 );
71
86EFIAPI
89 IN CM_OBJECT_TOKEN Token,
90 IN CM_OBJECT_ID ObjectId,
91 OUT CM_OBJ_DESCRIPTOR *CmObjDesc
92 );
93
104EFIAPI
107 IN UINTN DescriptorCount
108 );
109
118EFIAPI
121 );
122
123#endif // TOKEN_MAPPER_H_
UINT64 UINTN
UINT32 CM_OBJECT_ID
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINTN CM_OBJECT_TOKEN
EFI_STATUS EFIAPI TokenMapperInitialise(IN TOKEN_MAPPER *TokenMapper, IN UINTN DescriptorCount)
Definition: TokenMapper.c:161
EFI_STATUS EFIAPI TokenMapperGetObject(IN TOKEN_MAPPER *TokenMapper, IN CM_OBJECT_TOKEN Token, IN CM_OBJECT_ID ObjectId, OUT CM_OBJ_DESCRIPTOR *CmObjDesc)
Definition: TokenMapper.c:97
struct TokenMapper TOKEN_MAPPER
EFI_STATUS EFIAPI TokenMapperShutdown(IN TOKEN_MAPPER *TokenMapper)
Definition: TokenMapper.c:204
EFI_STATUS EFIAPI TokenMapperAddObject(IN TOKEN_MAPPER *TokenMapper, IN CM_OBJECT_TOKEN Token, IN CM_OBJECT_ID ObjectId, IN UINT32 Size, IN VOID *Data)
Definition: TokenMapper.c:35
struct TokenMapDescriptor TOKEN_MAP_DESCRIPTOR
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
CM_OBJECT_TOKEN Token
Object Token.
Definition: TokenMapper.h:24
CM_OBJ_DESCRIPTOR CmObjDesc
Definition: TokenMapper.h:29
UINTN MaxTokenDescCount
Maximum number of TOKEN_MAP_DESCRIPTOR entries in TokenDescArray.
Definition: TokenMapper.h:38
TOKEN_MAP_DESCRIPTOR * TokenDescArray
Array of TOKEN_MAP_DESCRIPTOR.
Definition: TokenMapper.h:44
UINTN ItemCount
Next TOKEN_MAP_DESCRIPTOR entry to use in TokenDescArray.
Definition: TokenMapper.h:41