]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Protocol/EfiShellEnvironment2.h
fixed license header / copyright date on all files.
[mirror_edk2.git] / ShellPkg / Include / Protocol / EfiShellEnvironment2.h
index ea06f8de96c6b1f8573e55128d9ad9d44d73c7ac..1c828530275aefe010f54b375f00be1c13f5a5cb 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Defines for EFI shell environment 2 ported to EDK II build environment. (no spec)\r
 \r
-  Copyright (c) 2005 - 2010, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  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
@@ -12,7 +12,7 @@
 \r
 **/\r
 \r
-  \r
+\r
 #if !defined (_SHELL_ENVIRONMENT_2_PROTOCOL_H_)\r
 #define _SHELL_ENVIRONMENT_2_PROTOCOL_H_\r
 \r
@@ -20,8 +20,8 @@
 #define DEFAULT_AUTO_LF     FALSE\r
 \r
 /**\r
-  This function is a prototype for a function that dumps information on a protocol \r
-  to a given location.  The location is dependant on the implementation.  This is \r
+  This function is a prototype for a function that dumps information on a protocol\r
+  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
@@ -36,16 +36,16 @@ VOID
   );\r
 \r
 /**\r
-  This function is a prototype for each command internal to the EFI shell \r
-  implementation.  The specific command depends on the implementation.  This is \r
+  This function is a prototype for each command internal to the EFI shell\r
+  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
 \r
   @retval EFI_SUCCESS           The command ran to completion\r
-  @retval other                 An error ocurred.  Any error is possible \r
-                                depending on the implementation of the shell \r
+  @retval other                 An error ocurred.  Any error is possible\r
+                                depending on the implementation of the shell\r
                                 command.\r
 \r
 **/\r
@@ -57,8 +57,8 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function is a prototype for one that gets a help string for a given command. \r
-  This is used when programatically adding shell commands.  Upon successful return \r
+  This function is a prototype for one that gets a help string for a given command.\r
+  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
@@ -76,24 +76,24 @@ EFI_STATUS
 Structure returned from functions that open multiple files.\r
 **/\r
 typedef struct {\r
-  UINT32                    Signature;            ///< SHELL_FILE_ARG_SIGNATURE\r
-  LIST_ENTRY                Link;                 ///< Linked list helper\r
-  EFI_STATUS                Status;               ///< File's status\r
+  UINT32                    Signature;            ///< SHELL_FILE_ARG_SIGNATURE.\r
+  LIST_ENTRY                Link;                 ///< Linked list helper.\r
+  EFI_STATUS                Status;               ///< File's status.\r
 \r
-  EFI_FILE_HANDLE           Parent;               ///< What is the Parent file of this file\r
-  UINT64                    OpenMode;             ///< How was the file opened\r
-  CHAR16                    *ParentName;          ///< String representation of parent\r
-  EFI_DEVICE_PATH_PROTOCOL  *ParentDevicePath;    ///< DevicePath for Parent\r
+  EFI_FILE_HANDLE           Parent;               ///< What is the Parent file of this file.\r
+  UINT64                    OpenMode;             ///< How was the file opened.\r
+  CHAR16                    *ParentName;          ///< String representation of parent.\r
+  EFI_DEVICE_PATH_PROTOCOL  *ParentDevicePath;    ///< DevicePath for Parent.\r
 \r
-  CHAR16                    *FullName;            ///< Path and file name for this file\r
-  CHAR16                    *FileName;            ///< File name for this file\r
+  CHAR16                    *FullName;            ///< Path and file name for this file.\r
+  CHAR16                    *FileName;            ///< File name for this file.\r
 \r
-  EFI_FILE_HANDLE           Handle;               ///< Handle to this file\r
-  EFI_FILE_INFO             *Info;                ///< Pointer to file info for this file\r
+  EFI_FILE_HANDLE           Handle;               ///< Handle to this file.\r
+  EFI_FILE_INFO             *Info;                ///< Pointer to file info for this file.\r
 } SHELL_FILE_ARG;\r
 \r
