]> git.proxmox.com Git - mirror_edk2.git/commitdiff
correct some coding style issues.
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 24 Dec 2008 02:42:57 +0000 (02:42 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 24 Dec 2008 02:42:57 +0000 (02:42 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7112 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrCommon.c
IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrOnTheFly.c
IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrOpCodeCreation.c
IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrSupportLibInternal.h
IntelFrameworkPkg/Library/FrameworkIfrSupportLib/IfrVariable.c

index 73163b6d2d0732038311ccabd14eaa5f0584dd0c..9140fc6a25747d527c49e2829a29ad86bf67f2b4 100644 (file)
@@ -21,19 +21,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   language variable, then use default setting that 'eng' as current\r
   language setting.\r
   \r
-  @param Lang Pointer of system language\r
+  @param    Lang       Pointer of system language\r
   \r
-  @return whether sucess to get setting from variable\r
+  @return              whether sucess to get setting from variable\r
 **/\r
 EFI_STATUS\r
 GetCurrentLanguage (\r
-  OUT     CHAR16              *Lang\r
+  OUT  CHAR16                       *Lang\r
   )\r
 {\r
-  EFI_STATUS  Status;\r
-  UINTN       Size;\r
-  UINTN       Index;\r
-  CHAR8       Language[4];\r
+  EFI_STATUS                        Status;\r
+  UINTN                             Size;\r
+  UINTN                             Index;\r
+  CHAR8                             Language[4];\r
 \r
   //\r
   // Getting the system language and placing it into our Global Data\r
@@ -69,35 +69,35 @@ GetCurrentLanguage (
 }\r
 \r
 /**\r
-  Add a string to the incoming buffer and return the token and offset data\r
+  Add a string to the incoming buffer and return the token and offset data.\r
   \r
-  @param StringBuffer      The incoming buffer\r
-  @param Language          Currrent language\r
-  @param String            The string to be added\r
-  @param StringToken       The index where the string placed  \r
+  @param  StringBuffer         The incoming buffer\r
+  @param  Language             Currrent language\r
+  @param  String               The string to be added\r
+  @param  StringToken          The index where the string placed  \r
   \r
   @retval EFI_OUT_OF_RESOURCES No enough buffer to allocate\r
   @retval EFI_SUCCESS          String successfully added to the incoming buffer\r
 **/\r
 EFI_STATUS\r
 AddString (\r
-  IN      VOID                *StringBuffer,\r
-  IN      CHAR16              *Language,\r
-  IN      CHAR16              *String,\r
-  IN OUT  STRING_REF          *StringToken\r
+  IN      VOID                      *StringBuffer,\r
+  IN      CHAR16                    *Language,\r
+  IN      CHAR16                    *String,\r
+  IN OUT  STRING_REF                *StringToken\r
   )\r
 {\r
-  EFI_HII_STRING_PACK *StringPack;\r
-  EFI_HII_STRING_PACK *StringPackBuffer;\r
-  VOID                *NewBuffer;\r
-  RELOFST             *PackSource;\r
-  RELOFST             *PackDestination;\r
-  UINT8               *Source;\r
-  UINT8               *Destination;\r
-  UINTN               Index;\r
-  BOOLEAN             Finished;\r
-  UINTN               SizeofLanguage;\r
-  UINTN               SizeofString;\r
+  EFI_HII_STRING_PACK               *StringPack;\r
+  EFI_HII_STRING_PACK               *StringPackBuffer;\r
+  VOID                              *NewBuffer;\r
+  RELOFST                           *PackSource;\r
+  RELOFST                           *PackDestination;\r
+  UINT8                             *Source;\r
+  UINT8                             *Destination;\r
+  UINTN                             Index;\r
+  BOOLEAN                           Finished;\r
+  UINTN                             SizeofLanguage;\r
+  UINTN                             SizeofString;\r
 \r
   StringPack  = (EFI_HII_STRING_PACK *) StringBuffer;\r
   Finished    = FALSE;\r
@@ -279,23 +279,23 @@ AddString (
 }\r
 \r
 /**\r
-  Add op-code data to the FormBuffer\r
+  Add op-code data to the FormBuffer.\r
   \r
-  @param FormBuffer      Form buffer to be inserted to\r
-  @param OpCodeData      Op-code data to be inserted  \r
+  @param  FormBuffer            Form buffer to be inserted to\r
+  @param  OpCodeData            Op-code data to be inserted  \r
   \r
-  @retval EFI_OUT_OF_RESOURCES    No enough buffer to allocate\r
-  @retval EFI_SUCCESS             Op-code data successfully inserted  \r
+  @retval EFI_OUT_OF_RESOURCES  No enough buffer to allocate\r
+  @retval EFI_SUCCESS           Op-code data successfully inserted  \r
 **/\r
 EFI_STATUS\r
 AddOpCode (\r
-  IN      VOID                *FormBuffer,\r
-  IN OUT  VOID                *OpCodeData\r
+  IN      VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *OpCodeData\r
   )\r
 {\r
-  EFI_HII_PACK_HEADER *NewBuffer;\r
-  UINT8               *Source;\r
-  UINT8               *Destination;\r
+  EFI_HII_PACK_HEADER               *NewBuffer;\r
+  UINT8                             *Source;\r
+  UINT8                             *Destination;\r
 \r
   //\r
   // Pre-allocate a buffer sufficient for us to work on.\r
@@ -385,18 +385,18 @@ AddOpCode (
 }\r
 \r
 /**\r
-  Get the HII protocol interface\r
+  Get the HII protocol interface.\r
   \r
-  @param Hii     HII protocol interface\r
+  @param  Hii    HII protocol interface\r
   \r
-  @return the statue of locating HII protocol\r
+  @return        the statue of locating HII protocol\r
 **/\r
 EFI_STATUS\r
 GetHiiInterface (\r
-  OUT     EFI_HII_PROTOCOL    **Hii\r
+  OUT  EFI_HII_PROTOCOL             **Hii\r
   )\r
 {\r
-  EFI_STATUS  Status;\r
+  EFI_STATUS                        Status;\r
 \r
   //\r
   // There should only be one HII protocol\r
@@ -411,42 +411,41 @@ GetHiiInterface (
 }\r
 \r
 /**\r
-  Extract information pertaining to the HiiHandle\r
+  Extract information pertaining to the HiiHandle.\r
   \r
-  @param HiiHandle       Hii handle\r
-  @param ImageLength     For input, length of DefaultImage;\r
-                         For output, length of actually required\r
-  @param DefaultImage    Image buffer prepared by caller\r
-  @param Guid            Guid information about the form \r
+  @param  HiiHandle             Hii handle\r
+  @param  ImageLength           For input, length of DefaultImage;\r
+                                For output, length of actually required\r
+  @param  DefaultImage          Image buffer prepared by caller\r
+  @param  Guid                  Guid information about the form \r
   \r
-  @retval EFI_OUT_OF_RESOURCES    No enough buffer to allocate\r
-  @retval EFI_BUFFER_TOO_SMALL    DefualtImage has no enough ImageLength\r
-  @retval EFI_SUCCESS             Successfully extract data from Hii database.\r
+  @retval EFI_OUT_OF_RESOURCES  No enough buffer to allocate\r
+  @retval EFI_BUFFER_TOO_SMALL  DefualtImage has no enough ImageLength\r
+  @retval EFI_SUCCESS           Successfully extract data from Hii database.\r
 **/\r
 EFI_STATUS\r
 ExtractDataFromHiiHandle (\r
-  IN      FRAMEWORK_EFI_HII_HANDLE       HiiHandle,\r
-  IN OUT  UINT16              *ImageLength,\r
-  OUT     UINT8               *DefaultImage,\r
-  OUT     EFI_GUID            *Guid\r
+  IN      FRAMEWORK_EFI_HII_HANDLE  HiiHandle,\r
+  IN OUT  UINT16                    *ImageLength,\r
+     OUT  UINT8                     *DefaultImage,\r
+     OUT  EFI_GUID                  *Guid\r
   )\r
 {\r
-  EFI_STATUS        Status;\r
-  EFI_HII_PROTOCOL  *Hii;\r
-  UINTN             DataLength;\r
-  UINT8             *RawData;\r
-  UINT8             *OldData;\r
-  UINTN             Index;\r
-  UINTN             Temp;\r
-  UINTN             SizeOfNvStore;\r
-  UINTN             CachedStart;\r
+  EFI_STATUS                        Status;\r
+  EFI_HII_PROTOCOL                  *Hii;\r
+  UINTN                             DataLength;\r
+  UINT8                             *RawData;\r
+  UINT8                             *OldData;\r
+  UINTN                             Index;\r
+  UINTN                             Temp;\r
+  UINTN                             SizeOfNvStore;\r
+  UINTN                             CachedStart;\r
 \r
   DataLength    = DEFAULT_FORM_BUFFER_SIZE;\r
   SizeOfNvStore = 0;\r
   CachedStart   = 0;\r
 \r
   Status        = GetHiiInterface (&Hii);\r
-\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
@@ -463,7 +462,6 @@ ExtractDataFromHiiHandle (
   // Get all the forms associated with this HiiHandle\r
   //\r
   Status = Hii->GetForms (Hii, HiiHandle, 0, &DataLength, RawData);\r
-\r
   if (EFI_ERROR (Status)) {\r
     gBS->FreePool (RawData);\r
 \r
@@ -490,6 +488,7 @@ ExtractDataFromHiiHandle (
 \r
   for (Index = 0; RawData[Index] != FRAMEWORK_EFI_IFR_END_FORM_SET_OP;) {\r
     switch (RawData[Index]) {\r
+      \r
     case FRAMEWORK_EFI_IFR_FORM_SET_OP:\r
       //\r
       // Copy the GUID information from this handle\r
@@ -538,6 +537,7 @@ ExtractDataFromHiiHandle (
   //\r
   for (Index = 0; RawData[Index] != FRAMEWORK_EFI_IFR_END_FORM_SET_OP;) {\r
     switch (RawData[Index]) {\r
+      \r
     case FRAMEWORK_EFI_IFR_ONE_OF_OP:\r
       CachedStart = ((FRAMEWORK_EFI_IFR_ONE_OF *) &RawData[Index])->QuestionId;\r
       break;\r
@@ -578,30 +578,29 @@ ExtractDataFromHiiHandle (
 /**\r
   Finds HII handle for given pack GUID previously registered with the HII.\r
   \r
-  @param HiiProtocol pointer to pointer to HII protocol interface.\r
-                     If NULL, the interface will be found but not returned.\r
-                     If it points to NULL, the interface will be found and\r
-                     written back to the pointer that is pointed to.\r
-  @param Guid        The GUID of the pack that registered with the HII.\r
+  @param  HiiProtocol pointer to pointer to HII protocol interface.\r
+                      If NULL, the interface will be found but not returned.\r
+                      If it points to NULL, the interface will be found and\r
+                      written back to the pointer that is pointed to.\r
+  @param  Guid        The GUID of the pack that registered with the HII.\r
 \r
-  @return  Handle to the HII pack previously registered by the memory driver.\r
+  @return             Handle to the HII pack previously registered by the memory driver.\r
 **/\r
 FRAMEWORK_EFI_HII_HANDLE \r
 FindHiiHandle (\r
-  IN OUT EFI_HII_PROTOCOL    **HiiProtocol, OPTIONAL\r
-  IN     EFI_GUID            *Guid\r
+  IN OUT  EFI_HII_PROTOCOL          **HiiProtocol, OPTIONAL\r
+  IN      EFI_GUID                  *Guid\r
   )\r
 {\r
-  EFI_STATUS        Status;\r
-\r
-  FRAMEWORK_EFI_HII_HANDLE     *HiiHandleBuffer;\r
-  FRAMEWORK_EFI_HII_HANDLE     HiiHandle;\r
-  UINT16            HiiHandleBufferLength;\r
-  UINT32            NumberOfHiiHandles;\r
-  EFI_GUID          HiiGuid;\r
-  EFI_HII_PROTOCOL  *HiiProt;\r
-  UINT32            Index;\r
-  UINT16            Length;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_HII_HANDLE          *HiiHandleBuffer;\r
+  FRAMEWORK_EFI_HII_HANDLE          HiiHandle;\r
+  UINT16                            HiiHandleBufferLength;\r
+  UINT32                            NumberOfHiiHandles;\r
+  EFI_GUID                          HiiGuid;\r
+  EFI_HII_PROTOCOL                  *HiiProt;\r
+  UINT32                            Index;\r
+  UINT16                            Length;\r
 \r
   HiiHandle = 0;\r
   if ((HiiProtocol != NULL) && (*HiiProtocol != NULL)) {\r
@@ -674,7 +673,6 @@ FindHiiHandle (
     ExtractDataFromHiiHandle (HiiHandleBuffer[Index], &Length, NULL, &HiiGuid);\r
 \r
     if (CompareGuid (&HiiGuid, Guid)) {\r
-\r
       HiiHandle = HiiHandleBuffer[Index];\r
       break;\r
     }\r
@@ -690,32 +688,32 @@ lbl_exit:
   the reasonable parameters for that FormSet.  Values for strings and passwords\r
   are not verified due to their not having the equivalent of valid range settings.\r
 \r
-  @param HiiHandle    Handle of the HII database entry to query\r
-\r
-  @param Results      If return Status is EFI_SUCCESS, Results provides valid data\r
+  @param  HiiHandle   Handle of the HII database entry to query\r
+  @param  Results     If return Status is EFI_SUCCESS, Results provides valid data\r
                       TRUE  = NVRAM Data is within parameters\r
                       FALSE = NVRAM Data is NOT within parameters\r
-  @retval EFI_OUT_OF_RESOURCES      No enough buffer to allocate\r
-  @retval EFI_SUCCESS               Data successfully validated\r
+                      \r
+  @retval EFI_OUT_OF_RESOURCES   No enough buffer to allocate\r
+  @retval EFI_SUCCESS            Data successfully validated\r
 **/\r
 EFI_STATUS\r
 ValidateDataFromHiiHandle (\r
-  IN      FRAMEWORK_EFI_HII_HANDLE       HiiHandle,\r
-  OUT     BOOLEAN             *Results\r
+  IN      FRAMEWORK_EFI_HII_HANDLE  HiiHandle,\r
+     OUT  BOOLEAN                   *Results\r
   )\r
 {\r
-  EFI_STATUS        Status;\r
-  EFI_HII_PROTOCOL  *Hii;\r
-  EFI_GUID          Guid;\r
-  UINT8             *RawData;\r
-  UINT8             *OldData;\r
-  UINTN             RawDataLength;\r
-  UINT8             *VariableData;\r
-  UINTN             Index;\r
-  UINTN             Temp;\r
-  UINTN             SizeOfNvStore;\r
-  UINTN             CachedStart;\r
-  BOOLEAN           GotMatch;\r
+  EFI_STATUS                        Status;\r
+  EFI_HII_PROTOCOL                  *Hii;\r
+  EFI_GUID                          Guid;\r
+  UINT8                             *RawData;\r
+  UINT8                             *OldData;\r
+  UINTN                             RawDataLength;\r
+  UINT8                             *VariableData;\r
+  UINTN                             Index;\r
+  UINTN                             Temp;\r
+  UINTN                             SizeOfNvStore;\r
+  UINTN                             CachedStart;\r
+  BOOLEAN                           GotMatch;\r
 \r
   RawDataLength = DEFAULT_FORM_BUFFER_SIZE;\r
   SizeOfNvStore = 0;\r
@@ -724,7 +722,6 @@ ValidateDataFromHiiHandle (
   *Results      = TRUE;\r
 \r
   Status        = GetHiiInterface (&Hii);\r
-\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
@@ -741,7 +738,6 @@ ValidateDataFromHiiHandle (
   // Get all the forms associated with this HiiHandle\r
   //\r
   Status = Hii->GetForms (Hii, HiiHandle, 0, &RawDataLength, RawData);\r
-\r
   if (EFI_ERROR (Status)) {\r
     gBS->FreePool (RawData);\r
 \r
@@ -777,6 +773,7 @@ ValidateDataFromHiiHandle (
 \r
   for (Index = 0; RawData[Index] != FRAMEWORK_EFI_IFR_END_FORM_SET_OP;) {\r
     switch (RawData[Index]) {\r
+      \r
     case FRAMEWORK_EFI_IFR_FORM_SET_OP:\r
       break;\r
 \r
@@ -856,6 +853,7 @@ ValidateDataFromHiiHandle (
   //\r
   for (Index = 0; RawData[Index] != FRAMEWORK_EFI_IFR_END_FORM_SET_OP;) {\r
     switch (RawData[Index]) {\r
+      \r
     case FRAMEWORK_EFI_IFR_ONE_OF_OP:\r
       //\r
       // A one_of has no data, its the option that does - cache the storage Id\r
index eb07f9abd12d7c800b0800101e2d03cb1cd79ffd..bed424186aeec98de9f27f7ffa5d9a847c60071c 100644 (file)
@@ -20,33 +20,33 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   The form package is a collection of forms that are intended to describe the pages that will be\r
   displayed to the user.\r
   \r
-  @param FormSetTitle         Title of formset\r
-  @param Guid                 Guid of formset\r
-  @param Class                Class of formset\r
-  @param SubClass             Sub class of formset\r
-  @param FormBuffer           Pointer of the formset created\r
-  @param StringBuffer         Pointer of FormSetTitile string created\r
+  @param  FormSetTitle         Title of formset\r
+  @param  Guid                 Guid of formset\r
+  @param  Class                Class of formset\r
+  @param  SubClass             Sub class of formset\r
+  @param  FormBuffer           Pointer of the formset created\r
+  @param  StringBuffer         Pointer of FormSetTitile string created\r
   \r
-  @retval EFI_OUT_OF_RESOURCES     No enough buffer to allocate\r
-  @retval EFI_SUCCESS              Formset successfully created  \r
+  @retval EFI_OUT_OF_RESOURCES No enough buffer to allocate\r
+  @retval EFI_SUCCESS          Formset successfully created  \r
 **/\r
 EFI_STATUS\r
 CreateFormSet (\r
-  IN      CHAR16              *FormSetTitle,\r
-  IN      EFI_GUID            *Guid,\r
-  IN      UINT8               Class,\r
-  IN      UINT8               SubClass,\r
-  IN OUT  VOID                **FormBuffer,\r
-  IN OUT  VOID                **StringBuffer\r
+  IN      CHAR16                    *FormSetTitle,\r
+  IN      EFI_GUID                  *Guid,\r
+  IN      UINT8                     Class,\r
+  IN      UINT8                     SubClass,\r
+  IN OUT  VOID                      **FormBuffer,\r
+  IN OUT  VOID                      **StringBuffer\r
   )\r
 {\r
-  EFI_STATUS            Status;\r
-  EFI_HII_IFR_PACK      IfrPack;\r
-  FRAMEWORK_EFI_IFR_FORM_SET      FormSet;\r
-  FRAMEWORK_EFI_IFR_END_FORM_SET  EndFormSet;\r
-  UINT8                 *Destination;\r
-  CHAR16                CurrentLanguage[4];\r
-  STRING_REF            StringToken;\r
+  EFI_STATUS                        Status;\r
+  EFI_HII_IFR_PACK                  IfrPack;\r
+  FRAMEWORK_EFI_IFR_FORM_SET        FormSet;\r
+  FRAMEWORK_EFI_IFR_END_FORM_SET    EndFormSet;\r
+  UINT8                             *Destination;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Pre-allocate a buffer sufficient for us to work from.\r
@@ -119,31 +119,31 @@ CreateFormSet (
 }\r
 \r
 /**\r
-  Create a form\r
+  Create a form.\r
   A form is the encapsulation of what amounts to a browser page. The header defines a FormId,\r
   which is referenced by the form package, among others. It also defines a FormTitle, which is a\r
   string to be used as the title for the form\r
   \r
-  @param FormTitle        Title of the form\r
-  @param FormId           Id of the form\r
-  @param FormBuffer       Pointer of the form created\r
-  @param StringBuffer     Pointer of FormTitil string created\r
+  @param  FormTitle        Title of the form\r
+  @param  FormId           Id of the form\r
+  @param  FormBuffer       Pointer of the form created\r
+  @param  StringBuffer     Pointer of FormTitil string created\r
   \r
-  @retval EFI_SUCCESS     Form successfully created\r
+  @retval EFI_SUCCESS      Form successfully created\r
 **/\r
 EFI_STATUS\r
 CreateForm (\r
-  IN      CHAR16              *FormTitle,\r
-  IN      UINT16              FormId,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      CHAR16                    *FormTitle,\r
+  IN      UINT16                    FormId,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS        Status;\r
-  FRAMEWORK_EFI_IFR_FORM      Form;\r
-  FRAMEWORK_EFI_IFR_END_FORM  EndForm;\r
-  CHAR16            CurrentLanguage[4];\r
-  STRING_REF        StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_FORM            Form;\r
+  FRAMEWORK_EFI_IFR_END_FORM        EndForm;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Obtain current language value\r
@@ -181,23 +181,23 @@ CreateForm (
   Subtitle strings are intended to be used by authors to separate sections of questions into semantic\r
   groups.\r
   \r
-  @param SubTitle         Sub title to be created\r
-  @param FormBuffer       Where this subtitle to add to\r
-  @param StringBuffer     String buffer created for subtitle\r
+  @param  SubTitle         Sub title to be created\r
+  @param  FormBuffer       Where this subtitle to add to\r
+  @param  StringBuffer     String buffer created for subtitle\r
   \r
   @retval EFI_SUCCESS      Subtitle successfully created\r
 **/\r
 EFI_STATUS\r
 CreateSubTitle (\r
-  IN      CHAR16              *SubTitle,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      CHAR16                    *SubTitle,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS        Status;\r
-  FRAMEWORK_EFI_IFR_SUBTITLE  Subtitle;\r
-  CHAR16            CurrentLanguage[4];\r
-  STRING_REF        StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_SUBTITLE        Subtitle;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Obtain current language value\r
@@ -224,31 +224,31 @@ CreateSubTitle (
   Unlike HTML, text is simply another tag. \r
   This tag type enables IFR to be more easily localized.\r
   \r
-  @param String          - First string of the text\r
-  @param String2         - Second string of the text\r
-  @param String3         - Help string of the text\r
-  @param Flags           - Flag of the text\r
-  @param Key             - Key of the text\r
-  @param FormBuffer      - The form where this text adds to\r
-  @param StringBuffer    - String buffer created for String, String2 and String3\r
+  @param  String          First string of the text\r
+  @param  String2         Second string of the text\r
+  @param  String3         Help string of the text\r
+  @param  Flags           Flag of the text\r
+  @param  Key             Key of the text\r
+  @param  FormBuffer      The form where this text adds to\r
+  @param  StringBuffer    String buffer created for String, String2 and String3\r
   \r
-  @retval EFI_SUCCESS     Text successfully created\r
+  @retval EFI_SUCCESS     Text successfully created\r
 **/\r
 EFI_STATUS\r
 CreateText (\r
-  IN      CHAR16              *String,\r
-  IN      CHAR16              *String2,\r
-  IN      CHAR16              *String3,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      CHAR16                    *String,\r
+  IN      CHAR16                    *String2,\r
+  IN      CHAR16                    *String3,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS    Status;\r
-  FRAMEWORK_EFI_IFR_TEXT  Text;\r
-  CHAR16        CurrentLanguage[4];\r
-  STRING_REF    StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_TEXT            Text;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Obtain current language value\r
@@ -299,27 +299,27 @@ CreateText (
 }\r
 \r
 /**\r
-  Create a hyperlink\r
+  Create a hyperlink.\r
   \r
-  @param FormId         Form ID of the hyperlink\r
-  @param Prompt         Prompt of the hyperlink\r
-  @param FormBuffer     The form where this hyperlink adds to\r
-  @param StringBuffer   String buffer created for Prompt\r
+  @param  FormId         Form ID of the hyperlink\r
+  @param  Prompt         Prompt of the hyperlink\r
+  @param  FormBuffer     The form where this hyperlink adds to\r
+  @param  StringBuffer   String buffer created for Prompt\r
   \r
-  @retval EFI_SUCCESS   Hyperlink successfully created  \r
+  @retval EFI_SUCCESS    Hyperlink successfully created  \r
 **/\r
 EFI_STATUS\r
 CreateGoto (\r
-  IN      UINT16              FormId,\r
-  IN      CHAR16              *Prompt,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      UINT16                    FormId,\r
+  IN      CHAR16                    *Prompt,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS  Status;\r
-  FRAMEWORK_EFI_IFR_REF Hyperlink;\r
-  CHAR16      CurrentLanguage[4];\r
-  STRING_REF  StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_REF             Hyperlink;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Obtain current language value\r
@@ -346,37 +346,37 @@ CreateGoto (
   Create a one-of question with a set of options to choose from.  The\r
   OptionsList is a pointer to a null-terminated list of option descriptions.\r
 \r
-  @param QuestionId      - Question ID of the one-of box\r
-  @param DataWidth       - DataWidth of the one-of box\r
-  @param Prompt          - Prompt of the one-of box\r
-  @param Help            - Help of the one-of box\r
-  @param OptionsList     - Each string in it is an option of the one-of box\r
-  @param OptionCount     - Option string count\r
-  @param FormBuffer      - The form where this one-of box adds to\r
-  @param StringBuffer    - String buffer created for Prompt, Help and Option strings\r
+  @param  QuestionId        Question ID of the one-of box\r
+  @param  DataWidth         DataWidth of the one-of box\r
+  @param  Prompt            Prompt of the one-of box\r
+  @param  Help              Help of the one-of box\r
+  @param  OptionsList       Each string in it is an option of the one-of box\r
+  @param  OptionCount       Option string count\r
+  @param  FormBuffer        The form where this one-of box adds to\r
+  @param  StringBuffer      String buffer created for Prompt, Help and Option strings\r
   \r
-  @retval EFI_DEVICE_ERROR    - DataWidth > 2\r
-  @retval EFI_SUCCESS         - One-Of box successfully created.\r
+  @retval EFI_DEVICE_ERROR  DataWidth > 2\r
+  @retval EFI_SUCCESS       One-Of box successfully created.\r
 **/\r
 EFI_STATUS\r
 CreateOneOf (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      CHAR16              *Prompt,\r
-  IN      CHAR16              *Help,\r
-  IN      IFR_OPTION          *OptionsList,\r
-  IN      UINTN               OptionCount,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      CHAR16                    *Prompt,\r
+  IN      CHAR16                    *Help,\r
+  IN      IFR_OPTION                *OptionsList,\r
+  IN      UINTN                     OptionCount,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS            Status;\r
-  UINTN                 Index;\r
-  FRAMEWORK_EFI_IFR_ONE_OF        OneOf;\r
-  FRAMEWORK_EFI_IFR_ONE_OF_OPTION OneOfOption;\r
-  FRAMEWORK_EFI_IFR_END_ONE_OF    EndOneOf;\r
-  CHAR16                CurrentLanguage[4];\r
-  STRING_REF            StringToken;\r
+  EFI_STATUS                        Status;\r
+  UINTN                             Index;\r
+  FRAMEWORK_EFI_IFR_ONE_OF          OneOf;\r
+  FRAMEWORK_EFI_IFR_ONE_OF_OPTION   OneOfOption;\r
+  FRAMEWORK_EFI_IFR_END_ONE_OF      EndOneOf;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // We do not create op-code storage widths for one-of in excess of 16 bits for now\r
@@ -459,36 +459,36 @@ CreateOneOf (
   Create a one-of question with a set of options to choose from.  The\r
   OptionsList is a pointer to a null-terminated list of option descriptions.\r
   \r
-  @param QuestionId      - Question ID of the ordered list\r
-  @param MaxEntries      - MaxEntries of the ordered list\r
-  @param Prompt          - Prompt of the ordered list\r
-  @param Help            - Help of the ordered list\r
-  @param OptionsList     - Each string in it is an option of the ordered list\r
-  @param OptionCount     - Option string count\r
-  @param FormBuffer      - The form where this ordered list adds to\r
-  @param StringBuffer    - String buffer created for Prompt, Help and Option strings\r
+  @param  QuestionId      Question ID of the ordered list\r
+  @param  MaxEntries      MaxEntries of the ordered list\r
+  @param  Prompt          Prompt of the ordered list\r
+  @param  Help            Help of the ordered list\r
+  @param  OptionsList     Each string in it is an option of the ordered list\r
+  @param  OptionCount     Option string count\r
+  @param  FormBuffer      The form where this ordered list adds to\r
+  @param  StringBuffer    String buffer created for Prompt, Help and Option strings\r
   \r
-  @retval EFI_SUCCESS     Ordered list successfully created.\r
+  @retval EFI_SUCCESS     Ordered list successfully created.\r
 **/\r
 EFI_STATUS\r
 CreateOrderedList (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               MaxEntries,\r
-  IN      CHAR16              *Prompt,\r
-  IN      CHAR16              *Help,\r
-  IN      IFR_OPTION          *OptionsList,\r
-  IN      UINTN               OptionCount,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     MaxEntries,\r
+  IN      CHAR16                    *Prompt,\r
+  IN      CHAR16                    *Help,\r
+  IN      IFR_OPTION                *OptionsList,\r
+  IN      UINTN                     OptionCount,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS            Status;\r
-  UINTN                 Index;\r
-  FRAMEWORK_EFI_IFR_ORDERED_LIST  OrderedList;\r
-  FRAMEWORK_EFI_IFR_ONE_OF_OPTION OrderedListOption;\r
-  FRAMEWORK_EFI_IFR_END_ONE_OF    EndOrderedList;\r
-  CHAR16                CurrentLanguage[4];\r
-  STRING_REF            StringToken;\r
+  EFI_STATUS                        Status;\r
+  UINTN                             Index;\r
+  FRAMEWORK_EFI_IFR_ORDERED_LIST    OrderedList;\r
+  FRAMEWORK_EFI_IFR_ONE_OF_OPTION   OrderedListOption;\r
+  FRAMEWORK_EFI_IFR_END_ONE_OF      EndOrderedList;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Obtain current language value\r
@@ -557,34 +557,34 @@ CreateOrderedList (
 }\r
 \r
 /**\r
-  Create a checkbox\r
+  Create a checkbox.\r
   \r
-  @param QuestionId       Question ID of the check box\r
-  @param DataWidth        DataWidth of the check box\r
-  @param Prompt           Prompt of the check box\r
-  @param Help             Help of the check box  \r
-  @param Flags            Flags of the check box\r
-  @param FormBuffer       The form where this check box adds to\r
-  @param StringBuffer     String buffer created for Prompt and Help.\r
+  @param  QuestionId        Question ID of the check box\r
+  @param  DataWidth         DataWidth of the check box\r
+  @param  Prompt            Prompt of the check box\r
+  @param  Help              Help of the check box  \r
+  @param  Flags             Flags of the check box\r
+  @param  FormBuffer        The form where this check box adds to\r
+  @param  StringBuffer      String buffer created for Prompt and Help.\r
   \r
-  @retval  EFI_DEVICE_ERROR    DataWidth > 1\r
-  @retval EFI_SUCCESS          Check box successfully created\r
+  @retval EFI_DEVICE_ERROR  DataWidth > 1\r
+  @retval EFI_SUCCESS       Check box successfully created\r
 **/\r
 EFI_STATUS\r
 CreateCheckBox (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      CHAR16              *Prompt,\r
-  IN      CHAR16              *Help,\r
-  IN      UINT8               Flags,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      CHAR16                    *Prompt,\r
+  IN      CHAR16                    *Help,\r
+  IN      UINT8                     Flags,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS        Status;\r
-  FRAMEWORK_EFI_IFR_CHECKBOX  CheckBox;\r
-  CHAR16            CurrentLanguage[4];\r
-  STRING_REF        StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_CHECKBOX        CheckBox;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // We do not create op-code storage widths for checkbox in excess of 8 bits for now\r
@@ -633,42 +633,42 @@ CreateCheckBox (
 /**\r
   Create a numeric\r
   \r
-  @param QuestionId       Question ID of the numeric\r
-  @param DataWidth        DataWidth of the numeric\r
-  @param Prompt           Prompt of the numeric\r
-  @param Help             Help of the numeric\r
-  @param Minimum          Minumun boundary of the numeric\r
-  @param Maximum          Maximum boundary of the numeric\r
-  @param Step             Step of the numeric\r
-  @param Default          Default value\r
-  @param Flags            Flags of the numeric\r
-  @param Key              Key of the numeric\r
-  @param FormBuffer       The form where this numeric adds to\r
-  @param StringBuffer     String buffer created for Prompt and Help.\r
-\r
-  @retval EFI_DEVICE_ERROR       DataWidth > 2\r
-  @retval EFI_SUCCESS            Numeric is successfully created  \r
+  @param  QuestionId        Question ID of the numeric\r
+  @param  DataWidth         DataWidth of the numeric\r
+  @param  Prompt            Prompt of the numeric\r
+  @param  Help              Help of the numeric\r
+  @param  Minimum           Minumun boundary of the numeric\r
+  @param  Maximum           Maximum boundary of the numeric\r
+  @param  Step              Step of the numeric\r
+  @param  Default           Default value\r
+  @param  Flags             Flags of the numeric\r
+  @param  Key               Key of the numeric\r
+  @param  FormBuffer        The form where this numeric adds to\r
+  @param  StringBuffer      String buffer created for Prompt and Help.\r
+\r
+  @retval EFI_DEVICE_ERROR  DataWidth > 2\r
+  @retval EFI_SUCCESS       Numeric is successfully created  \r
 **/\r
 EFI_STATUS\r
 CreateNumeric (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      CHAR16              *Prompt,\r
-  IN      CHAR16              *Help,\r
-  IN      UINT16              Minimum,\r
-  IN      UINT16              Maximum,\r
-  IN      UINT16              Step,\r
-  IN      UINT16              Default,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      CHAR16                    *Prompt,\r
+  IN      CHAR16                    *Help,\r
+  IN      UINT16                    Minimum,\r
+  IN      UINT16                    Maximum,\r
+  IN      UINT16                    Step,\r
+  IN      UINT16                    Default,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS      Status;\r
-  FRAMEWORK_EFI_IFR_NUMERIC Numeric;\r
-  CHAR16          CurrentLanguage[4];\r
-  STRING_REF      StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_NUMERIC         Numeric;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // We do not create op-code storage widths for numerics in excess of 16 bits for now\r
@@ -720,38 +720,39 @@ CreateNumeric (
 }\r
 \r
 /**\r
-  Create a string\r
+  Create a string.\r
   \r
-  @param QuestionId      - Question ID of the string\r
-  @param DataWidth       - DataWidth of the string\r
-  @param Prompt          - Prompt of the string\r
-  @param Help            - Help of the string\r
-  @param MinSize         - Min size boundary of the string\r
-  @param MaxSize         - Max size boundary of the string\r
-  @param Flags           - Flags of the string\r
-  @param Key             - Key of the string\r
-  @param FormBuffer      - The form where this string adds to\r
-  @param StringBuffer    - String buffer created for Prompt and Help.\r
-  @retval EFI_SUCCESS     - String successfully created.  \r
+  @param  QuestionId     Question ID of the string\r
+  @param  DataWidth      DataWidth of the string\r
+  @param  Prompt         Prompt of the string\r
+  @param  Help           Help of the string\r
+  @param  MinSize        Min size boundary of the string\r
+  @param  MaxSize        Max size boundary of the string\r
+  @param  Flags          Flags of the string\r
+  @param  Key            Key of the string\r
+  @param  FormBuffer     The form where this string adds to\r
+  @param  StringBuffer   String buffer created for Prompt and Help.\r
+  \r
+  @retval EFI_SUCCESS    String successfully created.  \r
 **/\r
 EFI_STATUS\r
 CreateString (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      CHAR16              *Prompt,\r
-  IN      CHAR16              *Help,\r
-  IN      UINT8               MinSize,\r
-  IN      UINT8               MaxSize,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer,\r
-  IN OUT  VOID                *StringBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      CHAR16                    *Prompt,\r
+  IN      CHAR16                    *Help,\r
+  IN      UINT8                     MinSize,\r
+  IN      UINT8                     MaxSize,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer,\r
+  IN OUT  VOID                      *StringBuffer\r
   )\r
 {\r
-  EFI_STATUS      Status;\r
-  FRAMEWORK_EFI_IFR_STRING  String;\r
-  CHAR16          CurrentLanguage[4];\r
-  STRING_REF      StringToken;\r
+  EFI_STATUS                        Status;\r
+  FRAMEWORK_EFI_IFR_STRING          String;\r
+  CHAR16                            CurrentLanguage[4];\r
+  STRING_REF                        StringToken;\r
 \r
   //\r
   // Obtain current language value\r
index a467e099a731be5fb35306c131e44faf140968ec..c85aba3a4ca28ce1eab57494b489e45ba9d2aed2 100644 (file)
@@ -11,29 +11,28 @@ http://opensource.org/licenses/bsd-license.php
 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
 #include "IfrSupportLibInternal.h"\r
 \r
 /**\r
-  Create a SubTitle opcode independent of string creation\r
+  Create a SubTitle opcode independent of string creation.\r
   This is used primarily by users who need to create just one particular valid op-code and the string\r
   data will be assumed to exist in the HiiDatabase already.  (Useful when exporting op-codes at a label\r
   location to pre-defined forms in HII)\r
   \r
-  @param StringToken      StringToken of the subtitle\r
-  @param FormBuffer       Output of subtitle as a form\r
+  @param  StringToken      StringToken of the subtitle\r
+  @param  FormBuffer       Output of subtitle as a form\r
   \r
-  @retval EFI_SUCCESS     Subtitle created to be a form\r
+  @retval EFI_SUCCESS      Subtitle created to be a form\r
 **/\r
 EFI_STATUS\r
 CreateSubTitleOpCode (\r
-  IN      STRING_REF          StringToken,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      STRING_REF                StringToken,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
 {\r
-  FRAMEWORK_EFI_IFR_SUBTITLE  Subtitle;\r
+  FRAMEWORK_EFI_IFR_SUBTITLE        Subtitle;\r
 \r
   Subtitle.Header.OpCode  = FRAMEWORK_EFI_IFR_SUBTITLE_OP;\r
   Subtitle.Header.Length  = sizeof (FRAMEWORK_EFI_IFR_SUBTITLE);\r
@@ -44,31 +43,32 @@ CreateSubTitleOpCode (
 }\r
 \r
 /**\r
-  Create a Text opcode independent of string creation\r
+  Create a Text opcode independent of string creation.\r
+  \r
   This is used primarily by users who need to create just one particular valid op-code and the string\r
   data will be assumed to exist in the HiiDatabase already.  (Useful when exporting op-codes at a label\r
   location to pre-defined forms in HII)\r
 \r
-  @param StringToken               - First string token of the text\r
-  @param StringTokenTwo            - Second string token of the text\r
-  @param StringTokenThree          - Help string token of the text\r
-  @param Flags                     - Flag of the text\r
-  @param Key                       - Key of the text\r
-  @param FormBuffer                - Output of text as a form\r
+  @param StringToken         First string token of the text\r
+  @param StringTokenTwo      Second string token of the text\r
+  @param StringTokenThree    Help string token of the text\r
+  @param Flags               Flag of the text\r
+  @param Key                 Key of the text\r
+  @param FormBuffer          Output of text as a form\r
 \r
-  @retval EFI_SUCCESS       - Text created to be a form\r
+  @retval EFI_SUCCESS        Text created to be a form\r
 **/\r
 EFI_STATUS\r
 CreateTextOpCode (\r
-  IN      STRING_REF          StringToken,\r
-  IN      STRING_REF          StringTokenTwo,\r
-  IN      STRING_REF          StringTokenThree,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      STRING_REF                StringToken,\r
+  IN      STRING_REF                StringTokenTwo,\r
+  IN      STRING_REF                StringTokenThree,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
 {\r
-  FRAMEWORK_EFI_IFR_TEXT  Text;\r
+  FRAMEWORK_EFI_IFR_TEXT            Text;\r
 \r
   Text.Header.OpCode  = FRAMEWORK_EFI_IFR_TEXT_OP;\r
   Text.Header.Length  = sizeof (FRAMEWORK_EFI_IFR_TEXT);\r
@@ -85,32 +85,32 @@ CreateTextOpCode (
 }\r
 \r
 /**\r
-  Create a hyperlink opcode independent of string creation\r
+  Create a hyperlink opcode independent of string creation.\r
+  \r
   This is used primarily by users who need to create just one particular valid op-code and the string\r
   data will be assumed to exist in the HiiDatabase already.  (Useful when exporting op-codes at a label\r
   location to pre-defined forms in HII)\r
   \r
-\r
-  @param FormId          - Form ID of the hyperlink\r
-  @param StringToken     - Prompt string token of the hyperlink\r
-  @param StringTokenTwo  - Help string token of the hyperlink\r
-  @param Flags           - Flags of the hyperlink\r
-  @param Key             - Key of the hyperlink\r
-  @param FormBuffer      - Output of hyperlink as a form\r
-  @retval EFI_SUCCESS   - Hyperlink created to be a form\r
---*/\r
+  @param  FormId          Form ID of the hyperlink\r
+  @param  StringToken     Prompt string token of the hyperlink\r
+  @param  StringTokenTwo  Help string token of the hyperlink\r
+  @param  Flags           Flags of the hyperlink\r
+  @param  Key             Key of the hyperlink\r
+  @param  FormBuffer      Output of hyperlink as a form\r
+  \r
+  @retval EFI_SUCCESS     Hyperlink created to be a form\r
+**/\r
 EFI_STATUS\r
 CreateGotoOpCode (\r
-  IN      UINT16              FormId,\r
-  IN      STRING_REF          StringToken,\r
-  IN      STRING_REF          StringTokenTwo,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    FormId,\r
+  IN      STRING_REF                StringToken,\r
+  IN      STRING_REF                StringTokenTwo,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
-\r
 {\r
-  FRAMEWORK_EFI_IFR_REF Hyperlink;\r
+  FRAMEWORK_EFI_IFR_REF             Hyperlink;\r
 \r
   Hyperlink.Header.OpCode = FRAMEWORK_EFI_IFR_REF_OP;\r
   Hyperlink.Header.Length = sizeof (FRAMEWORK_EFI_IFR_REF);\r
@@ -134,34 +134,34 @@ CreateGotoOpCode (
   OptionsList is a pointer to a null-terminated list of option descriptions.  Ensure that OptionsList[x].StringToken\r
   has been filled in since this routine will not generate StringToken values.\r
   \r
-  @param QuestionId      - Question ID of the one-of box\r
-  @param DataWidth       - DataWidth of the one-of box\r
-  @param PromptToken     - Prompt string token of the one-of box\r
-  @param HelpToken       - Help string token of the one-of box\r
-  @param OptionsList     - Each string in it is an option of the one-of box\r
-  @param OptionCount     - Option string count\r
-  @param FormBuffer      - Output of One-Of box as a form\r
+  @param  QuestionId        Question ID of the one-of box\r
+  @param  DataWidth         DataWidth of the one-of box\r
+  @param  PromptToken       Prompt string token of the one-of box\r
+  @param  HelpToken         Help string token of the one-of box\r
+  @param  OptionsList       Each string in it is an option of the one-of box\r
+  @param  OptionCount       Option string count\r
+  @param  FormBuffer        Output of One-Of box as a form\r
   \r
 \r
-  @retval EFI_SUCCESS         - One-Of box created to be a form\r
-  @retval EFI_DEVICE_ERROR    - DataWidth > 2\r
+  @retval EFI_SUCCESS       One-Of box created to be a form\r
+  @retval EFI_DEVICE_ERROR  DataWidth > 2\r
 **/\r
 EFI_STATUS\r
 CreateOneOfOpCode (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      STRING_REF          PromptToken,\r
-  IN      STRING_REF          HelpToken,\r
-  IN      IFR_OPTION          *OptionsList,\r
-  IN      UINTN               OptionCount,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      STRING_REF                PromptToken,\r
+  IN      STRING_REF                HelpToken,\r
+  IN      IFR_OPTION                *OptionsList,\r
+  IN      UINTN                     OptionCount,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
 {\r
-  UINTN                 Index;\r
-  FRAMEWORK_EFI_IFR_ONE_OF        OneOf;\r
-  FRAMEWORK_EFI_IFR_ONE_OF_OPTION OneOfOption;\r
-  FRAMEWORK_EFI_IFR_END_ONE_OF    EndOneOf;\r
-  UINT8                 *LocalBuffer;\r
+  UINTN                             Index;\r
+  FRAMEWORK_EFI_IFR_ONE_OF          OneOf;\r
+  FRAMEWORK_EFI_IFR_ONE_OF_OPTION   OneOfOption;\r
+  FRAMEWORK_EFI_IFR_END_ONE_OF      EndOneOf;\r
+  UINT8                             *LocalBuffer;\r
 \r
   //\r
   // We do not create op-code storage widths for one-of in excess of 16 bits for now\r
@@ -175,9 +175,7 @@ CreateOneOfOpCode (
   OneOf.QuestionId    = QuestionId;\r
   OneOf.Width         = DataWidth;\r
   OneOf.Prompt        = PromptToken;\r
-\r
   OneOf.Help          = HelpToken;\r
-\r
   LocalBuffer         = (UINT8 *) FormBuffer;\r
 \r
   CopyMem (LocalBuffer, &OneOf, sizeof (FRAMEWORK_EFI_IFR_ONE_OF));\r
@@ -217,41 +215,39 @@ CreateOneOfOpCode (
   OptionsList is a pointer to a null-terminated list of option descriptions.  Ensure that OptionsList[x].StringToken\r
   has been filled in since this routine will not generate StringToken values.\r
   \r
-  @param QuestionId      - Question ID of the ordered list\r
-  @param MaxEntries      - MaxEntries of the ordered list\r
-  @param PromptToken     - Prompt string token of the ordered list\r
-  @param HelpToken       - Help string token of the ordered list\r
-  @param OptionsList     - Each string in it is an option of the ordered list\r
-  @param OptionCount     - Option string count\r
-  @param FormBuffer      - Output of ordered list as a form\r
+  @param  QuestionId      Question ID of the ordered list\r
+  @param  MaxEntries      MaxEntries of the ordered list\r
+  @param  PromptToken     Prompt string token of the ordered list\r
+  @param  HelpToken       Help string token of the ordered list\r
+  @param  OptionsList     Each string in it is an option of the ordered list\r
+  @param  OptionCount     Option string count\r
+  @param  FormBuffer      Output of ordered list as a form\r
   \r
-  @retval EFI_SUCCESS     Ordered list created to be a form\r
+  @retval EFI_SUCCESS     Ordered list created to be a form\r
 **/\r
 EFI_STATUS\r
 CreateOrderedListOpCode (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               MaxEntries,\r
-  IN      STRING_REF          PromptToken,\r
-  IN      STRING_REF          HelpToken,\r
-  IN      IFR_OPTION          *OptionsList,\r
-  IN      UINTN               OptionCount,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     MaxEntries,\r
+  IN      STRING_REF                PromptToken,\r
+  IN      STRING_REF                HelpToken,\r
+  IN      IFR_OPTION                *OptionsList,\r
+  IN      UINTN                     OptionCount,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
 {\r
-  UINTN                 Index;\r
-  FRAMEWORK_EFI_IFR_ORDERED_LIST  OrderedList;\r
-  FRAMEWORK_EFI_IFR_ONE_OF_OPTION OrderedListOption;\r
-  FRAMEWORK_EFI_IFR_END_ONE_OF    EndOrderedList;\r
-  UINT8                 *LocalBuffer;\r
+  UINTN                             Index;\r
+  FRAMEWORK_EFI_IFR_ORDERED_LIST    OrderedList;\r
+  FRAMEWORK_EFI_IFR_ONE_OF_OPTION   OrderedListOption;\r
+  FRAMEWORK_EFI_IFR_END_ONE_OF      EndOrderedList;\r
+  UINT8                             *LocalBuffer;\r
 \r
   OrderedList.Header.OpCode = FRAMEWORK_EFI_IFR_ORDERED_LIST_OP;\r
   OrderedList.Header.Length = sizeof (FRAMEWORK_EFI_IFR_ORDERED_LIST);\r
   OrderedList.QuestionId    = QuestionId;\r
   OrderedList.MaxEntries    = MaxEntries;\r
   OrderedList.Prompt        = PromptToken;\r
-\r
   OrderedList.Help          = HelpToken;\r
-\r
   LocalBuffer               = (UINT8 *) FormBuffer;\r
 \r
   CopyMem (LocalBuffer, &OrderedList, sizeof (FRAMEWORK_EFI_IFR_ORDERED_LIST));\r
@@ -283,35 +279,34 @@ CreateOrderedListOpCode (
 }\r
 \r
 /**\r
-  Create a checkbox opcode independent of string creation\r
+  Create a checkbox opcode independent of string creation.\r
   This is used primarily by users who need to create just one particular valid op-code and the string\r
   data will be assumed to exist in the HiiDatabase already.  (Useful when exporting op-codes at a label\r
   location to pre-defined forms in HII)\r
 \r
-  @param QuestionId      - Question ID of the check box\r
-  @param DataWidth       - DataWidth of the check box\r
-  @param PromptToken     - Prompt string token of the check box\r
-  @param HelpToken       - Help string token of the check box\r
-  @param Flags           - Flags of the check box\r
-  @param Key             - Key of the check box\r
-  @param FormBuffer      - Output of the check box as a form\r
+  @param  QuestionId        Question ID of the check box\r
+  @param  DataWidth         DataWidth of the check box\r
+  @param  PromptToken       Prompt string token of the check box\r
+  @param  HelpToken         Help string token of the check box\r
+  @param  Flags             Flags of the check box\r
+  @param  Key               Key of the check box\r
+  @param  FormBuffer        Output of the check box as a form\r
 \r
-  @retval EFI_SUCCESS       Checkbox created to be a form\r
-  @retval EFI_DEVICE_ERROR  DataWidth > 1\r
+  @retval EFI_SUCCESS       Checkbox created to be a form\r
+  @retval EFI_DEVICE_ERROR  DataWidth > 1\r
 **/\r
 EFI_STATUS\r
 CreateCheckBoxOpCode (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      STRING_REF          PromptToken,\r
-  IN      STRING_REF          HelpToken,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      STRING_REF                PromptToken,\r
+  IN      STRING_REF                HelpToken,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
-\r
 {\r
-  FRAMEWORK_EFI_IFR_CHECKBOX  CheckBox;\r
+  FRAMEWORK_EFI_IFR_CHECKBOX        CheckBox;\r
 \r
   //\r
   // We do not create op-code storage widths for checkbox in excess of 8 bits for now\r
@@ -325,7 +320,6 @@ CreateCheckBoxOpCode (
   CheckBox.QuestionId     = QuestionId;\r
   CheckBox.Width          = DataWidth;\r
   CheckBox.Prompt         = PromptToken;\r
-\r
   CheckBox.Help           = HelpToken;\r
   CheckBox.Flags          = Flags;\r
   CheckBox.Key            = Key;\r
@@ -336,44 +330,43 @@ CreateCheckBoxOpCode (
 }\r
 \r
 /**\r
-  Create a numeric opcode independent of string creation\r
+  Create a numeric opcode independent of string creation.\r
   This is used primarily by users who need to create just one particular valid op-code and the string\r
   data will be assumed to exist in the HiiDatabase already.  (Useful when exporting op-codes at a label\r
   location to pre-defined forms in HII)\r
   \r
-  @param QuestionId      - Question ID of the numeric\r
-  @param DataWidth       - DataWidth of the numeric\r
-  @param PromptToken     - Prompt string token of the numeric\r
-  @param HelpToken       - Help string token of the numeric\r
-  @param Minimum         - Minumun boundary of the numeric\r
-  @param Maximum         - Maximum boundary of the numeric\r
-  @param Step            - Step of the numeric\r
-  @param Default         - Default value of the numeric\r
-  @param Flags           - Flags of the numeric\r
-  @param Key             - Key of the numeric\r
-  @param FormBuffer      - Output of the numeric as a form\r
+  @param  QuestionId        Question ID of the numeric\r
+  @param  DataWidth         DataWidth of the numeric\r
+  @param  PromptToken       Prompt string token of the numeric\r
+  @param  HelpToken         Help string token of the numeric\r
+  @param  Minimum           Minumun boundary of the numeric\r
+  @param  Maximum           Maximum boundary of the numeric\r
+  @param  Step              Step of the numeric\r
+  @param  Default           Default value of the numeric\r
+  @param  Flags             Flags of the numeric\r
+  @param  Key               Key of the numeric\r
+  @param  FormBuffer        Output of the numeric as a form\r
  \r
 \r
-  @retval EFI_SUCCESS       The numeric created to be a form.\r
-  @retval EFI_DEVICE_ERROR  DataWidth > 2\r
+  @retval EFI_SUCCESS       The numeric created to be a form.\r
+  @retval EFI_DEVICE_ERROR  DataWidth > 2\r
 **/\r
 EFI_STATUS\r
 CreateNumericOpCode (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      STRING_REF          PromptToken,\r
-  IN      STRING_REF          HelpToken,\r
-  IN      UINT16              Minimum,\r
-  IN      UINT16              Maximum,\r
-  IN      UINT16              Step,\r
-  IN      UINT16              Default,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      STRING_REF                PromptToken,\r
+  IN      STRING_REF                HelpToken,\r
+  IN      UINT16                    Minimum,\r
+  IN      UINT16                    Maximum,\r
+  IN      UINT16                    Step,\r
+  IN      UINT16                    Default,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
-\r
 {\r
-  FRAMEWORK_EFI_IFR_NUMERIC Numeric;\r
+  FRAMEWORK_EFI_IFR_NUMERIC         Numeric;\r
 \r
   //\r
   // We do not create op-code storage widths for numerics in excess of 16 bits for now\r
@@ -387,7 +380,6 @@ CreateNumericOpCode (
   Numeric.QuestionId    = QuestionId;\r
   Numeric.Width         = DataWidth;\r
   Numeric.Prompt        = PromptToken;\r
-\r
   Numeric.Help          = HelpToken;\r
   Numeric.Minimum       = Minimum;\r
   Numeric.Maximum       = Maximum;\r
@@ -402,45 +394,43 @@ CreateNumericOpCode (
 }\r
 \r
 /**\r
-  Create a numeric opcode independent of string creation\r
+  Create a numeric opcode independent of string creation.\r
   This is used primarily by users who need to create just one particular valid op-code and the string\r
   data will be assumed to exist in the HiiDatabase already.  (Useful when exporting op-codes at a label\r
   location to pre-defined forms in HII)\r
   \r
-  @param QuestionId       Question ID of the string\r
-  @param DataWidth        DataWidth of the string\r
-  @param PromptToken      Prompt token of the string\r
-  @param HelpToken        Help token of the string\r
-  @param MinSize          Min size boundary of the string\r
-  @param MaxSize          Max size boundary of the string\r
-  @param Flags            Flags of the string\r
-  @param Key              Key of the string\r
-  @param FormBuffer       Output of the string as a form\r
+  @param  QuestionId       Question ID of the string\r
+  @param  DataWidth        DataWidth of the string\r
+  @param  PromptToken      Prompt token of the string\r
+  @param  HelpToken        Help token of the string\r
+  @param  MinSize          Min size boundary of the string\r
+  @param  MaxSize          Max size boundary of the string\r
+  @param  Flags            Flags of the string\r
+  @param  Key              Key of the string\r
+  @param  FormBuffer       Output of the string as a form\r
   \r
-  @retval EFI_SUCCESS     String created to be a form.\r
+  @retval EFI_SUCCESS      String created to be a form.\r
 **/\r
 EFI_STATUS\r
 CreateStringOpCode (\r
-  IN      UINT16              QuestionId,\r
-  IN      UINT8               DataWidth,\r
-  IN      STRING_REF          PromptToken,\r
-  IN      STRING_REF          HelpToken,\r
-  IN      UINT8               MinSize,\r
-  IN      UINT8               MaxSize,\r
-  IN      UINT8               Flags,\r
-  IN      UINT16              Key,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    QuestionId,\r
+  IN      UINT8                     DataWidth,\r
+  IN      STRING_REF                PromptToken,\r
+  IN      STRING_REF                HelpToken,\r
+  IN      UINT8                     MinSize,\r
+  IN      UINT8                     MaxSize,\r
+  IN      UINT8                     Flags,\r
+  IN      UINT16                    Key,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
-\r
 {\r
-  FRAMEWORK_EFI_IFR_STRING  String;\r
+  FRAMEWORK_EFI_IFR_STRING          String;\r
 \r
   String.Header.OpCode  = FRAMEWORK_EFI_IFR_STRING_OP;\r
   String.Header.Length  = sizeof (FRAMEWORK_EFI_IFR_STRING);\r
   String.QuestionId     = QuestionId;\r
   String.Width          = DataWidth;\r
   String.Prompt         = PromptToken;\r
-\r
   String.Help           = HelpToken;\r
   String.MinSize        = MinSize;\r
   String.MaxSize        = MaxSize;\r
@@ -455,23 +445,22 @@ CreateStringOpCode (
 /**\r
   Create a banner opcode.  This is primarily used by the FrontPage implementation from BDS.\r
   \r
-  @param Title       - Title of the banner\r
-  @param LineNumber  - LineNumber of the banner\r
-  @param Alignment   - Alignment of the banner\r
-  @param FormBuffer  - Output of banner as a form\r
+  @param  Title        Title of the banner\r
+  @param  LineNumber   LineNumber of the banner\r
+  @param  Alignment    Alignment of the banner\r
+  @param  FormBuffer   Output of banner as a form\r
 \r
-  @retval EFI_SUCCESS     - Banner created to be a form.\r
+  @retval EFI_SUCCESS  Banner created to be a form.\r
 **/\r
 EFI_STATUS\r
 CreateBannerOpCode (\r
-  IN      UINT16              Title,\r
-  IN      UINT16              LineNumber,\r
-  IN      UINT8               Alignment,\r
-  IN OUT  VOID                *FormBuffer\r
+  IN      UINT16                    Title,\r
+  IN      UINT16                    LineNumber,\r
+  IN      UINT8                     Alignment,\r
+  IN OUT  VOID                      *FormBuffer\r
   )\r
-\r
 {\r
-  FRAMEWORK_EFI_IFR_BANNER  Banner;\r
+  FRAMEWORK_EFI_IFR_BANNER          Banner;\r
 \r
   Banner.Header.OpCode  = FRAMEWORK_EFI_IFR_BANNER_OP;\r
   Banner.Header.Length  = sizeof (FRAMEWORK_EFI_IFR_BANNER);\r
index 8dce61bd9a84027f0725097e2b2909c1bf0b3774..9c8988c45704683e92406ce73ff0585f771366db 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
   Common header file shared by all source files.\r
 \r
   This file includes package header files, library classes and protocol, PPI & GUID definitions.\r
@@ -10,6 +10,7 @@
    http://opensource.org/licenses/bsd-license.php\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
 #ifndef __IFRSUPPORT_LIB_INTERNAL_H_\r
index 5e927b4c31df167d30ae3742253230365f744e5b..533332b5a5ffb51c27a099bc527ef0acd4d54a3a 100644 (file)
@@ -17,23 +17,22 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 /**\r
   Extracts a variable form a Pack.\r
 \r
-  @param Pack - List of variables\r
-  @param Name - Name of the variable/map\r
-  @param Guid - GUID of the variable/map\r
-  @param Id   - The index of the variable/map to retrieve\r
-  @param Var  - Pointer to the variable/map\r
-  @param Size - Size of the variable/map in bytes\r
+  @param  Pack              List of variables\r
+  @param  Name              Name of the variable/map\r
+  @param  Guid              GUID of the variable/map\r
+  @param  Id                The index of the variable/map to retrieve\r
+  @param  Var               Pointer to the variable/map\r
+  @param  Size              Size of the variable/map in bytes\r
 **/\r
 VOID\r
 EfiLibHiiVariablePackGetMap (\r
-  IN    EFI_HII_VARIABLE_PACK       *Pack,  \r
-  OUT   CHAR16                      **Name,  OPTIONAL\r
-  OUT   EFI_GUID                    **Guid,  OPTIONAL\r
-  OUT   UINT16                      *Id,     OPTIONAL\r
-  OUT   VOID                        **Var,   OPTIONAL\r
-  OUT   UINTN                       *Size    OPTIONAL\r
+  IN      EFI_HII_VARIABLE_PACK     *Pack,  \r
+     OUT  CHAR16                    **Name, OPTIONAL\r
+     OUT  EFI_GUID                  **Guid, OPTIONAL\r
+     OUT  UINT16                    *Id,    OPTIONAL\r
+     OUT  VOID                      **Var,  OPTIONAL\r
+     OUT  UINTN                     *Size   OPTIONAL\r
   )\r
-\r
 {\r
   if (NULL != Name) {\r
     *Name = (VOID *) (Pack + 1);\r
@@ -60,16 +59,18 @@ EfiLibHiiVariablePackGetMap (
 /**\r
   Finds a count of the variables/maps in the List.\r
 \r
-  @param List - List of variables\r
+  @param  List              List of variables\r
 \r
-  @return The number of map count.\r
+  @return                   The number of map count.\r
 **/\r
 UINTN\r
 EfiLibHiiVariablePackListGetMapCnt (\r
-  IN    EFI_HII_VARIABLE_PACK_LIST   *List\r
+  IN  EFI_HII_VARIABLE_PACK_LIST    *List\r
   )\r
 {\r
-  UINTN   Cnt = 0;\r
+  UINTN                             Cnt;\r
+  \r
+  Cnt = 0;\r
   while (NULL != List) {\r
     Cnt++;\r
     List = List->NextVariablePack;\r
@@ -81,23 +82,20 @@ EfiLibHiiVariablePackListGetMapCnt (
   Will iterate all variable/maps as appearing \r
   in List and for each, it will call the Callback.\r
 \r
-  @param List     - List of variables\r
-  @param Callback - Routine to be called for each iterated variable.\r
-\r
+  @param  List              List of variables\r
+  @param  Callback          Routine to be called for each iterated variable.\r
 **/\r
 VOID\r
 EfiLibHiiVariablePackListForEachVar (\r
-  IN    EFI_HII_VARIABLE_PACK_LIST               *List,\r
-  IN    EFI_LIB_HII_VARIABLE_PACK_LIST_CALLBACK  *Callback\r
+  IN  EFI_HII_VARIABLE_PACK_LIST               *List,\r
+  IN  EFI_LIB_HII_VARIABLE_PACK_LIST_CALLBACK  *Callback\r
   )\r
-\r
-\r
 {\r
-  CHAR16    *MapName;\r
-  EFI_GUID  *MapGuid;\r
-  UINT16    MapId;\r
-  VOID      *Map;\r
-  UINTN     MapSize;\r
+  CHAR16                            *MapName;\r
+  EFI_GUID                          *MapGuid;\r
+  UINT16                            MapId;\r
+  VOID                              *Map;\r
+  UINTN                             MapSize;\r
 \r
   while (NULL != List) {\r
     EfiLibHiiVariablePackGetMap (List->VariablePack, &MapName, &MapGuid, &MapId, &Map, &MapSize);\r
@@ -113,35 +111,33 @@ EfiLibHiiVariablePackListForEachVar (
   Finds a variable form List given \r
   the order number as appears in the List.\r
 \r
-  @param Idx  - The index of the variable/map to retrieve\r
-  @param List - List of variables\r
-  @param Name - Name of the variable/map\r
-  @param Guid - GUID of the variable/map\r
-  @param Id   - Id of the variable/map\r
-  @param Var  - Pointer to the variable/map\r
-  @param Size - Size of the variable/map in bytes\r
+  @param  Idx            The index of the variable/map to retrieve\r
+  @param  List           List of variables\r
+  @param  Name           Name of the variable/map\r
+  @param  Guid           GUID of the variable/map\r
+  @param  Id             Id of the variable/map\r
+  @param  Var            Pointer to the variable/map\r
+  @param  Size           Size of the variable/map in bytes\r
 \r
-  @return EFI_SUCCESS   - Variable is found, OUT parameters are valid\r
-  @return EFI_NOT_FOUND - Variable is not found, OUT parameters are not valid\r
+  @return EFI_SUCCESS    Variable is found, OUT parameters are valid\r
+  @return EFI_NOT_FOUND  Variable is not found, OUT parameters are not valid\r
 **/\r
 EFI_STATUS\r
 EfiLibHiiVariablePackListGetMapByIdx (\r
-  IN    UINTN                       Idx,  \r
-  IN    EFI_HII_VARIABLE_PACK_LIST  *List,  \r
-  OUT   CHAR16                      **Name,  OPTIONAL\r
-  OUT   EFI_GUID                    **Guid,  OPTIONAL\r
-  OUT   UINT16                      *Id,     OPTIONAL\r
-  OUT   VOID                        **Var,\r
-  OUT   UINTN                       *Size\r
+  IN      UINTN                      Idx,  \r
+  IN      EFI_HII_VARIABLE_PACK_LIST *List,  \r
+     OUT  CHAR16                     **Name, OPTIONAL\r
+     OUT  EFI_GUID                   **Guid, OPTIONAL\r
+     OUT  UINT16                     *Id,    OPTIONAL\r
+     OUT  VOID                       **Var,\r
+     OUT  UINTN                      *Size\r
   )\r
-\r
-\r
 {\r
-  CHAR16     *MapName;\r
-  EFI_GUID   *MapGuid;\r
-  UINT16     MapId;\r
-  VOID       *Map;\r
-  UINTN      MapSize;\r
+  CHAR16                            *MapName;\r
+  EFI_GUID                          *MapGuid;\r
+  UINT16                            MapId;\r
+  VOID                              *Map;\r
+  UINTN                             MapSize;\r
 \r
   while (NULL != List) {\r
     EfiLibHiiVariablePackGetMap (List->VariablePack, &MapName, &MapGuid, &MapId, &Map, &MapSize);\r
@@ -175,32 +171,31 @@ EfiLibHiiVariablePackListGetMapByIdx (
   Finds a variable form List given the \r
   order number as appears in the List.\r
 \r
-  @param Id   - The ID of the variable/map to retrieve\r
-  @param List - List of variables\r
-  @param Name - Name of the variable/map\r
-  @param Guid - GUID of the variable/map\r
-  @param Var  - Pointer to the variable/map\r
-  @param Size - Size of the variable/map in bytes\r
-\r
-  @retval EFI_SUCCESS   - Variable is found, OUT parameters are valid\r
-  @retval EFI_NOT_FOUND - Variable is not found, OUT parameters are not valid\r
+  @param  Id             The ID of the variable/map to retrieve\r
+  @param  List           List of variables\r
+  @param  Name           Name of the variable/map\r
+  @param  Guid           GUID of the variable/map\r
+  @param  Var            Pointer to the variable/map\r
+  @param  Size           Size of the variable/map in bytes\r
 \r
+  @retval EFI_SUCCESS    Variable is found, OUT parameters are valid\r
+  @retval EFI_NOT_FOUND  Variable is not found, OUT parameters are not valid\r
 **/\r
 EFI_STATUS\r
 EfiLibHiiVariablePackListGetMapById (\r
-  IN    UINT16                        Id,  \r
-  IN    EFI_HII_VARIABLE_PACK_LIST    *List,\r
-  OUT   CHAR16                        **Name,  OPTIONAL\r
-  OUT   EFI_GUID                      **Guid,  OPTIONAL\r
-  OUT   VOID                          **Var,\r
-  OUT   UINTN                         *Size\r
+  IN      UINT16                     Id,  \r
+  IN      EFI_HII_VARIABLE_PACK_LIST *List,\r
+     OUT  CHAR16                     **Name, OPTIONAL\r
+     OUT  EFI_GUID                   **Guid, OPTIONAL\r
+     OUT  VOID                       **Var,\r
+     OUT  UINTN                      *Size\r
   )\r
 { \r
-  CHAR16    *MapName;\r
-  EFI_GUID  *MapGuid;\r
-  UINT16    MapId;\r
-  VOID      *Map;\r
-  UINTN     MapSize;\r
+  CHAR16                            *MapName;\r
+  EFI_GUID                          *MapGuid;\r
+  UINT16                            MapId;\r
+  VOID                              *Map;\r
+  UINTN                             MapSize;\r
 \r
   while (NULL != List) {\r
     EfiLibHiiVariablePackGetMap (List->VariablePack, &MapName, &MapGuid, &MapId, &Map, &MapSize);\r
@@ -229,31 +224,31 @@ EfiLibHiiVariablePackListGetMapById (
 /**\r
   Finds a variable form EFI_HII_VARIABLE_PACK_LIST given name and GUID.\r
 \r
-  @param List - List of variables\r
-  @param Name - Name of the variable/map to be found\r
-  @param Guid - GUID of the variable/map to be found\r
-  @param Id   - Id of the variable/map to be found\r
-  @param Var  - Pointer to the variable/map found\r
-  @param Size - Size of the variable/map in bytes found\r
+  @param  List           List of variables\r
+  @param  Name           Name of the variable/map to be found\r
+  @param  Guid           GUID of the variable/map to be found\r
+  @param  Id             Id of the variable/map to be found\r
+  @param  Var            Pointer to the variable/map found\r
+  @param  Size           Size of the variable/map in bytes found\r
 \r
-  @retval EFI_SUCCESS   - variable is found, OUT parameters are valid\r
-  @retval EFI_NOT_FOUND - variable is not found, OUT parameters are not valid\r
+  @retval EFI_SUCCESS    variable is found, OUT parameters are valid\r
+  @retval EFI_NOT_FOUND  variable is not found, OUT parameters are not valid\r
 **/\r
 EFI_STATUS\r
 EfiLibHiiVariablePackListGetMap (\r
-  IN    EFI_HII_VARIABLE_PACK_LIST   *List,\r
-  IN    CHAR16                       *Name,\r
-  IN    EFI_GUID                     *Guid,\r
-  OUT   UINT16                       *Id,\r
-  OUT   VOID                         **Var, \r
-  OUT   UINTN                        *Size\r
+  IN      EFI_HII_VARIABLE_PACK_LIST *List,\r
+  IN      CHAR16                     *Name,\r
+  IN      EFI_GUID                   *Guid,\r
+     OUT  UINT16                     *Id,\r
+     OUT  VOID                       **Var, \r
+     OUT  UINTN                      *Size\r
   )\r
 { \r
-  VOID      *Map;\r
-  UINTN     MapSize;\r
-  UINT16    MapId;\r
-  CHAR16    *MapName;\r
-  EFI_GUID  *MapGuid;\r
+  VOID                              *Map;\r
+  UINTN                             MapSize;\r
+  UINT16                            MapId;\r
+  CHAR16                            *MapName;\r
+  EFI_GUID                          *MapGuid;\r
 \r
   while (NULL != List) {\r
     EfiLibHiiVariablePackGetMap (List->VariablePack, &MapName, &MapGuid, &MapId, &Map, &MapSize);\r
@@ -275,28 +270,27 @@ EfiLibHiiVariablePackListGetMap (
   Finds out if a variable of specific Name/Guid/Size exists in NV. \r
   If it does, it will retrieve it into the Var. \r
 \r
-  @param Name  Parameters of the variable to retrieve. Must match exactly.\r
-  @param Guid  Parameters of the variable to retrieve. Must match exactly.\r
-  @param Size  Parameters of the variable to retrieve. Must match exactly.\r
-  @param Var   Variable will be retrieved into buffer pointed by this pointer.\r
-               If pointing to NULL, the buffer will be allocated. Caller is responsible for releasing the buffer.\r
-\r
-  @retval EFI_SUCCESS    - The variable of exact Name/Guid/Size parameters was retrieved and written to Var.\r
-  @retval EFI_NOT_FOUND  - The variable of this Name/Guid was not found in the NV.\r
-  @retval EFI_LOAD_ERROR - The variable in the NV was of different size, or NV API returned error.\r
+  @param  Name            Parameters of the variable to retrieve. Must match exactly.\r
+  @param  Guid            Parameters of the variable to retrieve. Must match exactly.\r
+  @param  Size            Parameters of the variable to retrieve. Must match exactly.\r
+  @param  Var             Variable will be retrieved into buffer pointed by this pointer.\r
+                          If pointing to NULL, the buffer will be allocated. \r
+                          Caller is responsible for releasing the buffer.\r
 \r
+  @retval EFI_SUCCESS     The variable of exact Name/Guid/Size parameters was retrieved and written to Var.\r
+  @retval EFI_NOT_FOUND   The variable of this Name/Guid was not found in the NV.\r
+  @retval EFI_LOAD_ERROR  The variable in the NV was of different size, or NV API returned error.\r
 **/\r
 EFI_STATUS\r
 EfiLibHiiVariableRetrieveFromNv (\r
-  IN  CHAR16                 *Name,\r
-  IN  EFI_GUID               *Guid,\r
-  IN  UINTN                   Size,\r
-  OUT VOID                  **Var\r
+  IN      CHAR16                    *Name,\r
+  IN      EFI_GUID                  *Guid,\r
+  IN      UINTN                     Size,\r
+     OUT  VOID                      **Var\r
   )\r
-\r
 {\r
-  EFI_STATUS                  Status;\r
-  UINTN                       SizeNv;\r
+  EFI_STATUS                        Status;\r
+  UINTN                             SizeNv;\r
 \r
   //\r
   // Test for existence of the variable.\r
@@ -338,27 +332,29 @@ EfiLibHiiVariableRetrieveFromNv (
   the Suffix matches the end of Name, so the variable will be loaded from NV\r
   provided the variable exists and the GUID and Size matches.\r
 \r
-  @param Suffix             Suffix the Name should end with.\r
-  @param Name, Guid, Size   Parameters of the variable to retrieve. Must match exactly.\r
-  @param Var                Variable will be retrieved into this buffer.\r
+  @param  Suffix            Suffix the Name should end with.\r
+  @param  Name              Name of the variable to retrieve.\r
+  @Param  Guid              Guid of the variable to retrieve.\r
+  @Param  Size              Parameters of the variable to retrieve.\r
+  @param  Var               Variable will be retrieved into this buffer.\r
                             Caller is responsible for providing storage of exactly Size size in bytes.\r
 \r
-  @retval EFI_SUCCESS           The variable was overriden with NV variable of same Name/Guid/Size.\r
-  @retval EFI_INVALID_PARAMETER The name of the variable does not end with <Suffix>.\r
-  @retval EFI_NOT_FOUND         The variable of this Name/Guid was not found in the NV.\r
-  @retval EFI_LOAD_ERROR        The variable in the NV was of different size, or NV API returned error.\r
+  @retval EFI_SUCCESS           The variable was overriden with NV variable of same Name/Guid/Size.\r
+  @retval EFI_INVALID_PARAMETER The name of the variable does not end with <Suffix>.\r
+  @retval EFI_NOT_FOUND         The variable of this Name/Guid was not found in the NV.\r
+  @retval EFI_LOAD_ERROR        The variable in the NV was of different size, or NV API returned error.\r
 **/\r
 EFI_STATUS\r
 EfiLibHiiVariableOverrideIfSuffix (\r
-  IN  CHAR16                 *Suffix,\r
-  IN  CHAR16                 *Name,\r
-  IN  EFI_GUID               *Guid,\r
-  IN  UINTN                   Size,\r
-  OUT VOID                   *Var\r
+  IN      CHAR16                    *Suffix,\r
+  IN      CHAR16                    *Name,\r
+  IN      EFI_GUID                  *Guid,\r
+  IN      UINTN                     Size,\r
+     OUT  VOID                      *Var\r
   )  \r
 {\r
-  UINTN         StrLength;\r
-  UINTN         StrLenSuffix;\r
+  UINTN                             StrLength;\r
+  UINTN                             StrLenSuffix;\r
 \r
   StrLength       = StrLen (Name);\r
   StrLenSuffix    = StrLen (Suffix);\r
@@ -378,30 +374,30 @@ EfiLibHiiVariableOverrideIfSuffix (
   the Suffix will be appended to the end of Name, and the variable with Name="XyzSetupMyOverride"\r
   will be loaded from NV provided the variable exists and the GUID and Size matches.\r
 \r
-  @param Suffix            Suffix the variable will be appended with.\r
-  @param Name, Guid, Size  Parameters of the variable to retrieve. Must match exactly.\r
-  @param Var               Variable will be retrieved into this buffer.\r
-                           Caller is responsible for providing storage of exactly Size size in bytes.\r
-\r
-  @retval EFI_SUCCESS    - The variable was overriden with NV variable of same Name/Guid/Size.\r
-  @retval EFI_NOT_FOUND  - The variable of this Name/Guid was not found in the NV.\r
-  @retval EFI_LOAD_ERROR - The variable in the NV was of different size, or NV API returned error.\r
+  @param  Suffix          Suffix the variable will be appended with.\r
+  @param  Name            Parameters of the Name variable to retrieve.\r
+  @param  Guid            Parameters of the Guid variable to retrieve.\r
+  @param  Size            Parameters of the Size variable to retrieve.\r
+  @param  Var             Variable will be retrieved into this buffer.\r
+                          Caller is responsible for providing storage of exactly Size size in bytes.\r
 \r
---*/\r
+  @retval EFI_SUCCESS     The variable was overriden with NV variable of same Name/Guid/Size.\r
+  @retval EFI_NOT_FOUND   The variable of this Name/Guid was not found in the NV.\r
+  @retval EFI_LOAD_ERROR  The variable in the NV was of different size, or NV API returned error.\r
+**/\r
 EFI_STATUS\r
 EfiLibHiiVariableOverrideBySuffix (\r
-  IN  CHAR16                 *Suffix,\r
-  IN  CHAR16                 *Name,\r
-  IN  EFI_GUID               *Guid,\r
-  IN  UINTN                   Size,\r
-  OUT VOID                   *Var\r
-  ) \r
-\r
+  IN      CHAR16                    *Suffix,\r
+  IN      CHAR16                    *Name,\r
+  IN      EFI_GUID                  *Guid,\r
+  IN      UINTN                     Size,\r
+     OUT  VOID                      *Var\r
+  )\r
 {\r
-  EFI_STATUS    Status;\r
-  CHAR16       *NameSuffixed;\r
-  UINTN         NameLength;\r
-  UINTN         SuffixLength;\r
+  EFI_STATUS                        Status;\r
+  CHAR16                            *NameSuffixed;\r
+  UINTN                             NameLength;\r
+  UINTN                             SuffixLength;\r
 \r
   //\r
   // enough to concatenate both strings.\r