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