]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Protocol/EfiShellEnvironment2.h
udk2010.up2.shell initial release.
[mirror_edk2.git] / ShellPkg / Include / Protocol / EfiShellEnvironment2.h
index 1c828530275aefe010f54b375f00be1c13f5a5cb..ad0b551b96ea6b55cfe7030a7a651cdbf77aebcd 100644 (file)
@@ -13,7 +13,7 @@
 **/\r
 \r
 \r
-#if !defined (_SHELL_ENVIRONMENT_2_PROTOCOL_H_)\r
+#ifndef _SHELL_ENVIRONMENT_2_PROTOCOL_H_\r
 #define _SHELL_ENVIRONMENT_2_PROTOCOL_H_\r
 \r
 #define DEFAULT_INIT_ROW    1\r
@@ -24,8 +24,8 @@
   to a given location.  The location is dependant on the implementation.  This is\r
   used when programatically adding shell commands.\r
 \r
-  @param Handle                 The handle the protocol is on.\r
-  @param Interface              The interface to the protocol.\r
+  @param[in] Handle                 The handle the protocol is on.\r
+  @param[in] Interface              The interface to the protocol.\r
 \r
 **/\r
 typedef\r
@@ -40,11 +40,11 @@ VOID
   implementation.  The specific command depends on the implementation.  This is\r
   used when programatically adding shell commands.\r
 \r
-  @param ImageHandle            The handle to the binary shell.\r
-  @param SystemTable            Pointer to the system table.\r
+  @param[in] ImageHandle        The handle to the binary shell.\r
+  @param[in] SystemTable        The pointer to the system table.\r
 \r
-  @retval EFI_SUCCESS           The command ran to completion\r
-  @retval other                 An error ocurred.  Any error is possible\r
+  @retval EFI_SUCCESS           The command completed.\r
+  @retval other                 An error occurred.  Any error is possible\r
                                 depending on the implementation of the shell\r
                                 command.\r
 \r
@@ -61,7 +61,7 @@ EFI_STATUS
   This is used when programatically adding shell commands.  Upon successful return\r
   the memory allocated is up to the caller to free.\r
 \r
-  @param Str                      Pointer to pointer to string to display for help.\r
+  @param[in,out] Str              Pointer to pointer to string to display for help.\r
 \r
   @retval EFI_SUCCESS             The help string is in the parameter Str.\r
 \r
@@ -111,8 +111,8 @@ GUID for the shell environment2 extension (main GUID above).
     0xd2c18636, 0x40e5, 0x4eb5, {0xa3, 0x1b, 0x36, 0x69, 0x5f, 0xd4, 0x2c, 0x87} \\r
   }\r
 \r
