Mtftp6Impl.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. /** @file
  2. Mtftp6 internal data structure and definition declaration.
  3. Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __EFI_MTFTP6_IMPL_H__
  7. #define __EFI_MTFTP6_IMPL_H__
  8. #include <Uefi.h>
  9. #include <Protocol/Udp6.h>
  10. #include <Protocol/Mtftp6.h>
  11. #include <Protocol/ServiceBinding.h>
  12. #include <Protocol/DriverBinding.h>
  13. #include <Library/DebugLib.h>
  14. #include <Library/UefiDriverEntryPoint.h>
  15. #include <Library/UefiBootServicesTableLib.h>
  16. #include <Library/UefiLib.h>
  17. #include <Library/BaseLib.h>
  18. #include <Library/NetLib.h>
  19. #include <Library/PrintLib.h>
  20. typedef struct _MTFTP6_SERVICE MTFTP6_SERVICE;
  21. typedef struct _MTFTP6_INSTANCE MTFTP6_INSTANCE;
  22. #include "Mtftp6Driver.h"
  23. #include "Mtftp6Option.h"
  24. #include "Mtftp6Support.h"
  25. #define MTFTP6_SERVICE_SIGNATURE SIGNATURE_32 ('M', 'F', '6', 'S')
  26. #define MTFTP6_INSTANCE_SIGNATURE SIGNATURE_32 ('M', 'F', '6', 'I')
  27. #define MTFTP6_DEFAULT_SERVER_CMD_PORT 69
  28. #define MTFTP6_DEFAULT_TIMEOUT 3
  29. #define MTFTP6_GET_MAPPING_TIMEOUT 3
  30. #define MTFTP6_DEFAULT_MAX_RETRY 5
  31. #define MTFTP6_DEFAULT_BLK_SIZE 512
  32. #define MTFTP6_DEFAULT_WINDOWSIZE 1
  33. #define MTFTP6_TICK_PER_SECOND 10000000U
  34. #define MTFTP6_SERVICE_FROM_THIS(a) CR (a, MTFTP6_SERVICE, ServiceBinding, MTFTP6_SERVICE_SIGNATURE)
  35. #define MTFTP6_INSTANCE_FROM_THIS(a) CR (a, MTFTP6_INSTANCE, Mtftp6, MTFTP6_INSTANCE_SIGNATURE)
  36. extern EFI_MTFTP6_PROTOCOL gMtftp6ProtocolTemplate;
  37. typedef struct _MTFTP6_GETINFO_CONTEXT {
  38. EFI_MTFTP6_PACKET **Packet;
  39. UINT32 *PacketLen;
  40. EFI_STATUS Status;
  41. } MTFTP6_GETINFO_CONTEXT;
  42. //
  43. // Control block for MTFTP6 instance, it's per configuration data.
  44. //
  45. struct _MTFTP6_INSTANCE {
  46. UINT32 Signature;
  47. EFI_HANDLE Handle;
  48. LIST_ENTRY Link;
  49. EFI_MTFTP6_PROTOCOL Mtftp6;
  50. MTFTP6_SERVICE *Service;
  51. EFI_MTFTP6_CONFIG_DATA *Config;
  52. EFI_MTFTP6_TOKEN *Token;
  53. MTFTP6_EXT_OPTION_INFO ExtInfo;
  54. UINT16 BlkSize;
  55. UINT16 LastBlk;
  56. LIST_ENTRY BlkList;
  57. UINT16 Operation;
  58. UINT16 WindowSize;
  59. //
  60. // Record the total received and saved block number.
  61. //
  62. UINT64 TotalBlock;
  63. //
  64. // Record the acked block number.
  65. //
  66. UINT64 AckedBlock;
  67. EFI_IPv6_ADDRESS ServerIp;
  68. UINT16 ServerCmdPort;
  69. UINT16 ServerDataPort;
  70. UDP_IO *UdpIo;
  71. EFI_IPv6_ADDRESS McastIp;
  72. UINT16 McastPort;
  73. UDP_IO *McastUdpIo;
  74. NET_BUF *LastPacket;
  75. UINT32 CurRetry;
  76. UINT32 MaxRetry;
  77. UINT32 PacketToLive;
  78. UINT32 Timeout;
  79. EFI_TPL OldTpl;
  80. BOOLEAN IsTransmitted;
  81. BOOLEAN IsMaster;
  82. BOOLEAN InDestroy;
  83. };
  84. //
  85. // Control block for MTFTP6 service, it's per Nic handle.
  86. //
  87. struct _MTFTP6_SERVICE {
  88. UINT32 Signature;
  89. EFI_SERVICE_BINDING_PROTOCOL ServiceBinding;
  90. EFI_HANDLE Controller;
  91. EFI_HANDLE Image;
  92. UINT16 ChildrenNum;
  93. LIST_ENTRY Children;
  94. //
  95. // It is used to be as internal calculagraph for all instances.
  96. //
  97. EFI_EVENT Timer;
  98. //
  99. // It is used to maintain the parent-child relationship between
  100. // mtftp driver and udp driver.
  101. //
  102. UDP_IO *DummyUdpIo;
  103. };
  104. typedef struct {
  105. EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
  106. UINTN NumberOfChildren;
  107. EFI_HANDLE *ChildHandleBuffer;
  108. } MTFTP6_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT;
  109. /**
  110. Returns the current operating mode data for the MTFTP6 instance.
  111. The GetModeData() function returns the current operating mode and
  112. cached data packet for the MTFTP6 instance.
  113. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  114. @param[out] ModeData The buffer in which the EFI MTFTPv6 Protocol driver mode
  115. data is returned.
  116. @retval EFI_SUCCESS The configuration data was returned successfully.
  117. @retval EFI_OUT_OF_RESOURCES The required mode data could not be allocated.
  118. @retval EFI_INVALID_PARAMETER This is NULL, or ModeData is NULL.
  119. **/
  120. EFI_STATUS
  121. EFIAPI
  122. EfiMtftp6GetModeData (
  123. IN EFI_MTFTP6_PROTOCOL *This,
  124. OUT EFI_MTFTP6_MODE_DATA *ModeData
  125. );
  126. /**
  127. Initializes, changes, or resets the default operational setting for
  128. this EFI MTFTPv6 Protocol driver instance.
  129. The Configure() function is used to set and change the configuration
  130. data for this EFI MTFTPv6 Protocol driver instance. The configuration
  131. data can be reset to startup defaults by calling Configure() with
  132. MtftpConfigData set to NULL. Whenever the instance is reset, any
  133. pending operation is aborted. By changing the EFI MTFTPv6 Protocol
  134. driver instance configuration data, the client can connect to
  135. different MTFTPv6 servers. The configuration parameters in
  136. MtftpConfigData are used as the default parameters in later MTFTPv6
  137. operations and can be overridden in later operations.
  138. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  139. @param[in] MtftpConfigData Pointer to the configuration data structure.
  140. @retval EFI_SUCCESS The EFI MTFTPv6 Protocol instance was configured successfully.
  141. @retval EFI_INVALID_PARAMETER One or more following conditions are TRUE:
  142. - This is NULL.
  143. - MtftpConfigData.StationIp is neither zero nor one
  144. of the configured IP addresses in the underlying IPv6 driver.
  145. - MtftpConfigData.ServerIp is not a valid IPv6 unicast address.
  146. Note: It does not match the UEFI 2.3 Specification.
  147. @retval EFI_ACCESS_DENIED - The configuration could not be changed at this time because there
  148. is some MTFTP background operation in progress.
  149. - MtftpConfigData.LocalPort is already in use.
  150. Note: It does not match the UEFI 2.3 Specification.
  151. @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
  152. address for this instance, but no source address was available for use.
  153. @retval EFI_OUT_OF_RESOURCES The EFI MTFTPv6 Protocol driver instance data could not be
  154. allocated.
  155. Note: It is not defined in the UEFI 2.3 Specification.
  156. @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI
  157. MTFTPv6 Protocol driver instance is not configured.
  158. Note: It is not defined in the UEFI 2.3 Specification.
  159. **/
  160. EFI_STATUS
  161. EFIAPI
  162. EfiMtftp6Configure (
  163. IN EFI_MTFTP6_PROTOCOL *This,
  164. IN EFI_MTFTP6_CONFIG_DATA *MtftpConfigData OPTIONAL
  165. );
  166. /**
  167. Get the information of the download from the server.
  168. The GetInfo() function assembles an MTFTPv6 request packet
  169. with options, sends it to the MTFTPv6 server, and may return
  170. an MTFTPv6 OACK, MTFTPv6 ERROR, or ICMP ERROR packet. Retries
  171. occur only if no response packets are received from the MTFTPv6
  172. server before the timeout expires.
  173. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  174. @param[in] OverrideData Data that is used to override the existing parameters. If NULL, the
  175. default parameters that were set in the EFI_MTFTP6_PROTOCOL.Configure()
  176. function are used.
  177. @param[in] Filename Pointer to null-terminated ASCII file name string.
  178. @param[in] ModeStr Pointer to null-terminated ASCII mode string. If NULL, octet will be used
  179. @param[in] OptionCount Number of option/value string pairs in OptionList.
  180. @param[in] OptionList Pointer to array of option/value string pairs. Ignored if
  181. OptionCount is zero.
  182. @param[out] PacketLength The number of bytes in the returned packet.
  183. @param[out] Packet The pointer to the received packet. This buffer must be freed by
  184. the caller.
  185. @retval EFI_SUCCESS An MTFTPv6 OACK packet was received and is in the Packet.
  186. Note: It does not match the UEFI 2.3 Specification.
  187. @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
  188. - This is NULL.
  189. - Filename is NULL.
  190. - OptionCount is not zero and OptionList is NULL.
  191. - One or more options in OptionList have wrong format.
  192. - PacketLength is NULL.
  193. - OverrideData.ServerIp is not a valid unicast IPv6 address.
  194. @retval EFI_UNSUPPORTED One or more options in the OptionList are unsupported by
  195. this implementation.
  196. @retval EFI_NOT_STARTED The EFI MTFTPv6 Protocol driver has not been started.
  197. @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
  198. address for this instance, but no source address was available for use.
  199. @retval EFI_ACCESS_DENIED The previous operation has not completed yet.
  200. @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.
  201. @retval EFI_TFTP_ERROR An MTFTPv6 ERROR packet was received and is in the Packet.
  202. @retval EFI_NETWORK_UNREACHABLE An ICMP network unreachable error packet was received, and the Packet is set to NULL.
  203. Note: It is not defined in the UEFI 2.3 Specification.
  204. @retval EFI_HOST_UNREACHABLE An ICMP host unreachable error packet was received, and the Packet is set to NULL.
  205. Note: It is not defined in the UEFI 2.3 Specification.
  206. @retval EFI_PROTOCOL_UNREACHABLE An ICMP protocol unreachable error packet was received, and the Packet is set to NULL.
  207. Note: It is not defined in the UEFI 2.3 Specification.
  208. @retval EFI_PORT_UNREACHABLE An ICMP port unreachable error packet was received, and the Packet is set to NULL.
  209. @retval EFI_ICMP_ERROR Some other ICMP ERROR packet was received, and the Packet is set to NULL.
  210. Note: It does not match the UEFI 2.3 Specification.
  211. @retval EFI_PROTOCOL_ERROR An unexpected MTFTPv6 packet was received and is in the Packet.
  212. @retval EFI_TIMEOUT No responses were received from the MTFTPv6 server.
  213. @retval EFI_DEVICE_ERROR An unexpected network error or system error occurred.
  214. **/
  215. EFI_STATUS
  216. EFIAPI
  217. EfiMtftp6GetInfo (
  218. IN EFI_MTFTP6_PROTOCOL *This,
  219. IN EFI_MTFTP6_OVERRIDE_DATA *OverrideData OPTIONAL,
  220. IN UINT8 *Filename,
  221. IN UINT8 *ModeStr OPTIONAL,
  222. IN UINT8 OptionCount,
  223. IN EFI_MTFTP6_OPTION *OptionList OPTIONAL,
  224. OUT UINT32 *PacketLength,
  225. OUT EFI_MTFTP6_PACKET **Packet OPTIONAL
  226. );
  227. /**
  228. Parse the options in an MTFTPv6 OACK packet.
  229. The ParseOptions() function parses the option fields in an MTFTPv6 OACK
  230. packet and returns the number of options that were found, and optionally,
  231. a list of pointers to the options in the packet. If one or more of the
  232. option fields are not valid, then EFI_PROTOCOL_ERROR is returned and
  233. *OptionCount and *OptionList stop at the last valid option.
  234. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  235. @param[in] PacketLen Length of the OACK packet to be parsed.
  236. @param[in] Packet Pointer to the OACK packet to be parsed.
  237. @param[out] OptionCount Pointer to the number of options in the following OptionList.
  238. @param[out] OptionList Pointer to EFI_MTFTP6_OPTION storage. Each pointer in the
  239. OptionList points to the corresponding MTFTP option buffer
  240. in the Packet. Call the EFI Boot Service FreePool() to
  241. release the OptionList if the options in this OptionList
  242. are not needed any more.
  243. @retval EFI_SUCCESS The OACK packet was valid and the OptionCount, and
  244. OptionList parameters have been updated.
  245. @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
  246. - PacketLen is 0.
  247. - Packet is NULL or Packet is not a valid MTFTPv6 packet.
  248. - OptionCount is NULL.
  249. @retval EFI_NOT_FOUND No options were found in the OACK packet.
  250. @retval EFI_OUT_OF_RESOURCES Storage for the OptionList array can not be allocated.
  251. @retval EFI_PROTOCOL_ERROR One or more of the option fields is invalid.
  252. **/
  253. EFI_STATUS
  254. EFIAPI
  255. EfiMtftp6ParseOptions (
  256. IN EFI_MTFTP6_PROTOCOL *This,
  257. IN UINT32 PacketLen,
  258. IN EFI_MTFTP6_PACKET *Packet,
  259. OUT UINT32 *OptionCount,
  260. OUT EFI_MTFTP6_OPTION **OptionList OPTIONAL
  261. );
  262. /**
  263. Download a file from an MTFTPv6 server.
  264. The ReadFile() function is used to initialize and start an MTFTPv6 download
  265. process and optionally wait for completion. When the download operation
  266. completes, whether successfully or not, the Token.Status field is updated
  267. by the EFI MTFTPv6 Protocol driver, and then Token.Event is signaled if it
  268. is not NULL.
  269. Data can be downloaded from the MTFTPv6 server into either of the following
  270. locations:
  271. - A fixed buffer that is pointed to by Token.Buffer.
  272. - A download service function that is pointed to by Token.CheckPacket.
  273. If both Token.Buffer and Token.CheckPacket are used, then Token.CheckPacket
  274. will be called first. If the call is successful, the packet will be stored
  275. in Token.Buffer.
  276. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  277. @param[in] Token Pointer to the token structure to provide the parameters that are
  278. used in this operation.
  279. @retval EFI_SUCCESS The data file has been transferred successfully.
  280. @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.
  281. @retval EFI_BUFFER_TOO_SMALL BufferSize is not zero but not large enough to hold the
  282. downloaded data in downloading process.
  283. Note: It does not match the UEFI 2.3 Specification.
  284. @retval EFI_ABORTED Current operation is aborted by user.
  285. @retval EFI_NETWORK_UNREACHABLE An ICMP network unreachable error packet was received.
  286. Note: It is not defined in the UEFI 2.3 Specification.
  287. @retval EFI_HOST_UNREACHABLE An ICMP host unreachable error packet was received.
  288. Note: It is not defined in the UEFI 2.3 Specification.
  289. @retval EFI_PROTOCOL_UNREACHABLE An ICMP protocol unreachable error packet was received.
  290. Note: It is not defined in the UEFI 2.3 Specification.
  291. @retval EFI_PORT_UNREACHABLE An ICMP port unreachable error packet was received.
  292. Note: It is not defined in the UEFI 2.3 Specification.
  293. @retval EFI_ICMP_ERROR An ICMP ERROR packet was received.
  294. @retval EFI_TIMEOUT No responses were received from the MTFTPv6 server.
  295. @retval EFI_TFTP_ERROR An MTFTPv6 ERROR packet was received.
  296. @retval EFI_DEVICE_ERROR An unexpected network error or system error occurred.
  297. **/
  298. EFI_STATUS
  299. EFIAPI
  300. EfiMtftp6ReadFile (
  301. IN EFI_MTFTP6_PROTOCOL *This,
  302. IN EFI_MTFTP6_TOKEN *Token
  303. );
  304. /**
  305. Send a file to an MTFTPv6 server.
  306. The WriteFile() function is used to initialize an uploading operation
  307. with the given option list, and optionally, wait for completion. If one
  308. or more of the options is not supported by the server, the unsupported
  309. options are ignored and a standard TFTP process starts instead. When
  310. the upload process completes, whether successfully or not, Token.Event
  311. is signaled, and the EFI MTFTPv6 Protocol driver updates Token.Status.
  312. The caller can supply the data to be uploaded in the following two modes:
  313. - Through the user-provided buffer.
  314. - Through a callback function.
  315. With the user-provided buffer, the Token.BufferSize field indicates
  316. the length of the buffer, and the driver will upload the data in the
  317. buffer. With an EFI_MTFTP6_PACKET_NEEDED callback function, the driver
  318. will call this callback function to get more data from the user to upload.
  319. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  320. @param[in] Token Pointer to the token structure to provide the parameters that are
  321. used in this operation.
  322. @retval EFI_SUCCESS The upload session has started.
  323. @retval EFI_UNSUPPORTED The operation is not supported by this implementation.
  324. @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
  325. - This is NULL.
  326. - Token is NULL.
  327. - Token.Filename is NULL.
  328. - Token.OptionCount is not zero and Token.OptionList is NULL.
  329. - One or more options in Token.OptionList have wrong format.
  330. - Token.Buffer and Token.PacketNeeded are both NULL.
  331. - Token.OverrideData.ServerIp is not valid unicast IPv6 addresses.
  332. @retval EFI_UNSUPPORTED One or more options in the Token.OptionList are not
  333. supported by this implementation.
  334. @retval EFI_NOT_STARTED The EFI MTFTPv6 Protocol driver has not been started.
  335. @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
  336. address for this instance, but no source address was available for use.
  337. @retval EFI_ALREADY_STARTED This Token is already being used in another MTFTPv6 session.
  338. @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.
  339. @retval EFI_ACCESS_DENIED The previous operation has not completed yet.
  340. @retval EFI_DEVICE_ERROR An unexpected network error or system error occurred.
  341. **/
  342. EFI_STATUS
  343. EFIAPI
  344. EfiMtftp6WriteFile (
  345. IN EFI_MTFTP6_PROTOCOL *This,
  346. IN EFI_MTFTP6_TOKEN *Token
  347. );
  348. /**
  349. Download a data file directory from an MTFTPv6 server.
  350. The ReadDirectory() function is used to return a list of files on the
  351. MTFTPv6 server that are logically (or operationally) related to
  352. Token.Filename. The directory request packet that is sent to the server
  353. is built with the option list that was provided by caller, if present.
  354. The file information that the server returns is put into either of
  355. the following locations:
  356. - A fixed buffer that is pointed to by Token.Buffer.
  357. - A download service function that is pointed to by Token.CheckPacket.
  358. If both Token.Buffer and Token.CheckPacket are used, then Token.CheckPacket
  359. will be called first. If the call is successful, the packet will be stored
  360. in Token.Buffer.
  361. @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
  362. @param[in] Token Pointer to the token structure to provide the parameters that are
  363. used in this operation.
  364. @retval EFI_SUCCESS The MTFTPv6 related file "directory" has been downloaded.
  365. @retval EFI_UNSUPPORTED The EFI MTFTPv6 Protocol driver does not support this function.
  366. @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
  367. - This is NULL.
  368. - Token is NULL.
  369. - Token.Filename is NULL.
  370. - Token.OptionCount is not zero and Token.OptionList is NULL.
  371. - One or more options in Token.OptionList have wrong format.
  372. - Token.Buffer and Token.CheckPacket are both NULL.
  373. - Token.OverrideData.ServerIp is not valid unicast IPv6 addresses.
  374. @retval EFI_UNSUPPORTED One or more options in the Token.OptionList are not
  375. supported by this implementation.
  376. @retval EFI_NOT_STARTED The EFI MTFTPv6 Protocol driver has not been started.
  377. @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
  378. address for this instance, but no source address was available for use.
  379. @retval EFI_ALREADY_STARTED This Token is already being used in another MTFTPv6 session.
  380. @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.
  381. @retval EFI_ACCESS_DENIED The previous operation has not completed yet.
  382. @retval EFI_DEVICE_ERROR An unexpected network error or system error occurred.
  383. **/
  384. EFI_STATUS
  385. EFIAPI
  386. EfiMtftp6ReadDirectory (
  387. IN EFI_MTFTP6_PROTOCOL *This,
  388. IN EFI_MTFTP6_TOKEN *Token
  389. );
  390. /**
  391. Polls for incoming data packets and processes outgoing data packets.
  392. The Poll() function can be used by network drivers and applications
  393. to increase the rate that data packets are moved between the
  394. communications device and the transmit and receive queues.In some
  395. systems, the periodic timer event in the managed network driver may
  396. not poll the underlying communications device fast enough to transmit
  397. and/or receive all data packets without missing incoming packets or
  398. dropping outgoing packets. Drivers and applications that are
  399. experiencing packet loss should try calling the Poll() function
  400. more often.
  401. @param[in] This The MTFTP6 protocol instance.
  402. @retval EFI_SUCCESS Incoming or outgoing data was processed.
  403. @retval EFI_NOT_STARTED This EFI MTFTPv6 Protocol instance has not been started.
  404. @retval EFI_INVALID_PARAMETER This is NULL.
  405. @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
  406. @retval EFI_TIMEOUT Data was dropped out of the transmit and/or receive queue.
  407. Consider increasing the polling rate.
  408. **/
  409. EFI_STATUS
  410. EFIAPI
  411. EfiMtftp6Poll (
  412. IN EFI_MTFTP6_PROTOCOL *This
  413. );
  414. #endif