Home | History | Annotate | Download | only in UefiShellTftpCommandLib
      1 /** @file
      2   header file for NULL named library for 'tftp' Shell command functions.
      3 
      4   Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>
      5   Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
      6 
      7   This program and the accompanying materials
      8   are licensed and made available under the terms and conditions of the BSD License
      9   which accompanies this distribution.  The full text of the license may be found at
     10   http://opensource.org/licenses/bsd-license.php
     11 
     12   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     13   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     14 
     15 **/
     16 
     17 #ifndef _UEFI_SHELL_TFTP_COMMAND_LIB_H_
     18 #define _UEFI_SHELL_TFTP_COMMAND_LIB_H_
     19 
     20 #include <Uefi.h>
     21 #include <ShellBase.h>
     22 
     23 #include <Guid/ShellLibHiiGuid.h>
     24 
     25 #include <Protocol/ServiceBinding.h>
     26 #include <Protocol/Mtftp4.h>
     27 
     28 #include <Library/BaseLib.h>
     29 #include <Library/BaseMemoryLib.h>
     30 #include <Library/DebugLib.h>
     31 #include <Library/MemoryAllocationLib.h>
     32 #include <Library/ShellCommandLib.h>
     33 #include <Library/ShellLib.h>
     34 #include <Library/UefiLib.h>
     35 #include <Library/UefiRuntimeServicesTableLib.h>
     36 #include <Library/UefiBootServicesTableLib.h>
     37 #include <Library/HiiLib.h>
     38 #include <Library/NetLib.h>
     39 #include <Library/PrintLib.h>
     40 
     41 extern EFI_HANDLE gShellTftpHiiHandle;
     42 
     43 typedef struct {
     44   UINTN  FileSize;
     45   UINTN  DownloadedNbOfBytes;
     46   UINTN  LastReportedNbOfBytes;
     47 } DOWNLOAD_CONTEXT;
     48 
     49 /**
     50   Function for 'tftp' command.
     51 
     52   @param[in] ImageHandle  Handle to the Image (NULL if Internal).
     53   @param[in] SystemTable  Pointer to the System Table (NULL if Internal).
     54 **/
     55 SHELL_STATUS
     56 EFIAPI
     57 ShellCommandRunTftp (
     58   IN EFI_HANDLE        ImageHandle,
     59   IN EFI_SYSTEM_TABLE  *SystemTable
     60   );
     61 
     62 #endif /* _UEFI_SHELL_TFTP_COMMAND_LIB_H_ */
     63