-/// Signature for SHELL_FILE_ARG\r
-#define SHELL_FILE_ARG_SIGNATURE  SIGNATURE_32 ('g', 'r', 'a', 'f') \r
+/// Signature for SHELL_FILE_ARG.\r
+#define SHELL_FILE_ARG_SIGNATURE  SIGNATURE_32 ('g', 'r', 'a', 'f')\r
 \r
 /**\r
 GUID for the shell environment2 and shell environment.\r
@@ -115,12 +115,12 @@ GUID for the shell environment2 extension (main GUID above).
 #define EFI_SHELL_MINOR_VER 0x00000000 ///< Minor version of the EFI_SHELL_ENVIRONMENT2\r
 \r
 /**\r
-  Execute a command line\r
+  Execute a command line.\r
 \r
-  This function will run the CommandLine.  This includes loading any required images, \r
-  parsing any requires scripts, and it DebugOutput is TRUE printing errors \r
+  This function will run the CommandLine.  This includes loading any required images,\r
+  parsing any requires scripts, and if DebugOutput is TRUE printing errors\r
   encountered directly to the screen.\r
-  \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
@@ -144,15 +144,15 @@ 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 Name                   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
-  @retval !NULL                 The value of the shell environment variable Name.\r
+  @retval !=NULL                The value of the shell environment variable Name.\r
 \r
 **/\r
-typedef \r
-CHAR16 * \r
+typedef\r
+CHAR16 *\r
 (EFIAPI *SHELLENV_GET_ENV) (\r
   IN CHAR16 *Name\r
   );\r
@@ -160,15 +160,15 @@ CHAR16 *
 /**\r
   This function returns a shell environment map value.\r
 \r
-  @param Name                   Pointer to the string with the shell environment \r
+  @param Name                   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
-  @retval !NULL                 The value of the shell environment map Name.\r
+  @retval !=NULL                The value of the shell environment map Name.\r
 \r
 **/\r
-typedef \r
-CHAR16 * \r
+typedef\r
+CHAR16 *\r
 (EFIAPI *SHELLENV_GET_MAP) (\r
   IN CHAR16 *Name\r
   );\r
@@ -180,7 +180,7 @@ CHAR16 *
   list in the correct location.\r
 \r
   @param Handler                The handler function to call when the command gets called.\r
-  @param CmdStr                 The command name.\r
+  @param Cmd                    The command name.\r
   @param GetLineHelp            Function to call of get help for this command.\r
 \r
   @retval EFI_SUCCESS           The command is now part of the command list.\r
@@ -203,11 +203,10 @@ 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 SaveId                 Save this change as an EFI variable.\r
-  @param Protocol               The protocol's GUID.\r
-  @param DumpToken              The function pointer to dump token function or \r
+  @param Protocol               Pointer to the protocol's GUID.\r
+  @param DumpToken              The function pointer to dump token function or\r
                                 NULL.\r
-  @param DumpInfo               The function pointer to dump infomation function \r
+  @param DumpInfo               The function pointer to dump infomation function\r
                                 or NULL.\r
   @param IdString               The english name of the protocol.\r
 **/\r
@@ -221,10 +220,10 @@ VOID
   );\r
 \r
 /**\r
-  This function finds a protocol handle by a GUID.  \r
+  This function finds a protocol handle by a GUID.\r
 \r
-  This function will check for already known protocols by GUID and if one is \r
-  found it will return the name of that protocol.  If no name is found and \r
+  This function will check for already known protocols by GUID and if one is\r
+  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
@@ -233,45 +232,46 @@ VOID
   @return !NULL                 The Name of the protocol.\r
   @retval NULL                  The Name was not found and GenId was not TRUE.\r
 **/\r