-#define EFI_SHELL_MAJOR_VER 0x00000001 ///< Major version of the EFI_SHELL_ENVIRONMENT2\r
-#define EFI_SHELL_MINOR_VER 0x00000000 ///< Minor version of the EFI_SHELL_ENVIRONMENT2\r
+#define EFI_SHELL_MAJOR_VER 0x00000001 ///< Major version of the EFI_SHELL_ENVIRONMENT2.\r
+#define EFI_SHELL_MINOR_VER 0x00000000 ///< Minor version of the EFI_SHELL_ENVIRONMENT2.\r
 \r
 /**\r
   Execute a command line.\r
@@ -121,13 +121,13 @@ GUID for the shell environment2 extension (main GUID above).
   parsing any requires scripts, and if DebugOutput is TRUE printing errors\r
   encountered directly to the screen.\r
 \r
-  @param ParentImageHandle      Handle of image executing this operation.\r
-  @param CommandLine            The string command line to execute.\r
-  @param DebugOutput            TRUE indicates that errors should be printed directly.\r
+  @param[in] ParentImageHandle  Handle of the image executing this operation.\r
+  @param[in] CommandLine        The string command line to execute.\r
+  @param[in] DebugOutput        TRUE indicates that errors should be printed directly.\r
                                 FALSE supresses error messages.\r
 \r
   @retval EFI_SUCCESS           The command line executed and completed.\r
-  @retval EFI_ABORTED           The operation did not complete due to abort.\r
+  @retval EFI_ABORTED           The operation aborted.\r
   @retval EFI_INVALID_PARAMETER A parameter did not have a valid value.\r
   @retval EFI_OUT_OF_RESOURCES  A required memory allocation failed.\r
 \r
@@ -144,7 +144,7 @@ EFI_STATUS
 /**\r
   This function returns a shell environment variable value.\r
 \r
-  @param Name                   Pointer to the string with the shell environment\r
+  @param[in] Name               The pointer to the string with the shell environment\r
                                 variable name.\r
 \r
   @retval NULL                  The shell environment variable's value could not be found.\r
@@ -160,7 +160,7 @@ CHAR16 *
 /**\r
   This function returns a shell environment map value.\r
 \r
-  @param Name                   Pointer to the string with the shell environment\r
+  @param[in] Name               The pointer to the string with the shell environment\r
                                 map name.\r
 \r
   @retval NULL                  The shell environment map's value could not be found.\r
@@ -179,9 +179,9 @@ CHAR16 *
   This will allocate all required memory, put the new command on the command\r
   list in the correct location.\r
 \r
-  @param Handler                The handler function to call when the command gets called.\r
-  @param Cmd                    The command name.\r
-  @param GetLineHelp            Function to call of get help for this command.\r
+  @param[in] Handler                The handler function to call when the command gets called.\r
+  @param[in] Cmd                    The command name.\r
+  @param[in] GetLineHelp            The function to call of type "get help" for this command.\r
 \r
   @retval EFI_SUCCESS           The command is now part of the command list.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
@@ -203,12 +203,12 @@ EFI_STATUS
   This will get the current protocol info and add the new info or update existing info\r
   and then resave the info.\r
 \r
-  @param Protocol               Pointer to the protocol's GUID.\r
-  @param DumpToken              The function pointer to dump token function or\r
+  @param[in] Protocol           The pointer to the protocol's GUID.\r
+  @param[in] DumpToken          The function pointer to dump token function or\r
                                 NULL.\r
-  @param DumpInfo               The function pointer to dump infomation function\r
+  @param[in] DumpInfo           The function pointer to dump infomation function\r
                                 or NULL.\r
-  @param IdString               The english name of the protocol.\r
+  @param[in] IdString           The English name of the protocol.\r
 **/\r
 typedef\r
 VOID\r
@@ -226,11 +226,11 @@ VOID
   found it will return the name of that protocol.  If no name is found and\r
   GenId is TRUE it will generate ths string.\r
 \r
-  @param Protocol               The GUID of the protocol to look for.\r
-  @param GenId                  Whether to generate a name string if its not found.\r
+  @param[in] Protocol          The GUID of the protocol to look for.\r
+  @param[in] GenId             Whether to generate a name string if it is not found.\r
 \r
-  @return !NULL                 The Name of the protocol.\r
-  @retval NULL                  The Name was not found and GenId was not TRUE.\r
+  @return !NULL                The Name of the protocol.\r
+  @retval NULL                 The Name was not found, and GenId was not TRUE.\r
 **/\r
 typedef\r
 CHAR16*\r
@@ -246,10 +246,10 @@ CHAR16*
   If DeviceName is specified, then return the current shell directory on that\r
   device.  If DeviceName is NULL, then return the current directory on the\r
   current device.  The caller us responsible to free the returned string when\r
-  no londer required.\r
+  no longer required.\r
 \r
-  @param DeviceName             The name of the device to get the current\r
-                                directory on or NULL for current device.\r
+  @param[in] DeviceName         The name of the device to get the current\r
+                                directory on, or NULL for current device.\r
 \r
   @return String array with the current directory on the current or specified device.\r
 \r
@@ -270,11 +270,11 @@ CHAR16*
   The memory allocated by the callee for this list is freed by making a call to\r
   SHELLENV_FREE_FILE_LIST.\r
 \r
-  @param Arg                    Pointer Path to files to open.\r
-  @param ListHead               Pointer to allocated and initialized list head\r
-                                upon which to append all the opened file structures.\r
+  @param[in] Arg                The pointer Path to files to open.\r
+  @param[in,out] ListHead       The pointer to the allocated and initialized list head\r
+                                upon which to append all opened file structures.\r
 \r
-  @retval EFI_SUCCESS           1 or more files was opened and a struct of each file's\r
+  @retval EFI_SUCCESS           One or more files was opened and a struct of each file's\r
                                 information was appended to ListHead.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_NOT_FOUND         No matching files could be found.\r
