From c36b0b56082db6c55bfdb960204bbc65fdf43052 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Mon, 1 Aug 2022 12:40:18 +0300 Subject: Add declarations for all PCD functions Signed-off-by: Konstantin Aladyshev --- Lessons/Lesson_25/README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'Lessons') diff --git a/Lessons/Lesson_25/README.md b/Lessons/Lesson_25/README.md index 1c8035c..c91bd67 100644 --- a/Lessons/Lesson_25/README.md +++ b/Lessons/Lesson_25/README.md @@ -1,3 +1,48 @@ +Here is all the PCD functions. You can find their definition in the [https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PcdLib.h](https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Library/PcdLib.h): +``` +FixedPcdGetBool (TokenName) +FixedPcdGet8 (TokenName) +FixedPcdGet16 (TokenName) +FixedPcdGet32 (TokenName) +FixedPcdGet64 (TokenName) +FixedPcdGetPtr (TokenName) +FixedPcdGetSize (TokenName) + +---------------------------------------------------------------------------------------------------- + +FeaturePcdGet (TokenName) + +---------------------------------------------------------------------------------------------------- + +PatchPcdGetBool (TokenName) PatchPcdSetBool (TokenName, Value) +PatchPcdGet8 (TokenName) PatchPcdSet8 (TokenName, Value) +PatchPcdGet16 (TokenName) PatchPcdSet16 (TokenName, Value) +PatchPcdGet32 (TokenName) PatchPcdSet32 (TokenName, Value) +PatchPcdGet64 (TokenName) PatchPcdSet64 (TokenName, Value) +PatchPcdGetPtr (TokenName) PatchPcdSetPtr (TokenName, Size, Buffer) +PatchPcdGetSize (TokenName) + +---------------------------------------------------------------------------------------------------- + +PcdGetBool (TokenName) PcdSetBoolS (TokenName, Value) +PcdGet8 (TokenName) PcdSet8S (TokenName, Value) +PcdGet16 (TokenName) PcdSet16S (TokenName, Value) +PcdGet32 (TokenName) PcdSet32S (TokenName, Value) +PcdGet64 (TokenName) PcdSet64S (TokenName, Value) +PcdGetPtr (TokenName) PcdSetPtrS (TokenName, SizeOfBuffer, Buffer) +PcdGetSize (TokenName) + +---------------------------------------------------------------------------------------------------- + +PcdGetExBool (Guid, TokenName) PcdSetExBoolS (Guid, TokenName, Value) +PcdGetEx8 (Guid, TokenName) PcdSetEx8S (Guid, TokenName, Value) +PcdGetEx16 (Guid, TokenName) PcdSetEx16S (Guid, TokenName, Value) +PcdGetEx32 (Guid, TokenName) PcdSetEx32S (Guid, TokenName, Value) +PcdGetEx64 (Guid, TokenName) PcdSetEx64S (Guid, TokenName, Value) +PcdGetExPtr (Guid, TokenName) PcdSetExPtrS (Guid, TokenName, SizeOfBuffer, Buffer) +PcdGetExSize (Guid, TokenName) +``` + Summary table: | | Fixed at build | Feature Flag | Patchable | Dynamic | DynamicEx | -- cgit v1.2.3-18-g5258