-typedef \r
+typedef\r
 CHAR16*\r
 (EFIAPI *SHELLENV_GET_PROT) (\r
-  IN EFI_GUID *Protocol, \r
+  IN EFI_GUID *Protocol,\r
   IN BOOLEAN GenId\r
   );\r
 \r
 /**\r
-  This function returns the current directory on a given device.\r
+  This function returns a string array containing the current directory on\r
+  a given device.\r
 \r
-  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
+  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
 \r
-  @param DeviceName             The name of the device to get the current \r
+  @param DeviceName             The name of the device to get the current\r
                                 directory on or NULL for current device.\r
 \r
-  @return The current directory on the current or specified device.\r
+  @return String array with the current directory on the current or specified device.\r
 \r
 **/\r
-typedef \r
+typedef\r
 CHAR16*\r
 (EFIAPI *SHELLENV_CUR_DIR) (\r
   IN CHAR16 *DeviceName OPTIONAL\r
   );\r
 \r
 /**\r
-  This function will open a group of files that match the Arg path, including \r
-  support for wildcard characters ('?' and '*') in the Arg path.  If there are \r
+  This function will open a group of files that match the Arg path, including\r
+  support for wildcard characters ('?' and '*') in the Arg path.  If there are\r
   any wildcard characters in the path this function will find any and all files\r
-  that match the wildcards.  The return is a double linked list based on the \r
-  LIST_ENTRY linked list structure.  Use this in conjunction with the \r
+  that match the wildcards.  It returns a double linked list based on the\r
+  LIST_ENTRY linked list structure.  Use this in conjunction with the\r
   SHELL_FILE_ARG_SIGNATURE to get the SHELL_FILE_ARG structures that are returned.\r
-  The memory allocated by the callee for this list is freed by making a call to \r
+  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 ListHead               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
@@ -291,7 +291,7 @@ EFI_STATUS
 \r
   @param ListHead               Pointer to list to free all nodes of.\r
 \r
-  @retval EFI_SUCCESS           always returned.\r
+  @retval EFI_SUCCESS           Always returned.\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -300,21 +300,21 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function creates a new instance of the ShellInterface protocol for use on \r
+  This function creates a new instance of the ShellInterface protocol for use on\r
   the ImageHandle.\r
 \r
-  This function is for internal shell usage.  This will allocate and then populate \r
-  EFI_SHELL_INTERFACE protocol.  It is the caller's responsibility to free the \r
+  This function is for internal shell usage.  This will allocate and then populate\r
+  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 ImageHandle            The handle which will use the new ShellInterface\r
                                 protocol.\r
 \r
   @return the newly allocated shell interface protocol.\r
 \r
 **/\r
-typedef \r
-EFI_SHELL_INTERFACE* \r
+typedef\r
+EFI_SHELL_INTERFACE*\r
 (EFIAPI *SHELLENV_NEW_SHELL) (\r
   IN EFI_HANDLE ImageHandle\r
   );\r
@@ -322,8 +322,8 @@ EFI_SHELL_INTERFACE*
 /**\r
   This function determins whether a script file is currently being processed.\r
 \r
-  A script file (.nsh file) can contain a series of commands and this is useful to \r
-  know for some shell commands whether they are being run manually or as part of a \r
+  A script file (.nsh file) can contain a series of commands and this is useful to\r
+  know for some shell commands whether they are being run manually or as part of a\r
   script.\r
 \r
   @retval TRUE                  A script file is being processed.\r
@@ -336,7 +336,7 @@ BOOLEAN
   );\r
 \r
 /**\r
-  This is an internal shell function to free any and all allocated resources.  \r
+  This is an internal shell function to free any and all allocated resources.\r
   This should be called just closing the shell.\r
 **/\r
 typedef\r
@@ -348,9 +348,9 @@ VOID
 /**\r
   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
+  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
   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
@@ -366,7 +366,7 @@ 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
+  Tisabling this causes the output to print out exactly as coded with no breaks\r
   for readability.\r
 **/\r
 typedef\r
