]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Library/HiiLib.h
Fix spelling error in comment
[mirror_edk2.git] / MdeModulePkg / Include / Library / HiiLib.h
index dd8c231d4fbbd20a1423f35437d41d58def18e48..25729c6d71c836485fc2e7caf9cae904aeb1c125 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Public include file for the HII Library\r
 \r
-  Copyright (c) 2007 - 2008, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php.                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
 **/\r
 \r
 /**\r
   Registers a list of packages in the HII Database and returns the HII Handle\r
   associated with that registration.  If an HII Handle has already been registered\r
-  with the same PackageListGuid, then NULL is returned.  If there are not enough \r
-  resources to perform the registration, then NULL is returned.  If an empty list \r
-  of packages is passed in, then NULL is returned.  If the size of the list of \r
-  package is 0, then NULL is returned.\r
+  with the same PackageListGuid and DeviceHandle, then NULL is returned.  If there\r
+  are not enough resources to perform the registration, then NULL is returned.\r
+  If an empty list of packages is passed in, then NULL is returned.  If the size of\r
+  the list of package is 0, then NULL is returned.\r
 \r
   The variable arguments are pointers that point to package headers defined \r
   by UEFI VFR compiler and StringGather tool.\r
@@ -47,7 +47,7 @@
   @param[in]  ...              The variable argument list that contains pointers \r
                                to packages terminated by a NULL.\r
 \r
-  @retval NULL   A HII Handle has already been registered in the HII Database with\r
+  @retval NULL   An HII Handle has already been registered in the HII Database with\r
                  the same PackageListGuid.\r
   @retval NULL   The HII Handle could not be created.\r
   @retval NULL   An empty list of packages was passed in.\r
@@ -131,7 +131,7 @@ HiiSetString (
 /**\r
   Retrieves a string from a string package in a specific language.  If the language\r
   is not specified, then a string from a string package in the current platform \r
-  language is retrieved.  If the string can not be retrieved using the specified \r
+  language is retrieved.  If the string cannot be retrieved using the specified \r
   language or the current platform language, then the string is retrieved from \r
   the string package in the first language the string package supports.  The \r
   returned string is allocated using AllocatePool().  The caller is responsible \r
@@ -164,7 +164,7 @@ HiiGetString (
 /**\r
   Retrieves a string from a string package named by GUID, in the specified language.  \r
   If the language is not specified, then a string from a string package in the \r
-  current platform  language is retrieved.  If the string can not be retrieved \r
+  current platform  language is retrieved.  If the string cannot be retrieved \r
   using the specified language or the current platform language, then the string \r
   is retrieved from the string package in the first language the string package \r
   supports.  The returned string is allocated using AllocatePool().  The caller \r
@@ -198,18 +198,19 @@ HiiGetPackageString (
 ;\r
 \r
 /**\r
-  Retrieves the array of all the HII Handles or the HII handle of a specific\r
-  package list in the HII Database.\r
+  Retrieves the array of all the HII Handles or the HII handles of a specific\r
+  package list GUID in the HII Database.\r
   This array is terminated with a NULL HII Handle.\r
   This function allocates the returned array using AllocatePool().\r
   The caller is responsible for freeing the array with FreePool().\r
 \r
   @param[in]  PackageListGuid  An optional parameter that is used to request \r
-                               an HII Handle associated with a specific\r
+                               HII Handles associated with a specific\r
                                Package List GUID.  If this parameter is NULL,\r
                                then all the HII Handles in the HII Database\r
                                are returned.  If this parameter is not NULL,\r
-                               then at most 1 HII Handle is returned.\r
+                               then zero or more HII Handles associated with \r
+                               PackageListGuid are returned.\r
 \r
   @retval NULL   No HII handles were found in the HII database\r
   @retval NULL   The array of HII Handles could not be retrieved\r
@@ -258,19 +259,19 @@ HiiGetSupportedLanguages (
 \r
     GUID=<HexCh>32&NAME=<Char>NameLength&PATH=<HexChar>DevicePathSize<Null>\r
 \r
-  @param[in]  Guid          Pointer to an EFI_GUID that is the routing information\r
+  @param[in]  Guid          The pointer to an EFI_GUID that is the routing information\r
                             GUID.  Each of the 16 bytes in Guid is converted to \r
                             a 2 Unicode character hexidecimal string.  This is \r
                             an optional parameter that may be NULL.\r
-  @param[in]  Name          Pointer to a Null-terminated Unicode string that is \r
+  @param[in]  Name          The pointer to a Null-terminated Unicode string that is \r
                             the routing information NAME.  This is an optional \r
                             parameter that may be NULL.  Each 16-bit Unicode \r
                             character in Name is converted to a 4 character Unicode \r
                             hexidecimal string.                        \r
-  @param[in]  DriverHandle  The driver handle which supports a Device Path Protocol\r
+  @param[in]  DriverHandle  The driver handle that supports a Device Path Protocol\r
                             that is the routing information PATH.  Each byte of\r
                             the Device Path associated with DriverHandle is converted\r
-                            to a 2 Unicode character hexidecimal string.\r
+                            to a two (Unicode) character hexidecimal string.\r
 \r
   @retval NULL   DriverHandle does not support the Device Path Protocol.\r
   @retval NULL   DriverHandle does not support the Device Path Protocol.\r
@@ -294,7 +295,7 @@ HiiConstructConfigHdr (
   \r
   @param Request    A null-terminated Unicode string in \r
                     <MultiConfigRequest> format. It can be NULL.\r
-                    If it is NULL, all configuration for the\r
+                    If it is NULL, all configurations for the\r
                     entirety of the current HII database will be reset.\r
   @param DefaultId  Specifies the type of defaults to retrieve.\r
   \r
@@ -311,7 +312,7 @@ HiiSetToDefaults (
 /**\r
   Validate the current configuration by parsing the IFR opcode in HII form.\r
 \r
-  NULL request string support depends on the ExtractConfig interface of\r
+  NULL request string support depends on the ExportConfig interface of\r
   HiiConfigRouting protocol in the UEFI specification.\r
   \r
   @param  Request   A null-terminated Unicode string in \r
@@ -319,8 +320,8 @@ HiiSetToDefaults (
                     If it is NULL, all current configurations for the\r
                     entirety of the current HII database will be validated.\r
   \r
-  @retval TURE    Current configuration is valid.\r
-  @retval FALSE   Current configuration is invalid.\r
+  @retval TRUE    The current configuration is valid.\r
+  @retval FALSE   The current configuration is invalid.\r
 **/\r
 BOOLEAN\r
 EFIAPI                               \r
