TianoCore EDK2 master
Loading...
Searching...
No Matches
PiPcd.h
Go to the documentation of this file.
1
22#ifndef __PI_PCD_H__
23#define __PI_PCD_H__
24
25extern EFI_GUID gEfiPcdProtocolGuid;
26
27#define EFI_PCD_PROTOCOL_GUID \
28 { 0x13a3f0f6, 0x264a, 0x3ef0, { 0xf2, 0xe0, 0xde, 0xc5, 0x12, 0x34, 0x2f, 0x34 } }
29
30#define EFI_PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
31
47typedef
48VOID
50 IN UINTN SkuId
51 );
52
62typedef
63UINT8
65 IN CONST EFI_GUID *Guid,
66 IN UINTN TokenNumber
67 );
68
78typedef
79UINT16
81 IN CONST EFI_GUID *Guid,
82 IN UINTN TokenNumber
83 );
84
94typedef
95UINT32
97 IN CONST EFI_GUID *Guid,
98 IN UINTN TokenNumber
99 );
100
111typedef
112UINT64
114 IN CONST EFI_GUID *Guid,
115 IN UINTN TokenNumber
116 );
117
128typedef
129VOID *
131 IN CONST EFI_GUID *Guid,
132 IN UINTN TokenNumber
133 );
134
144typedef
145BOOLEAN
147 IN CONST EFI_GUID *Guid,
148 IN UINTN TokenNumber
149 );
150
160typedef
163 IN CONST EFI_GUID *Guid,
164 IN UINTN TokenNumber
165 );
166
183typedef
185(EFIAPI *EFI_PCD_PROTOCOL_SET_8)(
186 IN CONST EFI_GUID *Guid,
187 IN UINTN TokenNumber,
188 IN UINT8 Value
189 );
190
207typedef
210 IN CONST EFI_GUID *Guid,
211 IN UINTN TokenNumber,
212 IN UINT16 Value
213 );
214
231typedef
234 IN CONST EFI_GUID *Guid,
235 IN UINTN TokenNumber,
236 IN UINT32 Value
237 );
238
255typedef
258 IN CONST EFI_GUID *Guid,
259 IN UINTN TokenNumber,
260 IN UINT64 Value
261 );
262
282typedef
285 IN CONST EFI_GUID *Guid,
286 IN UINTN TokenNumber,
287 IN OUT UINTN *SizeOfValue,
288 IN VOID *Buffer
289 );
290
307typedef
310 IN CONST EFI_GUID *Guid,
311 IN UINTN TokenNumber,
312 IN BOOLEAN Value
313 );
314
315typedef
316VOID
317(EFIAPI *EFI_PCD_PROTOCOL_CALLBACK)(
318 IN EFI_GUID *Guid OPTIONAL,
319 IN UINTN CallBackToken,
320 IN OUT VOID *TokenData,
321 IN UINTN TokenDataSize
322 );
323
334typedef
338 IN UINTN CallBackToken,
339 IN EFI_PCD_PROTOCOL_CALLBACK CallBackFunction
340 );
341
352typedef
356 IN UINTN CallBackToken,
357 IN EFI_PCD_PROTOCOL_CALLBACK CallBackFunction
358 );
359
371typedef
375 IN UINTN *TokenNumber
376 );
377
391typedef
394 IN OUT CONST EFI_GUID **Guid
395 );
396
397typedef struct _EFI_PCD_PROTOCOL {
417
418#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_GET_NEXT_TOKEN_SPACE)(IN OUT CONST EFI_GUID **Guid)
Definition: PiPcd.h:393
VOID *(EFIAPI * EFI_PCD_PROTOCOL_GET_POINTER)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:130
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_SET_32)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT32 Value)
Definition: PiPcd.h:233
UINT16(EFIAPI * EFI_PCD_PROTOCOL_GET_16)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:80
UINTN(EFIAPI * EFI_PCD_PROTOCOL_GET_SIZE)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:162
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_SET_8)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT8 Value)
Definition: PiPcd.h:185
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_CANCEL_CALLBACK)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN CallBackToken, IN EFI_PCD_PROTOCOL_CALLBACK CallBackFunction)
Definition: PiPcd.h:354
BOOLEAN(EFIAPI * EFI_PCD_PROTOCOL_GET_BOOLEAN)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:146
VOID(EFIAPI * EFI_PCD_PROTOCOL_SET_SKU)(IN UINTN SkuId)
Definition: PiPcd.h:49
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_SET_16)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT16 Value)
Definition: PiPcd.h:209
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_SET_POINTER)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN OUT UINTN *SizeOfValue, IN VOID *Buffer)
Definition: PiPcd.h:284
UINT64(EFIAPI * EFI_PCD_PROTOCOL_GET_64)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:113
UINT32(EFIAPI * EFI_PCD_PROTOCOL_GET_32)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:96
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_GET_NEXT_TOKEN)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN *TokenNumber)
Definition: PiPcd.h:373
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_SET_BOOLEAN)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN BOOLEAN Value)
Definition: PiPcd.h:309
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_SET_64)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT64 Value)
Definition: PiPcd.h:257
UINT8(EFIAPI * EFI_PCD_PROTOCOL_GET_8)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: PiPcd.h:64
EFI_STATUS(EFIAPI * EFI_PCD_PROTOCOL_CALLBACK_ON_SET)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN CallBackToken, IN EFI_PCD_PROTOCOL_CALLBACK CallBackFunction)
Definition: PiPcd.h:336
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213