]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/HiiConfigRouting.h
Grammatical and disclaimer changes (does not follow internal C coding stds.)
[mirror_edk2.git] / MdePkg / Include / Protocol / HiiConfigRouting.h
index 09fb182442115a041a273035afecd18948796279..02d512cc6631c278f7c8efc071f4b3a3fea9a6e8 100644 (file)
@@ -5,14 +5,14 @@
   information from configuration applications, routing the\r
   results to the appropriate drivers.\r
   \r
-  Copyright (c) 2006 - 2009, 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
-\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
+Copyright (c) 2006 - 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
 \r
 **/\r
 \r
@@ -30,10 +30,10 @@ typedef struct _EFI_HII_CONFIG_ROUTING_PROTOCOL EFI_HII_CONFIG_ROUTING_PROTOCOL;
   This function allows the caller to request the current\r
   configuration for one or more named elements from one or more\r
   drivers. The resulting string is in the standard HII\r
-  configuration string format. If Successful Results contains an\r
+  configuration string format. If Successful, Results contains an\r
   equivalent string with "=" and the values associated with all\r
   names added in. The expected implementation is for each\r
-  <ConfigRequest> substring in the Request, call the HII\r
+  <ConfigRequest> substring in the Request to call the HII\r
   Configuration Routing Protocol ExtractProtocol function for the\r
   driver corresponding to the <ConfigHdr> at the start of the\r
   <ConfigRequest> substring. The request fails if no driver\r
@@ -56,25 +56,20 @@ typedef struct _EFI_HII_CONFIG_ROUTING_PROTOCOL EFI_HII_CONFIG_ROUTING_PROTOCOL;
   @param This       Points to the EFI_HII_CONFIG_ROUTING_PROTOCOL\r
                     instance.\r
 \r
-  @param Request    A null-terminated string in <MultiConfigRequest>\r
-                    format. If a NULL is passed in for the Request field,\r
-                    all of the settings being abstracted by this function\r
-                    will be returned in the Results field.\r
+  @param Request    A null-terminated string in <MultiConfigRequest> format.\r
 \r
   @param Progress   On return, points to a character in the\r
                     Request string. Points to the string's null\r
-                    terminator if request was successful. Points\r
+                    terminator if the request was successful. Points\r
                     to the most recent '&' before the first\r
                     failing name / value pair (or the beginning\r
                     of the string if the failure is in the first\r
                     name / value pair) if the request was not\r
                     successful\r
 \r
-  @param Results    A null-terminated string in <ConfigAltResp> format\r
+  @param Results    A null-terminated string in <MultiConfigAltResp> format\r
                     which has all values filled in for the names in the\r
-                    Request string. If the Request string was NULL, the data\r
-                    returned is in <MultiConfigAltResp> format. String to be\r
-                    allocated by the called function.\r
+                    Request string.\r
 \r
   @retval EFI_SUCCESS             The Results string is filled with the\r
                                   values corresponding to all requested\r
@@ -101,8 +96,8 @@ typedef struct _EFI_HII_CONFIG_ROUTING_PROTOCOL EFI_HII_CONFIG_ROUTING_PROTOCOL;
                                   configuration extraction.\r
 \r
   @retval EFI_INVALID_PARAMETER   Illegal syntax. Progress set\r
-                                  to most recent & before the\r
-                                  error or the beginning of the\r
+                                  to the most recent & before the\r
+                                  error, or the beginning of the\r
                                   string.\r
   @retval EFI_INVALID_PARAMETER   Unknown name.\r
 \r
@@ -177,7 +172,7 @@ EFI_STATUS
                         offset of the most recent '&' before the\r
                         first failing name / value pair (or the\r
                         beginning of the string if the failure is in\r
-                        the first name / value pair) or the\r
+                        the first name / value pair), or the\r
                         terminating NULL if all was successful.\r
 \r
   @retval EFI_SUCCESS             The results have been distributed or are\r
@@ -192,8 +187,8 @@ EFI_STATUS
                                   Results parameter would result\r
                                   in this type of error.\r
   \r
-  @retval EFI_NOT_FOUND           Target for the specified routing data\r
-                                  was not found\r
+  @retval EFI_NOT_FOUND           The target for the specified routing data\r
+                                  was not found.\r
 \r
 **/\r
 typedef\r
@@ -221,20 +216,21 @@ EFI_STATUS
 \r
   @param ConfigRequest  A null-terminated string in <ConfigRequest> format.\r
 \r