@@ -289,9 +289,9 @@ EFI_STATUS
 /**\r
   This frees all of the nodes under the ListHead, but not ListHead itself.\r
 \r
-  @param ListHead               Pointer to list to free all nodes of.\r
+  @param[in,out] ListHead       Pointer to list to free all nodes of.\r
 \r
-  @retval EFI_SUCCESS           Always returned.\r
+  @retval EFI_SUCCESS           This function always returns EFI_SUCCESS.\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -307,10 +307,10 @@ EFI_STATUS
   EFI_SHELL_INTERFACE protocol.  It is the caller's responsibility to free the\r
   memory.\r
 \r
-  @param ImageHandle            The handle which will use the new ShellInterface\r
+  @param[in] ImageHandle        The handle which will use the new ShellInterface\r
                                 protocol.\r
 \r
-  @return the newly allocated shell interface protocol.\r
+  @return The newly allocated shell interface protocol.\r
 \r
 **/\r
 typedef\r
@@ -332,12 +332,12 @@ EFI_SHELL_INTERFACE*
 typedef\r
 BOOLEAN\r
 (EFIAPI *SHELLENV_BATCH_IS_ACTIVE) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
   This is an internal shell function to free any and all allocated resources.\r
-  This should be called just closing the shell.\r
+  This should be called immediately prior to closing the shell.\r
 **/\r
 typedef\r
 VOID\r
@@ -349,12 +349,12 @@ VOID
   This function enables the page break mode.\r
 \r
   This mode causes the output to pause after each complete screen to enable a\r
-  user to more easily read it.  If AutoWrap is TRUE then rows with too many\r
-  characters will be chopped and divided into 2 rows.  If FALSE then rows with\r
+  user to more easily read it.  If AutoWrap is TRUE, then rows with too many\r
+  characters will be chopped and divided into 2 rows.  If FALSE, then rows with\r
   too many characters may not be fully visible to the user on the screen.\r
 \r
-  @param StartRow               The row number to start this on.\r
-  @param AutoWrap               Whether to auto wrap rows that are too long.\r
+  @param[in] StartRow               The row number to start this on.\r
+  @param[in] AutoWrap               Whether to auto wrap rows that are too long.\r
 **/\r
 typedef\r
 VOID\r
@@ -366,13 +366,13 @@ VOID
 /**\r
   This function disables the page break mode.\r
 \r
-  Tisabling this causes the output to print out exactly as coded with no breaks\r
+  Disabling this causes the output to print out exactly as coded, with no breaks\r
   for readability.\r
 **/\r
 typedef\r
 VOID\r
 (EFIAPI *SHELLENV_DISABLE_PAGE_BREAK) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
@@ -384,7 +384,7 @@ VOID
 typedef\r
 BOOLEAN\r
 (EFIAPI *SHELLENV_GET_PAGE_BREAK) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
@@ -395,7 +395,7 @@ BOOLEAN
   #define EFI_OUTPUT_PAUSE    0x00000002\r
   #define EFI_EXECUTION_BREAK 0x00000004\r
 \r
-  @param KeyFilter              The new key filter to use.\r
+  @param[in] KeyFilter              The new key filter to use.\r
 **/\r
 typedef\r
 VOID\r
@@ -411,12 +411,12 @@ VOID
   #define EFI_OUTPUT_PAUSE    0x00000002\r
   #define EFI_EXECUTION_BREAK 0x00000004\r
 \r
-  @retval the current filter mask.\r
+  @retval The current filter mask.\r
 **/\r
 typedef\r
 UINT32\r
 (EFIAPI *SHELLENV_GET_KEY_FILTER) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
@@ -425,33 +425,33 @@ UINT32
   This is used to inform a shell application that a break condition has been\r
   initiated.  Long loops should check this to prevent delays to the break.\r
 \r
-  @retval TRUE                  A break has been signaled.  the application\r
+  @retval TRUE                  A break has been signaled.  The application\r
                                 should exit with EFI_ABORTED as soon as possible.\r
   @retval FALSE                 Continue as normal.\r
 **/\r
 typedef\r
 BOOLEAN\r
 (EFIAPI *SHELLENV_GET_EXECUTION_BREAK) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
-  This is an internal-shell function used to increment the shell nesting level.\r
+  This is an internal shell function used to increment the shell nesting level.\r
 \r
 **/\r
 typedef\r
 VOID\r
 (EFIAPI *SHELLENV_INCREMENT_SHELL_NESTING_LEVEL) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
