]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | header file for NULL named library for 'tftp' Shell command functions.\r | |
3 | \r | |
4 | Copyright (c) 2010 - 2015, 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 | \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 | |
41 | extern EFI_HANDLE gShellTftpHiiHandle;\r | |
42 | \r | |
43 | typedef struct {\r | |
44 | UINT64 FileSize;\r | |
45 | UINT64 DownloadedNbOfBytes;\r | |
46 | UINT64 LastReportedNbOfBytes;\r | |
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 | |
55 | SHELL_STATUS\r | |
56 | EFIAPI\r | |
57 | ShellCommandRunTftp (\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 |