TianoCore EDK2 master
Loading...
Searching...
No Matches
Pcd.h
Go to the documentation of this file.
1
14#ifndef __PCD_PPI_H__
15#define __PCD_PPI_H__
16
17#define PCD_PPI_GUID \
18 { 0x6e81c58, 0x4ad7, 0x44bc, { 0x83, 0x90, 0xf1, 0x2, 0x65, 0xf7, 0x24, 0x80 } }
19
20#define PCD_INVALID_TOKEN_NUMBER ((UINTN) 0)
21
45typedef
46VOID
47(EFIAPI *PCD_PPI_SET_SKU)(
48 IN UINTN SkuId
49 );
50
62typedef
63UINT8
64(EFIAPI *PCD_PPI_GET8)(
65 IN UINTN TokenNumber
66 );
67
79typedef
80UINT16
81(EFIAPI *PCD_PPI_GET16)(
82 IN UINTN TokenNumber
83 );
84
96typedef
97UINT32
98(EFIAPI *PCD_PPI_GET32)(
99 IN UINTN TokenNumber
100 );
101
113typedef
114UINT64
115(EFIAPI *PCD_PPI_GET64)(
116 IN UINTN TokenNumber
117 );
118
132typedef
133VOID *
134(EFIAPI *PCD_PPI_GET_POINTER)(
135 IN UINTN TokenNumber
136 );
137
151typedef
152BOOLEAN
153(EFIAPI *PCD_PPI_GET_BOOLEAN)(
154 IN UINTN TokenNumber
155 );
156
168typedef
170(EFIAPI *PCD_PPI_GET_SIZE)(
171 IN UINTN TokenNumber
172 );
173
188typedef
189UINT8
190(EFIAPI *PCD_PPI_GET_EX_8)(
191 IN CONST EFI_GUID *Guid,
192 IN UINTN TokenNumber
193 );
194
209typedef
210UINT16
211(EFIAPI *PCD_PPI_GET_EX_16)(
212 IN CONST EFI_GUID *Guid,
213 IN UINTN TokenNumber
214 );
215
230typedef
231UINT32
232(EFIAPI *PCD_PPI_GET_EX_32)(
233 IN CONST EFI_GUID *Guid,
234 IN UINTN TokenNumber
235 );
236
251typedef
252UINT64
253(EFIAPI *PCD_PPI_GET_EX_64)(
254 IN CONST EFI_GUID *Guid,
255 IN UINTN TokenNumber
256 );
257
272typedef
273VOID *
274(EFIAPI *PCD_PPI_GET_EX_POINTER)(
275 IN CONST EFI_GUID *Guid,
276 IN UINTN TokenNumber
277 );
278
293typedef
294BOOLEAN
295(EFIAPI *PCD_PPI_GET_EX_BOOLEAN)(
296 IN CONST EFI_GUID *Guid,
297 IN UINTN TokenNumber
298 );
299
312typedef
314(EFIAPI *PCD_PPI_GET_EX_SIZE)(
315 IN CONST EFI_GUID *Guid,
316 IN UINTN TokenNumber
317 );
318
336typedef
338(EFIAPI *PCD_PPI_SET8)(
339 IN UINTN TokenNumber,
340 IN UINT8 Value
341 );
342
360typedef
362(EFIAPI *PCD_PPI_SET16)(
363 IN UINTN TokenNumber,
364 IN UINT16 Value
365 );
366
384typedef
386(EFIAPI *PCD_PPI_SET32)(
387 IN UINTN TokenNumber,
388 IN UINT32 Value
389 );
390
408typedef
410(EFIAPI *PCD_PPI_SET64)(
411 IN UINTN TokenNumber,
412 IN UINT64 Value
413 );
414
436typedef
438(EFIAPI *PCD_PPI_SET_POINTER)(
439 IN UINTN TokenNumber,
440 IN OUT UINTN *SizeOfValue,
441 IN VOID *Buffer
442 );
443
461typedef
463(EFIAPI *PCD_PPI_SET_BOOLEAN)(
464 IN UINTN TokenNumber,
465 IN BOOLEAN Value
466 );
467
486typedef
488(EFIAPI *PCD_PPI_SET_EX_8)(
489 IN CONST EFI_GUID *Guid,
490 IN UINTN TokenNumber,
491 IN UINT8 Value
492 );
493
512typedef
514(EFIAPI *PCD_PPI_SET_EX_16)(
515 IN CONST EFI_GUID *Guid,
516 IN UINTN TokenNumber,
517 IN UINT16 Value
518 );
519
538typedef
540(EFIAPI *PCD_PPI_SET_EX_32)(
541 IN CONST EFI_GUID *Guid,
542 IN UINTN TokenNumber,
543 IN UINT32 Value
544 );
545
564typedef
566(EFIAPI *PCD_PPI_SET_EX_64)(
567 IN CONST EFI_GUID *Guid,
568 IN UINTN TokenNumber,
569 IN UINT64 Value
570 );
571
594typedef
596(EFIAPI *PCD_PPI_SET_EX_POINTER)(
597 IN CONST EFI_GUID *Guid,
598 IN UINTN TokenNumber,
599 IN OUT UINTN *SizeOfValue,
600 IN VOID *Buffer
601 );
602
621typedef
623(EFIAPI *PCD_PPI_SET_EX_BOOLEAN)(
624 IN CONST EFI_GUID *Guid,
625 IN UINTN TokenNumber,
626 IN BOOLEAN Value
627 );
628
647typedef
648VOID
649(EFIAPI *PCD_PPI_CALLBACK)(
650 IN CONST EFI_GUID *CallBackGuid OPTIONAL,
651 IN UINTN CallBackToken,
652 IN OUT VOID *TokenData,
653 IN UINTN TokenDataSize
654 );
655
668typedef
670(EFIAPI *PCD_PPI_CALLBACK_ONSET)(
672 IN UINTN TokenNumber,
673 IN PCD_PPI_CALLBACK CallBackFunction
674 );
675
688typedef
692 IN UINTN TokenNumber,
693 IN PCD_PPI_CALLBACK CallBackFunction
694 );
695
721typedef
723(EFIAPI *PCD_PPI_GET_NEXT_TOKEN)(
725 IN OUT UINTN *TokenNumber
726 );
727
744typedef
747 IN OUT CONST EFI_GUID **Guid
748 );
749
753typedef struct {
754 PCD_PPI_SET_SKU SetSku;
755
756 PCD_PPI_GET8 Get8;
757 PCD_PPI_GET16 Get16;
758 PCD_PPI_GET32 Get32;
759 PCD_PPI_GET64 Get64;
760 PCD_PPI_GET_POINTER GetPtr;
761 PCD_PPI_GET_BOOLEAN GetBool;
762 PCD_PPI_GET_SIZE GetSize;
763
764 PCD_PPI_GET_EX_8 Get8Ex;
765 PCD_PPI_GET_EX_16 Get16Ex;
766 PCD_PPI_GET_EX_32 Get32Ex;
767 PCD_PPI_GET_EX_64 Get64Ex;
768 PCD_PPI_GET_EX_POINTER GetPtrEx;
769 PCD_PPI_GET_EX_BOOLEAN GetBoolEx;
770 PCD_PPI_GET_EX_SIZE GetSizeEx;
771
772 PCD_PPI_SET8 Set8;
773 PCD_PPI_SET16 Set16;
774 PCD_PPI_SET32 Set32;
775 PCD_PPI_SET64 Set64;
776 PCD_PPI_SET_POINTER SetPtr;
777 PCD_PPI_SET_BOOLEAN SetBool;
778
779 PCD_PPI_SET_EX_8 Set8Ex;
780 PCD_PPI_SET_EX_16 Set16Ex;
781 PCD_PPI_SET_EX_32 Set32Ex;
782 PCD_PPI_SET_EX_64 Set64Ex;
783 PCD_PPI_SET_EX_POINTER SetPtrEx;
784 PCD_PPI_SET_EX_BOOLEAN SetBoolEx;
785
786 PCD_PPI_CALLBACK_ONSET CallbackOnSet;
787 PCD_PPI_CANCEL_CALLBACK CancelCallback;
788 PCD_PPI_GET_NEXT_TOKEN GetNextToken;
789 PCD_PPI_GET_NEXT_TOKENSPACE GetNextTokenSpace;
790} PCD_PPI;
791
792extern EFI_GUID gPcdPpiGuid;
793
794#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
VOID *(EFIAPI * PCD_PPI_GET_POINTER)(IN UINTN TokenNumber)
Definition: Pcd.h:134
EFI_STATUS(EFIAPI * PCD_PPI_SET16)(IN UINTN TokenNumber, IN UINT16 Value)
Definition: Pcd.h:362
EFI_STATUS(EFIAPI * PCD_PPI_SET_EX_POINTER)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN OUT UINTN *SizeOfValue, IN VOID *Buffer)
Definition: Pcd.h:596
EFI_STATUS(EFIAPI * PCD_PPI_CANCEL_CALLBACK)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PPI_CALLBACK CallBackFunction)
Definition: Pcd.h:690
UINT16(EFIAPI * PCD_PPI_GET_EX_16)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:211
EFI_STATUS(EFIAPI * PCD_PPI_SET_POINTER)(IN UINTN TokenNumber, IN OUT UINTN *SizeOfValue, IN VOID *Buffer)
Definition: Pcd.h:438
UINT32(EFIAPI * PCD_PPI_GET_EX_32)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:232
EFI_STATUS(EFIAPI * PCD_PPI_SET_EX_64)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT64 Value)
Definition: Pcd.h:566
EFI_STATUS(EFIAPI * PCD_PPI_GET_NEXT_TOKEN)(IN CONST EFI_GUID *Guid OPTIONAL, IN OUT UINTN *TokenNumber)
Definition: Pcd.h:723
BOOLEAN(EFIAPI * PCD_PPI_GET_BOOLEAN)(IN UINTN TokenNumber)
Definition: Pcd.h:153
EFI_STATUS(EFIAPI * PCD_PPI_SET32)(IN UINTN TokenNumber, IN UINT32 Value)
Definition: Pcd.h:386
EFI_STATUS(EFIAPI * PCD_PPI_GET_NEXT_TOKENSPACE)(IN OUT CONST EFI_GUID **Guid)
Definition: Pcd.h:746
UINT16(EFIAPI * PCD_PPI_GET16)(IN UINTN TokenNumber)
Definition: Pcd.h:81
EFI_STATUS(EFIAPI * PCD_PPI_SET_EX_16)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT16 Value)
Definition: Pcd.h:514
UINT8(EFIAPI * PCD_PPI_GET8)(IN UINTN TokenNumber)
Definition: Pcd.h:64
EFI_STATUS(EFIAPI * PCD_PPI_SET_EX_8)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT8 Value)
Definition: Pcd.h:488
EFI_STATUS(EFIAPI * PCD_PPI_SET_BOOLEAN)(IN UINTN TokenNumber, IN BOOLEAN Value)
Definition: Pcd.h:463
EFI_STATUS(EFIAPI * PCD_PPI_SET64)(IN UINTN TokenNumber, IN UINT64 Value)
Definition: Pcd.h:410
BOOLEAN(EFIAPI * PCD_PPI_GET_EX_BOOLEAN)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:295
VOID *(EFIAPI * PCD_PPI_GET_EX_POINTER)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:274
UINT64(EFIAPI * PCD_PPI_GET64)(IN UINTN TokenNumber)
Definition: Pcd.h:115
EFI_STATUS(EFIAPI * PCD_PPI_CALLBACK_ONSET)(IN CONST EFI_GUID *Guid OPTIONAL, IN UINTN TokenNumber, IN PCD_PPI_CALLBACK CallBackFunction)
Definition: Pcd.h:670
VOID(EFIAPI * PCD_PPI_CALLBACK)(IN CONST EFI_GUID *CallBackGuid OPTIONAL, IN UINTN CallBackToken, IN OUT VOID *TokenData, IN UINTN TokenDataSize)
Definition: Pcd.h:649
UINTN(EFIAPI * PCD_PPI_GET_SIZE)(IN UINTN TokenNumber)
Definition: Pcd.h:170
UINT8(EFIAPI * PCD_PPI_GET_EX_8)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:190
UINTN(EFIAPI * PCD_PPI_GET_EX_SIZE)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:314
UINT64(EFIAPI * PCD_PPI_GET_EX_64)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber)
Definition: Pcd.h:253
EFI_STATUS(EFIAPI * PCD_PPI_SET8)(IN UINTN TokenNumber, IN UINT8 Value)
Definition: Pcd.h:338
EFI_STATUS(EFIAPI * PCD_PPI_SET_EX_BOOLEAN)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN BOOLEAN Value)
Definition: Pcd.h:623
VOID(EFIAPI * PCD_PPI_SET_SKU)(IN UINTN SkuId)
Definition: Pcd.h:47
UINT32(EFIAPI * PCD_PPI_GET32)(IN UINTN TokenNumber)
Definition: Pcd.h:98
EFI_STATUS(EFIAPI * PCD_PPI_SET_EX_32)(IN CONST EFI_GUID *Guid, IN UINTN TokenNumber, IN UINT32 Value)
Definition: Pcd.h:540
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213
Definition: Pcd.h:753