]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
sync function header to avoid ecc
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Mtftp4Dxe / Mtftp4Support.h
CommitLineData
83cbd279 1/** @file\r
2\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 Mtftp4Support.h\r
15\r
16Abstract:\r
17\r
18 Support routines for MTFTP\r
19\r
20\r
21**/\r
22\r
23#ifndef __EFI_MTFTP4_SUPPORT_H__\r
24#define __EFI_MTFTP4_SUPPORT_H__\r
25\r
26//\r
27// The structure representing a range of block numbers, [Start, End].\r
28// It is used to remember the holes in the MTFTP block space. If all\r
29// the holes are filled in, then the download or upload has completed.\r
30//\r
31typedef struct {\r
e48e37fc 32 LIST_ENTRY Link;\r
83cbd279 33 INTN Start;\r
34 INTN End;\r
35} MTFTP4_BLOCK_RANGE;\r
36\r
37\r
38EFI_STATUS\r
39Mtftp4InitBlockRange (\r
e48e37fc 40 IN LIST_ENTRY *Head,\r
83cbd279 41 IN UINT16 Start,\r
42 IN UINT16 End\r
43 );\r
44\r
45INTN\r
46Mtftp4GetNextBlockNum (\r
e48e37fc 47 IN LIST_ENTRY *Head\r
83cbd279 48 );\r
49\r
50VOID\r
51Mtftp4SetLastBlockNum (\r
e48e37fc 52 IN LIST_ENTRY *Head,\r
83cbd279 53 IN UINT16 Last\r
54 );\r
55\r
56EFI_STATUS\r
57Mtftp4RemoveBlockNum (\r
e48e37fc 58 IN LIST_ENTRY *Head,\r
83cbd279 59 IN UINT16 Num\r
60 );\r
61\r
62VOID\r
63Mtftp4SetTimeout (\r
64 IN MTFTP4_PROTOCOL *Instance\r
65 );\r
66\r
67EFI_STATUS\r
68Mtftp4SendPacket (\r
69 IN MTFTP4_PROTOCOL *Instance,\r
70 IN NET_BUF *Packet\r
71 );\r
72\r
73EFI_STATUS\r
74Mtftp4SendRequest (\r
75 IN MTFTP4_PROTOCOL *Instance\r
76 );\r
77\r
78EFI_STATUS\r
79Mtftp4SendError (\r
80 IN MTFTP4_PROTOCOL *Instance,\r
81 IN UINT16 ErrCode,\r
82 IN UINT8* ErrInfo\r
83 );\r
84\r
85EFI_STATUS\r
86Mtftp4Retransmit (\r
87 IN MTFTP4_PROTOCOL *Instance\r
88 );\r
89\r
90VOID\r
91EFIAPI\r
92Mtftp4OnTimerTick (\r
93 IN EFI_EVENT Event,\r
94 IN VOID *Context\r
95 );\r
96#endif\r