@@ -334,8 +335,8 @@ HiiValidateSettings (
   If ConfigHdr is NULL, then ASSERT().\r
 \r
   @param[in] ConfigHdr  Either <ConfigRequest> or <ConfigResp>.\r
-  @param[in] Guid       GUID of the storage.\r
-  @param[in] Name       NAME of the storage.\r
+  @param[in] Guid       The GUID of the storage.\r
+  @param[in] Name       The NAME of the storage.\r
 \r
   @retval TRUE   Routing information matches <ConfigHdr>.\r
   @retval FALSE  Routing information does not match <ConfigHdr>.\r
@@ -353,12 +354,12 @@ HiiIsConfigHdrMatch (
   Retrieves uncommitted data from the Form Browser and converts it to a binary\r
   buffer.\r
 \r
-  @param[in]  VariableName  Pointer to a Null-terminated Unicode string.  This \r
-                            is an optional parameter that may be NULL.\r
-  @param[in]  VariableGuid  Pointer to an EFI_GUID structure.  This is an optional \r
+  @param[in]  VariableGuid  The pointer to an EFI_GUID structure.  This is an optional \r
                             parameter that may be NULL.\r
-  @param[in]  BufferSize    Length in bytes of buffer to hold retrived data. \r
-  @param[out] Block         Buffer of data to be updated.\r
+  @param[in]  VariableName  The pointer to a Null-terminated Unicode string.  This \r
+                            is an optional parameter that may be NULL.\r
+  @param[in]  BufferSize    The length in bytes of buffer to hold retrieved data. \r
+  @param[out] Buffer        The buffer of data to be updated.\r
 \r
   @retval FALSE  The uncommitted data could not be retrieved.\r
   @retval TRUE   The uncommitted data was retrieved.\r
@@ -369,8 +370,8 @@ EFIAPI
 HiiGetBrowserData (\r
   IN CONST EFI_GUID  *VariableGuid,  OPTIONAL\r
   IN CONST CHAR16    *VariableName,  OPTIONAL\r
-  IN UINTN           BlockSize,\r
-  OUT UINT8          *Block\r
+  IN UINTN           BufferSize,\r
+  OUT UINT8          *Buffer\r
   );\r
 \r
 /**\r
@@ -378,12 +379,12 @@ HiiGetBrowserData (
 \r
   If Buffer is NULL, then ASSERT().\r
 \r
-  @param[in]  VariableName    Pointer to a Null-terminated Unicode string.  This\r
-                              is an optional parameter that may be NULL.\r
-  @param[in]  VariableGuid    Pointer to an EFI_GUID structure.  This is an optional\r
+  @param[in]  VariableGuid    The pointer to an EFI_GUID structure.  This is an optional\r
                               parameter that may be NULL.\r
-  @param[in]  BufferSize      Length, in bytes, of Buffer.\r
-  @param[in]  Buffer          Buffer of data to commit.\r
+  @param[in]  VariableName    The pointer to a Null-terminated Unicode string.  This\r
+                              is an optional parameter that may be NULL.\r
+  @param[in]  BufferSize      The length, in bytes, of Buffer.\r
+  @param[in]  Buffer          The buffer of data to commit.\r
   @param[in]  RequestElement  An optional field to specify which part of the\r
                               buffer data will be send back to Browser. If NULL,\r
                               the whole buffer of data will be committed to\r
@@ -414,7 +415,7 @@ HiiSetBrowserData (
   Returns a UINT64 value that contains bitfields for Hour, Minute, and Second.\r
   The lower 8-bits of Hour are placed in bits 0..7.  The lower 8-bits of Minute \r
   are placed in bits 8..15, and the lower 8-bits of Second are placed in bits \r
-  16..23.  This format is selected because it can be easily translated to \r
+  16..23.  This format was selected because it can be easily translated to \r
   an EFI_HII_TIME structure in an EFI_IFR_TYPE_VALUE union.\r
 \r
   @param  Hour    The hour value to be encoded.\r
@@ -427,10 +428,10 @@ HiiSetBrowserData (
   (UINT64)((Hour & 0xff) | ((Minute & 0xff) << 8) | ((Second & 0xff) << 16))\r
 \r
 /**\r
-  Returns a UINT64 value that contains bitfields for Year, Month, and Day.\r
+  Returns a UINT64 value that contains bit fields for Year, Month, and Day.\r
   The lower 16-bits of Year are placed in bits 0..15.  The lower 8-bits of Month \r
   are placed in bits 16..23, and the lower 8-bits of Day are placed in bits \r
-  24..31.  This format is selected because it can be easily translated to \r
+  24..31.  This format was selected because it can be easily translated to \r
   an EFI_HII_DATE structure in an EFI_IFR_TYPE_VALUE union.\r
 \r
   @param  Year   The year value to be encoded.\r
@@ -457,12 +458,14 @@ HiiAllocateOpCodeHandle (
   );\r
 \r
 /**\r
-  Frees an OpCode Handle that was peviously allocated with HiiAllocateOpCodeHandle().\r
+  Frees an OpCode Handle that was previously allocated with HiiAllocateOpCodeHandle().\r
   When an OpCode Handle is freed, all of the opcodes associated with the OpCode\r
   Handle are also freed.\r
 \r
   If OpCodeHandle is NULL, then ASSERT().\r
 \r
+  @param[in]  OpCodeHandle   The handle to the buffer of opcodes.\r
+\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -476,8 +479,8 @@ HiiFreeOpCodeHandle (
   If OpCodeHandle is NULL, then ASSERT().\r
   If RawBuffer is NULL, then ASSERT();\r
 \r
-  @param[in]  OpCodeHandle   Handle to the buffer of opcodes.\r
-  @param[in]  RawBuffer      Buffer of opcodes to append.\r
+  @param[in]  OpCodeHandle   The handle to the buffer of opcodes.\r
+  @param[in]  RawBuffer      The buffer of opcodes to append.\r
   @param[in]  RawBufferSize  The size, in bytes, of Buffer.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -516,11 +519,11 @@ HiiCreateEndOpCode (
   If Type is invalid, then ASSERT().\r
   If Flags is invalid, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle  Handle to the buffer of opcodes.\r
-  @param[in]  StringId      StringId for the option\r
-  @param[in]  Flags         Flags for the option\r
-  @param[in]  Type          Type for the option\r
-  @param[in]  Value         Value for the option\r
+  @param[in]  OpCodeHandle  The handle to the buffer of opcodes.\r
+  @param[in]  StringId      StringId for the option.\r
+  @param[in]  Flags         The flags for the option.\r
+  @param[in]  Type          The type for the option.\r
+  @param[in]  Value         The value for the option.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
   @retval Other  A pointer to the created opcode.\r
@@ -542,10 +545,10 @@ HiiCreateOneOfOptionOpCode (
   If OpCodeHandle is NULL, then ASSERT().\r
   If Type is invalid, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle  Handle to the buffer of opcodes.\r
-  @param[in]  DefaultId     DefaultId for the default\r
-  @param[in]  Type          Type for the default\r
-  @param[in]  Value         Value for the default\r
+  @param[in]  OpCodeHandle  The handle to the buffer of opcodes.\r
+  @param[in]  DefaultId     The DefaultId for the default.\r
+  @param[in]  Type          The type for the default.\r
+  @param[in]  Value         The value for the default.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
   @retval Other  A pointer to the created opcode.\r
@@ -567,9 +570,9 @@ HiiCreateDefaultOpCode (
   If Guid is NULL, then ASSERT().\r
   If OpCodeSize < sizeof (EFI_IFR_GUID), then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle  Handle to the buffer of opcodes.\r
-  @param[in]  Guid          Pointer to EFI_GUID of this guided opcode.\r
-  @param[in]  GuidOpCode    Pointer to an EFI_IFR_GUID opcode.  This is an \r
+  @param[in]  OpCodeHandle  The handle to the buffer of opcodes.\r
+  @param[in]  Guid          The pointer to EFI_GUID of this guided opcode.\r
+  @param[in]  GuidOpCode    The pointer to an EFI_IFR_GUID opcode.  This is an \r
                             optional parameter that may be NULL.  If this\r
                             parameter is NULL, then the GUID extension \r
                             region of the created opcode is filled with zeros.\r
@@ -598,12 +601,12 @@ HiiCreateGuidOpCode (
   If OpCodeHandle is NULL, then ASSERT().\r
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle  Handle to the buffer of opcodes.\r
-  @param[in]  QuestionId      Question ID\r
-  @param[in]  Prompt          String ID for Prompt\r
-  @param[in]  Help            String ID for Help\r
-  @param[in]  QuestionFlags   Flags in Question Header\r
-  @param[in]  QuestionConfig  String ID for configuration\r
+  @param[in]  OpCodeHandle  The handle to the buffer of opcodes.\r
+  @param[in]  QuestionId      The Question ID.\r
+  @param[in]  Prompt          The String ID for Prompt.\r
+  @param[in]  Help            The String ID for Help.\r
+  @param[in]  QuestionFlags   The flags in the Question Header.\r
+  @param[in]  QuestionConfig  The String ID for the configuration.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
   @retval Other  A pointer to the created opcode.\r
@@ -627,11 +630,11 @@ HiiCreateActionOpCode (
   If any reserved bits are set in Flags, then ASSERT().\r
   If Scope > 1, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle  Handle to the buffer of opcodes.\r
-  @param[in]  Prompt      String ID for Prompt\r
-  @param[in]  Help        String ID for Help\r
-  @param[in]  Flags       Subtitle opcode flags\r
-  @param[in]  Scope       1 if this opcpde is the beginning of a new scope.\r
+  @param[in]  OpCodeHandle  The handle to the buffer of opcodes.\r
+  @param[in]  Prompt      The string ID for Prompt.\r
+  @param[in]  Help        The string ID for Help.\r
+  @param[in]  Flags       The subtitle opcode flags.\r
+  @param[in]  Scope       1 if this opcode is the beginning of a new scope.\r
                           0 if this opcode is within the current scope.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -654,12 +657,12 @@ HiiCreateSubTitleOpCode (
   If OpCodeHandle is NULL, then ASSERT().\r
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle   Handle to the buffer of opcodes.\r
-  @param[in]  FormId         Destination Form ID\r
-  @param[in]  Prompt         String ID for Prompt\r
-  @param[in]  Help           String ID for Help\r
-  @param[in]  QuestionFlags  Flags in Question Header\r
-  @param[in]  QuestionId     Question ID\r
+  @param[in]  OpCodeHandle   The handle to the buffer of opcodes.\r
+  @param[in]  FormId         The Destination Form ID.\r
+  @param[in]  Prompt         The string ID for Prompt.\r
+  @param[in]  Help           The string ID for Help.\r
+  @param[in]  QuestionFlags  The flags in Question Header\r
+  @param[in]  QuestionId     Question ID.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
   @retval Other  A pointer to the created opcode.\r
@@ -683,15 +686,15 @@ HiiCreateGotoOpCode (
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
   If any reserved bits are set in CheckBoxFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
-  @param[in]  QuestionId            Question ID\r
-  @param[in]  VarStoreId            Storage ID\r
-  @param[in]  VarOffset             Offset in Storage\r
-  @param[in]  Prompt                String ID for Prompt\r
-  @param[in]  Help                  String ID for Help\r
-  @param[in]  QuestionFlags         Flags in Question Header\r
-  @param[in]  CheckBoxFlags         Flags for checkbox opcode\r
-  @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
+  @param[in]  OpCodeHandle          The handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            The question ID.\r
+  @param[in]  VarStoreId            The storage ID.\r
+  @param[in]  VarOffset             The offset in Storage.\r
+  @param[in]  Prompt                The string ID for Prompt.\r
+  @param[in]  Help                  The string ID for Help.\r
+  @param[in]  QuestionFlags         The flags in Question Header.\r
+  @param[in]  CheckBoxFlags         The flags for checkbox opcode.\r
+  @param[in]  DefaultsOpCodeHandle  The handle for a buffer of DEFAULT opcodes.  This\r
                                     is an optional parameter that may be NULL.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -719,18 +722,18 @@ HiiCreateCheckBoxOpCode (
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
   If any reserved bits are set in NumericFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
-  @param[in]  QuestionId            Question ID\r
-  @param[in]  VarStoreId            Storage ID\r
-  @param[in]  VarOffset             Offset in Storage\r
-  @param[in]  Prompt                String ID for Prompt\r
-  @param[in]  Help                  String ID for Help\r
-  @param[in]  QuestionFlags         Flags in Question Header\r
-  @param[in]  NumericFlags          Flags for numeric opcode\r
-  @param[in]  Minimum               Numeric minimum value\r
-  @param[in]  Maximum               Numeric maximum value\r
-  @param[in]  Step                  Numeric step for edit\r
-  @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
+  @param[in]  OpCodeHandle          The handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            The question ID.\r
+  @param[in]  VarStoreId            The storage ID.\r
+  @param[in]  VarOffset             The offset in Storage.\r
+  @param[in]  Prompt                The string ID for Prompt.\r
+  @param[in]  Help                  The string ID for Help.\r
+  @param[in]  QuestionFlags         The flags in Question Header.\r
+  @param[in]  NumericFlags          The flags for a numeric opcode.\r
+  @param[in]  Minimum               The numeric minimum value.\r
+  @param[in]  Maximum               The numeric maximum value.\r
+  @param[in]  Step                  The numeric step for edit.\r
+  @param[in]  DefaultsOpCodeHandle  The handle for a buffer of DEFAULT opcodes.  This\r
                                     is an optional parameter that may be NULL.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -761,17 +764,17 @@ HiiCreateNumericOpCode (
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
   If any reserved bits are set in StringFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
-  @param[in]  QuestionId            Question ID\r
-  @param[in]  VarStoreId            Storage ID\r
-  @param[in]  VarOffset             Offset in Storage\r
-  @param[in]  Prompt                String ID for Prompt\r
-  @param[in]  Help                  String ID for Help\r
-  @param[in]  QuestionFlags         Flags in Question Header\r
-  @param[in]  StringFlags           Flags for string opcode\r
-  @param[in]  MinSize               String minimum length\r
-  @param[in]  MaxSize               String maximum length\r
-  @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
+  @param[in]  OpCodeHandle          The handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            The question ID.\r
+  @param[in]  VarStoreId            The storage ID.\r
+  @param[in]  VarOffset             The offset in Storage.\r
+  @param[in]  Prompt                The string ID for Prompt.\r
+  @param[in]  Help                  The string ID for Help.\r
+  @param[in]  QuestionFlags         The flags in Question Header.\r
+  @param[in]  StringFlags           The flags for a string opcode.\r
+  @param[in]  MinSize               The string minimum length.\r
+  @param[in]  MaxSize               The string maximum length.\r
+  @param[in]  DefaultsOpCodeHandle  The handle for a buffer of DEFAULT opcodes.  This\r
                                     is an optional parameter that may be NULL.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -801,16 +804,16 @@ HiiCreateStringOpCode (
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
   If any reserved bits are set in OneOfFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
-  @param[in]  QuestionId            Question ID\r
-  @param[in]  VarStoreId            Storage ID\r
-  @param[in]  VarOffset             Offset in Storage\r
-  @param[in]  Prompt                String ID for Prompt\r
-  @param[in]  Help                  String ID for Help\r
-  @param[in]  QuestionFlags         Flags in Question Header\r
-  @param[in]  OneOfFlags            Flags for oneof opcode\r
-  @param[in]  OptionsOpCodeHandle   Handle for a buffer of ONE_OF_OPTION opcodes.\r
-  @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
+  @param[in]  OpCodeHandle          The handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            The question ID.\r
+  @param[in]  VarStoreId            The storage ID.\r
+  @param[in]  VarOffset             The offset in Storage.\r
+  @param[in]  Prompt                The string ID for Prompt.\r
+  @param[in]  Help                  The string ID for Help.\r
+  @param[in]  QuestionFlags         The flags in Question Header.\r
+  @param[in]  OneOfFlags            The flags for a oneof opcode.\r
+  @param[in]  OptionsOpCodeHandle   The handle for a buffer of ONE_OF_OPTION opcodes.\r
+  @param[in]  DefaultsOpCodeHandle  The handle for a buffer of DEFAULT opcodes.  This\r
                                     is an optional parameter that may be NULL.\r
 \r
   @retval NULL   There is not enough space left in Buffer to add the opcode.\r
@@ -839,17 +842,17 @@ HiiCreateOneOfOpCode (
   If any reserved bits are set in QuestionFlags, then ASSERT().\r
   If any reserved bits are set in OrderedListFlags, then ASSERT().\r
 \r
-  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
-  @param[in]  QuestionId            Question ID\r
-  @param[in]  VarStoreId            Storage ID\r
-  @param[in]  VarOffset             Offset in Storage\r
-  @param[in]  Prompt                String ID for Prompt\r
-  @param[in]  Help                  String ID for Help\r
-  @param[in]  QuestionFlags         Flags in Question Header\r
-  @param[in]  OrderedListFlags      Flags for ordered list opcode\r
-  @param[in]  DataType              Type for option value\r
+  @param[in]  OpCodeHandle          The handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            The question ID.\r
+  @param[in]  VarStoreId            The storage ID.\r
+  @param[in]  VarOffset             The offset in Storage.\r
+  @param[in]  Prompt                The string ID for Prompt.\r
+  @param[in]  Help                  The string ID for Help.\r
+  @param[in]  QuestionFlags         The flags in Question Header.\r
+  @param[in]  OrderedListFlags      The flags for an ordered list opcode.\r
+  @param[in]  DataType              The type for option value.\r
   @param[in]  MaxContainers         Maximum count for options in this ordered list\r
-  @param[in]  OptionsOpCodeHandle   Handle for a buffer of ONE_OF_OPTION opcodes.\r
+  @param[in]  OptionsOpCodeHandle   The handle for a buffer of ONE_OF_OPTION opcodes.\r
   @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
                                     is an optional parameter that may be NULL.\r
 \r
@@ -874,6 +877,105 @@ HiiCreateOrderedListOpCode (
   IN VOID             *DefaultsOpCodeHandle  OPTIONAL\r
   );\r
 \r
+/**\r
+  Create EFI_IFR_TEXT_OP opcode.\r
+\r
+  If OpCodeHandle is NULL, then ASSERT().\r
+\r
+  @param[in]  OpCodeHandle  Handle to the buffer of opcodes.\r
+  @param[in]  Prompt        String ID for Prompt.\r
+  @param[in]  Help          String ID for Help.\r
+  @param[in]  TextTwo       String ID for TextTwo.\r
+\r
+  @retval NULL   There is not enough space left in Buffer to add the opcode.\r
+  @retval Other  A pointer to the created opcode.\r
+\r
+**/\r
+UINT8 *\r
+EFIAPI\r
+HiiCreateTextOpCode (\r
+  IN VOID           *OpCodeHandle,\r
+  IN EFI_STRING_ID  Prompt,\r
+  IN EFI_STRING_ID  Help,\r
+  IN EFI_STRING_ID  TextTwo\r
+  );\r
+\r
+/**\r
+  Create EFI_IFR_DATE_OP opcode.\r
+\r
+  If OpCodeHandle is NULL, then ASSERT().\r
+  If any reserved bits are set in QuestionFlags, then ASSERT().\r
+  If any reserved bits are set in DateFlags, then ASSERT().\r
+\r
+  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            Question ID\r
+  @param[in]  VarStoreId            Storage ID, optional. If DateFlags is not\r
+                                    QF_DATE_STORAGE_NORMAL, this parameter is ignored.\r
+  @param[in]  VarOffset             Offset in Storage, optional. If DateFlags is not\r
+                                    QF_DATE_STORAGE_NORMAL, this parameter is ignored.\r
+  @param[in]  Prompt                String ID for Prompt\r
+  @param[in]  Help                  String ID for Help\r
+  @param[in]  QuestionFlags         Flags in Question Header\r
+  @param[in]  DateFlags             Flags for date opcode\r
+  @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
+                                    is an optional parameter that may be NULL.\r
+\r
+  @retval NULL   There is not enough space left in Buffer to add the opcode.\r
+  @retval Other  A pointer to the created opcode.\r
+\r
+**/\r
+UINT8 *\r
+EFIAPI\r
+HiiCreateDateOpCode (\r
+  IN VOID             *OpCodeHandle,\r
+  IN EFI_QUESTION_ID  QuestionId,\r
+  IN EFI_VARSTORE_ID  VarStoreId,   OPTIONAL\r
+  IN UINT16           VarOffset,    OPTIONAL\r
+  IN EFI_STRING_ID    Prompt,\r
+  IN EFI_STRING_ID    Help,\r
+  IN UINT8            QuestionFlags,\r
+  IN UINT8            DateFlags,\r
+  IN VOID             *DefaultsOpCodeHandle  OPTIONAL\r
+  );\r
+\r
+/**\r
+  Create EFI_IFR_TIME_OP opcode.\r
+\r
+  If OpCodeHandle is NULL, then ASSERT().\r
+  If any reserved bits are set in QuestionFlags, then ASSERT().\r
+  If any reserved bits are set in TimeFlags, then ASSERT().\r
+\r
+  @param[in]  OpCodeHandle          Handle to the buffer of opcodes.\r
+  @param[in]  QuestionId            Question ID\r
+  @param[in]  VarStoreId            Storage ID, optional. If TimeFlags is not\r
+                                    QF_TIME_STORAGE_NORMAL, this parameter is ignored.\r
+  @param[in]  VarOffset             Offset in Storage, optional. If TimeFlags is not\r
+                                    QF_TIME_STORAGE_NORMAL, this parameter is ignored.\r
+  @param[in]  Prompt                String ID for Prompt\r
+  @param[in]  Help                  String ID for Help\r
+  @param[in]  QuestionFlags         Flags in Question Header\r
+  @param[in]  TimeFlags             Flags for time opcode\r
+  @param[in]  DefaultsOpCodeHandle  Handle for a buffer of DEFAULT opcodes.  This\r
+                                    is an optional parameter that may be NULL.\r
+\r
+  @retval NULL   There is not enough space left in Buffer to add the opcode.\r
+  @retval Other  A pointer to the created opcode.\r
+\r
+**/\r
+UINT8 *\r
+EFIAPI\r
+HiiCreateTimeOpCode (\r
+  IN VOID             *OpCodeHandle,\r
+  IN EFI_QUESTION_ID  QuestionId,\r
+  IN EFI_VARSTORE_ID  VarStoreId,   OPTIONAL\r
+  IN UINT16           VarOffset,    OPTIONAL\r
+  IN EFI_STRING_ID    Prompt,\r
+  IN EFI_STRING_ID    Help,\r
+  IN UINT8            QuestionFlags,\r
+  IN UINT8            TimeFlags,\r
+  IN VOID             *DefaultsOpCodeHandle  OPTIONAL\r
+  );\r
+\r
 /**\r
   This function updates a form that has previously been registered with the HII \r
   Database.  This function will perform at most one update operation.\r
@@ -881,22 +983,22 @@ HiiCreateOrderedListOpCode (
   The form to update is specified by Handle, FormSetGuid, and FormId.  Binary \r
   comparisons of IFR opcodes are performed from the beginning of the form being \r
   updated until an IFR opcode is found that exactly matches the first IFR opcode \r
-  specifed by StartOpCodeHandle.  The following rules are used to determine if\r
+  specified by StartOpCodeHandle.  The following rules are used to determine if\r
   an insert, replace, or delete operation is performed:\r
   \r
   1) If no matches are found, then NULL is returned.  \r
   2) If a match is found, and EndOpCodeHandle is NULL, then all of the IFR opcodes\r
-     from StartOpcodeHandle except the first opcode are inserted immediately after \r
-     the matching IFR opcode in the form beng updated.\r
+     from StartOpCodeHandle except the first opcode are inserted immediately after \r
+     the matching IFR opcode in the form to be updated.\r
   3) If a match is found, and EndOpCodeHandle is not NULL, then a search is made \r
      from the matching IFR opcode until an IFR opcode exactly matches the first \r
      IFR opcode specified by EndOpCodeHandle.  If no match is found for the first\r
      IFR opcode specified by EndOpCodeHandle, then NULL is returned.  If a match\r
      is found, then all of the IFR opcodes between the start match and the end \r
      match are deleted from the form being updated and all of the IFR opcodes\r
-     from StartOpcodeHandle except the first opcode are inserted immediately after \r
+     from StartOpCodeHandle except the first opcode are inserted immediately after \r
      the matching start IFR opcode.  If StartOpCcodeHandle only contains one\r
-     IFR instruction, then the result of ths operation will delete all of the IFR\r
+     IFR instruction, then the result of this operation will delete all of the IFR\r
      opcodes between the start end matches.\r
 \r
   If HiiHandle is NULL, then ASSERT().\r
@@ -937,8 +1039,8 @@ HiiUpdateForm (
   IN EFI_HII_HANDLE  HiiHandle,\r
   IN EFI_GUID        *FormSetGuid,        OPTIONAL\r
   IN EFI_FORM_ID     FormId,\r
-  IN VOID            *StartOpcodeHandle,\r
-  IN VOID            *EndOpcodeHandle     OPTIONAL\r
+  IN VOID            *StartOpCodeHandle,\r
+  IN VOID            *EndOpCodeHandle     OPTIONAL\r
   );\r
 \r
 #endif\r