summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h5
-rw-r--r--MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c12
2 files changed, 14 insertions, 3 deletions
diff --git a/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h b/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h
index cbfa4f77b7..a154745dfd 100644
--- a/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h
+++ b/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h
@@ -134,6 +134,11 @@ IfrLibExtractClassFromHiiHandle (
/**
Configure the buffer accrording to ConfigBody strings in the format of
<Length:4 bytes>, <Offset: 2 bytes>, <Width:2 bytes>, <Data:n bytes>.
+ This ConfigBody strings is generated by UEFI VfrCompiler for the default
+ values in a Form Set. The name of the ConfigBody strings is VfrMyIfrNVDataDefault0000
+ constructed following this rule:
+ "Vfr" + varstore.name + "Default" + defaultstore.attributes.
+ Check the generated C file in Output for details.
@param Buffer the start address of buffer.
@param BufferSize the size of buffer.
diff --git a/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c b/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c
index 6e09117a57..e149d4ef1b 100644
--- a/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c
+++ b/MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c
@@ -47,7 +47,7 @@ GetPackageDataFromPackageList (
PackageHeader.Length = 0;
PackageHeader.Type = 0;
- ASSERT(HiiPackageList != NULL);
+ ASSERT (HiiPackageList != NULL);
if ((BufferLen == NULL) || (Buffer == NULL)) {
return EFI_INVALID_PARAMETER;
@@ -83,7 +83,7 @@ GetPackageDataFromPackageList (
a form specified by FormSetGuid, FormId and Label.
@param FormSetGuid The optional Formset GUID.
- @param FormId The form ID>
+ @param FormId The Form ID.
@param Package The package header.
@param PackageLength The package length.
@param Label The label for the update.
@@ -445,7 +445,13 @@ IfrLibUpdateForm (
/**
- Configure the buffer accrording to ConfigBody strings.
+ Configure the buffer accrording to ConfigBody strings in the format of
+ <Length:4 bytes>, <Offset: 2 bytes>, <Width:2 bytes>, <Data:n bytes>.
+ This ConfigBody strings is generated by UEFI VfrCompiler for the default
+ values in a Form Set. The name of the ConfigBody strings is VfrMyIfrNVDataDefault0000
+ constructed following this rule:
+ "Vfr" + varstore.name + "Default" + defaultstore.attributes.
+ Check the generated C file in Output for details.
@param Buffer The start address of buffer.
@param BufferSize The size of buffer.