@@ -388,7 +388,7 @@ BOOLEAN
   );\r
 \r
 /**\r
-  This function sets the keys to filter for for the console in.  The valid \r
+  This function sets the keys to filter for for the console in.  The valid\r
   values to set are:\r
 \r
   #define EFI_OUTPUT_SCROLL   0x00000001\r
@@ -404,7 +404,7 @@ VOID
   );\r
 \r
 /**\r
-  This function gets the keys to filter for for the console in.  \r
+  This function gets the keys to filter for for the console in.\r
 \r
   The valid values to get are:\r
   #define EFI_OUTPUT_SCROLL   0x00000001\r
@@ -422,10 +422,10 @@ UINT32
 /**\r
   This function determins if the shell application should break.\r
 \r
-  This is used to inform a shell application that a break condition has been \r
+  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
@@ -470,14 +470,14 @@ BOOLEAN
 /**\r
   Close the console proxy to restore the original console.\r
 \r
-  This is an internal shell function to handle shell cascading.  It restores the \r
+  This is an internal shell function to handle shell cascading.  It restores the\r
   original set of console protocols.\r
-  \r
+\r
   @param ConInHandle            The handle of ConIn.\r
-  @param ConIn                  Pointer to the location to return the pointer to \r
+  @param ConIn                  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 ConOut                 Pointer to the location to return the pointer to\r
                                 the original console output.\r
 **/\r
 typedef\r
@@ -494,7 +494,7 @@ VOID
 //\r
 /**\r
   For ease of use the shell maps handle #'s to short numbers.\r
-  This is only done on request for various internal commands and the references \r
+  This is only done on request for various internal commands and the references\r
   are immediately freed when the internal command completes.\r
 **/\r
 typedef\r
@@ -506,8 +506,8 @@ VOID
 /**\r
   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
+  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
   it is set to NULL before returning.\r
 \r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
@@ -527,8 +527,8 @@ EFI_STATUS
 /**\r
   This is an internal shell function to enumerate the handle database.\r
 \r
-  This function skips the next SkipNum handles in the handle database.  If there \r
-  are not enough handles left to skip that many EFI_ACCESS_DENIED is returned and \r
+  This function skips the next SkipNum handles in the handle database.  If there\r
+  are not enough handles left to skip that many EFI_ACCESS_DENIED is returned and\r
   no skip is performed.\r
 \r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
@@ -547,9 +547,9 @@ EFI_STATUS
 /**\r
   This is an internal shell function to enumerate the handle database.\r
 \r
-  This function resets the the handle database so that NEXT_HANDLE and SKIP_HANDLE \r
-  will start from EnumIndex on the next call. \r
-  \r
+  This function resets the the handle database so that NEXT_HANDLE and SKIP_HANDLE\r
+  will start from EnumIndex on the next call.\r
+\r
   This must be called after INIT_HANDLE_ENUMERATOR and before CLOSE_HANDLE_ENUMERATOR.\r
 \r
   @param EnumIndex              Where to start.\r
@@ -564,11 +564,11 @@ UINTN
 \r
 /**\r
   This is an internal shell function to enumerate the handle database.\r
-  \r
+\r
   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
+  Tfter this no other handle enumerator functions except INIT_HANDLE_ENUMERATOR will\r
   function properly.\r
 **/\r
 typedef\r
@@ -581,7 +581,7 @@ VOID
   This is an internal shell function to enumerate the handle database.\r
 \r
   This function returns the number of handles in the handle database.\r
