]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Protocol/Tcp/Tcp.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Protocol / Tcp / Tcp.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 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 tcp.h\r
15\r
16Abstract:\r
17\r
18 EFI Transmission Control Protocol\r
19\r
20\r
21\r
22Revision History\r
23\r
24--*/\r
25\r
26\r
27#ifndef _EFITCP_H\r
28#define _EFITCP_H\r
29\r
30\r
31#include EFI_PROTOCOL_DEFINITION(PxeBaseCode)\r
32\r
33//\r
34// PXE Base Code protocol\r
35//\r
36\r
37#define EFI_TCP_PROTOCOL_GUID \\r
7ccf38a3 38 { 0x02b3d5f2, 0xac28, 0x11d3, {0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d} }\r
3eb9473e 39\r
40EFI_FORWARD_DECLARATION (EFI_TCP_PROTOCOL);\r
41\r
42\r
43typedef UINT16 EFI_PXE_BASE_CODE_TCP_PORT;\r
44\r
45//\r
46// Port Receive Filter definitions\r
47//\r
48#define EFI_PXE_BASE_CODE_MAX_PORTCNT 8\r
49typedef struct {\r
50 UINT8 Filters;\r
51 UINT8 IpCnt;\r
52 UINT16 reserved;\r
53 EFI_IP_ADDRESS IpList[EFI_PXE_BASE_CODE_MAX_PORTCNT];\r
54} EFI_TCP_PORT_FILTER;\r
55\r
56typedef\r
57EFI_STATUS\r
58(EFIAPI *EFI_TCP_WRITE) (\r
59 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
60 IN UINT16 OpFlags,\r
61 IN UINT16 *UrgentPointer,\r
62 IN UINT32 *SequenceNumber,\r
63 IN UINT32 *AckNumber,\r
64 IN UINT16 *HlenResCode,\r
65 IN UINT16 *Window,\r
66 IN EFI_IP_ADDRESS *DestIp,\r
67 IN UINT16 *DestPort,\r
68 IN EFI_IP_ADDRESS *GatewayIp, OPTIONAL\r
69 IN EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
70 IN UINT16 *SrcPort, OPTIONAL\r
71 IN UINTN *HeaderSize, OPTIONAL\r
72 IN VOID *HeaderPtr, OPTIONAL\r
73 IN UINTN *BufferSize,\r
74 IN VOID *BufferPtr\r
75 );\r
76\r
77typedef\r
78EFI_STATUS\r
79(EFIAPI *EFI_TCP_READ) (\r
80 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
81 IN UINT16 OpFlags,\r
82 IN OUT EFI_IP_ADDRESS *DestIp, OPTIONAL\r
83 IN OUT UINT16 *DestPort, OPTIONAL\r
84 IN OUT EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
85 IN OUT UINT16 *SrcPort, OPTIONAL\r
86 IN UINTN *HeaderSize, OPTIONAL\r
87 IN VOID *HeaderPtr, OPTIONAL\r
88 IN OUT UINTN *BufferSize,\r
89 IN VOID *BufferPtr\r
90 );\r
91\r
92typedef\r
93EFI_STATUS\r
94(EFIAPI *EFI_TCP_SET_PORT_FILTER) (\r
95 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
96 IN EFI_TCP_PORT_FILTER *NewFilter\r
97 );\r
98\r
99//\r
100// TCP Protocol structure\r
101//\r
9c092841 102struct _EFI_TCP_PROTOCOL {\r
3eb9473e 103 EFI_TCP_WRITE TcpWrite;\r
104 EFI_TCP_READ TcpRead;\r
105 EFI_TCP_SET_PORT_FILTER SetPortFilter;\r
9c092841 106};\r
3eb9473e 107\r
108extern EFI_GUID gEfiTcpProtocolGuid;\r
109\r
110#endif /* _EFITCP_H */\r