]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.h
EmbeddedPkg/FdtPlatformDxe: Reference Shell protocols in MdePkg
[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
6add86ab 4 Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>\r
68074260
RC
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
68074260
RC
24\r
25#include <Protocol/ServiceBinding.h>\r
26#include <Protocol/Mtftp4.h>\r
27\r
28#include <Library/BaseLib.h>\r
29#include <Library/BaseMemoryLib.h>\r
30#include <Library/DebugLib.h>\r
31#include <Library/MemoryAllocationLib.h>\r
32#include <Library/ShellCommandLib.h>\r
33#include <Library/ShellLib.h>\r
34#include <Library/UefiLib.h>\r
35#include <Library/UefiRuntimeServicesTableLib.h>\r
36#include <Library/UefiBootServicesTableLib.h>\r
37#include <Library/HiiLib.h>\r
38#include <Library/NetLib.h>\r
39#include <Library/PrintLib.h>\r
40\r
41extern EFI_HANDLE gShellTftpHiiHandle;\r
42\r
43typedef struct {\r
6add86ab
JC
44 UINTN FileSize;\r
45 UINTN DownloadedNbOfBytes;\r
46 UINTN LastReportedNbOfBytes;\r
68074260
RC
47} DOWNLOAD_CONTEXT;\r
48\r
49/**\r
50 Function for 'tftp' command.\r
51\r
52 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
53 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
54**/\r
55SHELL_STATUS\r
56EFIAPI\r
57ShellCommandRunTftp (\r
58 IN EFI_HANDLE ImageHandle,\r
59 IN EFI_SYSTEM_TABLE *SystemTable\r
60 );\r
61\r
62#endif /* _UEFI_SHELL_TFTP_COMMAND_LIB_H_ */\r