]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Protocol/Tcp.h
remove EFI 1.10 network stack.
[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
c351b60d 23///\r
24/// EFI Transmission Control Protocol\r
25///\r
772db4bb 26#define EFI_TCP_PROTOCOL_GUID \\r
27 { 0x02b3d5f2, 0xac28, 0x11d3, { 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d }}\r
28\r
29\r
30typedef UINT16 EFI_PXE_BASE_CODE_TCP_PORT;\r
31\r
32//\r
33// Port Receive Filter definitions\r
34//\r
35#define EFI_PXE_BASE_CODE_MAX_PORTCNT 8\r
36typedef struct {\r
37 UINT8 Filters;\r
38 UINT8 IpCnt;\r
39 UINT16 reserved;\r
40 EFI_IP_ADDRESS IpList[EFI_PXE_BASE_CODE_MAX_PORTCNT];\r
41} EFI_TCP_PORT_FILTER;\r
42\r
43typedef\r
44EFI_STATUS\r
7d839888 45(EFIAPI *EFI_TCP_WRITE)(\r
c351b60d 46 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
772db4bb 47 IN UINT16 OpFlags,\r
48 IN UINT16 *UrgentPointer,\r
49 IN UINT32 *SequenceNumber,\r
50 IN UINT32 *AckNumber,\r
51 IN UINT16 *HlenResCode,\r
52 IN UINT16 *Window,\r
53 IN EFI_IP_ADDRESS *DestIp,\r
54 IN UINT16 *DestPort,\r
55 IN EFI_IP_ADDRESS *GatewayIp, OPTIONAL\r
56 IN EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
57 IN UINT16 *SrcPort, OPTIONAL\r
58 IN UINTN *HeaderSize, OPTIONAL\r
59 IN VOID *HeaderPtr, OPTIONAL\r
60 IN UINTN *BufferSize,\r
61 IN VOID *BufferPtr\r
62 );\r
63\r
64typedef\r
65EFI_STATUS\r
7d839888 66(EFIAPI *EFI_TCP_READ)(\r
c351b60d 67 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
772db4bb 68 IN UINT16 OpFlags,\r
69 IN OUT EFI_IP_ADDRESS *DestIp, OPTIONAL\r
70 IN OUT UINT16 *DestPort, OPTIONAL\r
71 IN OUT EFI_IP_ADDRESS *SrcIp, OPTIONAL\r
72 IN OUT UINT16 *SrcPort, OPTIONAL\r
73 IN UINTN *HeaderSize, OPTIONAL\r
74 IN VOID *HeaderPtr, OPTIONAL\r
75 IN OUT UINTN *BufferSize,\r
76 IN VOID *BufferPtr\r
77 );\r
78\r
79typedef\r
80EFI_STATUS\r
7d839888 81(EFIAPI *EFI_TCP_SET_PORT_FILTER)(\r
c351b60d 82 IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r
83 IN EFI_TCP_PORT_FILTER *NewFilter\r
772db4bb 84 );\r
85\r
c351b60d 86///\r
87/// TCP Protocol structure\r
88///\r
772db4bb 89typedef struct _EFI_TCP_PROTOCOL {\r
90 EFI_TCP_WRITE TcpWrite;\r
91 EFI_TCP_READ TcpRead;\r
92 EFI_TCP_SET_PORT_FILTER SetPortFilter;\r
93} EFI_TCP_PROTOCOL;\r
94\r
95extern EFI_GUID gEfiTcpProtocolGuid;\r
96\r
c351b60d 97#endif\r
98\r