]>
Commit | Line | Data |
---|---|---|
68074260 RC |
1 | /** @file\r |
2 | header file for NULL named library for 'tftp' Shell command functions.\r | |
3 | \r | |
28165f24 | 4 | Copyright (c) 2010 - 2016, 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 | |
68074260 RC |
21 | \r |
22 | #include <Guid/ShellLibHiiGuid.h>\r | |
68074260 RC |
23 | \r |
24 | #include <Protocol/ServiceBinding.h>\r | |
25 | #include <Protocol/Mtftp4.h>\r | |
26 | \r | |
27 | #include <Library/BaseLib.h>\r | |
28 | #include <Library/BaseMemoryLib.h>\r | |
29 | #include <Library/DebugLib.h>\r | |
30 | #include <Library/MemoryAllocationLib.h>\r | |
31 | #include <Library/ShellCommandLib.h>\r | |
32 | #include <Library/ShellLib.h>\r | |
33 | #include <Library/UefiLib.h>\r | |
34 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
35 | #include <Library/UefiBootServicesTableLib.h>\r | |
36 | #include <Library/HiiLib.h>\r | |
37 | #include <Library/NetLib.h>\r | |
38 | #include <Library/PrintLib.h>\r | |
39 | \r | |
40 | extern EFI_HANDLE gShellTftpHiiHandle;\r | |
41 | \r | |
42 | typedef struct {\r | |
6add86ab JC |
43 | UINTN FileSize;\r |
44 | UINTN DownloadedNbOfBytes;\r | |
45 | UINTN LastReportedNbOfBytes;\r | |
68074260 RC |
46 | } DOWNLOAD_CONTEXT;\r |
47 | \r | |
48 | /**\r | |
49 | Function for 'tftp' command.\r | |
50 | \r | |
51 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
52 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
53 | **/\r | |
54 | SHELL_STATUS\r | |
55 | EFIAPI\r | |
56 | ShellCommandRunTftp (\r | |
57 | IN EFI_HANDLE ImageHandle,\r | |
58 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
59 | );\r | |
60 | \r | |
61 | #endif /* _UEFI_SHELL_TFTP_COMMAND_LIB_H_ */\r |