-  \r
+\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
@@ -636,7 +636,7 @@ typedef struct {
 /**\r
   This is an internal shell function to initialize the protocol enumerator.\r
 \r
-  This must be called before NEXT_PROTOCOL_INFO, SKIP_PROTOCOL_INFO, \r
+  This must be called before NEXT_PROTOCOL_INFO, SKIP_PROTOCOL_INFO,\r
   RESET_PROTOCOL_INFO_ENUMERATOR, and CLOSE_PROTOCOL_INFO_ENUMERATOR are\r
   called.\r
 **/\r
@@ -647,13 +647,13 @@ VOID
   );\r
 \r
 /**\r
-  This function is an internal shell function for enumeration of protocols.  \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
+  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
 \r
-  This cannot be called after CLOSE_PROTOCOL_INFO_ENUMERATOR, but it must be \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
@@ -668,9 +668,9 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function is an internal shell function for enumeration of protocols.  \r
+  This function is an internal shell function for enumeration of protocols.\r
 \r
-  This cannot be called after CLOSE_PROTOCOL_INFO_ENUMERATOR, but it must be \r
+  This cannot be called after CLOSE_PROTOCOL_INFO_ENUMERATOR, but it must be\r
   called after INIT_PROTOCOL_INFO_ENUMERATOR.\r
 \r
   This function does nothing and always returns EFI_SUCCESS.\r
@@ -684,12 +684,12 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function is an internal shell function for enumeration of protocols.  \r
+  This function is an internal shell function for enumeration of protocols.\r
 \r
-  This cannot be called after CLOSE_PROTOCOL_INFO_ENUMERATOR, but it must be \r
+  This cannot be called after CLOSE_PROTOCOL_INFO_ENUMERATOR, but it must be\r
   called after INIT_PROTOCOL_INFO_ENUMERATOR.\r
 \r
-  This function resets the list of protocols such that the next one in the \r
+  This function resets the list of protocols such that the next one in the\r
   list is the begining of the list.\r
 **/\r
 typedef\r
@@ -700,7 +700,7 @@ VOID
 \r
 \r
 /**\r
-  This function is an internal shell function for enumeration of protocols.  \r
+  This function is an internal shell function for enumeration of protocols.\r
 \r
   This must be called after INIT_PROTOCOL_INFO_ENUMERATOR.  After this call\r
   no protocol enumerator calls except INIT_PROTOCOL_INFO_ENUMERATOR may be made.\r
@@ -726,22 +726,22 @@ typedef struct {
 } PROTOCOL_INFO_ENUMERATOR;\r
 \r
 /**\r
-  This function is used to retrieve a user-friendly display name for a handle.  \r
+  This function is used to retrieve a user-friendly display name for a handle.\r
 \r
-  If UseComponentName is TRUE then the component name protocol for this device \r
-  or it's parent device (if required) will be used to obtain the name of the \r
+  If UseComponentName is TRUE then the component name protocol for this device\r
+  or it's parent device (if required) will be used to obtain the name of the\r
   device.  If UseDevicePath is TRUE it will get the human readable device path\r
   and return that.  If both are TRUE it will try to use component name first\r
-  and device path if that fails. \r
+  and device path if that fails.\r
 \r
-  It will use either ComponentName or ComponentName2 protocol, depending on \r
+  It will use either ComponentName or ComponentName2 protocol, depending on\r
   what is present.\r
 \r
   This function will furthur verify whether the handle in question produced either\r
-  EFI_DRIVER_CONFIGRATION_PROTOCOL or EFI_DRIVER_CONFIGURATION2_PROTOCOL and also \r
-  whether the handle in question produced either EFI_DRIVER_DIAGNOSTICS_PROTOCOL or \r
+  EFI_DRIVER_CONFIGRATION_PROTOCOL or EFI_DRIVER_CONFIGURATION2_PROTOCOL and also\r
+  whether the handle in question produced either EFI_DRIVER_DIAGNOSTICS_PROTOCOL or\r
   EFI_DRIVER_DIAGNOSTICS2_PROTOCOL.\r
-  \r
+\r
   Upon sucessful return the memory for *BestDeviceName is up to the caller to free.\r
 \r
   @param DeviceHandle           The device handle whose name is desired.\r
@@ -774,10 +774,10 @@ EFI_STATUS
 #define EFI_SHELL_ENHANCED_MODE_VER   L"1.1.2" ///< string for highest version this shell supports\r
 \r
 /**\r
-  This function gets the shell mode as stored in the shell environment \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 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
@@ -792,17 +792,17 @@ EFI_STATUS
   Convert a file system style name to a device path.\r
 \r
   This function will convert a shell path name to a Device Path Protocol path.\r
-  This function will allocate any required memory for this operation and it \r
+  This function will allocate any required memory for this operation and it\r
   is the responsibility of the caller to free that memory when no longer required.\r
 \r
-  If anything prevents the complete conversion free any allocated memory and \r
+  If anything prevents the complete conversion free any allocated memory and\r
   return NULL.\r
 \r
   @retval !NULL                 A pointer to the callee allocated Device Path.\r
   @retval NULL                  The operation could not be completed.\r
 **/\r
