]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | \r | |
3 | This file defines EFI Transmission Control Protocol.\r | |
4 | \r | |
5 | Copyright (c) 2004 - 2008, Intel Corporation\r | |
6 | All rights reserved. This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | \r | |
17 | #ifndef __EFI_TCP_H__\r | |
18 | #define __EFI_TCP_H__\r | |
19 | \r | |
20 | \r | |
21 | #include <Protocol/PxeBaseCode.h>\r | |
22 | \r | |
23 | ///\r | |
24 | /// EFI Transmission Control Protocol\r | |
25 | ///\r | |
26 | #define EFI_TCP_PROTOCOL_GUID \\r | |
27 | { 0x02b3d5f2, 0xac28, 0x11d3, { 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d }}\r | |
28 | \r | |
29 | \r | |
30 | typedef 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 | |
36 | typedef 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 | |
43 | typedef\r | |
44 | EFI_STATUS\r | |
45 | (EFIAPI *EFI_TCP_WRITE)(\r | |
46 | IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r | |
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 | |
64 | typedef\r | |
65 | EFI_STATUS\r | |
66 | (EFIAPI *EFI_TCP_READ)(\r | |
67 | IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r | |
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 | |
79 | typedef\r | |
80 | EFI_STATUS\r | |
81 | (EFIAPI *EFI_TCP_SET_PORT_FILTER)(\r | |
82 | IN EFI_PXE_BASE_CODE_PROTOCOL *This,\r | |
83 | IN EFI_TCP_PORT_FILTER *NewFilter\r | |
84 | );\r | |
85 | \r | |
86 | ///\r | |
87 | /// TCP Protocol structure\r | |
88 | ///\r | |
89 | typedef 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 | |
95 | extern EFI_GUID gEfiTcpProtocolGuid;\r | |
96 | \r | |
97 | #endif\r | |
98 | \r |