-  This is an internal-shell function used to decrement the shell nesting level.\r
+  This is an internal shell function used to decrement the shell nesting level.\r
 **/\r
 typedef\r
 VOID\r
 (EFIAPI *SHELLENV_DECREMENT_SHELL_NESTING_LEVEL) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
@@ -464,7 +464,7 @@ VOID
 typedef\r
 BOOLEAN\r
 (EFIAPI *SHELLENV_IS_ROOT_SHELL) (\r
-  IN VOID\r
+  VOID\r
   );\r
 \r
 /**\r
@@ -473,11 +473,11 @@ BOOLEAN
   This is an internal shell function to handle shell cascading.  It restores the\r
   original set of console protocols.\r
 \r
-  @param ConInHandle            The handle of ConIn.\r
-  @param ConIn                  Pointer to the location to return the pointer to\r
+  @param[in] ConInHandle        The handle of ConIn.\r
+  @param[in,out] ConIn          The pointer to the location to return the pointer to\r
                                 the original console input.\r
-  @param ConOutHandle           The handle of ConOut\r
-  @param ConOut                 Pointer to the location to return the pointer to\r
+  @param[in] ConOutHandle       The handle of ConOut\r
+  @param[in,out] ConOut         The pointer to the location to return the pointer to\r
                                 the original console output.\r
 **/\r
 typedef\r
@@ -507,12 +507,12 @@ VOID
   This is an internal shell function to enumerate the handle database.\r
 \r
   This function gets the next handle in the handle database.  If no handles are\r
-  found EFI_NOT_FOUND is returned.  If the previous Handle was the last handle\r
+  found, EFI_NOT_FOUND is returned.  If the previous Handle was the last handle,\r
   it is set to NULL before returning.\r
 \r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
 \r
-  @param Handle                 Pointer to pointer to Handle.  Will be set\r
+  @param[in,out] Handle         The pointer to pointer to Handle.  It is set\r
                                 on a sucessful return.\r
 \r
   @retval EFI_SUCCESS           The next handle in the handle database is *Handle.\r
@@ -533,10 +533,10 @@ EFI_STATUS
 \r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
 \r
-  @param SkipNum                how many handles to skip\r
+  @param[in] SkipNum            How many handles to skip\r
 \r
-  @retval EFI_SUCCESS           the next handle in the handle database is *Handle\r
-  @retval EFI_ACCESS_DENIED     there are not SkipNum handles left in the database\r
+  @retval EFI_SUCCESS           The next handle in the handle database is *Handle\r
+  @retval EFI_ACCESS_DENIED     There are not SkipNum handles left in the database\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -552,9 +552,9 @@ EFI_STATUS
 \r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
 \r
-  @param EnumIndex              Where to start.\r
+  @param[in] EnumIndex          Where to start.\r
 \r
-  @return the number of handles either read out or skipped before this reset.\r
+  @return The number of handles either read out or skipped before this reset.\r
 **/\r
 typedef\r
 UINTN\r
@@ -568,7 +568,7 @@ UINTN
   This must be called after INIT_HANDLE_ENUMERATOR.\r
 \r
   This function releases all memory and resources associated with the handle database.\r
-  Tfter this no other handle enumerator functions except INIT_HANDLE_ENUMERATOR will\r
+  After this no other handle enumerator functions except INIT_HANDLE_ENUMERATOR will\r
   function properly.\r
 **/\r
 typedef\r
@@ -584,7 +584,7 @@ VOID
 \r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
 \r
-  @return the number of handles in the handle database.\r
+  @return The number of handles in the handle database.\r
 **/\r
 typedef\r
 UINTN\r
