]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Protocol/Tcp.h
remedy the comment of EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / Tcp.h
CommitLineData
5f597758 1/** @file\r
772db4bb 2\r
5f597758
LG
3 This file defines EFI Transmission Control Protocol.\r
4\r
5Copyright (c) 2004 - 2008, Intel Corporation\r
772db4bb 6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
5f597758 14**/\r
772db4bb 15\r
16\r
5f597758
LG
17#ifndef __EFI_TCP_H__\r
18#define __EFI_TCP_H__\r
772db4bb 19\r
20\r
21#include <Protocol/PxeBaseCode.h>\r
22\r
23//\r
24// PXE Base Code protocol\r
25//\r
26\r
27#define EFI_TCP_PROTOCOL_GUID \\r
28 { 0x02b3d5f2, 0xac28, 0x11d3, { 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d }}\r
29\r
30\r
31typedef UINT16 EFI_PXE_BASE_CODE_TCP_PORT;\r
32\r
33//\r
34// Port Receive Filter definitions\r
35//\r
36#define EFI_PXE_BASE_CODE_MAX_PORTCNT 8\r
37typedef struct {\r
38 UINT8 Filters;\r
39 UINT8 IpCnt;\r
40 UINT16 reserved;\r
41 EFI_IP_ADDRESS IpList[EFI_PXE_BASE_CODE_MAX_PORTCNT];\r
42} EFI_TCP_PORT_FILTER;\r
43\r
44typedef\r
45EFI_STATUS\r
7d839888 46(EFIAPI *EFI_TCP_WRITE)(\r
772db4bb 47 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
48 IN UINT16 OpFlags,\r
49 IN UINT16 *UrgentPointer,\r
50 IN UINT32 *SequenceNumber,\r
51 IN UINT32 *AckNumber,\r
52 IN UINT16 *HlenResCode,\r
53 IN UINT16 *Window,\r
54 IN EFI_IP_ADDRESS *DestIp,\r
55 IN UINT16 *DestPort,\r
56 IN EFI_IP_ADDRESS *GatewayIp, OPTIONAL\r
57 IN EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
58 IN UINT16 *SrcPort, OPTIONAL\r
59 IN UINTN *HeaderSize, OPTIONAL\r
60 IN VOID *HeaderPtr, OPTIONAL\r
61 IN UINTN *BufferSize,\r
62 IN VOID *BufferPtr\r
63 );\r
64\r
65typedef\r
66EFI_STATUS\r
7d839888 67(EFIAPI *EFI_TCP_READ)(\r
772db4bb 68 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
69 IN UINT16 OpFlags,\r
70 IN OUT EFI_IP_ADDRESS *DestIp, OPTIONAL\r
71 IN OUT UINT16 *DestPort, OPTIONAL\r
72 IN OUT EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
73 IN OUT UINT16 *SrcPort, OPTIONAL\r
74 IN UINTN *HeaderSize, OPTIONAL\r
75 IN VOID *HeaderPtr, OPTIONAL\r
76 IN OUT UINTN *BufferSize,\r
77 IN VOID *BufferPtr\r
78 );\r
79\r
80typedef\r
81EFI_STATUS\r
7d839888 82(EFIAPI *EFI_TCP_SET_PORT_FILTER)(\r
772db4bb 83 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
84 IN EFI_TCP_PORT_FILTER *NewFilter\r
85 );\r
86\r
87//\r
88// TCP Protocol structure\r
89//\r
90typedef struct _EFI_TCP_PROTOCOL {\r
91 EFI_TCP_WRITE TcpWrite;\r
92 EFI_TCP_READ TcpRead;\r
93 EFI_TCP_SET_PORT_FILTER SetPortFilter;\r
94} EFI_TCP_PROTOCOL;\r
95\r
96extern EFI_GUID gEfiTcpProtocolGuid;\r
97\r
98#endif /* _EFITCP_H */\r