summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Include
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r--MdeModulePkg/Include/Library/TcpIoLib.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/MdeModulePkg/Include/Library/TcpIoLib.h b/MdeModulePkg/Include/Library/TcpIoLib.h
index 49008bdefc..2871f6747e 100644
--- a/MdeModulePkg/Include/Library/TcpIoLib.h
+++ b/MdeModulePkg/Include/Library/TcpIoLib.h
@@ -11,23 +11,23 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-**/
-
-#ifndef _TCP_IO_H_
+**/
+
+#ifndef _TCP_IO_H_
#define _TCP_IO_H_
#include <Protocol/Tcp4.h>
#include <Protocol/Tcp6.h>
-#include <Library/NetLib.h>
+#include <Library/NetLib.h>
#define TCP_VERSION_4 IP_VERSION_4
#define TCP_VERSION_6 IP_VERSION_6
-///
-/// 10 seconds
-///
+///
+/// 10 seconds
+///
#define TCP_GET_MAPPING_TIMEOUT 100000000U
@@ -40,12 +40,12 @@ typedef struct {
EFI_IPv4_ADDRESS RemoteIp;
UINT16 RemotePort;
BOOLEAN ActiveFlag;
-} TCP4_IO_CONFIG_DATA;
+} TCP4_IO_CONFIG_DATA;
-typedef struct {
+typedef struct {
UINT16 StationPort;
EFI_IPv6_ADDRESS RemoteIp;
- UINT16 RemotePort;
+ UINT16 RemotePort;
BOOLEAN ActiveFlag;
} TCP6_IO_CONFIG_DATA;
@@ -112,7 +112,7 @@ typedef struct {
@retval EFI_SUCCESS The TCP socket is created and configured.
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
- @retval EFI_UNSUPPORTED One or more of the control options are not
+ @retval EFI_UNSUPPORTED One or more of the control options are not
supported in the implementation.
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
@retval Others Failed to create the TCP socket or configure it.
@@ -120,26 +120,26 @@ typedef struct {
**/
EFI_STATUS
EFIAPI
-TcpIoCreateSocket (
- IN EFI_HANDLE Image,
+TcpIoCreateSocket (
+ IN EFI_HANDLE Image,
IN EFI_HANDLE Controller,
- IN UINT8 TcpVersion,
- IN TCP_IO_CONFIG_DATA *ConfigData,
- OUT TCP_IO *TcpIo
- );
-
-/**
- Destroy the socket.
-
- @param[in] TcpIo The TcpIo which wraps the socket to be destroyed.
-
-**/
-VOID
+ IN UINT8 TcpVersion,
+ IN TCP_IO_CONFIG_DATA *ConfigData,
+ OUT TCP_IO *TcpIo
+ );
+
+/**
+ Destroy the socket.
+
+ @param[in] TcpIo The TcpIo which wraps the socket to be destroyed.
+
+**/
+VOID
EFIAPI
-TcpIoDestroySocket (
- IN TCP_IO *TcpIo
- );
-
+TcpIoDestroySocket (
+ IN TCP_IO *TcpIo
+ );
+
/**
Connect to the other endpoint of the TCP socket.
@@ -156,12 +156,12 @@ TcpIoDestroySocket (
@retval Others Other errors as indicated.
**/
-EFI_STATUS
+EFI_STATUS
EFIAPI
-TcpIoConnect (
- IN OUT TCP_IO *TcpIo,
- IN EFI_EVENT Timeout
- );
+TcpIoConnect (
+ IN OUT TCP_IO *TcpIo,
+ IN EFI_EVENT Timeout
+ );
/**
Accept the incomding request from the other endpoint of the TCP socket.
@@ -187,19 +187,19 @@ TcpIoAccept (
IN OUT TCP_IO *TcpIo,
IN EFI_EVENT Timeout
);
-
-/**
- Reset the socket.
-
- @param[in, out] TcpIo The TcpIo wrapping the TCP socket.
-
-**/
-VOID
+
+/**
+ Reset the socket.
+
+ @param[in, out] TcpIo The TcpIo wrapping the TCP socket.
+
+**/
+VOID
EFIAPI
-TcpIoReset (
- IN OUT TCP_IO *TcpIo
- );
-
+TcpIoReset (
+ IN OUT TCP_IO *TcpIo
+ );
+
/**
Transmit the Packet to the other endpoint of the socket.
@@ -215,13 +215,13 @@ TcpIoReset (
@retval Others Other errors as indicated.
**/
-EFI_STATUS
+EFI_STATUS
EFIAPI
-TcpIoTransmit (
- IN TCP_IO *TcpIo,
- IN NET_BUF *Packet
- );
-
+TcpIoTransmit (
+ IN TCP_IO *TcpIo,
+ IN NET_BUF *Packet
+ );
+
/**
Receive data from the socket.
@@ -240,14 +240,14 @@ TcpIoTransmit (
@retval Others Other errors as indicated.
**/
-EFI_STATUS
+EFI_STATUS
EFIAPI
-TcpIoReceive (
- IN OUT TCP_IO *TcpIo,
- IN NET_BUF *Packet,
- IN BOOLEAN AsyncMode,
- IN EFI_EVENT Timeout
- );
+TcpIoReceive (
+ IN OUT TCP_IO *TcpIo,
+ IN NET_BUF *Packet,
+ IN BOOLEAN AsyncMode,
+ IN EFI_EVENT Timeout
+ );
#endif