@@ -596,12 +596,12 @@ UINTN
 Handle Enumerator structure.\r
 **/\r
 typedef struct {\r
-  INIT_HANDLE_ENUMERATOR  Init;   ///< Pointer to INIT_HANDLE_ENUMERATOR function.\r
-  NEXT_HANDLE             Next;   ///< Pointer to NEXT_HANDLE function.\r
-  SKIP_HANDLE             Skip;   ///< Pointer to SKIP_HANDLE function.\r
-  RESET_HANDLE_ENUMERATOR Reset;  ///< Pointer to RESET_HANDLE_ENUMERATOR function.\r
-  CLOSE_HANDLE_ENUMERATOR Close;  ///< Pointer to CLOSE_HANDLE_ENUMERATOR function.\r
-  GET_NUM                 GetNum; ///< Pointer to GET_NUM function.\r
+  INIT_HANDLE_ENUMERATOR  Init;   ///< The pointer to INIT_HANDLE_ENUMERATOR function.\r
+  NEXT_HANDLE             Next;   ///< The pointer to NEXT_HANDLE function.\r
+  SKIP_HANDLE             Skip;   ///< The pointer to SKIP_HANDLE function.\r
+  RESET_HANDLE_ENUMERATOR Reset;  ///< The pointer to RESET_HANDLE_ENUMERATOR function.\r
+  CLOSE_HANDLE_ENUMERATOR Close;  ///< The pointer to CLOSE_HANDLE_ENUMERATOR function.\r
+  GET_NUM                 GetNum; ///< The pointer to GET_NUM function.\r
 } HANDLE_ENUMERATOR;\r
 \r
 /**\r
@@ -614,18 +614,18 @@ typedef struct {
 **/\r
 typedef struct {\r
   UINTN                       Signature;   ///< PROTOCOL_INFO_SIGNATURE.\r
-  LIST_ENTRY                  Link;        ///< Standard lined list helper member.\r
+  LIST_ENTRY                  Link;        ///< Standard linked list helper member.\r
   //\r
   // The parsing info for the protocol.\r
   //\r
-  EFI_GUID                    ProtocolId;  ///< GUID for the protocol.\r
-  CHAR16                      *IdString;   ///< Name of the protocol.\r
-  SHELLENV_DUMP_PROTOCOL_INFO DumpToken;   ///< Pointer to DumpToken function for the protocol.\r
-  SHELLENV_DUMP_PROTOCOL_INFO DumpInfo;    ///< Pointer to DumpInfo function for the protocol.\r
+  EFI_GUID                    ProtocolId;  ///< The GUID for the protocol.\r
+  CHAR16                      *IdString;   ///< The name of the protocol.\r
+  SHELLENV_DUMP_PROTOCOL_INFO DumpToken;   ///< The pointer to DumpToken function for the protocol.\r
+  SHELLENV_DUMP_PROTOCOL_INFO DumpInfo;    ///< The pointer to DumpInfo function for the protocol.\r
   //\r
   // Patabase info on which handles are supporting this protocol.\r
   //\r
-  UINTN                       NoHandles;   ///< How many handles produce this protocol.\r
+  UINTN                       NoHandles;   ///< The number of handles producing this protocol.\r
   EFI_HANDLE                  *Handles;    ///< The array of handles.\r
 \r
 } PROTOCOL_INFO;\r
