From 53dff89953161f6b7e266b8089bae508c5f71a4e Mon Sep 17 00:00:00 2001 From: qwang12 Date: Wed, 3 Dec 2008 14:22:56 +0000 Subject: [PATCH] Update function comment. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6821 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h | 5 +++++ MdeModulePkg/Library/ExtendedIfrSupportLib/Form.c | 12 +++++++++--- 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 , , , . + 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 + , , , . + 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.