summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-03 14:22:56 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-03 14:22:56 +0000
commit53dff89953161f6b7e266b8089bae508c5f71a4e (patch)
tree75374b5a18fa2c48b58488af7b2939b77e15fd8e
parentaa274d2a3a6bd582c132fd754c4605734b5fa591 (diff)
downloadedk2-platforms-53dff89953161f6b7e266b8089bae508c5f71a4e.tar.xz
Update function comment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6821 6f19259b-4bc3-4df7-8a09-765794883524
-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.