]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Library/ExtendedIfrSupportLib.h
Correct typo in comments, clean IfrSupportLib.h
[mirror_edk2.git] / MdeModulePkg / Include / Library / ExtendedIfrSupportLib.h
index 5f36f34eef30dd9f13c3ec90ba0f993204d26981..920d0f483c921e7db0dbd4b5f04fdfb1bbdfcfe9 100644 (file)
@@ -31,11 +31,44 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 CreateBannerOpCode (\r
   IN      EFI_STRING_ID       Title,\r
   IN      UINT16              LineNumber,\r
   IN      UINT8               Alignment,\r
   IN OUT  EFI_HII_UPDATE_DATA *Data\r
+  );\r
+\r
+/**\r
+  This function initialize the data structure for dynamic opcode.\r
+\r
+  @param UpdateData     The adding data;\r
+  @param BufferSize     Length of the buffer to fill dynamic opcodes.\r
+\r
+  @retval EFI_SUCCESS           Update data is initialized.\r
+  @retval EFI_INVALID_PARAMETER UpdateData is NULL.\r
+  @retval EFI_OUT_OF_RESOURCES  No enough memory to allocate.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+IfrLibInitUpdateData (\r
+  IN OUT EFI_HII_UPDATE_DATA   *UpdateData,\r
+  IN UINT32                    BufferSize\r
+  )\r
+;\r
+\r
+/**\r
+\r
+  This function free the resource of update data.\r
+\r
+  @param UpdateData      The adding data;\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+IfrLibFreeUpdateData (\r
+  IN EFI_HII_UPDATE_DATA       *UpdateData\r
   )\r
 ;\r
 \r
@@ -62,6 +95,7 @@ CreateBannerOpCode (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 IfrLibUpdateForm (\r
   IN EFI_HII_HANDLE            Handle,\r
   IN EFI_GUID                  *FormSetGuid, OPTIONAL\r
@@ -69,11 +103,10 @@ IfrLibUpdateForm (
   IN UINT16                    Label,\r
   IN BOOLEAN                   Insert,\r
   IN EFI_HII_UPDATE_DATA       *Data\r
-  )\r
-;\r
+  );\r
 \r
 /**\r
-  Extract formset class for given HII handle.\r
+  Extract EDKII extended formset class for a given HII handle.\r
 \r
   If Handle is not a valid EFI_HII_HANDLE in the default HII database, then\r
   ASSERT.\r
@@ -83,30 +116,36 @@ IfrLibUpdateForm (
   If FormSetHelp is NULL, then ASSERT.\r
 \r
   @param  HiiHandle              Hii handle\r
-  @param  Class                    On output, Class of the formset\r
-  @param  FormSetTitle          On output,  Formset title string\r
-  @param  FormSetHelp          On output,   Formset help string\r
+  @param  Class                  On output, Class of the formset\r
+  @param  FormSetTitle           On output,  Formset title string\r
+  @param  FormSetHelp            On output,   Formset help string\r
 \r
   @retval EFI_SUCCESS            Successfully extract Class for specified Hii\r
                                  handle.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 IfrLibExtractClassFromHiiHandle (\r
   IN      EFI_HII_HANDLE      Handle,\r
   OUT     UINT16              *Class,\r
   OUT     EFI_STRING_ID       *FormSetTitle,\r
   OUT     EFI_STRING_ID       *FormSetHelp\r
-  )\r
-;\r
+  );\r
 \r
 /**\r
   Configure the buffer accrording to ConfigBody strings in the format of\r
   <Length:4 bytes>, <Offset: 2 bytes>, <Width:2 bytes>, <Data:n bytes>.\r
+  This ConfigBody strings is generated by EDKII UEFI VfrCompiler for the default\r
+  values in a Form Set. The name of the ConfigBody strings is VfrMyIfrNVDataDefault0000\r
+  constructed following this rule: \r
+   "Vfr" + varstore.name + "Default" + defaultstore.attributes.\r
+  Check the generated C file in Output for details.\r
 \r
   @param  Buffer                 the start address of buffer.\r
   @param  BufferSize             the size of buffer.\r
-  @param  Number                 the number of the strings.\r
+  @param  Number                 the number of the ConfigBody strings.\r
+  @param  ...                    the ConfigBody strings\r
 \r
   @retval EFI_BUFFER_TOO_SMALL   the BufferSize is too small to operate.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL or BufferSize is 0.\r
@@ -120,8 +159,7 @@ IfrLibExtractDefault(
   IN UINTN                        *BufferSize,\r
   UINTN                           Number,\r
   ...\r
-  )\r
-;\r
+  );\r
 \r
 #endif\r
 \r