TianoCore EDK2 master
Loading...
Searching...
No Matches
Pcd.h
Go to the documentation of this file.
1
17#ifndef __PCD_H__
18#define __PCD_H__
19
20extern EFI_GUID gPcdProtocolGuid;
21
22#define PCD_PROTOCOL_GUID \
23 { 0x11b34006, 0xd85b, 0x4d0a, { 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0xe, 0xf7 } }
24
25#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
26
49typedef
50VOID
51(EFIAPI *PCD_PROTOCOL_SET_SKU)(
52 IN UINTN SkuId
53 );
54
66typedef
67UINT8
68(EFIAPI *PCD_PROTOCOL_GET8)(
69 IN UINTN TokenNumber
70 );
71
83typedef
84UINT16
85(EFIAPI *PCD_PROTOCOL_GET16)(
86 IN UINTN TokenNumber
87 );
88
100typedef
101UINT32
102(EFIAPI *PCD_PROTOCOL_GET32)(
103 IN UINTN TokenNumber
104 );
105
117typedef
118UINT64
119(EFIAPI *PCD_PROTOCOL_GET64)(
120 IN UINTN TokenNumber
121 );
122
136typedef
137VOID *
139 IN UINTN TokenNumber
140 );
141
155typedef
156BOOLEAN
158 IN UINTN TokenNumber
159 );
160
172typedef
174(EFIAPI *PCD_PROTOCOL_GET_SIZE)(
175 IN UINTN TokenNumber
176 );
177
192typedef
193UINT8
194(EFIAPI *PCD_PROTOCOL_GET_EX_8)(
195 IN CONST EFI_GUID *Guid,
196 IN UINTN TokenNumber
197 );
198
213typedef
214UINT16
215(EFIAPI *PCD_PROTOCOL_GET_EX_16)(
216 IN CONST EFI_GUID *Guid,
217 IN UINTN TokenNumber
218 );
219
234typedef
235UINT32
236(EFIAPI *PCD_PROTOCOL_GET_EX_32)(
237 IN CONST EFI_GUID *Guid,
238 IN UINTN TokenNumber
239 );
240
255typedef
256UINT64
257(EFIAPI *PCD_PROTOCOL_GET_EX_64)(
258 IN CONST EFI_GUID *Guid,
259 IN UINTN TokenNumber
260 );
261
276typedef
277VOID *
279 IN CONST EFI_GUID *Guid,
280 IN UINTN TokenNumber
281 );
282
297typedef
298BOOLEAN
300 IN CONST EFI_GUID *Guid,
301 IN UINTN TokenNumber
302 );
303
316typedef
319 IN CONST EFI_GUID *Guid,
320 IN UINTN TokenNumber
321 );
322
340typedef
342(EFIAPI *PCD_PROTOCOL_SET8)(
343 IN UINTN TokenNumber,
344 IN UINT8 Value
345 );
346
364typedef
366(EFIAPI *PCD_PROTOCOL_SET16)(
367 IN UINTN TokenNumber,
368 IN UINT16 Value
369 );
370
388typedef
390(EFIAPI *PCD_PROTOCOL_SET32)(
391 IN UINTN TokenNumber,
392 IN UINT32 Value
393 );
394
412typedef
414(EFIAPI *PCD_PROTOCOL_SET64)(
415 IN UINTN TokenNumber,
416 IN UINT64 Value
417 );
418
440typedef
443 IN UINTN TokenNumber,
444 IN OUT UINTN *SizeOfBuffer,
445 IN VOID *Buffer
446 );
447
465typedef
468 IN UINTN TokenNumber,
469 IN BOOLEAN Value
470 );
471
490typedef
492(EFIAPI *PCD_PROTOCOL_SET_EX_8)(
493 IN CONST EFI_GUID *Guid,
494 IN UINTN TokenNumber,
495 IN UINT8 Value
496 );
497
516typedef
518(EFIAPI *PCD_PROTOCOL_SET_EX_16)(
519 IN CONST EFI_GUID *Guid,
520 IN UINTN TokenNumber,
521 IN UINT16 Value
522 );
523
542typedef
544(EFIAPI *PCD_PROTOCOL_SET_EX_32)(
545 IN CONST EFI_GUID *Guid,
546 IN UINTN TokenNumber,
547 IN UINT32 Value
548 );
549
568typedef
570(EFIAPI *PCD_PROTOCOL_SET_EX_64)(
571 IN CONST EFI_GUID *Guid,
572 IN UINTN TokenNumber,
573 IN UINT64 Value
574 );
575
598typedef
601 IN CONST EFI_GUID *Guid,
602 IN UINTN TokenNumber,
603 IN OUT UINTN *SizeOfBuffer,
604 IN VOID *Buffer
605 );
606
625typedef
628 IN CONST EFI_GUID *Guid,
629 IN UINTN TokenNumber,
630 IN BOOLEAN Value
631 );
632
652typedef
653VOID
654(EFIAPI *PCD_PROTOCOL_CALLBACK)(
655 IN CONST EFI_GUID *CallBackGuid OPTIONAL,
656 IN UINTN CallBackToken,
657 IN OUT VOID *TokenData,
658 IN UINTN TokenDataSize
659 );
660
673typedef
677 IN UINTN TokenNumber,
678 IN PCD_PROTOCOL_CALLBACK CallBackFunction
679 );
680
693typedef
697 IN UINTN TokenNumber,
698 IN PCD_PROTOCOL_CALLBACK CallBackFunction
699 );
700
727typedef
731 IN OUT UINTN *TokenNumber
732 );
733
750typedef
753 IN OUT CONST EFI_GUID **Guid
754 );
755
759typedef struct {
761
763 PCD_PROTOCOL_GET16 Get16;
764 PCD_PROTOCOL_GET32 Get32;
765 PCD_PROTOCOL_GET64 Get64;
768 PCD_PROTOCOL_GET_SIZE GetSize;
769
776 PCD_PROTOCOL_GET_EX_SIZE GetSizeEx;
777
779 PCD_PROTOCOL_SET16 Set16;
780 PCD_PROTOCOL_SET32 Set32;
781 PCD_PROTOCOL_SET64 Set64;
784
791
792 PCD_PROTOCOL_CALLBACK_ONSET CallbackOnSet;
793 PCD_PROTOCOL_CANCEL_CALLBACK CancelCallback;
794 PCD_PROTOCOL_GET_NEXT_TOKEN GetNextToken;
795 PCD_PROTOCOL_GET_NEXT_TOKENSPACE GetNextTokenSpace;
797
798#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
UINT32(EFIAPI * PCD_PROTOCOL_GET32)(IN UINTN TokenNumber)
Definition: Pcd.h:102
UINT16(EFIAPI * PCD_PROTOCOL_GET16)(IN UINTN TokenNumber)
Definition: Pcd.h:85
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET64)(IN UINTN TokenNumber, IN UINT64 Value)
Definition: Pcd.h:414
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_POINTER)(IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
Definition: Pcd.h:442
UINT64(EFIAPI * PCD_PROTOCOL_GET64)(IN UINTN TokenNumber)
Definition: Pcd.h:119
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_BOOLEAN)(IN UINTN TokenNumber, IN BOOLEAN Value)
Definition: Pcd.h:467
UINTN(EFIAPI * PCD_PROTOCOL_GET_EX_SIZE)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:318
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET16)(IN UINTN TokenNumber, IN UINT16 Value)
Definition: Pcd.h:366
BOOLEAN(EFIAPI * PCD_PROTOCOL_GET_EX_BOOLEAN)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:299
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_EX_BOOLEAN)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN BOOLEAN Value)
Definition: Pcd.h:627
UINT8(EFIAPI * PCD_PROTOCOL_GET_EX_8)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:194
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_EX_POINTER)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN OUT UINTN *SizeOfBuffer, IN VOID *Buffer)
Definition: Pcd.h:600
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_EX_16)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT16 Value)
Definition: Pcd.h:518
UINT64(EFIAPI * PCD_PROTOCOL_GET_EX_64)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:257
UINT16(EFIAPI * PCD_PROTOCOL_GET_EX_16)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:215
VOID *(EFIAPI * PCD_PROTOCOL_GET_EX_POINTER)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:278
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_EX_32)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT32 Value)
Definition: Pcd.h:544
VOID *(EFIAPI * PCD_PROTOCOL_GET_POINTER)(IN UINTN TokenNumber)
Definition: Pcd.h:138
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET32)(IN UINTN TokenNumber, IN UINT32 Value)
Definition: Pcd.h:390
EFI_STATUS(EFIAPI * PCD_PROTOCOL_GET_NEXT_TOKEN)(IN CONST EFI_GUID *Guid OPTIONAL, IN OUT UINTN *TokenNumber)
Definition: Pcd.h:729
EFI_STATUS(EFIAPI * PCD_PROTOCOL_GET_NEXT_TOKENSPACE)(IN OUT CONST EFI_GUID **Guid)
Definition: Pcd.h:752
UINT32(EFIAPI * PCD_PROTOCOL_GET_EX_32)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:236
VOID(EFIAPI * PCD_PROTOCOL_SET_SKU)(IN UINTN SkuId)
Definition: Pcd.h:51
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET8)(IN UINTN TokenNumber, IN UINT8 Value)
Definition: Pcd.h:342
BOOLEAN(EFIAPI * PCD_PROTOCOL_GET_BOOLEAN)(IN UINTN TokenNumber)
Definition: Pcd.h:157
UINTN(EFIAPI * PCD_PROTOCOL_GET_SIZE)(IN UINTN TokenNumber)
Definition: Pcd.h:174
VOID(EFIAPI * PCD_PROTOCOL_CALLBACK)(IN CONST EFI_GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)
Definition: Pcd.h:654
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_EX_64)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT64 Value)
Definition: Pcd.h:570
UINT8(EFIAPI * PCD_PROTOCOL_GET8)(IN UINTN TokenNumber)
Definition: Pcd.h:68
EFI_STATUS(EFIAPI * PCD_PROTOCOL_SET_EX_8)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT8 Value)
Definition: Pcd.h:492
EFI_STATUS(EFIAPI * PCD_PROTOCOL_CANCEL_CALLBACK)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PROTOCOL_CALLBACK CallBackFunction)
Definition: Pcd.h:695
EFI_STATUS(EFIAPI * PCD_PROTOCOL_CALLBACK_ONSET)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PROTOCOL_CALLBACK CallBackFunction)
Definition: Pcd.h:675
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213