]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / DynamicCommand / TftpDynamicCommand / TftpDynamicCommand.c
index 9e6489dd6fc5abedb6c549b47a666abdddc97274..23c86a785cd76ef2fce6fc7c825851617c6576b5 100644 (file)
@@ -4,13 +4,7 @@
   Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>\r
   Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>\r
 \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
-\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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 #include "Tftp.h"\r
   @param[in] Shell                  The instance of the shell protocol used in the context\r
                                     of processing this command.\r
 \r
-  @return EFI_SUCCESS               the operation was sucessful\r
+  @return EFI_SUCCESS               the operation was successful\r
   @return other                     the operation failed.\r
 **/\r
 SHELL_STATUS\r
 EFIAPI\r
 TftpCommandHandler (\r
-  IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL    *This,\r
-  IN EFI_SYSTEM_TABLE                      *SystemTable,\r
-  IN EFI_SHELL_PARAMETERS_PROTOCOL         *ShellParameters,\r
-  IN EFI_SHELL_PROTOCOL                    *Shell\r
+  IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL  *This,\r
+  IN EFI_SYSTEM_TABLE                    *SystemTable,\r
+  IN EFI_SHELL_PARAMETERS_PROTOCOL       *ShellParameters,\r
+  IN EFI_SHELL_PROTOCOL                  *Shell\r
   )\r
 {\r
   gEfiShellParametersProtocol = ShellParameters;\r
@@ -56,14 +50,14 @@ TftpCommandHandler (
 CHAR16 *\r
 EFIAPI\r
 TftpCommandGetHelp (\r
-  IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL    *This,\r
-  IN CONST CHAR8                           *Language\r
+  IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL  *This,\r
+  IN CONST CHAR8                         *Language\r
   )\r
 {\r
   return HiiGetString (mTftpHiiHandle, STRING_TOKEN (STR_GET_HELP_TFTP), Language);\r
 }\r
 \r
-EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL mTftpDynamicCommand = {\r
+EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL  mTftpDynamicCommand = {\r
   L"tftp",\r
   TftpCommandHandler,\r
   TftpCommandGetHelp\r
@@ -77,18 +71,19 @@ EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL mTftpDynamicCommand = {
   @param ImageHandle            The image handle of the process.\r
   @param SystemTable            The EFI System Table pointer.\r
 \r
-  @retval EFI_SUCCESS           Tftp command is executed sucessfully.\r
+  @retval EFI_SUCCESS           Tftp command is executed successfully.\r
   @retval EFI_ABORTED           HII package was failed to initialize.\r
   @retval others                Other errors when executing tftp command.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 TftpCommandInitialize (\r
-  IN EFI_HANDLE               ImageHandle,\r
-  IN EFI_SYSTEM_TABLE         *SystemTable\r
+  IN EFI_HANDLE        ImageHandle,\r
+  IN EFI_SYSTEM_TABLE  *SystemTable\r
   )\r
 {\r
-  EFI_STATUS                  Status;\r
+  EFI_STATUS  Status;\r
+\r
   mTftpHiiHandle = InitializeHiiPackage (ImageHandle);\r
   if (mTftpHiiHandle == NULL) {\r
     return EFI_ABORTED;\r
@@ -115,10 +110,11 @@ TftpCommandInitialize (
 EFI_STATUS\r
 EFIAPI\r
 TftpUnload (\r
-  IN EFI_HANDLE               ImageHandle\r
-)\r
+  IN EFI_HANDLE  ImageHandle\r
+  )\r
 {\r
-  EFI_STATUS                  Status;\r
+  EFI_STATUS  Status;\r
+\r
   Status = gBS->UninstallProtocolInterface (\r
                   ImageHandle,\r
                   &gEfiShellDynamicCommandProtocolGuid,\r
@@ -127,6 +123,7 @@ TftpUnload (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
+\r
   HiiRemovePackages (mTftpHiiHandle);\r
   return EFI_SUCCESS;\r
 }\r