-  @param Block      Array of bytes defining the block's\r
+  @param Block      An array of bytes defining the block's\r
                     configuration.\r
 \r
-  @param BlockSize  Length in bytes of Block.\r
+  @param BlockSize  The length in bytes of Block.\r
 \r
-  @param Config     Filled-in configuration string. String\r
+  @param Config     The filled-in configuration string. String\r
                     allocated by the function. Returned only if\r
-                    call is successful.\r
+                    call is successful. The null-terminated string \r
+                    will be <ConfigResp> format.\r
 \r
   @param Progress   A pointer to a string filled in with the\r
                     offset of the most recent '&' before the\r
                     first failing name / value pair (or the\r
                     beginning of the string if the failure is in\r
-                    the first name / value pair) or the\r
+                    the first name / value pair), or the\r
                     terminating NULL if all was successful.\r
 \r
   @retval EFI_SUCCESS             The request succeeded. Progress points\r
@@ -252,11 +248,11 @@ EFI_STATUS
                                   to the first character of\r
                                   ConfigRequest.\r
 \r
-  @retval EFI_NOT_FOUND           Target for the specified routing data\r
+  @retval EFI_NOT_FOUND           The target for the specified routing data\r
                                   was not found. Progress points to the\r
                                   'G' in "GUID" of the errant routing\r
                                   data. \r
-  @retval EFI_DEVICE_ERROR        Block not large enough. Progress undefined.\r
+  @retval EFI_DEVICE_ERROR        The block is not large enough. Progress undefined.\r
 \r
   @retval EFI_INVALID_PARAMETER   Encountered non <BlockName>\r
                                   formatted string. Block is\r
@@ -304,7 +300,7 @@ EFI_STATUS
                         BlockLength parameter is (on input)\r
                         shorter than required by the\r
                         Configuration string, only the BlockSize\r
-                        parameter is updated and an appropriate\r
+                        parameter is updated, and an appropriate\r
                         status (see below) is returned.\r
 \r
   @param BlockSize      The length of the Block in units of UINT8.\r
@@ -317,7 +313,7 @@ EFI_STATUS
                         of the most recent "&" before the first\r
                         failing name / value pair (or the beginning\r
                         of the string if the failure is in the first\r
-                        name / value pair) or the terminating NULL\r
+                        name / value pair), or the terminating NULL\r
                         if all was successful.\r
 \r
   @retval EFI_SUCCESS            The request succeeded. Progress points to the null\r
@@ -349,7 +345,7 @@ EFI_STATUS
   a larger configuration string.\r
           \r
   @param This              A pointer to the EFI_HII_CONFIG_ROUTING_PROTOCOL instance.\r
-  @param Configuration     A null-terminated string in <MultiConfigAltResp> format.\r
+  @param ConfigResp        A null-terminated string in <ConfigAltResp> format.\r
   @param Guid              A pointer to the GUID value to search for in the \r
                            routing portion of the ConfigResp string when retrieving \r
                            the requested data. If Guid is NULL, then all GUID \r
@@ -369,18 +365,19 @@ EFI_STATUS
   @param AltCfgResp        A pointer to a buffer which will be allocated by the \r
                            function which contains the retrieved string as requested.  \r
                            This buffer is only allocated if the call was successful. \r
+                           The null-terminated string will be <ConfigResp> format.\r
   \r
   @retval EFI_SUCCESS             The request succeeded. The requested data was extracted \r
                                   and placed in the newly allocated AltCfgResp buffer.\r
   @retval EFI_OUT_OF_RESOURCES    Not enough memory to allocate AltCfgResp.    \r
   @retval EFI_INVALID_PARAMETER   Any parameter is invalid.\r
-  @retval EFI_NOT_FOUND           Target for the specified routing data was not found.\r
+  @retval EFI_NOT_FOUND           The target for the specified routing data was not found.\r
 **/\r
 typedef\r
 EFI_STATUS \r
 (EFIAPI * EFI_HII_GET_ALT_CFG)(\r
   IN  CONST EFI_HII_CONFIG_ROUTING_PROTOCOL    *This, \r
-  IN  CONST EFI_STRING                         Configuration\r
+  IN  CONST EFI_STRING                         ConfigResp\r
   IN  CONST EFI_GUID                           *Guid, \r
   IN  CONST EFI_STRING                         Name, \r
   IN  CONST EFI_DEVICE_PATH_PROTOCOL           *DevicePath,  \r