]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Protocol/Tcp.h
Clean up: update "EFI" to "UEFI" if applicable.
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / Tcp.h
CommitLineData
772db4bb 1/*++\r
2\r
3Copyright (c) 2004, 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 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 <Protocol/PxeBaseCode.h>\r
32\r
33//\r
34// PXE Base Code protocol\r
35//\r
36\r
37#define EFI_TCP_PROTOCOL_GUID \\r
38 { 0x02b3d5f2, 0xac28, 0x11d3, { 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d }}\r
39\r
40\r
41typedef UINT16 EFI_PXE_BASE_CODE_TCP_PORT;\r
42\r
43//\r
44// Port Receive Filter definitions\r
45//\r
46#define EFI_PXE_BASE_CODE_MAX_PORTCNT 8\r
47typedef struct {\r
48 UINT8 Filters;\r
49 UINT8 IpCnt;\r
50 UINT16 reserved;\r
51 EFI_IP_ADDRESS IpList[EFI_PXE_BASE_CODE_MAX_PORTCNT];\r
52} EFI_TCP_PORT_FILTER;\r
53\r
54typedef\r
55EFI_STATUS\r
56(EFIAPI *EFI_TCP_WRITE) (\r
57 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
58 IN UINT16 OpFlags,\r
59 IN UINT16 *UrgentPointer,\r
60 IN UINT32 *SequenceNumber,\r
61 IN UINT32 *AckNumber,\r
62 IN UINT16 *HlenResCode,\r
63 IN UINT16 *Window,\r
64 IN EFI_IP_ADDRESS *DestIp,\r
65 IN UINT16 *DestPort,\r
66 IN EFI_IP_ADDRESS *GatewayIp, OPTIONAL\r
67 IN EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
68 IN UINT16 *SrcPort, OPTIONAL\r
69 IN UINTN *HeaderSize, OPTIONAL\r
70 IN VOID *HeaderPtr, OPTIONAL\r
71 IN UINTN *BufferSize,\r
72 IN VOID *BufferPtr\r
73 );\r
74\r
75typedef\r
76EFI_STATUS\r
77(EFIAPI *EFI_TCP_READ) (\r
78 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
79 IN UINT16 OpFlags,\r
80 IN OUT EFI_IP_ADDRESS *DestIp, OPTIONAL\r
81 IN OUT UINT16 *DestPort, OPTIONAL\r
82 IN OUT EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
83 IN OUT UINT16 *SrcPort, OPTIONAL\r
84 IN UINTN *HeaderSize, OPTIONAL\r
85 IN VOID *HeaderPtr, OPTIONAL\r
86 IN OUT UINTN *BufferSize,\r
87 IN VOID *BufferPtr\r
88 );\r
89\r
90typedef\r
91EFI_STATUS\r
92(EFIAPI *EFI_TCP_SET_PORT_FILTER) (\r
93 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
94 IN EFI_TCP_PORT_FILTER *NewFilter\r
95 );\r
96\r
97//\r
98// TCP Protocol structure\r
99//\r
100typedef struct _EFI_TCP_PROTOCOL {\r
101 EFI_TCP_WRITE TcpWrite;\r
102 EFI_TCP_READ TcpRead;\r
103 EFI_TCP_SET_PORT_FILTER SetPortFilter;\r
104} EFI_TCP_PROTOCOL;\r
105\r
106extern EFI_GUID gEfiTcpProtocolGuid;\r
107\r
108#endif /* _EFITCP_H */\r