diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2022-08-01 12:40:18 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2022-08-01 12:40:18 +0300 |
commit | c36b0b56082db6c55bfdb960204bbc65fdf43052 (patch) | |
tree | 2c7709caf059bac0364bbd1a56a3324420fcc006 /Lessons | |
parent | 8f9485bb2ac28765670bab711d522c85709164a4 (diff) | |
download | UEFI-Lessons-c36b0b56082db6c55bfdb960204bbc65fdf43052.tar.gz UEFI-Lessons-c36b0b56082db6c55bfdb960204bbc65fdf43052.tar.bz2 UEFI-Lessons-c36b0b56082db6c55bfdb960204bbc65fdf43052.zip |
Add declarations for all PCD functions
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons')
-rw-r--r-- | Lessons/Lesson_25/README.md | 45 |
1 files changed, 45 insertions, 0 deletions
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 | |