@@ -649,14 +649,14 @@ VOID
 /**\r
   This function is an internal shell function for enumeration of protocols.\r
 \r
-  This functiol will return the next protocol in the list.  If this is called\r
-  immediately after initialization it will return the first.  If this is called\r
-  immediately after reset it will return the protocol first again.\r
+  This function returns the next protocol on the list.  If this is called\r
+  immediately after initialization, it will return the first protocol on the list.\r
+  If this is called immediately after reset, it will return the first protocol again.\r
 \r
   This cannot be called after CLOSE_PROTOCOL_INFO_ENUMERATOR, but it must be\r
   called after INIT_PROTOCOL_INFO_ENUMERATOR.\r
 \r
-  @param ProtocolInfo           Pointer to pointer to protocol information structure.\r
+  @param[in,out] ProtocolInfo   The pointer to pointer to protocol information structure.\r
 \r
   @retval EFI_SUCCESS           The next protocol's information was sucessfully returned.\r
   @retval NULL                  There are no more protocols.\r
@@ -675,7 +675,7 @@ EFI_STATUS
 \r
   This function does nothing and always returns EFI_SUCCESS.\r
 \r
-  @retval EFI_SUCCESS           always returned (see above).\r
+  @retval EFI_SUCCESS           Always returned (see above).\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -718,11 +718,11 @@ VOID
   Protocol enumerator structure of function pointers.\r
 **/\r
 typedef struct {\r
-  INIT_PROTOCOL_INFO_ENUMERATOR   Init;   ///< Pointer to INIT_PROTOCOL_INFO_ENUMERATOR function.\r
-  NEXT_PROTOCOL_INFO              Next;   ///< Pointer to NEXT_PROTOCOL_INFO function.\r
-  SKIP_PROTOCOL_INFO              Skip;   ///< Pointer to SKIP_PROTOCOL_INFO function.\r
-  RESET_PROTOCOL_INFO_ENUMERATOR  Reset;  ///< Pointer to RESET_PROTOCOL_INFO_ENUMERATOR function.\r
-  CLOSE_PROTOCOL_INFO_ENUMERATOR  Close;  ///< Pointer to CLOSE_PROTOCOL_INFO_ENUMERATOR function.\r
+  INIT_PROTOCOL_INFO_ENUMERATOR   Init;   ///< The pointer to INIT_PROTOCOL_INFO_ENUMERATOR function.\r
+  NEXT_PROTOCOL_INFO              Next;   ///< The pointer to NEXT_PROTOCOL_INFO function.\r
+  SKIP_PROTOCOL_INFO              Skip;   ///< The pointer to SKIP_PROTOCOL_INFO function.\r
+  RESET_PROTOCOL_INFO_ENUMERATOR  Reset;  ///< The pointer to RESET_PROTOCOL_INFO_ENUMERATOR function.\r
+  CLOSE_PROTOCOL_INFO_ENUMERATOR  Close;  ///< The pointer to CLOSE_PROTOCOL_INFO_ENUMERATOR function.\r
 } PROTOCOL_INFO_ENUMERATOR;\r
 \r
 /**\r
@@ -742,42 +742,42 @@ typedef struct {
   whether the handle in question produced either EFI_DRIVER_DIAGNOSTICS_PROTOCOL or\r
   EFI_DRIVER_DIAGNOSTICS2_PROTOCOL.\r
 \r
-  Upon sucessful return the memory for *BestDeviceName is up to the caller to free.\r
+  Upon successful return, the memory for *BestDeviceName is up to the caller to free.\r
 \r
-  @param DeviceHandle           The device handle whose name is desired.\r
-  @param UseComponentName       Whether to use the ComponentName protocol at all.\r
-  @param UseDevicePath          Whether to use the DevicePath protocol at all.\r
-  @param Language               Pointer to language string to use.\r
-  @param BestDeviceName         Pointer to pointer to string allocated with the name.\r
-  @param ConfigurationStatus    Pointer to status for opening a Configuration protocol.\r
-  @param DiagnosticsStatus      Pointer to status for opening a Diagnostics protocol.\r
-  @param Display                Whether to Print this out to default Print location.\r
-  @param Indent                 How many characters to indent the printing.\r
+  @param[in] DeviceHandle           The device handle whose name is desired.\r
+  @param[in] UseComponentName       Whether to use the ComponentName protocol at all.\r
+  @param[in] UseDevicePath          Whether to use the DevicePath protocol at all.\r
+  @param[in] Language               The pointer to the language string to use.\r
+  @param[in,out] BestDeviceName     The pointer to pointer to string allocated with the name.\r
+  @param[out] ConfigurationStatus   The pointer to status for opening a Configuration protocol.\r
+  @param[out] DiagnosticsStatus     The pointer to status for opening a Diagnostics protocol.\r
+  @param[in] Display                Whether to Print this out to default Print location.\r
+  @param[in] Indent                 How many characters to indent the printing.\r
 \r
   @retval EFI_SUCCESS           This function always returns EFI_SUCCESS.\r
 **/\r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *GET_DEVICE_NAME) (\r
-  EFI_HANDLE  DeviceHandle,\r
-  BOOLEAN     UseComponentName,\r
-  BOOLEAN     UseDevicePath,\r
-  CHAR8       *Language,\r
-  CHAR16      **BestDeviceName,\r
-  EFI_STATUS  *ConfigurationStatus,\r
-  EFI_STATUS  *DiagnosticsStatus,\r
-  BOOLEAN     Display,\r
-  UINTN       Indent\r
+  IN EFI_HANDLE  DeviceHandle,\r
+  IN BOOLEAN     UseComponentName,\r
+  IN BOOLEAN     UseDevicePath,\r
+  IN CHAR8       *Language,\r
+  IN OUT CHAR16  **BestDeviceName,\r
+  OUT EFI_STATUS *ConfigurationStatus,\r
+  OUT EFI_STATUS *DiagnosticsStatus,\r
+  IN BOOLEAN     Display,\r
+  IN UINTN       Indent\r
   );\r
 \r
