TianoCore EDK2 master
Loading...
Searching...
No Matches
Mtftp4Support.h
Go to the documentation of this file.
1
9#ifndef __EFI_MTFTP4_SUPPORT_H__
10#define __EFI_MTFTP4_SUPPORT_H__
11
12//
13// The structure representing a range of block numbers, [Start, End].
14// It is used to remember the holes in the MTFTP block space. If all
15// the holes are filled in, then the download or upload has completed.
16//
17typedef struct {
18 LIST_ENTRY Link;
19 INTN Start;
20 INTN End;
21 INTN Round;
22 INTN Bound;
24
48 IN LIST_ENTRY *Head,
49 IN UINT16 Start,
50 IN UINT16 End
51 );
52
61INTN
63 IN LIST_ENTRY *Head
64 );
65
77VOID
79 IN LIST_ENTRY *Head,
80 IN UINT16 Last
81 );
82
98 IN LIST_ENTRY *Head,
99 IN UINT16 Num,
100 IN BOOLEAN Completed,
101 OUT UINT64 *BlockCounter
102 );
103
110VOID
112 IN OUT MTFTP4_PROTOCOL *Instance
113 );
114
131 IN OUT MTFTP4_PROTOCOL *Instance,
132 IN OUT NET_BUF *Packet
133 );
134
147 IN MTFTP4_PROTOCOL *Instance
148 );
149
164 IN MTFTP4_PROTOCOL *Instance,
165 IN UINT16 ErrCode,
166 IN UINT8 *ErrInfo
167 );
168
176VOID
177EFIAPI
179 IN EFI_EVENT Event,
180 IN VOID *Context
181 );
182
190VOID
191EFIAPI
193 IN EFI_EVENT Event,
194 IN VOID *Context
195 );
196
197#endif
INT64 INTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS Mtftp4InitBlockRange(IN LIST_ENTRY *Head, IN UINT16 Start, IN UINT16 End)
Definition: Mtftp4Support.c:64
VOID Mtftp4SetLastBlockNum(IN LIST_ENTRY *Head, IN UINT16 Last)
EFI_STATUS Mtftp4SendRequest(IN MTFTP4_PROTOCOL *Instance)
VOID Mtftp4SetTimeout(IN OUT MTFTP4_PROTOCOL *Instance)
VOID EFIAPI Mtftp4OnTimerTickNotifyLevel(IN EFI_EVENT Event, IN VOID *Context)
INTN Mtftp4GetNextBlockNum(IN LIST_ENTRY *Head)
Definition: Mtftp4Support.c:91
EFI_STATUS Mtftp4SendError(IN MTFTP4_PROTOCOL *Instance, IN UINT16 ErrCode, IN UINT8 *ErrInfo)
EFI_STATUS Mtftp4RemoveBlockNum(IN LIST_ENTRY *Head, IN UINT16 Num, IN BOOLEAN Completed, OUT UINT64 *BlockCounter)
VOID EFIAPI Mtftp4OnTimerTick(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS Mtftp4SendPacket(IN OUT MTFTP4_PROTOCOL *Instance, IN OUT NET_BUF *Packet)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37