TianoCore EDK2 master
Loading...
Searching...
No Matches
Mtftp4Option.h
Go to the documentation of this file.
1
9#ifndef __EFI_MTFTP4_OPTION_H__
10#define __EFI_MTFTP4_OPTION_H__
11
12#define MTFTP4_SUPPORTED_OPTIONS 5
13#define MTFTP4_OPCODE_LEN 2
14#define MTFTP4_ERRCODE_LEN 2
15#define MTFTP4_BLKNO_LEN 2
16#define MTFTP4_DATA_HEAD_LEN 4
17
18#define MTFTP4_BLKSIZE_EXIST 0x01
19#define MTFTP4_TIMEOUT_EXIST 0x02
20#define MTFTP4_TSIZE_EXIST 0x04
21#define MTFTP4_MCAST_EXIST 0x08
22#define MTFTP4_WINDOWSIZE_EXIST 0x10
23
24typedef struct {
25 UINT16 BlkSize;
26 UINT16 WindowSize;
27 UINT8 Timeout;
28 UINT32 Tsize;
29 IP4_ADDR McastIp;
30 UINT16 McastPort;
31 BOOLEAN Master;
32 UINT32 Exist;
34
54 IN EFI_MTFTP4_PACKET *Packet,
55 IN UINT32 PacketLen,
56 OUT UINT32 *OptionCount,
57 OUT EFI_MTFTP4_OPTION **OptionList OPTIONAL
58 );
59
79 IN EFI_MTFTP4_OPTION *Options,
80 IN UINT32 Count,
81 IN BOOLEAN Request,
82 IN UINT16 Operation,
83 OUT MTFTP4_OPTION *MtftpOption
84 );
85
102 IN EFI_MTFTP4_PACKET *Packet,
103 IN UINT32 PacketLen,
104 IN UINT16 Operation,
105 OUT MTFTP4_OPTION *MtftpOption
106 );
107
108extern CHAR8 *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS];
109
110#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS Mtftp4ExtractOptions(IN EFI_MTFTP4_PACKET *Packet, IN UINT32 PacketLen, OUT UINT32 *OptionCount, OUT EFI_MTFTP4_OPTION **OptionList OPTIONAL)
Definition: Mtftp4Option.c:234
EFI_STATUS Mtftp4ParseOption(IN EFI_MTFTP4_OPTION *Options, IN UINT32 Count, IN BOOLEAN Request, IN UINT16 Operation, OUT MTFTP4_OPTION *MtftpOption)
Definition: Mtftp4Option.c:400
EFI_STATUS Mtftp4ParseOptionOack(IN EFI_MTFTP4_PACKET *Packet, IN UINT32 PacketLen, IN UINT16 Operation, OUT MTFTP4_OPTION *MtftpOption)
Definition: Mtftp4Option.c:512
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29