summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Network
diff options
context:
space:
mode:
authorywu21 <ywu21@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-10 06:13:51 +0000
committerywu21 <ywu21@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-10 06:13:51 +0000
commit02aa4e52edc339c600fffb2e23b47759dc31179e (patch)
treef8d27f36fe878ec7cf9d2ef20de9a66bae5466cc /MdeModulePkg/Universal/Network
parent2281e7a9c32eeb32b833daf6b33ad26e437551da (diff)
downloadedk2-02aa4e52edc339c600fffb2e23b47759dc31179e.tar.gz
edk2-02aa4e52edc339c600fffb2e23b47759dc31179e.tar.bz2
edk2-02aa4e52edc339c600fffb2e23b47759dc31179e.zip
update file header
update function header git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6968 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r--MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c79
-rw-r--r--MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.h72
2 files changed, 48 insertions, 103 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c
index a2f17a63fb..f1520267b8 100644
--- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c
+++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c
@@ -1,7 +1,7 @@
/** @file
- The wrap of TCP/IP Socket interface
+ The wrap of TCP/IP Socket interface.
-Copyright (c) 2004 - 2007, Intel Corporation
+Copyright (c) 2004 - 2007, Intel Corporation.<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -10,13 +10,6 @@ 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.
-Module Name:
-
- IScsiTcp4Io.c
-
-Abstract:
- The wrap of TCP/IP Socket interface
-
**/
#include "IScsiImpl.h"
@@ -24,12 +17,8 @@ Abstract:
/**
The common notify function associated with various Tcp4Io events.
- @param Event[in] The event signaled.
-
- @param Contect[in] The context.
-
- @retval None.
-
+ @param[in] Event The event signaled.
+ @param[in] Context The context.
**/
VOID
EFIAPI
@@ -44,18 +33,13 @@ Tcp4IoCommonNotify (
/**
Create a TCP socket with the specified configuration data.
- @param Image[in] The handle of the driver image.
-
- @param Controller[in] The handle of the controller.
-
- @param ConfigData[in] The Tcp4 configuration data.
-
- @param Tcp4Io[in] The Tcp4Io.
+ @param[in] Image The handle of the driver image.
+ @param[in] Controller The handle of the controller.
+ @param[in] ConfigData The Tcp4 configuration data.
+ @param[in] Tcp4Io The Tcp4Io.
@retval EFI_SUCCESS The TCP socket is created and configured.
-
- @retval Other Failed to create the TCP socket or configure it.
-
+ @retval Others Failed to create the TCP socket or configure it.
**/
EFI_STATUS
Tcp4IoCreateSocket (
@@ -249,9 +233,6 @@ ON_ERROR:
Destroy the socket.
@param[in] Tcp4Io The Tcp4Io which wraps the socket to be destroyeds.
-
- @retval None.
-
**/
VOID
Tcp4IoDestroySocket (
@@ -286,12 +267,12 @@ Tcp4IoDestroySocket (
/**
Connect to the other endpoint of the TCP socket.
- @param Tcp4Io[in] The Tcp4Io wrapping the TCP socket.
-
- @param Timeout[in] The time to wait for connection done.
-
- @retval None.
-
+ @param[in] Tcp4Io The Tcp4Io wrapping the TCP socket.
+ @param[in] Timeout The time to wait for connection done.
+
+ @retval EFI_SUCCESS Connect to the other endpoint of the TCP socket successfully.
+ @retval EFI_TIMEOUT Failed to connect to the other endpoint of the TCP socket in the specified time period.
+ @retval Others Some expected error happened.
**/
EFI_STATUS
Tcp4IoConnect (
@@ -325,10 +306,7 @@ Tcp4IoConnect (
/**
Reset the socket.
- @param Tcp4Io[in] The Tcp4Io wrapping the TCP socket.
-
- @retval None.
-
+ @param[in] Tcp4Io The Tcp4Io wrapping the TCP socket.
**/
VOID
Tcp4IoReset (
@@ -355,14 +333,12 @@ Tcp4IoReset (
/**
Transmit the Packet to the other endpoint of the socket.
- @param Tcp4Io[in] The Tcp4Io wrapping the TCP socket.
-
- @param Packet[in] The packet to transmit
-
+ @param[in] Tcp4Io The Tcp4Io wrapping the TCP socket.
+ @param[in] Packet The packet to transmit.
+
@retval EFI_SUCCESS The packet is trasmitted.
-
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
-
+ @retval Others Some expected error happened.
**/
EFI_STATUS
Tcp4IoTransmit (
@@ -418,22 +394,17 @@ ON_EXIT:
/**
Receive data from the socket.
- @param Tcp4Io[in] The Tcp4Io which wraps the socket to be destroyeds.
-
- @param Packet[in] The buffer to hold the data copy from the soket rx buffer.
-
- @param AsyncMode[in] Is this receive asyncronous or not.
-
- @param Timeout[in] The time to wait for receiving the amount of data the Packet
+ @param[in] Tcp4Io The Tcp4Io which wraps the socket to be destroyed.
+ @param[in] Packet The buffer to hold the data copy from the soket rx buffer.
+ @param[in] AsyncMode Is this receive asyncronous or not.
+ @param[in] Timeout The time to wait for receiving the amount of data the Packet
can hold.
@retval EFI_SUCCESS The required amount of data is received from the socket.
-
@retval EFI_OUT_OF_RESOURCES Failed to allocate momery.
-
@retval EFI_TIMEOUT Failed to receive the required amount of data in the
specified time period.
-
+ @retval Others Some expected error happened.
**/
EFI_STATUS
Tcp4IoReceive (
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.h b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.h
index f46e8df8b3..86c2f86e04 100644
--- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.h
+++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.h
@@ -1,7 +1,7 @@
-/**
+/** @file
IScsi Tcp4 IO related definitions.
-Copyright (c) 2004 - 2008, Intel Corporation
+Copyright (c) 2004 - 2008, Intel Corporation.<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -10,14 +10,6 @@ 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.
-Module Name:
-
- IScsiTcp4Io.h
-
-Abstract:
-
- IScsi Tcp4 IO related definitions.
-
**/
#ifndef _ISCSI_TCP4_IO_H_
@@ -56,18 +48,13 @@ typedef struct _TCP4_IO {
/**
Create a TCP socket with the specified configuration data.
- @param Image[in] The handle of the driver image.
-
- @param Controller[in] The handle of the controller.
-
- @param ConfigData[in] The Tcp4 configuration data.
-
- @param Tcp4Io[in] The Tcp4Io.
+ @param[in] Image The handle of the driver image.
+ @param[in] Controller The handle of the controller.
+ @param[in] ConfigData The Tcp4 configuration data.
+ @param[in] Tcp4Io The Tcp4Io.
@retval EFI_SUCCESS The TCP socket is created and configured.
-
- @retval Other Failed to create the TCP socket or configure it.
-
+ @retval Others Failed to create the TCP socket or configure it.
**/
EFI_STATUS
Tcp4IoCreateSocket (
@@ -81,9 +68,6 @@ Tcp4IoCreateSocket (
Destroy the socket.
@param[in] Tcp4Io The Tcp4Io which wraps the socket to be destroyeds.
-
- @retval None.
-
**/
VOID
Tcp4IoDestroySocket (
@@ -93,12 +77,12 @@ Tcp4IoDestroySocket (
/**
Connect to the other endpoint of the TCP socket.
- @param Tcp4Io[in] The Tcp4Io wrapping the TCP socket.
-
- @param Timeout[in] The time to wait for connection done.
-
- @retval None.
-
+ @param[in] Tcp4Io The Tcp4Io wrapping the TCP socket.
+ @param[in] Timeout The time to wait for connection done.
+
+ @retval EFI_SUCCESS Connect to the other endpoint of the TCP socket successfully.
+ @retval EFI_TIMEOUT Failed to connect to the other endpoint of the TCP socket in the specified time period.
+ @retval Others Some expected error happened.
**/
EFI_STATUS
Tcp4IoConnect (
@@ -109,10 +93,7 @@ Tcp4IoConnect (
/**
Reset the socket.
- @param Tcp4Io[in] The Tcp4Io wrapping the TCP socket.
-
- @retval None.
-
+ @param[in] Tcp4Io The Tcp4Io wrapping the TCP socket.
**/
VOID
Tcp4IoReset (
@@ -122,14 +103,12 @@ Tcp4IoReset (
/**
Transmit the Packet to the other endpoint of the socket.
- @param Tcp4Io[in] The Tcp4Io wrapping the TCP socket.
-
- @param Packet[in] The packet to transmit
-
+ @param[in] Tcp4Io The Tcp4Io wrapping the TCP socket.
+ @param[in] Packet The packet to transmit.
+
@retval EFI_SUCCESS The packet is trasmitted.
-
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
-
+ @retval Others Some expected error happened.
**/
EFI_STATUS
Tcp4IoTransmit (
@@ -140,22 +119,17 @@ Tcp4IoTransmit (
/**
Receive data from the socket.
- @param Tcp4Io[in] The Tcp4Io which wraps the socket to be destroyeds.
-
- @param Packet[in] The buffer to hold the data copy from the soket rx buffer.
-
- @param AsyncMode[in] Is this receive asyncronous or not.
-
- @param Timeout[in] The time to wait for receiving the amount of data the Packet
+ @param[in] Tcp4Io The Tcp4Io which wraps the socket to be destroyed.
+ @param[in] Packet The buffer to hold the data copy from the soket rx buffer.
+ @param[in] AsyncMode Is this receive asyncronous or not.
+ @param[in] Timeout The time to wait for receiving the amount of data the Packet
can hold.
@retval EFI_SUCCESS The required amount of data is received from the socket.
-
@retval EFI_OUT_OF_RESOURCES Failed to allocate momery.
-
@retval EFI_TIMEOUT Failed to receive the required amount of data in the
specified time period.
-
+ @retval Others Some expected error happened.
**/
EFI_STATUS
Tcp4IoReceive (