]>
Commit | Line | Data |
---|---|---|
83cbd279 | 1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation\r | |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | Mtftp4Option.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Mtftp4 option process routines.\r | |
19 | \r | |
20 | \r | |
21 | **/\r | |
22 | \r | |
23 | #ifndef __EFI_MTFTP4_OPTION_H__\r | |
24 | #define __EFI_MTFTP4_OPTION_H__\r | |
25 | \r | |
26 | enum {\r | |
27 | MTFTP4_SUPPORTED_OPTIONS = 4,\r | |
28 | MTFTP4_OPCODE_LEN = 2,\r | |
29 | MTFTP4_ERRCODE_LEN = 2,\r | |
30 | MTFTP4_BLKNO_LEN = 2,\r | |
31 | MTFTP4_DATA_HEAD_LEN = 4,\r | |
32 | \r | |
33 | MTFTP4_BLKSIZE_EXIST = 0x01,\r | |
34 | MTFTP4_TIMEOUT_EXIST = 0x02,\r | |
35 | MTFTP4_TSIZE_EXIST = 0x04,\r | |
36 | MTFTP4_MCAST_EXIST = 0x08\r | |
37 | };\r | |
38 | \r | |
39 | typedef struct {\r | |
40 | UINT16 BlkSize;\r | |
41 | UINT8 Timeout;\r | |
42 | UINT32 Tsize;\r | |
43 | IP4_ADDR McastIp;\r | |
44 | UINT16 McastPort;\r | |
45 | BOOLEAN Master;\r | |
46 | UINT32 Exist;\r | |
47 | } MTFTP4_OPTION;\r | |
48 | \r | |
49 | EFI_STATUS\r | |
50 | Mtftp4ExtractOptions (\r | |
51 | IN EFI_MTFTP4_PACKET *Packet,\r | |
52 | IN UINT32 PacketLen,\r | |
53 | IN OUT UINT32 *OptionCount,\r | |
54 | OUT EFI_MTFTP4_OPTION **OptionList OPTIONAL\r | |
55 | );\r | |
56 | \r | |
57 | EFI_STATUS\r | |
58 | Mtftp4ParseOption (\r | |
59 | IN EFI_MTFTP4_OPTION *OptionList,\r | |
60 | IN UINT32 Count,\r | |
61 | IN BOOLEAN Request,\r | |
62 | OUT MTFTP4_OPTION *Option\r | |
63 | );\r | |
64 | \r | |
65 | EFI_STATUS\r | |
66 | Mtftp4ParseOptionOack (\r | |
67 | IN EFI_MTFTP4_PACKET *Packet,\r | |
68 | IN UINT32 PacketLen,\r | |
69 | OUT MTFTP4_OPTION *Option\r | |
70 | );\r | |
71 | \r | |
67a58d0f | 72 | extern CHAR8 *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS];\r |
83cbd279 | 73 | #endif\r |