-#define EFI_SHELL_COMPATIBLE_MODE_VER L"1.1.1" ///< string for lowest version this shell supports\r
-#define EFI_SHELL_ENHANCED_MODE_VER   L"1.1.2" ///< string for highest version this shell supports\r
+#define EFI_SHELL_COMPATIBLE_MODE_VER L"1.1.1" ///< The string for lowest version this shell supports.\r
+#define EFI_SHELL_ENHANCED_MODE_VER   L"1.1.2" ///< The string for highest version this shell supports.\r
 \r
 /**\r
   This function gets the shell mode as stored in the shell environment\r
   "efishellmode".  It will not fail.\r
 \r
-  @param Mode                   Returns a string representing one of the\r
+  @param[out] Mode              Returns a string representing one of the\r
                                 2 supported modes of the shell.\r
 \r
   @retval EFI_SUCCESS           This function always returns success.\r
@@ -798,6 +798,8 @@ EFI_STATUS
   If anything prevents the complete conversion free any allocated memory and\r
   return NULL.\r
 \r
+  @param[in] Path               The path to convert.\r
+\r
   @retval !NULL                 A pointer to the callee allocated Device Path.\r
   @retval NULL                  The operation could not be completed.\r
 **/\r
@@ -820,9 +822,9 @@ EFI_DEVICE_PATH_PROTOCOL*
   This function will use the internal lock to prevent changes to the map during\r
   the lookup operation.\r
 \r
-  @param DevPath                The device path to search for a name for.\r
-  @param ConsistMapping         What state to verify map flag VAR_ID_CONSIST.\r
-  @param Name                   On sucessful return the name of that device path.\r
+  @param[in] DevPath                The device path to search for a name for.\r
+  @param[in] ConsistMapping         What state to verify map flag VAR_ID_CONSIST.\r
+  @param[out] Name                  On sucessful return the name of that device path.\r
 \r
   @retval EFI_SUCCESS           The DevPath was found and the name returned\r
                                 in Name.\r
@@ -847,11 +849,11 @@ EFI_STATUS
   The memory allocated by the callee for this list is freed by making a call to\r
   SHELLENV_FREE_FILE_LIST.\r
 \r
-  @param Arg                    Pointer Path to files to open.\r
-  @param ListHead               Pointer to allocated and initialized list head\r
+  @param[in] Arg                The pointer to the path of the files to be opened.\r
+  @param[in,out] ListHead       The pointer to allocated and initialized list head\r
                                 upon which to append all the opened file structures.\r
 \r
-  @retval EFI_SUCCESS           1 or more files was opened and a struct of each file's\r
+  @retval EFI_SUCCESS           One or more files was opened and a struct of each file's\r
                                 information was appended to ListHead.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_NOT_FOUND         No matching files could be found.\r
@@ -872,7 +874,7 @@ EFI_STATUS
   files in the list of returned files.  Any file listed twice will have one of its\r
   instances removed.\r
 \r
-  @param ListHead               Pointer to linked list head that was returned from\r
+  @param[in] ListHead           The pointer to linked list head that was returned from\r
                                 SHELLENV_FILE_META_ARG_NO_WILDCARD or\r
                                 SHELLENV_FILE_META_ARG.\r
 \r
@@ -888,22 +890,22 @@ EFI_STATUS
 /**\r
   Converts a File System map name to a device path.\r
 \r
-  if DevPath is NULL, then ASSERT().\r
+  If DevPath is NULL, then ASSERT().\r
 \r
   This function looks through the shell environment map for a map whose Name\r
-  matches the Name parameter.  If one is found the device path pointer is\r
+  matches the Name parameter.  If one is found, the device path pointer is\r
   updated to point to that file systems device path.  The caller should not\r
   free the memory from that device path.\r
 \r
   This function will use the internal lock to prevent changes to the map during\r
   the lookup operation.\r
 \r
-  @param Name                   Pointer to NULL terminated UNICODE string of the\r
+  @param[in] Name               The pointer to the NULL terminated UNICODE string of the\r
                                 file system name.\r
-  @param DevPath                Pointer to pointer to DevicePath.  only valid on\r
-                                OUT if sucessful.\r
+  @param[out] DevPath           The pointer to pointer to DevicePath.  Only valid on\r
+                                successful return.\r
 \r
-  @retval EFI_SUCCESS           The conversion was successful and the device\r
+  @retval EFI_SUCCESS           The conversion was successful, and the device\r
                                 path was returned.\r
   @retval EFI_NOT_FOUND         The file system could not be found in the map.\r
 **/\r