-typedef \r
-EFI_DEVICE_PATH_PROTOCOL* \r
+typedef\r
+EFI_DEVICE_PATH_PROTOCOL*\r
 (EFIAPI *SHELLENV_NAME_TO_PATH) (\r
   IN CHAR16 *Path\r
   );\r
@@ -813,19 +813,19 @@ EFI_DEVICE_PATH_PROTOCOL*
   If DevPath is NULL, then ASSERT.\r
 \r
   This function looks through the shell environment map for a map whose device\r
-  path matches the DevPath parameter.  If one is found the Name is returned via \r
+  path matches the DevPath parameter.  If one is found the Name is returned via\r
   Name parameter.  If sucessful the caller must free the memory allocated for\r
   Name.\r
 \r
-  This function will use the internal lock to prevent changes to the map during \r
+  This function will use the internal lock to prevent changes to the map during\r
   the lookup operation.\r
-  \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
 \r
   @retval EFI_SUCCESS           The DevPath was found and the name returned\r
-                                in Name.  \r
+                                in Name.\r
   @retval EFI_OUT_OF_RESOURCES  A required memory allocation failed.\r
   @retval EFI_UNSUPPORTED       The DevPath was not found in the map.\r
 **/\r
@@ -838,17 +838,17 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This function will open a group of files that match the Arg path, but will not \r
-  support the wildcard characters ('?' and '*') in the Arg path.  If there are \r
-  any wildcard characters in the path this function will return \r
-  EFI_INVALID_PARAMETER.  The return is a double linked list based on the \r
-  LIST_ENTRY linked list structure.  Use this in conjunction with the \r
+  This function will open a group of files that match the Arg path, but will not\r
+  support the wildcard characters ('?' and '*') in the Arg path.  If there are\r
+  any wildcard characters in the path this function will return\r
+  EFI_INVALID_PARAMETER.  The return is a double linked list based on the\r
+  LIST_ENTRY linked list structure.  Use this in conjunction with the\r
   SHELL_FILE_ARG_SIGNATURE to get the SHELL_FILE_ARG structures that are returned.\r
-  The memory allocated by the callee for this list is freed by making a call to \r
+  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 ListHead               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
@@ -867,12 +867,12 @@ EFI_STATUS
 /**\r
   This function removes duplicate file listings from lists.\r
 \r
-  This is a function for use with SHELLENV_FILE_META_ARG_NO_WILDCARD and \r
+  This is a function for use with SHELLENV_FILE_META_ARG_NO_WILDCARD and\r
   SHELLENV_FILE_META_ARG.  This function will verify that there are no duplicate\r
   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 ListHead               Pointer to linked list head that was returned from\r
                                 SHELLENV_FILE_META_ARG_NO_WILDCARD or\r
                                 SHELLENV_FILE_META_ARG.\r
 \r
@@ -890,20 +890,20 @@ EFI_STATUS
 \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
-  updated to point to that file systems device path.  The caller should not \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
+  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
+  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 Name                   Pointer to NULL terminated UNICODE string of the\r
                                 file system name.\r
-  @param DevPath                Pointer to pointer to DevicePath.  only valid on \r
+  @param DevPath                Pointer to pointer to DevicePath.  only valid on\r
                                 OUT if sucessful.\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