X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=MdeModulePkg%2FInclude%2FLibrary%2FExtendedIfrSupportLib.h;h=920d0f483c921e7db0dbd4b5f04fdfb1bbdfcfe9;hb=8d7e5af111456e900d18d9b063860923b3eeea28;hp=5f36f34eef30dd9f13c3ec90ba0f993204d26981;hpb=1e354c037214e4bdc6c1925a4a4ae0a6f30dd283;p=mirror_edk2.git diff --git a/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h b/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h index 5f36f34eef..920d0f483c 100644 --- a/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h +++ b/MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h @@ -31,11 +31,44 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ EFI_STATUS +EFIAPI CreateBannerOpCode ( IN EFI_STRING_ID Title, IN UINT16 LineNumber, IN UINT8 Alignment, IN OUT EFI_HII_UPDATE_DATA *Data + ); + +/** + This function initialize the data structure for dynamic opcode. + + @param UpdateData The adding data; + @param BufferSize Length of the buffer to fill dynamic opcodes. + + @retval EFI_SUCCESS Update data is initialized. + @retval EFI_INVALID_PARAMETER UpdateData is NULL. + @retval EFI_OUT_OF_RESOURCES No enough memory to allocate. + +**/ +EFI_STATUS +EFIAPI +IfrLibInitUpdateData ( + IN OUT EFI_HII_UPDATE_DATA *UpdateData, + IN UINT32 BufferSize + ) +; + +/** + + This function free the resource of update data. + + @param UpdateData The adding data; + +**/ +VOID +EFIAPI +IfrLibFreeUpdateData ( + IN EFI_HII_UPDATE_DATA *UpdateData ) ; @@ -62,6 +95,7 @@ CreateBannerOpCode ( **/ EFI_STATUS +EFIAPI IfrLibUpdateForm ( IN EFI_HII_HANDLE Handle, IN EFI_GUID *FormSetGuid, OPTIONAL @@ -69,11 +103,10 @@ IfrLibUpdateForm ( IN UINT16 Label, IN BOOLEAN Insert, IN EFI_HII_UPDATE_DATA *Data - ) -; + ); /** - Extract formset class for given HII handle. + Extract EDKII extended formset class for a given HII handle. If Handle is not a valid EFI_HII_HANDLE in the default HII database, then ASSERT. @@ -83,30 +116,36 @@ IfrLibUpdateForm ( If FormSetHelp is NULL, then ASSERT. @param HiiHandle Hii handle - @param Class On output, Class of the formset - @param FormSetTitle On output, Formset title string - @param FormSetHelp On output, Formset help string + @param Class On output, Class of the formset + @param FormSetTitle On output, Formset title string + @param FormSetHelp On output, Formset help string @retval EFI_SUCCESS Successfully extract Class for specified Hii handle. **/ EFI_STATUS +EFIAPI IfrLibExtractClassFromHiiHandle ( IN EFI_HII_HANDLE Handle, OUT UINT16 *Class, OUT EFI_STRING_ID *FormSetTitle, OUT EFI_STRING_ID *FormSetHelp - ) -; + ); /** Configure the buffer accrording to ConfigBody strings in the format of , , , . + This ConfigBody strings is generated by EDKII 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. - @param Number the number of the strings. + @param Number the number of the ConfigBody strings. + @param ... the ConfigBody strings @retval EFI_BUFFER_TOO_SMALL the BufferSize is too small to operate. @retval EFI_INVALID_PARAMETER Buffer is NULL or BufferSize is 0. @@ -120,8 +159,7 @@ IfrLibExtractDefault( IN UINTN *BufferSize, UINTN Number, ... - ) -; + ); #endif