]> git.proxmox.com Git - mirror_edk2.git/commitdiff
code scrub fix
authorjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Jan 2009 00:09:52 +0000 (00:09 +0000)
committerjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Jan 2009 00:09:52 +0000 (00:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7290 6f19259b-4bc3-4df7-8a09-765794883524

46 files changed:
MdeModulePkg/Universal/Network/Dhcp4Dxe/ComponentName.c
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Driver.c
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Driver.h
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.h
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.h
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h
MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c
MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c
MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.h
MdeModulePkg/Universal/Network/Ip4Dxe/ComponentName.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Common.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Common.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Icmp.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Icmp.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Igmp.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Igmp.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.h
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Route.c
MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Route.h
MdeModulePkg/Universal/Network/MnpDxe/ComponentName.c
MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c
MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c
MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h
MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h
MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c
MdeModulePkg/Universal/Network/MnpDxe/MnpMain.c
MdeModulePkg/Universal/Network/Udp4Dxe/ComponentName.c
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Driver.c
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Driver.h
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.h
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Main.c

index ed258d2bf365cd46feee9d4df634a2786071a351..870cf06d5eb2eee7ac4c07f06256397d65d87b85 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  ComponentName.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 \r
@@ -34,10 +27,10 @@ Abstract:
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -46,7 +39,7 @@ Abstract:
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -85,15 +78,15 @@ DhcpComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -102,7 +95,7 @@ DhcpComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -111,7 +104,7 @@ DhcpComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
@@ -191,10 +184,10 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDhcpDriverNameTable[] =
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -203,7 +196,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDhcpDriverNameTable[] =
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -250,15 +243,15 @@ DhcpComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -267,7 +260,7 @@ DhcpComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -276,7 +269,7 @@ DhcpComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
index c804172e109f627f7f81234052299ca95b2135b4..6a4ac62acdea5a12f1b4eee08ee10b4835272156 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Dhcp4Driver.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Dhcp4Impl.h"\r
@@ -43,8 +35,8 @@ EFI_SERVICE_BINDING_PROTOCOL mDhcp4ServiceBindingTemplate = {
   \r
   Entry point of the DHCP driver to install various protocols.\r
 \r
-  @param  ImageHandle           The firmware allocated handle for the UEFI image.\r
-  @param  SystemTable           A pointer to the EFI System Table.\r
+  @param[in]  ImageHandle           The firmware allocated handle for the UEFI image.\r
+  @param[in]  SystemTable           A pointer to the EFI System Table.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
@@ -76,10 +68,10 @@ Dhcp4DriverEntryPoint (
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -114,8 +106,8 @@ Dhcp4DriverBindingSupported (
   Configure the default UDP child to receive all the DHCP traffics\r
   on this network interface.\r
 \r
-  @param  UdpIo                  The UDP IO port to configure\r
-  @param  Context                The context to the function\r
+  @param[in]  UdpIo                  The UDP IO port to configure\r
+  @param[in]  Context                The context to the function\r
 \r
   @retval EFI_SUCCESS            The UDP IO port is successfully configured.\r
   @retval Others                 Failed to configure the UDP child.\r
@@ -157,7 +149,7 @@ DhcpConfigUdpIo (
   or partly destroyed. If a resource is destroyed, it is marked as so in\r
   case the destroy failed and being called again later.\r
 \r
-  @param  DhcpSb                 The DHCP service instance to destory.\r
+  @param[in]  DhcpSb                 The DHCP service instance to destory.\r
 \r
   @retval EFI_SUCCESS            Always return success.\r
 \r
@@ -189,11 +181,11 @@ Dhcp4CloseService (
 /**\r
   Create a new DHCP service binding instance for the controller.\r
 \r
-  @param  Controller             The controller to install DHCP service binding\r
-                                 protocol onto\r
-  @param  ImageHandle            The driver's image handle\r
-  @param  Service                The variable to receive the created DHCP service\r
-                                 instance.\r
+  @param[in]  Controller             The controller to install DHCP service binding\r
+                                     protocol onto\r
+  @param[in]  ImageHandle            The driver's image handle\r
+  @param[out] Service                The variable to receive the created DHCP service\r
+                                     instance.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resource .\r
   @retval EFI_SUCCESS            The DHCP service instance is created.\r
@@ -275,10 +267,10 @@ ON_ERROR:
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -355,11 +347,11 @@ ON_ERROR:
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                                children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
   @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
   @retval other             This driver was not removed from this device\r
@@ -453,8 +445,6 @@ Dhcp4DriverBindingStop (
   @param  DhcpSb                 The dhcp service instance\r
   @param  Instance               The dhcp instance to initialize\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpInitProtocol (\r
@@ -477,14 +467,18 @@ DhcpInitProtocol (
 \r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This        Protocol instance pointer.\r
-  @param  ChildHandle Pointer to the handle of the child to create.  If it is NULL,\r
-                      then a new handle is created.  If it is not NULL, then the\r
-                      I/O services are added to the existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The child handle was created with the I/O services\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
                                 the child\r
@@ -569,17 +563,20 @@ Dhcp4ServiceBindingCreateChild (
 \r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
 \r
-  @param  This        Protocol instance pointer.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The I/O services were removed from the child handle\r
-  @retval EFI_UNSUPPORTED       The child handle does not support the I/O services\r
-                                that are being removed.\r
-  @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED     The child handle could not be destroyed because its\r
-                                I/O services are being used.\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
   @retval other                 The child handle was not destroyed\r
 \r
 **/\r
index 66396707f970751e31a9fbb1fd56b9f9aa7cd24d..9c24dd6bccd862e520bfc5b0de2a43c2cb951329 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  Header for the DHCP4 driver.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Dhcp4Driver.h\r
-\r
-Abstract:\r
-\r
-  Header for the DHCP4 driver\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_DHCP4_DRIVER_H__\r
@@ -34,10 +26,10 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gDhcp4ComponentName2;
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -60,10 +52,10 @@ Dhcp4DriverBindingSupported (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -86,11 +78,11 @@ Dhcp4DriverBindingStart (
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                                children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
   @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
   @retval other             This driver was not removed from this device\r
@@ -106,14 +98,18 @@ Dhcp4DriverBindingStop (
   );\r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This        Protocol instance pointer.\r
-  @param  ChildHandle Pointer to the handle of the child to create.  If it is NULL,\r
-                      then a new handle is created.  If it is not NULL, then the\r
-                      I/O services are added to the existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The child handle was created with the I/O services\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
                                 the child\r
@@ -128,17 +124,20 @@ Dhcp4ServiceBindingCreateChild (
   );\r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
 \r
-  @param  This        Protocol instance pointer.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The I/O services were removed from the child handle\r
-  @retval EFI_UNSUPPORTED       The child handle does not support the I/O services\r
-                                that are being removed.\r
-  @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED     The child handle could not be destroyed because its\r
-                                I/O services are being used.\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
   @retval other                 The child handle was not destroyed\r
 \r
 **/\r
index 26f03c9fc49f80854a7ab4680b8f0d925bd0037d..e964f6b292615023ea066344b53758e7bf6acb30 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  This file implement the EFI_DHCP4_PROTOCOL interface.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Dhcp4Impl.c\r
-\r
-Abstract:\r
-\r
-  This file implement the EFI_DHCP4_PROTOCOL interface.\r
-\r
-\r
 **/\r
 \r
 \r
@@ -29,8 +21,8 @@ Abstract:
   The GetModeData() function returns the current operating mode and cached data\r
   packet for the EFI DHCPv4 Protocol driver.\r
 \r
-  @param  This          Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  Dhcp4ModeData Pointer to storage for the EFI_DHCP4_MODE_DATA structure.\r
+  @param[in]  This          Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[out] Dhcp4ModeData Pointer to storage for the EFI_DHCP4_MODE_DATA structure.\r
 \r
   @retval EFI_SUCCESS           The mode data was returned.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -69,8 +61,8 @@ EfiDhcp4GetModeData (
   wants to make it possible for another instance to configure the EFI DHCPv4 Protocol\r
   driver, it must call this function with Dhcp4CfgData set to NULL.\r
 \r
-  @param  This                   Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  Dhcp4CfgData           Pointer to the EFI_DHCP4_CONFIG_DATA.\r
+  @param[in]  This                   Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  Dhcp4CfgData           Pointer to the EFI_DHCP4_CONFIG_DATA.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the Dhcp4Init or\r
                                 Dhcp4InitReboot state, if the original state of this driver\r
@@ -109,14 +101,14 @@ EfiDhcp4Configure (
   by EFI_DHCP4_PROTOCOL.Configure() will be called and the user can take this\r
   opportunity to control the process.\r
   \r
-  @param  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  CompletionEvent If not NULL, indicates the event that will be signaled when the\r
-                          EFI DHCPv4 Protocol driver is transferred into the\r
-                          Dhcp4Bound state or when the DHCP process is aborted.\r
-                          EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
-                          check the completion status. If NULL,\r
-                          EFI_DHCP4_PROTOCOL.Start() will wait until the driver\r
-                          is transferred into the Dhcp4Bound state or the process fails.\r
+  @param[in]  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  CompletionEvent If not NULL, indicates the event that will be signaled when the\r
+                              EFI DHCPv4 Protocol driver is transferred into the\r
+                              Dhcp4Bound state or when the DHCP process is aborted.\r
+                              EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
+                              check the completion status. If NULL,\r
+                              EFI_DHCP4_PROTOCOL.Start() will wait until the driver\r
+                              is transferred into the Dhcp4Bound state or the process fails.\r
 \r
   @retval EFI_SUCCESS           The DHCP configuration process has started, or it has completed\r
                                 when CompletionEvent is NULL.\r
@@ -154,16 +146,16 @@ EfiDhcp4Start (
   state and the previous configuration is restored. The outgoing and incoming packets\r
   can be captured by the EFI_DHCP4_CALLBACK function.\r
 \r
-  @param  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  RebindRequest   If TRUE, this function broadcasts the request packets and enters\r
-                          the Dhcp4Rebinding state. Otherwise, it sends a unicast\r
-                          request packet and enters the Dhcp4Renewing state.\r
-  @param  CompletionEvent If not NULL, this event is signaled when the renew/rebind phase\r
-                          completes or some error occurs.\r
-                          EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
-                          check the completion status. If NULL,\r
-                          EFI_DHCP4_PROTOCOL.RenewRebind() will busy-wait\r
-                          until the DHCP process finishes.\r
+  @param[in]  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  RebindRequest   If TRUE, this function broadcasts the request packets and enters\r
+                              the Dhcp4Rebinding state. Otherwise, it sends a unicast\r
+                              request packet and enters the Dhcp4Renewing state.\r
+  @param[in]  CompletionEvent If not NULL, this event is signaled when the renew/rebind phase\r
+                              completes or some error occurs.\r
+                              EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
+                              check the completion status. If NULL,\r
+                              EFI_DHCP4_PROTOCOL.RenewRebind() will busy-wait\r
+                              until the DHCP process finishes.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the\r
                                 Dhcp4Renewing state or is back to the Dhcp4Bound state.\r
@@ -198,7 +190,7 @@ EfiDhcp4RenewRebind (
   After a successful call to this function, the EFI DHCPv4 Protocol driver returns\r
   to the Dhcp4Init state and any subsequent incoming packets will be discarded silently.\r
 \r
-  @param  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the Dhcp4Init phase.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -221,7 +213,7 @@ EfiDhcp4Release (
   before DHCP configuration process can be started again. This function can be\r
   called when the EFI DHCPv4 Protocol driver is in any state.\r
 \r
-  @param  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the Dhcp4Stopped phase.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -241,19 +233,19 @@ EfiDhcp4Stop (
   does not change any state of the EFI DHCPv4 Protocol driver and can be used at\r
   any time.\r
 \r
-  @param  This        Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  SeedPacket  Initial packet to be used as a base for building new packet.\r
-  @param  DeleteCount Number of opcodes in the DeleteList.\r
-  @param  DeleteList  List of opcodes to be deleted from the seed packet.\r
-                      Ignored if DeleteCount is zero.\r
-  @param  AppendCount Number of entries in the OptionList.\r
-  @param  AppendList  Pointer to a DHCP option list to be appended to SeedPacket.\r
-                      If SeedPacket also contains options in this list, they are\r
-                      replaced by new options (except pad option). Ignored if\r
-                      AppendCount is zero. Type EFI_DHCP4_PACKET_OPTION\r
-  @param  NewPacket   Pointer to storage for the pointer to the new allocated packet.\r
-                      Use the EFI Boot Service FreePool() on the resulting pointer\r
-                      when done with the packet.\r
+  @param[in]  This        Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  SeedPacket  Initial packet to be used as a base for building new packet.\r
+  @param[in]  DeleteCount Number of opcodes in the DeleteList.\r
+  @param[in]  DeleteList  List of opcodes to be deleted from the seed packet.\r
+                          Ignored if DeleteCount is zero.\r
+  @param[in]  AppendCount Number of entries in the OptionList.\r
+  @param[in]  AppendList  Pointer to a DHCP option list to be appended to SeedPacket.\r
+                          If SeedPacket also contains options in this list, they are\r
+                          replaced by new options (except pad option). Ignored if\r
+                          AppendCount is zero. Type EFI_DHCP4_PACKET_OPTION\r
+  @param[out] NewPacket   Pointer to storage for the pointer to the new allocated packet.\r
+                          Use the EFI Boot Service FreePool() on the resulting pointer\r
+                          when done with the packet.\r
 \r
   @retval EFI_SUCCESS           The new packet was built.\r
   @retval EFI_OUT_OF_RESOURCES  Storage for the new packet could not be allocated.\r
@@ -272,15 +264,15 @@ EfiDhcp4Build (
   OUT EFI_DHCP4_PACKET        **NewPacket\r
   );\r
   \r
-  /**\r
+/**\r
   Transmits a DHCP formatted packet and optionally waits for responses.\r
   \r
   The TransmitReceive() function is used to transmit a DHCP packet and optionally\r
   wait for the response from servers. This function does not change the state of\r
   the EFI DHCPv4 Protocol driver and thus can be used at any time.\r
 \r
-  @param  This    Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  Token   Pointer to the EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN structure.\r
+  @param[in]  This    Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  Token   Pointer to the EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN structure.\r
 \r
   @retval EFI_SUCCESS           The packet was successfully queued for transmission.\r
   @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
@@ -352,8 +344,8 @@ EFI_DHCP4_PROTOCOL  mDhcp4ProtocolTemplate = {
   The GetModeData() function returns the current operating mode and cached data\r
   packet for the EFI DHCPv4 Protocol driver.\r
 \r
-  @param  This          Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  Dhcp4ModeData Pointer to storage for the EFI_DHCP4_MODE_DATA structure.\r
+  @param[in]  This          Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[out] Dhcp4ModeData Pointer to storage for the EFI_DHCP4_MODE_DATA structure.\r
 \r
   @retval EFI_SUCCESS           The mode data was returned.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -426,8 +418,6 @@ EfiDhcp4GetModeData (
 \r
   @param  Config                 The DHCP configure data\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpCleanConfigure (\r
@@ -462,8 +452,8 @@ DhcpCleanConfigure (
   Allocate memory for configure parameter such as timeout value for Dst,\r
   then copy the configure parameter from Src to Dst.\r
 \r
-  @param  Dst                    The destination DHCP configure data.\r
-  @param  Src                    The source DHCP configure data.\r
+  @param[out]  Dst                    The destination DHCP configure data.\r
+  @param[in]   Src                    The source DHCP configure data.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory.\r
   @retval EFI_SUCCESS            The configure is copied.\r
@@ -560,8 +550,6 @@ ON_ERROR:
 \r
   @param  DhcpSb                 The DHCP service instance.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpYieldControl (\r
@@ -620,8 +608,8 @@ DhcpYieldControl (
   wants to make it possible for another instance to configure the EFI DHCPv4 Protocol\r
   driver, it must call this function with Dhcp4CfgData set to NULL.\r
 \r
-  @param  This                   Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  Dhcp4CfgData           Pointer to the EFI_DHCP4_CONFIG_DATA.\r
+  @param[in]  This                   Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  Dhcp4CfgData           Pointer to the EFI_DHCP4_CONFIG_DATA.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the Dhcp4Init or\r
                                 Dhcp4InitReboot state, if the original state of this driver\r
@@ -761,14 +749,14 @@ ON_EXIT:
   by EFI_DHCP4_PROTOCOL.Configure() will be called and the user can take this\r
   opportunity to control the process.\r
   \r
-  @param  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  CompletionEvent If not NULL, indicates the event that will be signaled when the\r
-                          EFI DHCPv4 Protocol driver is transferred into the\r
-                          Dhcp4Bound state or when the DHCP process is aborted.\r
-                          EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
-                          check the completion status. If NULL,\r
-                          EFI_DHCP4_PROTOCOL.Start() will wait until the driver\r
-                          is transferred into the Dhcp4Bound state or the process fails.\r
+  @param[in]  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  CompletionEvent If not NULL, indicates the event that will be signaled when the\r
+                              EFI DHCPv4 Protocol driver is transferred into the\r
+                              Dhcp4Bound state or when the DHCP process is aborted.\r
+                              EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
+                              check the completion status. If NULL,\r
+                              EFI_DHCP4_PROTOCOL.Start() will wait until the driver\r
+                              is transferred into the Dhcp4Bound state or the process fails.\r
 \r
   @retval EFI_SUCCESS           The DHCP configuration process has started, or it has completed\r
                                 when CompletionEvent is NULL.\r
@@ -875,16 +863,16 @@ ON_ERROR:
   state and the previous configuration is restored. The outgoing and incoming packets\r
   can be captured by the EFI_DHCP4_CALLBACK function.\r
 \r
-  @param  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  RebindRequest   If TRUE, this function broadcasts the request packets and enters\r
-                          the Dhcp4Rebinding state. Otherwise, it sends a unicast\r
-                          request packet and enters the Dhcp4Renewing state.\r
-  @param  CompletionEvent If not NULL, this event is signaled when the renew/rebind phase\r
-                          completes or some error occurs.\r
-                          EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
-                          check the completion status. If NULL,\r
-                          EFI_DHCP4_PROTOCOL.RenewRebind() will busy-wait\r
-                          until the DHCP process finishes.\r
+  @param[in]  This            Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  RebindRequest   If TRUE, this function broadcasts the request packets and enters\r
+                              the Dhcp4Rebinding state. Otherwise, it sends a unicast\r
+                              request packet and enters the Dhcp4Renewing state.\r
+  @param[in]  CompletionEvent If not NULL, this event is signaled when the renew/rebind phase\r
+                              completes or some error occurs.\r
+                              EFI_DHCP4_PROTOCOL.GetModeData() can be called to\r
+                              check the completion status. If NULL,\r
+                              EFI_DHCP4_PROTOCOL.RenewRebind() will busy-wait\r
+                              until the DHCP process finishes.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the\r
                                 Dhcp4Renewing state or is back to the Dhcp4Bound state.\r
@@ -998,7 +986,7 @@ ON_ERROR:
   After a successful call to this function, the EFI DHCPv4 Protocol driver returns\r
   to the Dhcp4Init state and any subsequent incoming packets will be discarded silently.\r
 \r
-  @param  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the Dhcp4Init phase.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -1071,7 +1059,7 @@ ON_EXIT:
   before DHCP configuration process can be started again. This function can be\r
   called when the EFI DHCPv4 Protocol driver is in any state.\r
 \r
-  @param  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  This                  Pointer to the EFI_DHCP4_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS           The EFI DHCPv4 Protocol driver is now in the Dhcp4Stopped phase.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -1121,19 +1109,19 @@ EfiDhcp4Stop (
   does not change any state of the EFI DHCPv4 Protocol driver and can be used at\r
   any time.\r
 \r
-  @param  This        Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  SeedPacket  Initial packet to be used as a base for building new packet.\r
-  @param  DeleteCount Number of opcodes in the DeleteList.\r
-  @param  DeleteList  List of opcodes to be deleted from the seed packet.\r
-                      Ignored if DeleteCount is zero.\r
-  @param  AppendCount Number of entries in the OptionList.\r
-  @param  AppendList  Pointer to a DHCP option list to be appended to SeedPacket.\r
-                      If SeedPacket also contains options in this list, they are\r
-                      replaced by new options (except pad option). Ignored if\r
-                      AppendCount is zero. Type EFI_DHCP4_PACKET_OPTION\r
-  @param  NewPacket   Pointer to storage for the pointer to the new allocated packet.\r
-                      Use the EFI Boot Service FreePool() on the resulting pointer\r
-                      when done with the packet.\r
+  @param[in]  This        Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  SeedPacket  Initial packet to be used as a base for building new packet.\r
+  @param[in]  DeleteCount Number of opcodes in the DeleteList.\r
+  @param[in]  DeleteList  List of opcodes to be deleted from the seed packet.\r
+                          Ignored if DeleteCount is zero.\r
+  @param[in]  AppendCount Number of entries in the OptionList.\r
+  @param[in]  AppendList  Pointer to a DHCP option list to be appended to SeedPacket.\r
+                          If SeedPacket also contains options in this list, they are\r
+                          replaced by new options (except pad option). Ignored if\r
+                          AppendCount is zero. Type EFI_DHCP4_PACKET_OPTION\r
+  @param[out] NewPacket   Pointer to storage for the pointer to the new allocated packet.\r
+                          Use the EFI Boot Service FreePool() on the resulting pointer\r
+                          when done with the packet.\r
 \r
   @retval EFI_SUCCESS           The new packet was built.\r
   @retval EFI_OUT_OF_RESOURCES  Storage for the new packet could not be allocated.\r
@@ -1185,8 +1173,8 @@ EfiDhcp4Build (
 /**\r
   Callback by UdpIoCreatePort() when creating UdpIo for this Dhcp4 instance.\r
   \r
-  @param UdpIo      The UdpIo being created.\r
-  @param Context    Dhcp4 instance.\r
+  @param[in] UdpIo      The UdpIo being created.\r
+  @param[in] Context    Dhcp4 instance.\r
   \r
   @retval EFI_SUCCESS   UdpIo is configured successfully.\r
   @retval other         Other error occurs.\r
@@ -1260,8 +1248,7 @@ Dhcp4InstanceCreateUdpIo (
   Callback of Dhcp packet. Does nothing.\r
   \r
   @param Arg           The context.\r
-  \r
-  @return  None.\r
+\r
 **/\r
 VOID\r
 DhcpDummyExtFree (\r
@@ -1281,8 +1268,6 @@ DhcpDummyExtFree (
   @param IoStatus         Status of the input.\r
   @param Context          Extra info for the input.\r
   \r
-  @return None.\r
-  \r
 **/\r
 VOID\r
 PxeDhcpInput (\r
@@ -1385,8 +1370,6 @@ RESTART:
   Complete a Dhcp4 transaction and signal the upper layer.\r
   \r
   @param Instance      Dhcp4 instance.\r
-  \r
-  @return None.\r
 \r
 **/\r
 VOID\r
@@ -1439,8 +1422,8 @@ SIGNAL_USER:
   wait for the response from servers. This function does not change the state of\r
   the EFI DHCPv4 Protocol driver and thus can be used at any time.\r
 \r
-  @param  This    Pointer to the EFI_DHCP4_PROTOCOL instance.\r
-  @param  Token   Pointer to the EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN structure.\r
+  @param[in]  This    Pointer to the EFI_DHCP4_PROTOCOL instance.\r
+  @param[in]  Token   Pointer to the EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN structure.\r
 \r
   @retval EFI_SUCCESS           The packet was successfully queued for transmission.\r
   @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
@@ -1614,10 +1597,10 @@ ON_ERROR:
   EFI_DHCP4_PACKET_OPTION array in the DHCP_PARSE_CONTEXT to point\r
   the individual DHCP option in the packet.\r
 \r
-  @param  Tag                    The DHCP option type\r
-  @param  Len                    Length of the DHCP option data\r
-  @param  Data                   The DHCP option data\r
-  @param  Context                The context, to pass several parameters in.\r
+  @param[in]  Tag                    The DHCP option type\r
+  @param[in]  Len                    Length of the DHCP option data\r
+  @param[in]  Data                   The DHCP option data\r
+  @param[in]  Context                The context, to pass several parameters in.\r
 \r
   @retval EFI_SUCCESS            It always returns EFI_SUCCESS\r
 \r
index 4832ecd747481dc0f57711fa8cddc49436f82844..9ed6118cc6f2da9a6b10d6ac42860b6416875b3e 100644 (file)
@@ -1,6 +1,12 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  EFI DHCP protocol implementation.\r
+  RFCs supported are:\r
+  RFC 2131: Dynamic Host Configuration Protocol\r
+  RFC 2132: DHCP Options and BOOTP Vendor Extensions\r
+  RFC 1534: Interoperation Between DHCP and BOOTP\r
+  RFC 3396: Encoding Long Options in DHCP.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,20 +15,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Dhcp4Impl.h\r
-\r
-Abstract:\r
-\r
-  EFI DHCP protocol implementation\r
-  RFCs supported are:\r
-  RFC 2131: Dynamic Host Configuration Protocol\r
-  RFC 2132: DHCP Options and BOOTP Vendor Extensions\r
-  RFC 1534: Interoperation Between DHCP and BOOTP\r
-  RFC 3396: Encoding Long Options in DHCP\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_DHCP4_IMPL_H__\r
@@ -160,8 +152,6 @@ extern EFI_DHCP4_PROTOCOL mDhcp4ProtocolTemplate;
 \r
   @param  DhcpSb                 The DHCP service instance.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpYieldControl (\r
@@ -172,8 +162,6 @@ DhcpYieldControl (
   Complete a Dhcp4 transaction and signal the upper layer.\r
   \r
   @param Instance      Dhcp4 instance.\r
-  \r
-  @return None.\r
 \r
 **/\r
 VOID\r
index da42e670b5ce381f4770df7febe2c722a2a064e6..7c48340d8b32751c9132de73fa02f9c7fb609411 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  EFI DHCP protocol implementation.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Dhcp4Io.c\r
-\r
-Abstract:\r
-\r
-  EFI DHCP protocol implementation\r
-\r
-\r
 **/\r
 \r
 \r
@@ -30,7 +22,7 @@ UINT32  mDhcp4DefaultTimeout[4] = { 4, 8, 16, 32 };
   Send an initial DISCOVER or REQUEST message according to the\r
   DHCP service's current state.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
+  @param[in]  DhcpSb                The DHCP service instance\r
 \r
   @retval EFI_SUCCESS           The request has been sent\r
   @retval other                 Some error occurs when sending the request.\r
@@ -73,10 +65,10 @@ DhcpInitRequest (
   proper return value is selected to let the caller continue the\r
   normal process.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Event                 The event as defined in the spec\r
-  @param  Packet                The current packet trigger the event\r
-  @param  NewPacket             The user's return new packet\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Event                 The event as defined in the spec\r
+  @param[in]  Packet                The current packet trigger the event\r
+  @param[out] NewPacket             The user's return new packet\r
 \r
   @retval EFI_NOT_READY         Direct the caller to continue collecting the offer.\r
   @retval EFI_SUCCESS           The user function returns success.\r
@@ -143,8 +135,6 @@ DhcpCallUser (
   @param  DhcpSb                DHCP service instance\r
   @param  Which                 Which notify function to signal\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpNotifyUser (\r
@@ -249,8 +239,6 @@ DhcpSetState (
 \r
   @param  DhcpSb                The DHCP service instance.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpSetTransmitTimer (\r
@@ -283,10 +271,7 @@ DhcpSetTransmitTimer (
 \r
   @param  DhcpSb                The DHCP service instance\r
   @param  Para                  The DHCP parameter extracted from the server's\r
-                                response.\r
-\r
-  @return None\r
-\r
+                                response.                             \r
 **/\r
 VOID\r
 DhcpComputeLease (\r
@@ -319,8 +304,8 @@ DhcpComputeLease (
   DHCP driver needs this port to unicast packet to the server\r
   such as DHCP release.\r
 \r
-  @param  UdpIo                 The UDP IO port to configure\r
-  @param  Context               Dhcp service instance.\r
+  @param[in]  UdpIo                 The UDP IO port to configure\r
+  @param[in]  Context               Dhcp service instance.\r
 \r
   @retval EFI_SUCCESS           The UDP IO port is successfully configured.\r
   @retval Others                It failed to configure the port.\r
@@ -448,8 +433,6 @@ DhcpLeaseAcquired (
 \r
   @param  DhcpSb                The DHCP instance service.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpCleanLease (\r
@@ -503,7 +486,7 @@ DhcpCleanLease (
   of BOOTP, the lease is recorded and user notified. If the offer is of\r
   DHCP, it will request the offer from the server.\r
 \r
-  @param  DhcpSb                The DHCP service instance.\r
+  @param[in]  DhcpSb                The DHCP service instance.\r
 \r
   @retval EFI_SUCCESS           One of the offer is selected.\r
 \r
@@ -583,10 +566,8 @@ DhcpChooseOffer (
   to this is: only call DhcpEndSession at the highest level, such as\r
   DhcpInput, DhcpOnTimerTick...At the other level, just return error.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Status                The result of the DHCP process.\r
-\r
-  @return None\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Status                The result of the DHCP process.\r
 \r
 **/\r
 VOID\r
@@ -611,10 +592,10 @@ DhcpEndSession (
 /**\r
   Handle packets in DHCP select state.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Packet                The DHCP packet received\r
-  @param  Para                  The DHCP parameter extracted from the packet. That\r
-                                is, all the option value that we care.\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Packet                The DHCP packet received\r
+  @param[in]  Para                  The DHCP parameter extracted from the packet. That\r
+                                    is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
   @retval Others                Some error occured.\r
@@ -686,10 +667,10 @@ ON_EXIT:
 /**\r
   Handle packets in DHCP request state.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Packet                The DHCP packet received\r
-  @param  Para                  The DHCP parameter extracted from the packet. That\r
-                                is, all the option value that we care.\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Packet                The DHCP packet received\r
+  @param[in]  Para                  The DHCP parameter extracted from the packet. That\r
+                                    is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
   @retval Others                Some error occured.\r
@@ -779,10 +760,10 @@ ON_EXIT:
 /**\r
   Handle packets in DHCP renew/rebound state.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Packet                The DHCP packet received\r
-  @param  Para                  The DHCP parameter extracted from the packet. That\r
-                                is, all the option value that we care.\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Packet                The DHCP packet received\r
+  @param[in]  Para                  The DHCP parameter extracted from the packet. That\r
+                                    is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
   @retval Others                Some error occured.\r
@@ -863,10 +844,10 @@ ON_EXIT:
 /**\r
   Handle packets in DHCP reboot state.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Packet                The DHCP packet received\r
-  @param  Para                  The DHCP parameter extracted from the packet. That\r
-                                is, all the option value that we care.\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Packet                The DHCP packet received\r
+  @param[in]  Para                  The DHCP parameter extracted from the packet. That\r
+                                    is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
   @retval Others                Some error occured.\r
@@ -959,8 +940,6 @@ ON_EXIT:
   @param  IoStatus              The status of the UDP receive\r
   @param  Context               The opaque parameter to the function.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpInput (\r
@@ -1111,9 +1090,7 @@ RESTART:
 /**\r
   Release the packet.\r
 \r
-  @param  Arg                   The packet to release\r
-\r
-  @return None\r
+  @param[in]  Arg                   The packet to release\r
 \r
 **/\r
 VOID\r
@@ -1133,8 +1110,6 @@ DhcpReleasePacket (
   @param  IoStatus              The status of the UDP receive\r
   @param  Context               The opaque parameter to the function.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpOnPacketSent (\r
@@ -1155,12 +1130,12 @@ DhcpOnPacketSent (
   the state (as defined in Figure 5. of the same RFC) before sending\r
   a DHCP message. The table is adjusted accordingly.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Seed                  The seed packet which the new packet is based on\r
-  @param  Para                  The DHCP parameter of the Seed packet\r
-  @param  Type                  The message type to send\r
-  @param  Msg                   The human readable message to include in the packet\r
-                                sent.\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Seed                  The seed packet which the new packet is based on\r
+  @param[in]  Para                  The DHCP parameter of the Seed packet\r
+  @param[in]  Type                  The message type to send\r
+  @param[in]  Msg                   The human readable message to include in the packet\r
+                                    sent.\r
 \r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resources for the packet\r
   @retval EFI_ACCESS_DENIED     Failed to transmit the packet through UDP\r
@@ -1417,7 +1392,7 @@ DhcpSendMessage (
   Retransmit a saved packet. Only DISCOVER and REQUEST messages\r
   will be retransmitted.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
+  @param[in]  DhcpSb                The DHCP service instance\r
 \r
   @retval EFI_ACCESS_DENIED     Failed to transmit packet through UDP port\r
   @retval EFI_SUCCESS           The packet is retransmitted.\r
@@ -1477,10 +1452,8 @@ DhcpRetransmit (
   and lease to determine the time to renew and rebind the lease.\r
   DhcpOnTimerTick will be called once every second.\r
 \r
-  @param  Event                 The timer event\r
-  @param  Context               The context, which is the DHCP service instance.\r
-\r
-  @return None\r
+  @param[in]  Event                 The timer event\r
+  @param[in]  Context               The context, which is the DHCP service instance.\r
 \r
 **/\r
 VOID\r
index 21bbf194bff216a0f9c047d3df4793b91d22d96e..5f8ac13e84ef03f88acb711083846d9fa0e3b0f9 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  The DHCP4 protocol implementation.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Dhcp4Io.h\r
-\r
-Abstract:\r
-\r
-  The DHCP4 protocol implementation.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_DHCP4_IO_H__\r
@@ -104,12 +95,12 @@ DhcpSetState (
   the state (as defined in Figure 5. of the same RFC) before sending\r
   a DHCP message. The table is adjusted accordingly.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
-  @param  Seed                  The seed packet which the new packet is based on\r
-  @param  Para                  The DHCP parameter of the Seed packet\r
-  @param  Type                  The message type to send\r
-  @param  Msg                   The human readable message to include in the packet\r
-                                sent.\r
+  @param[in]  DhcpSb                The DHCP service instance\r
+  @param[in]  Seed                  The seed packet which the new packet is based on\r
+  @param[in]  Para                  The DHCP parameter of the Seed packet\r
+  @param[in]  Type                  The message type to send\r
+  @param[in]  Msg                   The human readable message to include in the packet\r
+                                    sent.\r
 \r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resources for the packet\r
   @retval EFI_ACCESS_DENIED     Failed to transmit the packet through UDP\r
@@ -133,10 +124,8 @@ DhcpSendMessage (
   and lease to determine the time to renew and rebind the lease.\r
   DhcpOnTimerTick will be called once every second.\r
 \r
-  @param  Event                 The timer event\r
-  @param  Context               The context, which is the DHCP service instance.\r
-\r
-  @return None\r
+  @param[in]  Event                 The timer event\r
+  @param[in]  Context               The context, which is the DHCP service instance.\r
 \r
 **/\r
 VOID\r
@@ -155,8 +144,6 @@ DhcpOnTimerTick (
   @param  IoStatus              The status of the UDP receive\r
   @param  Context               The opaque parameter to the function.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpInput (\r
@@ -170,7 +157,7 @@ DhcpInput (
   Send an initial DISCOVER or REQUEST message according to the\r
   DHCP service's current state.\r
 \r
-  @param  DhcpSb                The DHCP service instance\r
+  @param[in]  DhcpSb                The DHCP service instance\r
 \r
   @retval EFI_SUCCESS           The request has been sent\r
   @retval other                 Some error occurs when sending the request.\r
@@ -186,8 +173,6 @@ DhcpInitRequest (
 \r
   @param  DhcpSb                The DHCP instance service.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpCleanLease (\r
@@ -202,8 +187,6 @@ DhcpCleanLease (
   @param  IoStatus              The status of the UDP receive\r
   @param  Context               The opaque parameter to the function.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 DhcpOnPacketSent (\r
index 571c6bbf95db664e8c66c9f3bd0caac66405ac15..e1f14a69681d0ec19cf9c6f50c477a1b6541e53f 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  Function to validate, parse, process the DHCP options.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Dhcp4Option.c\r
-\r
-Abstract:\r
-\r
-  Function to validate, parse, process the DHCP options\r
-\r
-\r
 **/\r
 \r
 #include "Dhcp4Impl.h"\r
@@ -120,7 +112,7 @@ DHCP_OPTION_FORMAT DhcpOptionFormats[] = {
   Binary search the DhcpOptionFormats array to find the format\r
   information about a specific option.\r
 \r
-  @param  Tag                    The option's tag.\r
+  @param[in]  Tag                    The option's tag.\r
 \r
   @return The point to the option's format, NULL if not found.\r
 \r
@@ -158,9 +150,9 @@ DhcpFindOptionFormat (
 /**\r
   Validate whether a single DHCP option is valid according to its format.\r
 \r
-  @param  Format                 The option's format\r
-  @param  OptValue               The value of the option\r
-  @param  Len                    The length of the option value\r
+  @param[in]  Format                 The option's format\r
+  @param[in]  OptValue               The value of the option\r
+  @param[in]  Len                    The length of the option value\r
 \r
   @retval TRUE     The option is valid.\r
   @retval FALSE    Otherwise.\r
@@ -238,10 +230,10 @@ DhcpOptionIsValid (
   Extract the client interested options, all the parameters are\r
   converted to host byte order.\r
 \r
-  @param  Tag                    The DHCP option tag\r
-  @param  Len                    The length of the option\r
-  @param  Data                   The value of the DHCP option\r
-  @param  Para                   The variable to save the interested parameter\r
+  @param[in]  Tag                    The DHCP option tag\r
+  @param[in]  Len                    The length of the option\r
+  @param[in]  Data                   The value of the DHCP option\r
+  @param[out] Para                   The variable to save the interested parameter\r
 \r
   @retval EFI_SUCCESS            The DHCP option is successfully extracted.\r
   @retval EFI_INVALID_PARAMETER  The DHCP option is mal-formated\r
@@ -309,12 +301,12 @@ DhcpGetParameter (
   in several buffers, such as the BOOTP options filed, boot file or server\r
   name. Each option buffer is required to end with DHCP_TAG_EOP.\r
 \r
-  @param  Buffer                 The buffer which contains DHCP options\r
-  @param  BufLen                 The length of the buffer\r
-  @param  Check                  The callback function for each option found\r
-  @param  Context                The opaque parameter for the Check\r
-  @param  Overload               Variable to save the value of DHCP_TAG_OVERLOAD\r
-                                 option.\r
+  @param[in]  Buffer                 The buffer which contains DHCP options\r
+  @param[in]  BufLen                 The length of the buffer\r
+  @param[in]  Check                  The callback function for each option found\r
+  @param[in]  Context                The opaque parameter for the Check\r
+  @param[out] Overload               Variable to save the value of DHCP_TAG_OVERLOAD\r
+                                     option.\r
 \r
   @retval EFI_SUCCESS            All the options are valid\r
   @retval EFI_INVALID_PARAMETER  The options are mal-formated.\r
@@ -324,7 +316,7 @@ EFI_STATUS
 DhcpIterateBufferOptions (\r
   IN  UINT8                 *Buffer,\r
   IN  INTN                  BufLen,\r
-  IN  DHCP_CHECK_OPTION     Check,            OPTIONAL\r
+  IN  DHCP_CHECK_OPTION     Check             OPTIONAL,\r
   IN  VOID                  *Context,\r
   OUT UINT8                 *Overload         OPTIONAL\r
   )\r
@@ -385,10 +377,10 @@ DhcpIterateBufferOptions (
   the options in FILENAME and SERVERNAME fields. One option may be\r
   encoded in several places. See RFC 3396 Encoding Long Options in DHCP\r
 \r
-  @param  Packet                 The DHCP packet to check the options for\r
-  @param  Check                  The callback function to be called for each option\r
-                                 found\r
-  @param  Context                The opaque parameter for Check\r
+  @param[in]  Packet                 The DHCP packet to check the options for\r
+  @param[in]  Check                  The callback function to be called for each option\r
+                                     found\r
+  @param[in]  Context                The opaque parameter for Check\r
 \r
   @retval EFI_SUCCESS            The DHCP packet's options are well formated\r
   @retval EFI_INVALID_PARAMETER  The DHCP packet's options are not well formated\r
@@ -455,11 +447,11 @@ DhcpIterateOptions (
   length. It just adds the data length of all the occurances of this\r
   Tag. Context is an array of 256 DHCP_OPTION_COUNT.\r
 \r
-  @param  Tag                    The current option to check\r
-  @param  Len                    The length of the option data\r
-  @param  Data                   The option data\r
-  @param  Context                The context, which is a array of 256\r
-                                 DHCP_OPTION_COUNT.\r
+  @param[in]  Tag                    The current option to check\r
+  @param[in]  Len                    The length of the option data\r
+  @param[in]  Data                   The option data\r
+  @param[in]  Context                The context, which is a array of 256\r
+                                     DHCP_OPTION_COUNT.\r
 \r
   @retval EFI_SUCCESS            It always returns EFI_SUCCESS.\r
 \r
@@ -485,11 +477,11 @@ DhcpGetOptionLen (
   Call back function to DhcpIterateOptions to consolidate each option's\r
   data. There are maybe several occurrence of the same option.\r
 \r
-  @param  Tag                    The option to consolidate its data\r
-  @param  Len                    The length of option data\r
-  @param  Data                   The data of the option's current occurance\r
-  @param  Context                The context, which is DHCP_OPTION_CONTEXT. This\r
-                                 array is  just a wrap to pass THREE parameters.\r
+  @param[in]  Tag                    The option to consolidate its data\r
+  @param[in]  Len                    The length of option data\r
+  @param[in]  Data                   The data of the option's current occurance\r
+  @param[in]  Context                The context, which is DHCP_OPTION_CONTEXT. This\r
+                                     array is  just a wrap to pass THREE parameters.\r
 \r
   @retval EFI_SUCCESS            It always returns EFI_SUCCESS\r
 \r
@@ -544,11 +536,11 @@ DhcpFillOption (
   with DhcpFillOption to fill each option's data to its position in the\r
   buffer.\r
 \r
-  @param  Packet                 The DHCP packet to parse the options\r
-  @param  Count                  The number of valid dhcp options present in the\r
-                                 packet\r
-  @param  OptionPoint            The array that contains the DHCP options. Caller\r
-                                 should free it.\r
+  @param[in]  Packet                 The DHCP packet to parse the options\r
+  @param[out] Count                  The number of valid dhcp options present in the\r
+                                     packet\r
+  @param[out] OptionPoint            The array that contains the DHCP options. Caller\r
+                                     should free it.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to parse the packet.\r
   @retval EFI_INVALID_PARAMETER  The options are mal-formated\r
@@ -648,8 +640,8 @@ ON_EXIT:
   Validate the packet's options. If necessary, allocate\r
   and fill in the interested parameters.\r
 \r
-  @param  Packet                 The packet to validate the options\r
-  @param  Para                   The variable to save the DHCP parameters.\r
+  @param[in]  Packet                 The packet to validate the options\r
+  @param[out] Para                   The variable to save the DHCP parameters.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to validate the packet.\r
   @retval EFI_INVALID_PARAMETER  The options are mal-formated\r
@@ -735,10 +727,10 @@ ON_EXIT:
   Append an option to the memory, if the option is longer than\r
   255 bytes, splits it into several options.\r
 \r
-  @param  Buf                    The buffer to append the option to\r
-  @param  Tag                    The option's tag\r
-  @param  DataLen                The length of the option's data\r
-  @param  Data                   The option's data\r
+  @param[out] Buf                    The buffer to append the option to\r
+  @param[in]  Tag                    The option's tag\r
+  @param[in]  DataLen                The length of the option's data\r
+  @param[in]  Data                   The option's data\r
 \r
   @return The position to append the next option\r
 \r
@@ -774,13 +766,13 @@ DhcpAppendOption (
   Build a new DHCP packet from a seed packet. Options may be deleted or\r
   appended. The caller should free the NewPacket when finished using it.\r
 \r
-  @param  SeedPacket             The seed packet to start with\r
-  @param  DeleteCount            The number of options to delete\r
-  @param  DeleteList             The options to delete from the packet\r
-  @param  AppendCount            The number of options to append\r
-  @param  AppendList             The options to append to the packet\r
-  @param  NewPacket              The new packet, allocated and built by this\r
-                                 function.\r
+  @param[in]  SeedPacket             The seed packet to start with\r
+  @param[in]  DeleteCount            The number of options to delete\r
+  @param[in]  DeleteList             The options to delete from the packet\r
+  @param[in]  AppendCount            The number of options to append\r
+  @param[in]  AppendList             The options to append to the packet\r
+  @param[out] NewPacket              The new packet, allocated and built by this\r
+                                     function.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory\r
   @retval EFI_INVALID_PARAMETER  The options in SeekPacket are mal-formated\r
index 74d84b3f8148f2558b12c523170be8a1f6a503ea..f5be1bfa0c993aef51c3f0c94ca90444d0fa43de 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006, Intel Corporation\r
+  To validate, parse and process the DHCP options.\r
+  \r
+Copyright (c) 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Dhcp4Option.h\r
-\r
-Abstract:\r
-\r
-  To validate, parse and process the DHCP options\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_DHCP4_OPTION_H__\r
@@ -233,10 +224,10 @@ EFI_STATUS
   the options in FILENAME and SERVERNAME fields. One option may be\r
   encoded in several places. See RFC 3396 Encoding Long Options in DHCP\r
 \r
-  @param  Packet                 The DHCP packet to check the options for\r
-  @param  Check                  The callback function to be called for each option\r
-                                 found\r
-  @param  Context                The opaque parameter for Check\r
+  @param[in]  Packet                 The DHCP packet to check the options for\r
+  @param[in]  Check                  The callback function to be called for each option\r
+                                     found\r
+  @param[in]  Context                The opaque parameter for Check\r
 \r
   @retval EFI_SUCCESS            The DHCP packet's options are well formated\r
   @retval EFI_INVALID_PARAMETER  The DHCP packet's options are not well formated\r
@@ -253,8 +244,8 @@ DhcpIterateOptions (
   Validate the packet's options. If necessary, allocate\r
   and fill in the interested parameters.\r
 \r
-  @param  Packet                 The packet to validate the options\r
-  @param  Para                   The variable to save the DHCP parameters.\r
+  @param[in]  Packet                 The packet to validate the options\r
+  @param[out] Para                   The variable to save the DHCP parameters.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to validate the packet.\r
   @retval EFI_INVALID_PARAMETER  The options are mal-formated\r
@@ -283,11 +274,11 @@ DhcpValidateOptions (
   with DhcpFillOption to fill each option's data to its position in the\r
   buffer.\r
 \r
-  @param  Packet                 The DHCP packet to parse the options\r
-  @param  Count                  The number of valid dhcp options present in the\r
-                                 packet\r
-  @param  OptionPoint            The array that contains the DHCP options. Caller\r
-                                 should free it.\r
+  @param[in]  Packet                 The DHCP packet to parse the options\r
+  @param[out] Count                  The number of valid dhcp options present in the\r
+                                     packet\r
+  @param[out] OptionPoint            The array that contains the DHCP options. Caller\r
+                                     should free it.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to parse the packet.\r
   @retval EFI_INVALID_PARAMETER  The options are mal-formated\r
@@ -305,10 +296,10 @@ DhcpParseOption (
   Append an option to the memory, if the option is longer than\r
   255 bytes, splits it into several options.\r
 \r
-  @param  Buf                    The buffer to append the option to\r
-  @param  Tag                    The option's tag\r
-  @param  DataLen                The length of the option's data\r
-  @param  Data                   The option's data\r
+  @param[out] Buf                    The buffer to append the option to\r
+  @param[in]  Tag                    The option's tag\r
+  @param[in]  DataLen                The length of the option's data\r
+  @param[in]  Data                   The option's data\r
 \r
   @return The position to append the next option\r
 \r
@@ -325,13 +316,13 @@ DhcpAppendOption (
   Build a new DHCP packet from a seed packet. Options may be deleted or\r
   appended. The caller should free the NewPacket when finished using it.\r
 \r
-  @param  SeedPacket             The seed packet to start with\r
-  @param  DeleteCount            The number of options to delete\r
-  @param  DeleteList             The options to delete from the packet\r
-  @param  AppendCount            The number of options to append\r
-  @param  AppendList             The options to append to the packet\r
-  @param  NewPacket              The new packet, allocated and built by this\r
-                                 function.\r
+  @param[in]  SeedPacket             The seed packet to start with\r
+  @param[in]  DeleteCount            The number of options to delete\r
+  @param[in]  DeleteList             The options to delete from the packet\r
+  @param[in]  AppendCount            The number of options to append\r
+  @param[in]  AppendList             The options to append to the packet\r
+  @param[out] NewPacket              The new packet, allocated and built by this\r
+                                     function.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory\r
   @retval EFI_INVALID_PARAMETER  The options in SeekPacket are mal-formated\r
index d7672cbedf07781bde4b7c9603a73fd1181c321d..291ea1a933b62f57cea58f30e754115cda826afd 100644 (file)
@@ -204,7 +204,7 @@ EFI_STATUS
 EFIAPI\r
 EfiNicIp4ConfigSetInfo (\r
   IN EFI_NIC_IP4_CONFIG_PROTOCOL  *This,\r
-  IN NIC_IP4_CONFIG_INFO          *NicConfig,     OPTIONAL\r
+  IN NIC_IP4_CONFIG_INFO          *NicConfig     OPTIONAL,\r
   IN BOOLEAN                      Reconfig\r
   )\r
 {\r
index 012da5d33f9b50d14077e4f8064b4fbe6b74ac9b..a5f00ee645ae7b944f5f33d5885137d32025d7c1 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Routines used to operate the Ip4 configure variable\r
+  Routines used to operate the Ip4 configure variable.\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation.<BR>                                                         \r
 All rights reserved. This program and the accompanying materials\r
@@ -261,7 +261,7 @@ Ip4ConfigFindNicVariable (
 **/\r
 IP4_CONFIG_VARIABLE *\r
 Ip4ConfigModifyVariable (\r
-  IN IP4_CONFIG_VARIABLE    *Variable,    OPTIONAL\r
+  IN IP4_CONFIG_VARIABLE    *Variable     OPTIONAL,\r
   IN NIC_ADDR               *NicAddr,\r
   IN NIC_IP4_CONFIG_INFO    *Config       OPTIONAL\r
   )\r
index 9d191de811110517a8f0d56a0e5b86c4b6fbdb3e..11ba50c149e4ecd4e13c1485e6b29f8561955663 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Routines used to operate the Ip4 configure variable\r
+  Routines used to operate the Ip4 configure variable.\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation.<BR>                                                         \r
 All rights reserved. This program and the accompanying materials\r
@@ -123,7 +123,7 @@ Ip4ConfigFindNicVariable (
 **/\r
 IP4_CONFIG_VARIABLE *\r
 Ip4ConfigModifyVariable (\r
-  IN IP4_CONFIG_VARIABLE    *Variable,    OPTIONAL\r
+  IN IP4_CONFIG_VARIABLE    *Variable     OPTIONAL,\r
   IN NIC_ADDR               *NicAddr,\r
   IN NIC_IP4_CONFIG_INFO    *Config       OPTIONAL\r
   );\r
index a3966a95441330ebcf8422be804fdc5aad029d96..8c0c01cbbe1e2c7d99e1703f11b2dd127748f5e6 100644 (file)
@@ -1,22 +1,14 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+  \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
+which accompanies this distribution.  The full text of the license may be found at<BR>\r
 http://opensource.org/licenses/bsd-license.php\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  ComponentName.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -34,10 +26,10 @@ Abstract:
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -46,7 +38,7 @@ Abstract:
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -85,15 +77,15 @@ Ip4ComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -102,7 +94,7 @@ Ip4ComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -111,7 +103,7 @@ Ip4ComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
@@ -191,10 +183,10 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mIp4DriverNameTable[] = {
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -203,7 +195,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mIp4DriverNameTable[] = {
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -251,15 +243,15 @@ Ip4ComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -268,7 +260,7 @@ Ip4ComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -277,7 +269,7 @@ Ip4ComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
index 89a371400b872894b092f6f2f983a9da334f243a..1e01ef7bb048560abf63baf90ef1873532f86d95 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Common.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -26,8 +18,8 @@ Abstract:
   Return the cast type (Unicast/Boradcast) specific to an\r
   interface. All the addresses are host byte ordered.\r
 \r
-  @param  IpAddr                The IP address to classify in host byte order\r
-  @param  IpIf                  The interface that IpAddr received from\r
+  @param[in]  IpAddr                The IP address to classify in host byte order\r
+  @param[in]  IpIf                  The interface that IpAddr received from\r
 \r
   @return The cast type of this IP address specific to the interface.\r
   @retval IP4_LOCAL_HOST        The IpAddr equals to the interface's address\r
@@ -63,11 +55,11 @@ Ip4GetNetCast (
   This isn't the same as link layer cast type. For example, DHCP\r
   server may send local broadcast to the local unicast MAC.\r
 \r
-  @param  IpSb                  The IP4 service binding instance that received the\r
-                                packet\r
-  @param  Dst                   The destination address in the packet (host byte\r
-                                order)\r
-  @param  Src                   The source address in the packet (host byte order)\r
+  @param[in]  IpSb                  The IP4 service binding instance that received the\r
+                                    packet\r
+  @param[in]  Dst                   The destination address in the packet (host byte\r
+                                    order)\r
+  @param[in]  Src                   The source address in the packet (host byte order)\r
 \r
   @return The cast type for the Dst, it will return on the first non-promiscuous\r
           cast type to a configured interface. If the packet doesn't match any of\r
@@ -135,8 +127,8 @@ Ip4GetHostCast (
 /**\r
   Find an interface whose configured IP address is Ip.\r
 \r
-  @param  IpSb                  The IP4 service binding instance\r
-  @param  Ip                    The Ip address (host byte order) to find\r
+  @param[in]  IpSb                  The IP4 service binding instance\r
+  @param[in]  Ip                    The Ip address (host byte order) to find\r
 \r
   @return The IP4_INTERFACE point if found, otherwise NULL\r
 \r
@@ -165,8 +157,8 @@ Ip4FindInterface (
 /**\r
   Find an interface that Ip is on that connected network.\r
 \r
-  @param  IpSb                  The IP4 service binding instance\r
-  @param  Ip                    The Ip address (host byte order) to find\r
+  @param[in]  IpSb                  The IP4 service binding instance\r
+  @param[in]  Ip                    The Ip address (host byte order) to find\r
 \r
   @return The IP4_INTERFACE point if found, otherwise NULL\r
 \r
@@ -195,9 +187,9 @@ Ip4FindNet (
 /**\r
   Find an interface of the service with the same Ip/Netmask pair.\r
 \r
-  @param  IpSb                  Ip4 service binding instance\r
-  @param  Ip                    The Ip adress to find (host byte order)\r
-  @param  Netmask               The network to find (host byte order)\r
+  @param[in]  IpSb                  Ip4 service binding instance\r
+  @param[in]  Ip                    The Ip adress to find (host byte order)\r
+  @param[in]  Netmask               The network to find (host byte order)\r
 \r
   @return The IP4_INTERFACE point if found, otherwise NULL\r
 \r
@@ -229,9 +221,9 @@ Ip4FindStationAddress (
   Mnp's McastIpToMac to find the MAC address in stead of\r
   hard code the NIC to be Ethernet.\r
 \r
-  @param  Mnp                   The Mnp instance to get the MAC address.\r
-  @param  Multicast             The multicast IP address to translate.\r
-  @param  Mac                   The buffer to hold the translated address.\r
+  @param[in]  Mnp                   The Mnp instance to get the MAC address.\r
+  @param[in]  Multicast             The multicast IP address to translate.\r
+  @param[out] Mac                   The buffer to hold the translated address.\r
 \r
   @retval EFI_SUCCESS if the multicast IP is successfully translated to a\r
                       multicast MAC address.\r
@@ -257,7 +249,7 @@ Ip4GetMulticastMac (
   In spite of its name, it can also be used to convert from\r
   host to network byte order.\r
 \r
-  @param  Head                  The IP head to convert\r
+  @param[in]  Head                  The IP head to convert\r
 \r
   @return Point to the converted IP head\r
 \r
@@ -283,7 +275,7 @@ Ip4NtohHead (
   Save the list of all of the IPv4 addresses and subnet masks that are currently\r
   being used to volatile variable storage.\r
 \r
-  @param  IpSb                  Ip4 service binding instance\r
+  @param[in]  IpSb                  Ip4 service binding instance\r
 \r
   @retval EFI_SUCCESS           Successfully set variable.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources to set the variable.\r
@@ -402,9 +394,7 @@ ON_ERROR:
 /**\r
   Clear the variable and free the resource.\r
 \r
-  @param  IpSb                  Ip4 service binding instance\r
-\r
-  @return None.\r
+  @param[in]  IpSb                  Ip4 service binding instance\r
 \r
 **/\r
 VOID\r
index 553714e89b0851777029cdf89c65b2d8ff153af3..af01a03b007f4d2804832708ebf110978f38e81e 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  Common definition for IP4.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Common.h\r
-\r
-Abstract:\r
-\r
-  Common definition for IP4.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_COMMON_H__\r
@@ -90,8 +81,8 @@ typedef enum {
   Return the cast type (Unicast/Boradcast) specific to an\r
   interface. All the addresses are host byte ordered.\r
 \r
-  @param  IpAddr                The IP address to classify in host byte order\r
-  @param  IpIf                  The interface that IpAddr received from\r
+  @param[in]  IpAddr                The IP address to classify in host byte order\r
+  @param[in]  IpIf                  The interface that IpAddr received from\r
 \r
   @return The cast type of this IP address specific to the interface.\r
   @retval IP4_LOCAL_HOST        The IpAddr equals to the interface's address\r
@@ -112,11 +103,11 @@ Ip4GetNetCast (
   This isn't the same as link layer cast type. For example, DHCP\r
   server may send local broadcast to the local unicast MAC.\r
 \r
-  @param  IpSb                  The IP4 service binding instance that received the\r
-                                packet\r
-  @param  Dst                   The destination address in the packet (host byte\r
-                                order)\r
-  @param  Src                   The source address in the packet (host byte order)\r
+  @param[in]  IpSb                  The IP4 service binding instance that received the\r
+                                    packet\r
+  @param[in]  Dst                   The destination address in the packet (host byte\r
+                                    order)\r
+  @param[in]  Src                   The source address in the packet (host byte order)\r
 \r
   @return The cast type for the Dst, it will return on the first non-promiscuous\r
           cast type to a configured interface. If the packet doesn't match any of\r
@@ -133,8 +124,8 @@ Ip4GetHostCast (
 /**\r
   Find an interface whose configured IP address is Ip.\r
 \r
-  @param  IpSb                  The IP4 service binding instance\r
-  @param  Ip                    The Ip address (host byte order) to find\r
+  @param[in]  IpSb                  The IP4 service binding instance\r
+  @param[in]  Ip                    The Ip address (host byte order) to find\r
 \r
   @return The IP4_INTERFACE point if found, otherwise NULL\r
 \r
@@ -148,8 +139,8 @@ Ip4FindInterface (
 /**\r
   Find an interface that Ip is on that connected network.\r
 \r
-  @param  IpSb                  The IP4 service binding instance\r
-  @param  Ip                    The Ip address (host byte order) to find\r
+  @param[in]  IpSb                  The IP4 service binding instance\r
+  @param[in]  Ip                    The Ip address (host byte order) to find\r
 \r
   @return The IP4_INTERFACE point if found, otherwise NULL\r
 \r
@@ -163,9 +154,9 @@ Ip4FindNet (
 /**\r
   Find an interface of the service with the same Ip/Netmask pair.\r
 \r
-  @param  IpSb                  Ip4 service binding instance\r
-  @param  Ip                    The Ip adress to find (host byte order)\r
-  @param  Netmask               The network to find (host byte order)\r
+  @param[in]  IpSb                  Ip4 service binding instance\r
+  @param[in]  Ip                    The Ip adress to find (host byte order)\r
+  @param[in]  Netmask               The network to find (host byte order)\r
 \r
   @return The IP4_INTERFACE point if found, otherwise NULL\r
 \r
@@ -182,9 +173,9 @@ Ip4FindStationAddress (
   Mnp's McastIpToMac to find the MAC address in stead of\r
   hard code the NIC to be Ethernet.\r
 \r
-  @param  Mnp                   The Mnp instance to get the MAC address.\r
-  @param  Multicast             The multicast IP address to translate.\r
-  @param  Mac                   The buffer to hold the translated address.\r
+  @param[in]  Mnp                   The Mnp instance to get the MAC address.\r
+  @param[in]  Multicast             The multicast IP address to translate.\r
+  @param[out] Mac                   The buffer to hold the translated address.\r
 \r
   @retval EFI_SUCCESS if the multicast IP is successfully translated to a\r
                       multicast MAC address.\r
@@ -203,7 +194,7 @@ Ip4GetMulticastMac (
   In spite of its name, it can also be used to convert from\r
   host to network byte order.\r
 \r
-  @param  Head                  The IP head to convert\r
+  @param[in]  Head                  The IP head to convert\r
 \r
   @return Point to the converted IP head\r
 \r
@@ -219,7 +210,7 @@ Ip4NtohHead (
   Save the list of all of the IPv4 addresses and subnet masks that are currently\r
   being used to volatile variable storage.\r
 \r
-  @param  IpSb                  Ip4 service binding instance\r
+  @param[in]  IpSb                  Ip4 service binding instance\r
 \r
   @retval EFI_SUCCESS           Successfully set variable.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources to set the variable.\r
@@ -234,9 +225,7 @@ Ip4SetVariableData (
 /**\r
   Clear the variable and free the resource.\r
 \r
-  @param  IpSb                  Ip4 service binding instance\r
-\r
-  @return None.\r
+  @param[in]  IpSb                  Ip4 service binding instance\r
 \r
 **/\r
 VOID\r
index a43145e1627a186a4b8122fe076ef7d83bd68770..7a0f18af28c7684e3ab7b4f4fa045d83ec0f4e70 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  The driver binding and service binding protocol for IP4 driver.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Driver.c\r
-\r
-Abstract:\r
-\r
-  The driver binding and service binding protocol for IP4 driver.\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -39,8 +31,8 @@ EFI_DRIVER_BINDING_PROTOCOL gIp4DriverBinding = {
   The entry point for IP4 driver which install the driver\r
   binding and component name protocol on its image.\r
 \r
-  @param  ImageHandle           The firmware allocated handle for the UEFI image.\r
-  @param  SystemTable           A pointer to the EFI System Table.\r
+  @param[in]  ImageHandle           The firmware allocated handle for the UEFI image.\r
+  @param[in]  SystemTable           A pointer to the EFI System Table.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
@@ -71,10 +63,10 @@ Ip4DriverEntryPoint (
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -129,7 +121,7 @@ Ip4DriverBindingSupported (
   destroyed, it is marked as that in case the destory failed and\r
   being called again later.\r
 \r
-  @param  IpSb                   The IP4 serviceing binding instance to clean up\r
+  @param[in]  IpSb               The IP4 serviceing binding instance to clean up\r
 \r
   @retval EFI_SUCCESS            The resource used by the instance are cleaned up\r
   @retval other                  Failed to clean up some of the resources.\r
@@ -144,11 +136,11 @@ Ip4CleanService (
 /**\r
   Create a new IP4 driver service binding private instance.\r
 \r
-  @param  Controller             The controller that has MNP service binding\r
-                                 installed\r
-  @param  ImageHandle            The IP4 driver's image handle\r
-  @param  Service                The variable to receive the newly created IP4\r
-                                 service.\r
+  @param  Controller         The controller that has MNP service binding\r
+                             installed\r
+  @param  ImageHandle        The IP4 driver's image handle\r
+  @param  Service            The variable to receive the newly created IP4\r
+                             service.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate some resource\r
   @retval EFI_SUCCESS            A new IP4 service binding private is created.\r
@@ -318,7 +310,7 @@ ON_ERROR:
   destroyed, it is marked as that in case the destory failed and\r
   being called again later.\r
 \r
-  @param  IpSb                   The IP4 serviceing binding instance to clean up\r
+  @param[in]  IpSb               The IP4 serviceing binding instance to clean up\r
 \r
   @retval EFI_SUCCESS            The resource used by the instance are cleaned up\r
   @retval other                  Failed to clean up some of the resources.\r
@@ -405,10 +397,10 @@ Ip4CleanService (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -509,14 +501,14 @@ FREE_SERVICE:
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number\r
+                                of children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
-  @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
-  @retval other             This driver was not removed from this device\r
+  @retval EFI_SUCCESS           This driver is removed ControllerHandle\r
+  @retval other                 This driver was not removed from this device\r
 \r
 **/\r
 EFI_STATUS\r
@@ -743,14 +735,18 @@ ON_ERROR:
 \r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This        Protocol instance pointer.\r
-  @param  ChildHandle Pointer to the handle of the child to create.  If it is NULL,\r
-                      then a new handle is created.  If it is not NULL, then the\r
-                      I/O services are added to the existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The child handle was created with the I/O services\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
                                 the child\r
@@ -845,17 +841,20 @@ ON_ERROR:
 \r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
 \r
-  @param  This        Protocol instance pointer.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The I/O services were removed from the child handle\r
-  @retval EFI_UNSUPPORTED       The child handle does not support the I/O services\r
-                                that are being removed.\r
-  @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED     The child handle could not be destroyed because its\r
-                                I/O services are being used.\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
   @retval other                 The child handle was not destroyed\r
 \r
 **/\r
index 4d5cbe68f665aa7168f7297c0efa9353452856ae..a6e177887f9c8f19e6e48e1e24e45e32ad44a7e0 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Driver.h\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_DRIVER_H__\r
@@ -39,8 +31,8 @@ extern EFI_COMPONENT_NAME2_PROTOCOL  gIp4ComponentName2;
   The entry point for IP4 driver which install the driver\r
   binding and component name protocol on its image.\r
 \r
-  @param  ImageHandle           The firmware allocated handle for the UEFI image.\r
-  @param  SystemTable           A pointer to the EFI System Table.\r
+  @param[in]  ImageHandle           The firmware allocated handle for the UEFI image.\r
+  @param[in]  SystemTable           A pointer to the EFI System Table.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
@@ -64,10 +56,10 @@ Ip4DriverEntryPoint (
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -90,10 +82,10 @@ Ip4DriverBindingSupported (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -116,14 +108,14 @@ Ip4DriverBindingStart (
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number\r
+                                of children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
-  @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
-  @retval other             This driver was not removed from this device\r
+  @retval EFI_SUCCESS           This driver is removed ControllerHandle\r
+  @retval other                 This driver was not removed from this device\r
 \r
 **/\r
 EFI_STATUS\r
@@ -139,14 +131,18 @@ Ip4DriverBindingStop (
 // Function ptototypes for the ServiceBinding Prococol\r
 //\r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This        Protocol instance pointer.\r
-  @param  ChildHandle Pointer to the handle of the child to create.  If it is NULL,\r
-                      then a new handle is created.  If it is not NULL, then the\r
-                      I/O services are added to the existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The child handle was created with the I/O services\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
                                 the child\r
@@ -161,17 +157,20 @@ Ip4ServiceBindingCreateChild (
   );\r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
 \r
-  @param  This        Protocol instance pointer.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The I/O services were removed from the child handle\r
-  @retval EFI_UNSUPPORTED       The child handle does not support the I/O services\r
-                                that are being removed.\r
-  @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED     The child handle could not be destroyed because its\r
-                                I/O services are being used.\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
   @retval other                 The child handle was not destroyed\r
 \r
 **/\r
index 397296d03b15a7a28dbcbea9bb872a02e4d20c2c..757d7aadc06c0970a9fabe3a4b54c305527dea67 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Icmp.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -88,12 +80,12 @@ mIp4SupportedIcmp[23] = {
   message SHOULD be treated identically to a Host Redirect\r
   message;"\r
 \r
-  @param  IpSb                   The IP4 service binding instance that received the\r
-                                 packet\r
-  @param  Head                   The IP head of the received ICMPpacket.\r
-  @param  Packet                 The content of the ICMP redirect packet with IP\r
+  @param[in]  IpSb               The IP4 service binding instance that received \r
+                                 the packet.\r
+  @param[in]  Head               The IP head of the received ICMPpacket.\r
+  @param[in]  Packet             The content of the ICMP redirect packet with IP\r
                                  head removed.\r
-  @param  Icmp                   The buffer to store the ICMP error message if\r
+  @param[in]  Icmp               The buffer to store the ICMP error message if\r
                                  something is wrong.\r
 \r
   @retval EFI_INVALID_PARAMETER  The parameter is invalid\r
@@ -166,9 +158,9 @@ Ip4ProcessIcmpRedirect (
   update call Ip4ProcessIcmpRedirect to update the IP instance's\r
   route cache, otherwise, deliver the packet to upper layer.\r
 \r
-  @param  IpSb                   The IP service that received the packet.\r
-  @param  Head                   The IP head of the ICMP error packet\r
-  @param  Packet                 The content of the ICMP error with IP head\r
+  @param[in]  IpSb               The IP service that received the packet.\r
+  @param[in]  Head               The IP head of the ICMP error packet\r
+  @param[in]  Packet             The content of the ICMP error with IP head\r
                                  removed.\r
 \r
   @retval EFI_SUCCESS            The ICMP error is processed successfully.\r
@@ -208,9 +200,9 @@ Ip4ProcessIcmpError (
 /**\r
   Replay an ICMP echo request.\r
 \r
-  @param  IpSb                   The IP service that receivd the packet\r
-  @param  Head                   The IP head of the ICMP error packet\r
-  @param  Packet                 The content of the ICMP error with IP head\r
+  @param[in]  IpSb               The IP service that receivd the packet\r
+  @param[in]  Head               The IP head of the ICMP error packet\r
+  @param[in]  Packet             The content of the ICMP error with IP head\r
                                  removed.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resource.\r
@@ -285,9 +277,9 @@ ON_EXIT:
   Process the ICMP query message. If it is an ICMP echo\r
   request, answer it. Otherwise deliver it to upper layer.\r
 \r
-  @param  IpSb                   The IP service that receivd the packet\r
-  @param  Head                   The IP head of the ICMP query packet\r
-  @param  Packet                 The content of the ICMP query with IP head\r
+  @param[in]  IpSb               The IP service that receivd the packet\r
+  @param[in]  Head               The IP head of the ICMP query packet\r
+  @param[in]  Packet             The content of the ICMP query with IP head\r
                                  removed.\r
 \r
   @retval EFI_INVALID_PARAMETER  The packet is invalid\r
@@ -324,9 +316,9 @@ Ip4ProcessIcmpQuery (
   then according to the message types, process it as query or\r
   error packet.\r
 \r
-  @param  IpSb                   The IP service that receivd the packet\r
-  @param  Head                   The IP head of the ICMP query packet\r
-  @param  Packet                 The content of the ICMP query with IP head\r
+  @param[in]  IpSb               The IP service that receivd the packet\r
+  @param[in]  Head               The IP head of the ICMP query packet\r
+  @param[in]  Packet             The content of the ICMP query with IP head\r
                                  removed.\r
 \r
   @retval EFI_INVALID_PARAMETER  The packet is malformated.\r
index 5b7b1a67b3e7742d2b046dab35d5651f9dd2c3b4..f9db6a3da4fd78f750b48cd9616d6edc4e1a3708 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  Header file for ICMP protocol.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Icmp.h\r
-\r
-Abstract:\r
-\r
-  Header file for ICMP protocol.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_ICMP_H__\r
@@ -95,9 +86,9 @@ extern EFI_IP4_ICMP_TYPE  mIp4SupportedIcmp[];
   then according to the message types, process it as query or\r
   error packet.\r
 \r
-  @param  IpSb                   The IP service that receivd the packet\r
-  @param  Head                   The IP head of the ICMP query packet\r
-  @param  Packet                 The content of the ICMP query with IP head\r
+  @param[in]  IpSb               The IP service that receivd the packet\r
+  @param[in]  Head               The IP head of the ICMP query packet\r
+  @param[in]  Packet             The content of the ICMP query with IP head\r
                                  removed.\r
 \r
   @retval EFI_INVALID_PARAMETER  The packet is malformated.\r
index 1a47fa947884bcce6f73358fb0de840238d089c8..d5a46082277a1a0f01340fa40b98bb427345ccdc 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+  Implement IP4 pesudo interface.\r
+  \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4If.c\r
-\r
-Abstract:\r
-\r
-  Implement IP4 pesudo interface.\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -33,9 +24,7 @@ EFI_MAC_ADDRESS  mZeroMacAddress;
   Callback funtion when frame transmission is finished. It will\r
   call the frame owner's callback function to tell it the result.\r
 \r
-  @param  Context               Context which is point to the token.\r
-\r
-  @return None.\r
+  @param[in]  Context            Context which is point to the token.\r
 \r
 **/\r
 VOID\r
@@ -47,10 +36,8 @@ Ip4OnFrameSentDpc (
 /**\r
   Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK.\r
 \r
-  @param  Event                 The transmit token's event.\r
-  @param  Context               Context which is point to the token.\r
-\r
-  @return None\r
+  @param[in]  Event              The transmit token's event.\r
+  @param[in]  Context            Context which is point to the token.\r
 \r
 **/\r
 VOID\r
@@ -65,11 +52,9 @@ Ip4OnFrameSent (
   all the queued frame if the ARP requests failed. Or transmit them\r
   if the request succeed.\r
 \r
-  @param  Context               The context of the callback, a point to the ARP\r
+  @param[in]  Context           The context of the callback, a point to the ARP\r
                                 queue\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -80,12 +65,10 @@ Ip4OnArpResolvedDpc (
 /**\r
   Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK.\r
 \r
-  @param  Event                 The Arp request event.\r
-  @param  Context               The context of the callback, a point to the ARP\r
-                                queue.\r
-\r
-  @return None\r
-\r
+  @param  Event             The Arp request event.\r
+  @param  Context           The context of the callback, a point to the ARP\r
+                            queue.\r
+                                \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -104,8 +87,6 @@ Ip4OnArpResolved (
 \r
   @param  Context               Context for the callback.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -114,13 +95,10 @@ Ip4OnFrameReceivedDpc (
   );\r
 \r
 /**\r
-\r
   Request Ip4OnFrameReceivedDpc as a DPC at TPL_CALLBACK.\r
 \r
   @param Event      The receive event delivered to MNP for receive.\r
   @param Context    Context for the callback.\r
-  \r
-  @return None.\r
 \r
 **/\r
 VOID\r
@@ -134,13 +112,11 @@ Ip4OnFrameReceived (
   Remove all the frames on the ARP queue that pass the FrameToCancel,\r
   that is, either FrameToCancel is NULL or it returns true for the frame.\r
 \r
-  @param  ArpQue                ARP frame to remove the frames from.\r
-  @param  IoStatus              The status returned to the cancelled frames'\r
+  @param[in]  ArpQue            ARP frame to remove the frames from.\r
+  @param[in]  IoStatus          The status returned to the cancelled frames'\r
                                 callback function.\r
-  @param  FrameToCancel         Function to select which frame to cancel.\r
-  @param  Context               Opaque parameter to the FrameToCancel.\r
-\r
-  @return NONE\r
+  @param[in]  FrameToCancel     Function to select which frame to cancel.\r
+  @param[in]  Context           Opaque parameter to the FrameToCancel.\r
 \r
 **/\r
 VOID\r
@@ -155,15 +131,16 @@ Ip4CancelFrameArp (
 /**\r
   Wrap a transmit request into a newly allocated IP4_LINK_TX_TOKEN.\r
 \r
-  @param  Interface             The interface to send out to.\r
-  @param  IpInstance            The IpInstance that transmit the packet.  NULL if\r
+  @param[in]  Interface         The interface to send out to.\r
+  @param[in]  IpInstance        The IpInstance that transmit the packet.  NULL if\r
                                 the packet is sent by the IP4 driver itself.\r
-  @param  Packet                The packet to transmit\r
-  @param  CallBack              Call back function to execute if transmission\r
+  @param[in]  Packet            The packet to transmit\r
+  @param[in]  CallBack          Call back function to execute if transmission\r
                                 finished.\r
-  @param  Context               Opaque parameter to the call back.\r
+  @param[in]  Context           Opaque parameter to the call back.\r
 \r
-  @return The wrapped token if succeed or NULL\r
+  @retval   Token               The wrapped token if succeed \r
+  @retval   NULL                The wrapped token if NULL\r
 \r
 **/\r
 IP4_LINK_TX_TOKEN *\r
@@ -237,9 +214,7 @@ Ip4WrapLinkTxToken (
   Free the link layer transmit token. It will close the event\r
   then free the memory used.\r
 \r
-  @param  Token                 Token to free\r
-\r
-  @return NONE\r
+  @param[in]  Token                 Token to free\r
 \r
 **/\r
 VOID\r
@@ -257,8 +232,8 @@ Ip4FreeLinkTxToken (
 /**\r
   Create an IP_ARP_QUE structure to request ARP service.\r
 \r
-  @param  Interface             The interface to send ARP from.\r
-  @param  DestIp                The destination IP (host byte order) to request MAC\r
+  @param[in]  Interface         The interface to send ARP from.\r
+  @param[in]  DestIp            The destination IP (host byte order) to request MAC\r
                                 for\r
 \r
   @return Point to newly created IP4_ARP_QUE if succeed, otherwise NULL.\r
@@ -308,12 +283,10 @@ Ip4CreateArpQue (
 /**\r
   Remove all the transmit requests queued on the ARP queue, then free it.\r
 \r
-  @param  ArpQue                Arp queue to free\r
-  @param  IoStatus              The transmit status returned to transmit requests'\r
+  @param[in]  ArpQue            Arp queue to free\r
+  @param[in]  IoStatus          The transmit status returned to transmit requests'\r
                                 callback.\r
 \r
-  @return NONE\r
-\r
 **/\r
 VOID\r
 Ip4FreeArpQue (\r
@@ -336,11 +309,11 @@ Ip4FreeArpQue (
 /**\r
   Create a link layer receive token to wrap the receive request\r
 \r
-  @param  Interface             The interface to receive from\r
-  @param  IpInstance            The instance that request the receive (NULL for IP4\r
+  @param[in]  Interface         The interface to receive from\r
+  @param[in]  IpInstance        The instance that request the receive (NULL for IP4\r
                                 driver itself)\r
-  @param  CallBack              Call back function to execute when finished.\r
-  @param  Context               Opaque parameters to the callback\r
+  @param[in]  CallBack          Call back function to execute when finished.\r
+  @param[in]  Context           Opaque parameters to the callback\r
 \r
   @return Point to created IP4_LINK_RX_TOKEN if succeed, otherwise NULL.\r
 \r
@@ -393,9 +366,7 @@ Ip4CreateLinkRxToken (
   Free the link layer request token. It will close the event\r
   then free the memory used.\r
 \r
-  @param  Token                 Request token to free\r
-\r
-  @return NONE\r
+  @param[in]  Token                 Request token to free.\r
 \r
 **/\r
 VOID\r
@@ -415,13 +386,11 @@ Ip4FreeFrameRxToken (
   Remove all the frames on the ARP queue that pass the FrameToCancel,\r
   that is, either FrameToCancel is NULL or it returns true for the frame.\r
 \r
-  @param  ArpQue                ARP frame to remove the frames from.\r
-  @param  IoStatus              The status returned to the cancelled frames'\r
+  @param[in]  ArpQue            ARP frame to remove the frames from.\r
+  @param[in]  IoStatus          The status returned to the cancelled frames'\r
                                 callback function.\r
-  @param  FrameToCancel         Function to select which frame to cancel.\r
-  @param  Context               Opaque parameter to the FrameToCancel.\r
-\r
-  @return NONE\r
+  @param[in]  FrameToCancel     Function to select which frame to cancel.\r
+  @param[in]  Context           Opaque parameter to the FrameToCancel.\r
 \r
 **/\r
 VOID\r
@@ -454,14 +423,12 @@ Ip4CancelFrameArp (
   either queued on ARP queues or that have already been delivered to\r
   MNP and not yet recycled.\r
 \r
-  @param  Interface             Interface to remove the frames from\r
-  @param  IoStatus              The transmit status returned to the frames'\r
+  @param[in]  Interface         Interface to remove the frames from\r
+  @param[in]  IoStatus          The transmit status returned to the frames'\r
                                 callback\r
-  @param  FrameToCancel         Function to select the frame to cancel, NULL to\r
+  @param[in]  FrameToCancel     Function to select the frame to cancel, NULL to\r
                                 select all\r
-  @param  Context               Opaque parameters passed to FrameToCancel\r
-\r
-  @return NONE\r
+  @param[in]  Context           Opaque parameters passed to FrameToCancel\r
 \r
 **/\r
 VOID\r
@@ -508,11 +475,11 @@ Ip4CancelFrames (
   Create an IP4_INTERFACE. Delay the creation of ARP instance until\r
   the interface is configured.\r
 \r
-  @param  Mnp                   The shared MNP child of this IP4 service binding\r
+  @param[in]  Mnp               The shared MNP child of this IP4 service binding\r
                                 instance\r
-  @param  Controller            The controller this IP4 service binding instance\r
+  @param[in]  Controller        The controller this IP4 service binding instance\r
                                 is installed. Most like the UNDI handle.\r
-  @param  ImageHandle           This driver's image handle\r
+  @param[in]  ImageHandle       This driver's image handle\r
 \r
   @return Point to the created IP4_INTERFACE, otherwise NULL.\r
 \r
@@ -575,9 +542,9 @@ Ip4CreateInterface (
   Set the interface's address, create and configure\r
   the ARP child if necessary.\r
 \r
-  @param  Interface             The interface to set the address\r
-  @param  IpAddr                The interface's IP address\r
-  @param  SubnetMask            The interface's netmask\r
+  @param  Interface         The interface to set the address\r
+  @param  IpAddr            The interface's IP address\r
+  @param  SubnetMask        The interface's netmask\r
 \r
   @retval EFI_SUCCESS           The interface is configured with Ip/netmask pair,\r
                                 and a ARP is created for it.\r
@@ -690,8 +657,8 @@ ON_ERROR:
 /**\r
   Filter function to cancel all the frame related to an IP instance.\r
 \r
-  @param  Frame                 The transmit request to test whether to cancel\r
-  @param  Context               The context which is the Ip instance that issued\r
+  @param[in]  Frame             The transmit request to test whether to cancel\r
+  @param[in]  Context           The context which is the Ip instance that issued\r
                                 the transmit.\r
 \r
   @retval TRUE                  The frame belongs to this instance and is to be\r
@@ -723,9 +690,7 @@ Ip4CancelInstanceFrame (
   packet and update the upper layer's transmit request status, say\r
   that from the UDP.\r
 \r
-  @param  Interface             The interface used by the IpInstance\r
-\r
-  @return None\r
+  @param[in]  Interface         The interface used by the IpInstance\r
 \r
 **/\r
 VOID\r
@@ -754,8 +719,8 @@ Ip4CancelReceive (
   Because the IpInstance is optional, the caller must remove\r
   IpInstance from the interface's instance list itself.\r
 \r
-  @param  Interface             The interface used by the IpInstance\r
-  @param  IpInstance            The Ip instance that free the interface. NULL if\r
+  @param[in]  Interface         The interface used by the IpInstance\r
+  @param[in]  IpInstance        The Ip instance that free the interface. NULL if\r
                                 the Ip driver is releasing the default interface.\r
 \r
   @retval EFI_SUCCESS           The interface use IpInstance is freed.\r
@@ -820,11 +785,9 @@ Ip4FreeInterface (
   all the queued frame if the ARP requests failed. Or transmit them\r
   if the request succeed.\r
 \r
-  @param  Context               The context of the callback, a point to the ARP\r
+  @param[in]  Context           The context of the callback, a point to the ARP\r
                                 queue\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -893,12 +856,10 @@ Ip4OnArpResolvedDpc (
 /**\r
   Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK.\r
 \r
-  @param  Event                 The Arp request event.\r
-  @param  Context               The context of the callback, a point to the ARP\r
-                                queue.\r
-\r
-  @return None\r
-\r
+  @param  Event             The Arp request event.\r
+  @param  Context           The context of the callback, a point to the ARP\r
+                            queue.\r
+                                \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -919,9 +880,7 @@ Ip4OnArpResolved (
   Callback funtion when frame transmission is finished. It will\r
   call the frame owner's callback function to tell it the result.\r
 \r
-  @param  Context               Context which is point to the token.\r
-\r
-  @return None.\r
+  @param[in]  Context            Context which is point to the token.\r
 \r
 **/\r
 VOID\r
@@ -951,10 +910,8 @@ Ip4OnFrameSentDpc (
 /**\r
   Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK.\r
 \r
-  @param  Event                 The transmit token's event.\r
-  @param  Context               Context which is point to the token.\r
-\r
-  @return None\r
+  @param[in]  Event              The transmit token's event.\r
+  @param[in]  Context            Context which is point to the token.\r
 \r
 **/\r
 VOID\r
@@ -979,14 +936,14 @@ Ip4OnFrameSent (
   If some error happened, the CallBack won't be called. So, the caller\r
   must test the return value, and take action when there is an error.\r
 \r
-  @param  Interface             The interface to send the frame from\r
-  @param  IpInstance            The IP child that request the transmission.  NULL\r
+  @param[in]  Interface         The interface to send the frame from\r
+  @param[in]  IpInstance        The IP child that request the transmission.  NULL\r
                                 if it is the IP4 driver itself.\r
-  @param  Packet                The packet to transmit.\r
-  @param  NextHop               The immediate destination to transmit the packet\r
+  @param[in]  Packet            The packet to transmit.\r
+  @param[in]  NextHop           The immediate destination to transmit the packet\r
                                 to.\r
-  @param  CallBack              Function to call back when transmit finished.\r
-  @param  Context               Opaque parameter to the call back.\r
+  @param[in]  CallBack          Function to call back when transmit finished.\r
+  @param[in]  Context           Opaque parameter to the call back.\r
 \r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource to send the frame\r
   @retval EFI_NO_MAPPING        Can't resolve the MAC for the nexthop\r
@@ -1127,9 +1084,7 @@ ON_ERROR:
   Call back function when the received packet is freed.\r
   Check Ip4OnFrameReceived for information.\r
 \r
-  @param  Context               Context, which is the IP4_LINK_RX_TOKEN.\r
-\r
-  @return None.\r
+  @param  Context          Context, which is the IP4_LINK_RX_TOKEN.\r
 \r
 **/\r
 VOID\r
@@ -1157,8 +1112,6 @@ Ip4RecycleFrame (
 \r
   @param  Context               Context for the callback.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -1218,13 +1171,10 @@ Ip4OnFrameReceivedDpc (
 }\r
 \r
 /**\r
-\r
   Request Ip4OnFrameReceivedDpc as a DPC at TPL_CALLBACK.\r
 \r
   @param Event      The receive event delivered to MNP for receive.\r
   @param Context    Context for the callback.\r
-  \r
-  @return None.\r
 \r
 **/\r
 VOID\r
@@ -1244,11 +1194,11 @@ Ip4OnFrameReceived (
 /**\r
   Request to receive the packet from the interface.\r
 \r
-  @param  Interface             The interface to receive the frames from\r
-  @param  IpInstance            The instance that requests the receive. NULL for\r
+  @param[in]  Interface         The interface to receive the frames from\r
+  @param[in]  IpInstance        The instance that requests the receive. NULL for\r
                                 the driver itself.\r
-  @param  CallBack              Function to call when receive finished.\r
-  @param  Context               Opaque parameter to the callback\r
+  @param[in]  CallBack          Function to call when receive finished.\r
+  @param[in]  Context           Opaque parameter to the callback\r
 \r
   @retval EFI_ALREADY_STARTED   There is already a pending receive request.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource to receive\r
index e32764d80b858bef612c3d2fab934bbea280a1d0..35c1380388657f150bf7fa0d2fceaacce528bb1b 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  Definition for IP4 pesudo interface structure.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4If.h\r
-\r
-Abstract:\r
-\r
-  Definition for IP4 pesudo interface structure.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_IF_H__\r
@@ -40,24 +31,24 @@ typedef enum {
   When transmitting, the Netbuf is from IP4, and provided\r
   to the callback as a reference. Flag isn't used.\r
 \r
-  @param IpInstance The instance that sent or received the packet.\r
-                    IpInstance can be NULL which means that it is the IP4 driver\r
-                    itself sending the packets. IP4 driver may send packets that\r
-                    don't belong to any instance, such as ICMP errors, ICMP echo\r
-                    responses, or IGMP packets. IpInstance is used as a tag in\r
-                    this module.\r
-  @param Packet     The sent or received packet.\r
-  @param IoStatus   Status of sending or receiving.\r
-  @param LinkFlag   Indicate if the frame is received as link broadcast/multicast.\r
-                    When transmitting, it is not used.\r
-  @param Context    Additional data for callback.\r
-\r
-  @return None.\r
+  @param[in] IpInstance The instance that sent or received the packet.\r
+                        IpInstance can be NULL which means that it is the IP4 driver\r
+                        itself sending the packets. IP4 driver may send packets that\r
+                        don't belong to any instance, such as ICMP errors, ICMP echo\r
+                        responses, or IGMP packets. IpInstance is used as a tag in\r
+                        this module.\r
+  @param[in] Packet     The sent or received packet.\r
+  @param[in] IoStatus   Status of sending or receiving.\r
+  @param[in] LinkFlag   Indicate if the frame is received as link broadcast/multicast.\r
+                        When transmitting, it is not used.\r
+  @param[in] Context    Additional data for callback.\r
+\r
+  @retval None.\r
 **/\r
 typedef\r
 VOID\r
 (*IP4_FRAME_CALLBACK)(\r
-  IN IP4_PROTOCOL              *IpInstance,       OPTIONAL\r
+  IN IP4_PROTOCOL              *IpInstance       OPTIONAL,\r
   IN NET_BUF                   *Packet,\r
   IN EFI_STATUS                IoStatus,\r
   IN UINT32                    LinkFlag,\r
@@ -202,11 +193,11 @@ struct _IP4_INTERFACE {
   Create an IP4_INTERFACE. Delay the creation of ARP instance until\r
   the interface is configured.\r
 \r
-  @param  Mnp                   The shared MNP child of this IP4 service binding\r
+  @param[in]  Mnp               The shared MNP child of this IP4 service binding\r
                                 instance\r
-  @param  Controller            The controller this IP4 service binding instance\r
+  @param[in]  Controller        The controller this IP4 service binding instance\r
                                 is installed. Most like the UNDI handle.\r
-  @param  ImageHandle           This driver's image handle\r
+  @param[in]  ImageHandle       This driver's image handle\r
 \r
   @return Point to the created IP4_INTERFACE, otherwise NULL.\r
 \r
@@ -222,9 +213,9 @@ Ip4CreateInterface (
   Set the interface's address, create and configure\r
   the ARP child if necessary.\r
 \r
-  @param  Interface             The interface to set the address\r
-  @param  IpAddr                The interface's IP address\r
-  @param  SubnetMask            The interface's netmask\r
+  @param  Interface         The interface to set the address\r
+  @param  IpAddr            The interface's IP address\r
+  @param  SubnetMask        The interface's netmask\r
 \r
   @retval EFI_SUCCESS           The interface is configured with Ip/netmask pair,\r
                                 and a ARP is created for it.\r
@@ -245,8 +236,8 @@ Ip4SetAddress (
   Because the IpInstance is optional, the caller must remove\r
   IpInstance from the interface's instance list itself.\r
 \r
-  @param  Interface             The interface used by the IpInstance\r
-  @param  IpInstance            The Ip instance that free the interface. NULL if\r
+  @param[in]  Interface         The interface used by the IpInstance\r
+  @param[in]  IpInstance        The Ip instance that free the interface. NULL if\r
                                 the Ip driver is releasing the default interface.\r
 \r
   @retval EFI_SUCCESS           The interface use IpInstance is freed.\r
@@ -265,14 +256,14 @@ Ip4FreeInterface (
   If some error happened, the CallBack won't be called. So, the caller\r
   must test the return value, and take action when there is an error.\r
 \r
-  @param  Interface             The interface to send the frame from\r
-  @param  IpInstance            The IP child that request the transmission.  NULL\r
+  @param[in]  Interface         The interface to send the frame from\r
+  @param[in]  IpInstance        The IP child that request the transmission.  NULL\r
                                 if it is the IP4 driver itself.\r
-  @param  Packet                The packet to transmit.\r
-  @param  NextHop               The immediate destination to transmit the packet\r
+  @param[in]  Packet            The packet to transmit.\r
+  @param[in]  NextHop           The immediate destination to transmit the packet\r
                                 to.\r
-  @param  CallBack              Function to call back when transmit finished.\r
-  @param  Context               Opaque parameter to the call back.\r
+  @param[in]  CallBack          Function to call back when transmit finished.\r
+  @param[in]  Context           Opaque parameter to the call back.\r
 \r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource to send the frame\r
   @retval EFI_NO_MAPPING        Can't resolve the MAC for the nexthop\r
@@ -295,14 +286,12 @@ Ip4SendFrame (
   either queued on ARP queues or that have already been delivered to\r
   MNP and not yet recycled.\r
 \r
-  @param  Interface             Interface to remove the frames from\r
-  @param  IoStatus              The transmit status returned to the frames'\r
+  @param[in]  Interface         Interface to remove the frames from\r
+  @param[in]  IoStatus          The transmit status returned to the frames'\r
                                 callback\r
-  @param  FrameToCancel         Function to select the frame to cancel, NULL to\r
+  @param[in]  FrameToCancel     Function to select the frame to cancel, NULL to\r
                                 select all\r
-  @param  Context               Opaque parameters passed to FrameToCancel\r
-\r
-  @return NONE\r
+  @param[in]  Context           Opaque parameters passed to FrameToCancel\r
 \r
 **/\r
 VOID\r
@@ -322,9 +311,7 @@ Ip4CancelFrames (
   packet and update the upper layer's transmit request status, say\r
   that from the UDP.\r
 \r
-  @param  Interface             The interface used by the IpInstance\r
-\r
-  @return None\r
+  @param[in]  Interface         The interface used by the IpInstance\r
 \r
 **/\r
 VOID\r
@@ -335,11 +322,11 @@ Ip4CancelReceive (
 /**\r
   Request to receive the packet from the interface.\r
 \r
-  @param  Interface             The interface to receive the frames from\r
-  @param  IpInstance            The instance that requests the receive. NULL for\r
+  @param[in]  Interface         The interface to receive the frames from\r
+  @param[in]  IpInstance        The instance that requests the receive. NULL for\r
                                 the driver itself.\r
-  @param  CallBack              Function to call when receive finished.\r
-  @param  Context               Opaque parameter to the callback\r
+  @param[in]  CallBack          Function to call when receive finished.\r
+  @param[in]  Context           Opaque parameter to the callback\r
 \r
   @retval EFI_ALREADY_STARTED   There is already a pending receive request.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource to receive\r
index 029b365eac78c411b6989c11ab1b4e4d9ade4727..9b201c2eae618b7bfb6604fb5e30e5330088bf70 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  This file implements the RFC2236: IGMP v2.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Igmp.c\r
-\r
-Abstract:\r
-\r
-  This file implements the RFC2236: IGMP v2\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -34,7 +25,7 @@ UINT32  mRouteAlertOption = 0x00000494;
   Init the IGMP control data of the IP4 service instance, configure\r
   MNP to receive ALL SYSTEM multicast.\r
 \r
-  @param  IpSb                   The IP4 service whose IGMP is to be initialized.\r
+  @param[in, out]  IpSb          The IP4 service whose IGMP is to be initialized.\r
 \r
   @retval EFI_SUCCESS            IGMP of the IpSb is successfully initialized.\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resource to initialize IGMP.\r
@@ -94,8 +85,8 @@ ON_ERROR:
   Find the IGMP_GROUP structure which contains the status of multicast\r
   group Address in this IGMP control block\r
 \r
-  @param  IgmpCtrl               The IGMP control block to search from\r
-  @param  Address                The multicast address to search\r
+  @param[in]  IgmpCtrl               The IGMP control block to search from\r
+  @param[in]  Address                The multicast address to search\r
 \r
   @return NULL if the multicast address isn't in the IGMP control block. Otherwise\r
           the point to the IGMP_GROUP which contains the status of multicast group\r
@@ -128,8 +119,8 @@ Ip4FindGroup (
   same MAC address. Several IP4 multicast address may be mapped to\r
   the same MAC address.\r
 \r
-  @param  IgmpCtrl               The IGMP control block to search in\r
-  @param  Mac                    The MAC address to search\r
+  @param[in]  IgmpCtrl               The IGMP control block to search in\r
+  @param[in]  Mac                    The MAC address to search\r
 \r
   @return The number of the IP4 multicast group that mapped to the same\r
           multicast group Mac.\r
@@ -162,12 +153,12 @@ Ip4FindMac (
 /**\r
   Send an IGMP protocol message to the Dst, such as IGMP v1 membership report.\r
 \r
-  @param  IpSb                   The IP4 service instance that requests the\r
+  @param[in]  IpSb               The IP4 service instance that requests the\r
                                  transmission\r
-  @param  Dst                    The destinaton to send to\r
-  @param  Type                   The IGMP message type, such as IGMP v1 membership\r
+  @param[in]  Dst                The destinaton to send to\r
+  @param[in]  Type               The IGMP message type, such as IGMP v1 membership\r
                                  report\r
-  @param  Group                  The group address in the IGMP message head.\r
+  @param[in]  Group              The group address in the IGMP message head.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to build the message\r
   @retval EFI_SUCCESS            The IGMP message is successfully send\r
@@ -233,9 +224,9 @@ Ip4SendIgmpMessage (
   Send an IGMP membership report. Depends on whether the server is\r
   v1 or v2, it will send either a V1 or V2 membership report.\r
 \r
-  @param  IpSb                   The IP4 service instance that requests the\r
+  @param[in]  IpSb               The IP4 service instance that requests the\r
                                  transmission.\r
-  @param  Group                  The group address to report\r
+  @param[in]  Group              The group address to report\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to build the message\r
   @retval EFI_SUCCESS            The IGMP report message is successfully send\r
@@ -259,8 +250,8 @@ Ip4SendIgmpReport (
 /**\r
   Join the multicast group on behalf of this IP4 child\r
 \r
-  @param  IpInstance             The IP4 child that wants to join the group\r
-  @param  Address                The group to join\r
+  @param[in]  IpInstance         The IP4 child that wants to join the group\r
+  @param[in]  Address            The group to join\r
 \r
   @retval EFI_SUCCESS            Successfully join the multicast group\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resources\r
@@ -339,9 +330,9 @@ ON_ERROR:
 /**\r
   Leave the IP4 multicast group on behalf of IpInstance.\r
 \r
-  @param  IpInstance             The IP4 child that wants to leave the group\r
+  @param[in]  IpInstance         The IP4 child that wants to leave the group\r
                                  address\r
-  @param  Address                The group address to leave\r
+  @param[in]  Address            The group address to leave\r
 \r
   @retval EFI_NOT_FOUND          The IP4 service instance isn't in the group\r
   @retval EFI_SUCCESS            Successfully leave the multicast group.\r
@@ -409,9 +400,9 @@ Ip4LeaveGroup (
 /**\r
   Handle the received IGMP message for the IP4 service instance.\r
 \r
-  @param  IpSb                   The IP4 service instance that received the message\r
-  @param  Head                   The IP4 header of the received message\r
-  @param  Packet                 The IGMP message, without IP4 header\r
+  @param[in]  IpSb               The IP4 service instance that received the message\r
+  @param[in]  Head               The IP4 header of the received message\r
+  @param[in]  Packet             The IGMP message, without IP4 header\r
 \r
   @retval EFI_INVALID_PARAMETER  The IGMP message is malformated.\r
   @retval EFI_SUCCESS            The IGMP message is successfully processed.\r
@@ -515,9 +506,7 @@ Ip4IgmpHandle (
   2. Decrease the report timer for each IGMP group in "delaying\r
      member" state.\r
 \r
-  @param  IpSb                   The IP4 service instance that is ticking\r
-\r
-  @return None\r
+  @param[in]  IpSb                   The IP4 service instance that is ticking\r
 \r
 **/\r
 VOID\r
@@ -561,9 +550,9 @@ Ip4IgmpTicking (
   assume the byte order of the both Source and Addr, the\r
   network byte order is used by the caller.\r
 \r
-  @param  Source                 The array of group addresses to add to\r
-  @param  Count                  The number of group addresses in the Source\r
-  @param  Addr                   The IP4 multicast address to add\r
+  @param[in]  Source                 The array of group addresses to add to\r
+  @param[in]  Count                  The number of group addresses in the Source\r
+  @param[in]  Addr                   The IP4 multicast address to add\r
 \r
   @return NULL if failed to allocate memory for the new groups,\r
           otherwise the new combined group addresses.\r
@@ -597,9 +586,9 @@ Ip4CombineGroups (
   both Groups and Addr, the network byte order is used by\r
   the caller.\r
 \r
-  @param  Groups                 The array of group addresses to remove from\r
-  @param  Count                  The number of group addresses in the Groups\r
-  @param  Addr                   The IP4 multicast address to remove\r
+  @param  Groups            The array of group addresses to remove from\r
+  @param  Count             The number of group addresses in the Groups\r
+  @param  Addr              The IP4 multicast address to remove\r
 \r
   @return The nubmer of group addresses in the Groups after remove.\r
           It is Count if the Addr isn't in the Groups.\r
index 7dd75740e7f30b2b4733810d2ed19e3f981cdad2..b82d3cc3ea591e11adc7ee86e835f793dd4cae3f 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Igmp.h\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_IGMP_H__\r
@@ -73,7 +65,7 @@ typedef enum {
   Init the IGMP control data of the IP4 service instance, configure\r
   MNP to receive ALL SYSTEM multicast.\r
 \r
-  @param  IpSb                   The IP4 service whose IGMP is to be initialized.\r
+  @param[in, out]  IpSb          The IP4 service whose IGMP is to be initialized.\r
 \r
   @retval EFI_SUCCESS            IGMP of the IpSb is successfully initialized.\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resource to initialize IGMP.\r
@@ -88,8 +80,8 @@ Ip4InitIgmp (
 /**\r
   Join the multicast group on behalf of this IP4 child\r
 \r
-  @param  IpInstance             The IP4 child that wants to join the group\r
-  @param  Address                The group to join\r
+  @param[in]  IpInstance         The IP4 child that wants to join the group\r
+  @param[in]  Address            The group to join\r
 \r
   @retval EFI_SUCCESS            Successfully join the multicast group\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resources\r
@@ -105,9 +97,9 @@ Ip4JoinGroup (
 /**\r
   Leave the IP4 multicast group on behalf of IpInstance.\r
 \r
-  @param  IpInstance             The IP4 child that wants to leave the group\r
+  @param[in]  IpInstance         The IP4 child that wants to leave the group\r
                                  address\r
-  @param  Address                The group address to leave\r
+  @param[in]  Address            The group address to leave\r
 \r
   @retval EFI_NOT_FOUND          The IP4 service instance isn't in the group\r
   @retval EFI_SUCCESS            Successfully leave the multicast group.\r
@@ -123,9 +115,9 @@ Ip4LeaveGroup (
 /**\r
   Handle the received IGMP message for the IP4 service instance.\r
 \r
-  @param  IpSb                   The IP4 service instance that received the message\r
-  @param  Head                   The IP4 header of the received message\r
-  @param  Packet                 The IGMP message, without IP4 header\r
+  @param[in]  IpSb               The IP4 service instance that received the message\r
+  @param[in]  Head               The IP4 header of the received message\r
+  @param[in]  Packet             The IGMP message, without IP4 header\r
 \r
   @retval EFI_INVALID_PARAMETER  The IGMP message is malformated.\r
   @retval EFI_SUCCESS            The IGMP message is successfully processed.\r
@@ -146,9 +138,7 @@ Ip4IgmpHandle (
   2. Decrease the report timer for each IGMP group in "delaying\r
      member" state.\r
 \r
-  @param  IpSb                   The IP4 service instance that is ticking\r
-\r
-  @return None\r
+  @param[in]  IpSb                   The IP4 service instance that is ticking\r
 \r
 **/\r
 VOID\r
@@ -163,9 +153,9 @@ Ip4IgmpTicking (
   assume the byte order of the both Source and Addr, the\r
   network byte order is used by the caller.\r
 \r
-  @param  Source                 The array of group addresses to add to\r
-  @param  Count                  The number of group addresses in the Source\r
-  @param  Addr                   The IP4 multicast address to add\r
+  @param[in]  Source                 The array of group addresses to add to\r
+  @param[in]  Count                  The number of group addresses in the Source\r
+  @param[in]  Addr                   The IP4 multicast address to add\r
 \r
   @return NULL if failed to allocate memory for the new groups,\r
           otherwise the new combined group addresses.\r
@@ -184,9 +174,9 @@ Ip4CombineGroups (
   both Groups and Addr, the network byte order is used by\r
   the caller.\r
 \r
-  @param  Groups                 The array of group addresses to remove from\r
-  @param  Count                  The number of group addresses in the Groups\r
-  @param  Addr                   The IP4 multicast address to remove\r
+  @param  Groups            The array of group addresses to remove from\r
+  @param  Count             The number of group addresses in the Groups\r
+  @param  Addr              The IP4 multicast address to remove\r
 \r
   @return The nubmer of group addresses in the Groups after remove.\r
           It is Count if the Addr isn't in the Groups.\r
@@ -203,8 +193,8 @@ Ip4RemoveGroupAddr (
   Find the IGMP_GROUP structure which contains the status of multicast\r
   group Address in this IGMP control block\r
 \r
-  @param  IgmpCtrl               The IGMP control block to search from\r
-  @param  Address                The multicast address to search\r
+  @param[in]  IgmpCtrl               The IGMP control block to search from\r
+  @param[in]  Address                The multicast address to search\r
 \r
   @return NULL if the multicast address isn't in the IGMP control block. Otherwise\r
           the point to the IGMP_GROUP which contains the status of multicast group\r
index 8017932e7fbe66d57aa809c3f2ccc60bbb6d21b1..bb9b99e9fc5267305b82f853f6d5c45269a43d58 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Impl.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -29,10 +21,10 @@ Abstract:
   function is used optionally to retrieve the operational mode data of underlying\r
   networks or drivers.\r
 \r
-  @param  This          Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Ip4ModeData   Pointer to the EFI IPv4 Protocol mode data structure.\r
-  @param  MnpConfigData Pointer to the managed network configuration data structure.\r
-  @param  SnpModeData   Pointer to the simple network mode data structure.\r
+  @param[in]   This          Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[out]  Ip4ModeData   Pointer to the EFI IPv4 Protocol mode data structure.\r
+  @param[out]  MnpConfigData Pointer to the managed network configuration data structure.\r
+  @param[out]  SnpModeData   Pointer to the simple network mode data structure.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -71,8 +63,8 @@ EfiIp4GetModeData (
   requests will be cancelled. Their completion token status will be set to EFI_ABORTED\r
   and their events will be signaled.\r
 \r
-  @param  This         Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  IpConfigData Pointer to the EFI IPv4 Protocol configuration data structure.\r
+  @param[in]  This              Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  IpConfigData      Pointer to the EFI IPv4 Protocol configuration data structure.\r
 \r
   @retval EFI_SUCCESS           The driver instance was successfully opened.\r
   @retval EFI_NO_MAPPING        When using the default address, configuration (DHCP, BOOTP,\r
@@ -107,9 +99,9 @@ EfiIp4Configure (
   \r
   If JoinFlag is FALSE and GroupAddress is NULL, all joined groups will be left.\r
 \r
-  @param  This                  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  JoinFlag              Set to TRUE to join the multicast group session and FALSE to leave.\r
-  @param  GroupAddress          Pointer to the IPv4 multicast address.\r
+  @param[in]  This                  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  JoinFlag              Set to TRUE to join the multicast group session and FALSE to leave.\r
+  @param[in]  GroupAddress          Pointer to the IPv4 multicast address.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER One or more of the following is TRUE:\r
@@ -160,13 +152,13 @@ EfiIp4Groups (
   copies will be updated whenever the EIF IPv4 Protocol driver reconfigures its\r
   instances. As a result, client modification to the routing table will be lost.\r
 \r
-  @param  This                   Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  DeleteRoute            Set to TRUE to delete this route from the routing table. Set to\r
-                                 FALSE to add this route to the routing table. SubnetAddress\r
-                                 and SubnetMask are used as the key to each route entry.\r
-  @param  SubnetAddress          The address of the subnet that needs to be routed.\r
-  @param  SubnetMask             The subnet mask of SubnetAddress.\r
-  @param  GatewayAddress         The unicast gateway IPv4 address for this route.\r
+  @param[in]  This                   Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  DeleteRoute            Set to TRUE to delete this route from the routing table. Set to\r
+                                     FALSE to add this route to the routing table. SubnetAddress\r
+                                     and SubnetMask are used as the key to each route entry.\r
+  @param[in]  SubnetAddress          The address of the subnet that needs to be routed.\r
+  @param[in]  SubnetMask             The subnet mask of SubnetAddress.\r
+  @param[in]  GatewayAddress         The unicast gateway IPv4 address for this route.\r
 \r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_NOT_STARTED        The driver instance has not been started.\r
@@ -203,8 +195,8 @@ EfiIp4Routes (
   EFI IPv4 Protocol instance. Whenever the packet in the token is sent out or some\r
   errors occur, the event in the token will be signaled and the status is updated.\r
 \r
-  @param  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Token Pointer to the transmit token.\r
+  @param[in]  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to the transmit token.\r
 \r
   @retval  EFI_SUCCESS           The data has been queued for transmission.\r
   @retval  EFI_NOT_STARTED       This instance has not been started.\r
@@ -243,8 +235,8 @@ EfiIp4Transmit (
   driver updates the Token.Status and Token.Packet.RxData fields and the Token.Event\r
   is signaled.\r
 \r
-  @param  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that is associated with the receive data descriptor.\r
+  @param[in]  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to a token that is associated with the receive data descriptor.\r
 \r
   @retval EFI_SUCCESS           The receive completion token was cached.\r
   @retval EFI_NOT_STARTED       This EFI IPv4 Protocol instance has not been started.\r
@@ -281,12 +273,12 @@ EfiIp4Receive (
   asynchronous operation has completed, this function will not signal the token\r
   and EFI_NOT_FOUND is returned.\r
 \r
-  @param  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that has been issued by\r
-                EFI_IP4_PROTOCOL.Transmit() or\r
-                EFI_IP4_PROTOCOL.Receive(). If NULL, all pending\r
-                tokens are aborted. Type EFI_IP4_COMPLETION_TOKEN is\r
-                defined in EFI_IP4_PROTOCOL.Transmit().\r
+  @param[in]  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to a token that has been issued by\r
+                    EFI_IP4_PROTOCOL.Transmit() or\r
+                    EFI_IP4_PROTOCOL.Receive(). If NULL, all pending\r
+                    tokens are aborted. Type EFI_IP4_COMPLETION_TOKEN is\r
+                    defined in EFI_IP4_PROTOCOL.Transmit().\r
 \r
   @retval EFI_SUCCESS           The asynchronous I/O request was aborted and\r
                                 Token.->Event was signaled. When Token is NULL, all\r
@@ -321,7 +313,7 @@ EfiIp4Cancel (
   experiencing packet loss should try calling the EFI_IP4_PROTOCOL.Poll() function\r
   more often.\r
 \r
-  @param  This Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  This               Pointer to the EFI_IP4_PROTOCOL instance.\r
 \r
   @retval  EFI_SUCCESS           Incoming or outgoing data was processed.\r
   @retval  EFI_NOT_STARTED       This EFI IPv4 Protocol instance has not been started.\r
@@ -360,10 +352,10 @@ mEfiIp4ProtocolTemplete = {
   function is used optionally to retrieve the operational mode data of underlying\r
   networks or drivers.\r
 \r
-  @param  This          Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Ip4ModeData   Pointer to the EFI IPv4 Protocol mode data structure.\r
-  @param  MnpConfigData Pointer to the managed network configuration data structure.\r
-  @param  SnpModeData   Pointer to the simple network mode data structure.\r
+  @param[in]   This          Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[out]  Ip4ModeData   Pointer to the EFI IPv4 Protocol mode data structure.\r
+  @param[out]  MnpConfigData Pointer to the managed network configuration data structure.\r
+  @param[out]  SnpModeData   Pointer to the simple network mode data structure.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -468,8 +460,8 @@ EfiIp4GetModeData (
   reconfigure the MNP. If Force is TRUE, the MNP is configured no\r
   matter whether that is changed or not.\r
 \r
-  @param  IpSb                   The IP4 service instance that is to be changed.\r
-  @param  Force                  Force the configuration or not.\r
+  @param[in]  IpSb               The IP4 service instance that is to be changed.\r
+  @param[in]  Force              Force the configuration or not.\r
 \r
   @retval EFI_SUCCESS            The MNP is successfully configured/reconfigured.\r
   @retval Others                 Configuration failed.\r
@@ -547,9 +539,7 @@ Ip4ServiceConfigMnp (
   it will configure the default interface and default route table\r
   with the configuration information retrieved by IP4_CONFIGURE.\r
 \r
-  @param  Context                The IP4 service binding instance.\r
-\r
-  @return None\r
+  @param[in]  Context                The IP4 service binding instance.\r
 \r
 **/\r
 VOID\r
@@ -692,13 +682,10 @@ ON_EXIT:
 }\r
 \r
 /**\r
-\r
   Request Ip4AutoConfigCallBackDpc as a DPC at TPL_CALLBACK.\r
   \r
   @param Event     The event that is signalled.\r
   @param Context   The IP4 service binding instance.\r
-  \r
-  @return None.\r
 \r
 **/\r
 VOID\r
@@ -725,7 +712,7 @@ Ip4AutoConfigCallBack (
   It will locates the EFI_IP4_CONFIG_PROTOCOL, then start the\r
   auto configuration.\r
 \r
-  @param  IpSb                   The IP4 service instance to configure\r
+  @param[in]  IpSb               The IP4 service instance to configure\r
 \r
   @retval EFI_SUCCESS            The auto configuration is successfull started\r
   @retval Others                 Failed to start auto configuration.\r
@@ -822,8 +809,6 @@ CLOSE_DONE_EVENT:
   @param  IpSb                   The IP4 service instance.\r
   @param  IpInstance             The IP4 child instance.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4InitProtocol (\r
@@ -857,8 +842,8 @@ Ip4InitProtocol (
   for the first time. The caller should validate the configuration\r
   before deliver them to it. It also don't do configure NULL.\r
 \r
-  @param  IpInstance             The IP4 child to configure.\r
-  @param  Config                 The configure data.\r
+  @param[in, out]  IpInstance         The IP4 child to configure.\r
+  @param[in]       Config             The configure data.\r
 \r
   @retval EFI_SUCCESS            The IP4 child is successfully configured.\r
   @retval EFI_DEVICE_ERROR       Failed to free the pending transive or to\r
@@ -1012,7 +997,7 @@ ON_ERROR:
 /**\r
   Clean up the IP4 child, release all the resources used by it.\r
 \r
-  @param  IpInstance             The IP4 child to clean up.\r
+  @param[in]  IpInstance         The IP4 child to clean up.\r
 \r
   @retval EFI_SUCCESS            The IP4 child is cleaned up\r
   @retval EFI_DEVICE_ERROR       Some resources failed to be released\r
@@ -1080,8 +1065,8 @@ Ip4CleanProtocol (
   address. Only continuous netmasks are supported. and check\r
   that StationAddress is a unicast address on the newtwork.\r
 \r
-  @param  Ip                     The IP address to validate\r
-  @param  Netmask                The netmaks of the IP\r
+  @param[in]  Ip                 The IP address to validate\r
+  @param[in]  Netmask            The netmaks of the IP\r
 \r
   @retval TRUE                   The Ip/Netmask pair is valid\r
   @retval FALSE                  The Ip/Netmask pair is invalid\r
@@ -1158,8 +1143,8 @@ Ip4StationAddressValid (
   requests will be cancelled. Their completion token status will be set to EFI_ABORTED\r
   and their events will be signaled.\r
 \r
-  @param  This         Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  IpConfigData Pointer to the EFI IPv4 Protocol configuration data structure.\r
+  @param[in]  This              Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  IpConfigData      Pointer to the EFI IPv4 Protocol configuration data structure.\r
 \r
   @retval EFI_SUCCESS           The driver instance was successfully opened.\r
   @retval EFI_NO_MAPPING        When using the default address, configuration (DHCP, BOOTP,\r
@@ -1301,9 +1286,9 @@ ON_EXIT:
   Change the IP4 child's multicast setting. The caller\r
   should make sure that the parameters is valid.\r
 \r
-  @param  IpInstance             The IP4 child to change the setting.\r
-  @param  JoinFlag               TRUE to join the group, otherwise leave it\r
-  @param  GroupAddress           The target group address\r
+  @param[in]  IpInstance             The IP4 child to change the setting.\r
+  @param[in]  JoinFlag               TRUE to join the group, otherwise leave it\r
+  @param[in]  GroupAddress           The target group address\r
 \r
   @retval EFI_ALREADY_STARTED    Want to join the group, but already a member of it\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate some resources.\r
@@ -1400,9 +1385,9 @@ Ip4Groups (
   \r
   If JoinFlag is FALSE and GroupAddress is NULL, all joined groups will be left.\r
 \r
-  @param  This                  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  JoinFlag              Set to TRUE to join the multicast group session and FALSE to leave.\r
-  @param  GroupAddress          Pointer to the IPv4 multicast address.\r
+  @param[in]  This                  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  JoinFlag              Set to TRUE to join the multicast group session and FALSE to leave.\r
+  @param[in]  GroupAddress          Pointer to the IPv4 multicast address.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER One or more of the following is TRUE:\r
@@ -1491,13 +1476,13 @@ ON_EXIT:
   copies will be updated whenever the EIF IPv4 Protocol driver reconfigures its\r
   instances. As a result, client modification to the routing table will be lost.\r
 \r
-  @param  This                   Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  DeleteRoute            Set to TRUE to delete this route from the routing table. Set to\r
-                                 FALSE to add this route to the routing table. SubnetAddress\r
-                                 and SubnetMask are used as the key to each route entry.\r
-  @param  SubnetAddress          The address of the subnet that needs to be routed.\r
-  @param  SubnetMask             The subnet mask of SubnetAddress.\r
-  @param  GatewayAddress         The unicast gateway IPv4 address for this route.\r
+  @param[in]  This                   Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  DeleteRoute            Set to TRUE to delete this route from the routing table. Set to\r
+                                     FALSE to add this route to the routing table. SubnetAddress\r
+                                     and SubnetMask are used as the key to each route entry.\r
+  @param[in]  SubnetAddress          The address of the subnet that needs to be routed.\r
+  @param[in]  SubnetMask             The subnet mask of SubnetAddress.\r
+  @param[in]  GatewayAddress         The unicast gateway IPv4 address for this route.\r
 \r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_NOT_STARTED        The driver instance has not been started.\r
@@ -1598,10 +1583,10 @@ ON_EXIT:
   Check whether the user's token or event has already\r
   been enqueued on IP4's list.\r
 \r
-  @param  Map                    The container of either user's transmit or receive\r
-                                 token.\r
-  @param  Item                   Current item to check against\r
-  @param  Context                The Token to check againist.\r
+  @param[in]  Map                    The container of either user's transmit or receive\r
+                                     token.\r
+  @param[in]  Item                   Current item to check against\r
+  @param[in]  Context                The Token to check againist.\r
 \r
   @retval EFI_ACCESS_DENIED      The token or event has already been enqueued in IP\r
   @retval EFI_SUCCESS            The current item isn't the same token/event as the\r
@@ -1632,8 +1617,8 @@ Ip4TokenExist (
 /**\r
   Validate the user's token against current station address.\r
 \r
-  @param  Token                  User's token to validate\r
-  @param  IpIf                   The IP4 child's interface.\r
+  @param[in]  Token                  User's token to validate\r
+  @param[in]  IpIf                   The IP4 child's interface.\r
 \r
   @retval EFI_INVALID_PARAMETER  Some parameters are invalid\r
   @retval EFI_BAD_BUFFER_SIZE    The user's option/data is too long.\r
@@ -1762,9 +1747,7 @@ Ip4TxTokenValid (
   are bound together. Check the comments in Ip4Output for information\r
   about IP fragmentation.\r
 \r
-  @param  Context                The token's wrap\r
-\r
-  @return None\r
+  @param[in]  Context                The token's wrap\r
 \r
 **/\r
 VOID\r
@@ -1809,8 +1792,6 @@ Ip4FreeTxToken (
   @param  Flag                   Not used during transmission\r
   @param  Context                The token's wrap.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4OnPacketSent (\r
@@ -1850,8 +1831,8 @@ Ip4OnPacketSent (
   EFI IPv4 Protocol instance. Whenever the packet in the token is sent out or some\r
   errors occur, the event in the token will be signaled and the status is updated.\r
 \r
-  @param  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Token Pointer to the transmit token.\r
+  @param[in]  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to the transmit token.\r
 \r
   @retval  EFI_SUCCESS           The data has been queued for transmission.\r
   @retval  EFI_NOT_STARTED       This instance has not been started.\r
@@ -2052,8 +2033,8 @@ ON_EXIT:
   driver updates the Token.Status and Token.Packet.RxData fields and the Token.Event\r
   is signaled.\r
 \r
-  @param  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that is associated with the receive data descriptor.\r
+  @param[in]  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to a token that is associated with the receive data descriptor.\r
 \r
   @retval EFI_SUCCESS           The receive completion token was cached.\r
   @retval EFI_NOT_STARTED       This EFI IPv4 Protocol instance has not been started.\r
@@ -2142,9 +2123,9 @@ ON_EXIT:
   Because Ip4CancelPacket and other functions are all called in\r
   line, so, after Ip4CancelPacket returns, the Item has been freed.\r
 \r
-  @param  Map                    The IP4 child's transmit queue\r
-  @param  Item                   The current transmitted packet to test.\r
-  @param  Context                The user's token to cancel.\r
+  @param[in]  Map                    The IP4 child's transmit queue\r
+  @param[in]  Item                   The current transmitted packet to test.\r
+  @param[in]  Context                The user's token to cancel.\r
 \r
   @retval EFI_SUCCESS            Continue to check the next Item.\r
   @retval EFI_ABORTED            The user's Token (Token != NULL) is cancelled.\r
@@ -2195,9 +2176,9 @@ Ip4CancelTxTokens (
   Cancel the receive request. This is quiet simple, because\r
   it is only enqueued in our local receive map.\r
 \r
-  @param  Map                    The IP4 child's receive queue\r
-  @param  Item                   Current receive request to cancel.\r
-  @param  Context                The user's token to cancel\r
+  @param[in]  Map                    The IP4 child's receive queue\r
+  @param[in]  Item                   Current receive request to cancel.\r
+  @param[in]  Context                The user's token to cancel\r
 \r
   @retval EFI_SUCCESS            Continue to check the next receive request on the\r
                                  queue.\r
@@ -2239,8 +2220,8 @@ Ip4CancelRxTokens (
 /**\r
   Cancel the user's receive/transmit request.\r
 \r
-  @param  IpInstance             The IP4 child\r
-  @param  Token                  The token to cancel. If NULL, all token will be\r
+  @param[in]  IpInstance         The IP4 child\r
+  @param[in]  Token              The token to cancel. If NULL, all token will be\r
                                  cancelled.\r
 \r
   @retval EFI_SUCCESS            The token is cancelled\r
@@ -2322,12 +2303,12 @@ Ip4Cancel (
   asynchronous operation has completed, this function will not signal the token\r
   and EFI_NOT_FOUND is returned.\r
 \r
-  @param  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that has been issued by\r
-                EFI_IP4_PROTOCOL.Transmit() or\r
-                EFI_IP4_PROTOCOL.Receive(). If NULL, all pending\r
-                tokens are aborted. Type EFI_IP4_COMPLETION_TOKEN is\r
-                defined in EFI_IP4_PROTOCOL.Transmit().\r
+  @param[in]  This  Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to a token that has been issued by\r
+                    EFI_IP4_PROTOCOL.Transmit() or\r
+                    EFI_IP4_PROTOCOL.Receive(). If NULL, all pending\r
+                    tokens are aborted. Type EFI_IP4_COMPLETION_TOKEN is\r
+                    defined in EFI_IP4_PROTOCOL.Transmit().\r
 \r
   @retval EFI_SUCCESS           The asynchronous I/O request was aborted and\r
                                 Token.->Event was signaled. When Token is NULL, all\r
@@ -2392,7 +2373,7 @@ ON_EXIT:
   experiencing packet loss should try calling the EFI_IP4_PROTOCOL.Poll() function\r
   more often.\r
 \r
-  @param  This Pointer to the EFI_IP4_PROTOCOL instance.\r
+  @param[in]  This               Pointer to the EFI_IP4_PROTOCOL instance.\r
 \r
   @retval  EFI_SUCCESS           Incoming or outgoing data was processed.\r
   @retval  EFI_NOT_STARTED       This EFI IPv4 Protocol instance has not been started.\r
@@ -2440,9 +2421,9 @@ EfiIp4Poll (
   received-but-not-delivered and transmitted-but-not-recycle\r
   packets.\r
 \r
-  @param  Map                    The IP4 child's transmit map.\r
-  @param  Item                   Current transmitted packet\r
-  @param  Context                Not used.\r
+  @param[in]  Map                    The IP4 child's transmit map.\r
+  @param[in]  Item                   Current transmitted packet\r
+  @param[in]  Context                Not used.\r
 \r
   @retval EFI_SUCCESS            Always returns EFI_SUCCESS\r
 \r
@@ -2473,10 +2454,8 @@ Ip4SentPacketTicking (
   transmitted-but-not-recycle packets, and provides time input\r
   for its IGMP protocol.\r
 \r
-  @param  Event                  The IP4 service instance's heart beat timer.\r
-  @param  Context                The IP4 service instance.\r
-\r
-  @return None\r
+  @param[in]  Event                  The IP4 service instance's heart beat timer.\r
+  @param[in]  Context                The IP4 service instance.\r
 \r
 **/\r
 VOID\r
index c72e27ad55f4676e27d3de34897fd93289f1c8b2..884c09a4ba299d300bf38dd7a2a139c6231792bd 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2007, Intel Corporation                                                         \r
+  Ip4 internal functions and type defintions.\r
+  \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>                                                         \r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Impl.h\r
-\r
-Abstract:\r
-\r
-  Ip4 internal functions and type defintions.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_IMPL_H__\r
@@ -227,8 +219,8 @@ extern EFI_IP4_PROTOCOL mEfiIp4ProtocolTemplete;
   reconfigure the MNP. If Force is TRUE, the MNP is configured no\r
   matter whether that is changed or not.\r
 \r
-  @param  IpSb                   The IP4 service instance that is to be changed.\r
-  @param  Force                  Force the configuration or not.\r
+  @param[in]  IpSb               The IP4 service instance that is to be changed.\r
+  @param[in]  Force              Force the configuration or not.\r
 \r
   @retval EFI_SUCCESS            The MNP is successfully configured/reconfigured.\r
   @retval Others                 Configuration failed.\r
@@ -246,8 +238,6 @@ Ip4ServiceConfigMnp (
   @param  IpSb                   The IP4 service instance.\r
   @param  IpInstance             The IP4 child instance.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4InitProtocol (\r
@@ -258,7 +248,7 @@ Ip4InitProtocol (
 /**\r
   Clean up the IP4 child, release all the resources used by it.\r
 \r
-  @param  IpInstance             The IP4 child to clean up.\r
+  @param[in]  IpInstance         The IP4 child to clean up.\r
 \r
   @retval EFI_SUCCESS            The IP4 child is cleaned up\r
   @retval EFI_DEVICE_ERROR       Some resources failed to be released\r
@@ -272,8 +262,8 @@ Ip4CleanProtocol (
 /**\r
   Cancel the user's receive/transmit request.\r
 \r
-  @param  IpInstance             The IP4 child\r
-  @param  Token                  The token to cancel. If NULL, all token will be\r
+  @param[in]  IpInstance         The IP4 child\r
+  @param[in]  Token              The token to cancel. If NULL, all token will be\r
                                  cancelled.\r
 \r
   @retval EFI_SUCCESS            The token is cancelled\r
@@ -292,9 +282,9 @@ Ip4Cancel (
   Change the IP4 child's multicast setting. The caller\r
   should make sure that the parameters is valid.\r
 \r
-  @param  IpInstance             The IP4 child to change the setting.\r
-  @param  JoinFlag               TRUE to join the group, otherwise leave it\r
-  @param  GroupAddress           The target group address\r
+  @param[in]  IpInstance             The IP4 child to change the setting.\r
+  @param[in]  JoinFlag               TRUE to join the group, otherwise leave it\r
+  @param[in]  GroupAddress           The target group address\r
 \r
   @retval EFI_ALREADY_STARTED    Want to join the group, but already a member of it\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate some resources.\r
@@ -316,10 +306,8 @@ Ip4Groups (
   transmitted-but-not-recycle packets, and provides time input\r
   for its IGMP protocol.\r
 \r
-  @param  Event                  The IP4 service instance's heart beat timer.\r
-  @param  Context                The IP4 service instance.\r
-\r
-  @return None\r
+  @param[in]  Event                  The IP4 service instance's heart beat timer.\r
+  @param[in]  Context                The IP4 service instance.\r
 \r
 **/\r
 VOID\r
@@ -336,9 +324,9 @@ Ip4TimerTicking (
   received-but-not-delivered and transmitted-but-not-recycle\r
   packets.\r
 \r
-  @param  Map                    The IP4 child's transmit map.\r
-  @param  Item                   Current transmitted packet\r
-  @param  Context                Not used.\r
+  @param[in]  Map                    The IP4 child's transmit map.\r
+  @param[in]  Item                   Current transmitted packet\r
+  @param[in]  Context                Not used.\r
 \r
   @retval EFI_SUCCESS            Always returns EFI_SUCCESS\r
 \r
index 59b40af21613d44af9d91cda0915f778bd64a500..9aa426fb2e6664994305048a8025606984bc4e9d 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+  IP4 input process.\r
+  \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Input.c\r
-\r
-Abstract:\r
-\r
-  IP4 input process.\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -28,13 +20,13 @@ Abstract:
   (Dst, Src, Id, Protocol). The default life for the packet is\r
   120 seconds.\r
 \r
-  @param  Dst                    The destination address\r
-  @param  Src                    The source address\r
-  @param  Id                     The ID field in IP header\r
-  @param  Protocol               The protocol field in IP header\r
+  @param[in]  Dst                    The destination address\r
+  @param[in]  Src                    The source address\r
+  @param[in]  Id                     The ID field in IP header\r
+  @param[in]  Protocol               The protocol field in IP header\r
 \r
   @return NULL if failed to allocate memory for the entry, otherwise\r
-  @return the point to just created reassemble entry.\r
+          the point to just created reassemble entry.\r
 \r
 **/\r
 IP4_ASSEMBLE_ENTRY *\r
@@ -74,9 +66,7 @@ Ip4CreateAssembleEntry (
 /**\r
   Release all the fragments of a packet, then free the assemble entry.\r
 \r
-  @param  Assemble               The assemble entry to free\r
-\r
-  @return None\r
+  @param[in]  Assemble               The assemble entry to free\r
 \r
 **/\r
 VOID\r
@@ -103,9 +93,7 @@ Ip4FreeAssembleEntry (
   Initialize an already allocated assemble table. This is generally\r
   the assemble table embedded in the IP4 service instance.\r
 \r
-  @param  Table                  The assemble table to initialize.\r
-\r
-  @return NONE\r
+  @param[in, out]  Table                  The assemble table to initialize.\r
 \r
 **/\r
 VOID\r
@@ -125,9 +113,7 @@ Ip4InitAssembleTable (
   Clean up the assemble table: remove all the fragments\r
   and assemble entries.\r
 \r
-  @param  Table                  The assemble table to clean up\r
-\r
-  @return None\r
+  @param[in]  Table                  The assemble table to clean up\r
 \r
 **/\r
 VOID\r
@@ -159,8 +145,6 @@ Ip4CleanAssembleTable (
   @param  Start                  The sequence of the first byte to fit in\r
   @param  End                    One beyond the sequence of last byte to fit in.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4TrimPacket (\r
@@ -200,9 +184,7 @@ Ip4TrimPacket (
   the assembled packet's OnFree. It will free the assemble entry,\r
   which in turn will free all the fragments of the packet.\r
 \r
-  @param  Arg                    The assemble entry to free\r
-\r
-  @return None\r
+  @param[in]  Arg                    The assemble entry to free\r
 \r
 **/\r
 VOID\r
@@ -448,15 +430,13 @@ DROP:
   The IP4 input routine. It is called by the IP4_INTERFACE when a\r
   IP4 fragment is received from MNP.\r
 \r
-  @param  Ip4Instance            The IP4 child that request the receive, most like\r
+  @param[in]  Ip4Instance        The IP4 child that request the receive, most like\r
                                  it is NULL.\r
-  @param  Packet                 The IP4 packet received.\r
-  @param  IoStatus               The return status of receive request.\r
-  @param  Flag                   The link layer flag for the packet received, such\r
+  @param[in]  Packet             The IP4 packet received.\r
+  @param[in]  IoStatus           The return status of receive request.\r
+  @param[in]  Flag               The link layer flag for the packet received, such\r
                                  as multicast.\r
-  @param  Context                The IP4 service instance that own the MNP.\r
-\r
-  @return None\r
+  @param[in]  Context            The IP4 service instance that own the MNP.\r
 \r
 **/\r
 VOID\r
@@ -625,9 +605,9 @@ DROP:
 /**\r
   Check whether this IP child accepts the packet.\r
 \r
-  @param  IpInstance             The IP child to check\r
-  @param  Head                   The IP header of the packet\r
-  @param  Packet                 The data of the packet\r
+  @param[in]  IpInstance             The IP child to check\r
+  @param[in]  Head                   The IP header of the packet\r
+  @param[in]  Packet                 The data of the packet\r
 \r
   @retval TRUE   If the child wants to receive the packet.\r
   @retval FALSE  Otherwise.\r
@@ -730,9 +710,9 @@ Ip4InstanceFrameAcceptable (
   packet is acceptable to it. Here the data of the packet is\r
   shared, but the net buffer isn't.\r
 \r
-  @param  IpInstance             The IP4 child to enqueue the packet to\r
-  @param  Head                   The IP header of the received packet\r
-  @param  Packet                 The data of the received packet\r
+  @param[in]  IpInstance             The IP4 child to enqueue the packet to\r
+  @param[in]  Head                   The IP header of the received packet\r
+  @param[in]  Packet                 The data of the received packet\r
 \r
   @retval EFI_NOT_STARTED        The IP child hasn't been configured.\r
   @retval EFI_INVALID_PARAMETER  The child doesn't want to receive the packet\r
@@ -786,11 +766,9 @@ Ip4InstanceEnquePacket (
   The signal handle of IP4's recycle event. It is called back\r
   when the upper layer release the packet.\r
 \r
-  @param  Event                  The IP4's recycle event.\r
-  @param  Context                The context of the handle, which is a\r
-                                 IP4_RXDATA_WRAP\r
-\r
-  @return None\r
+  @param  Event              The IP4's recycle event.\r
+  @param  Context            The context of the handle, which is a\r
+                             IP4_RXDATA_WRAP\r
 \r
 **/\r
 VOID\r
@@ -824,10 +802,11 @@ Ip4OnRecyclePacket (
   to the upper layer. Upper layer will signal the recycle event in\r
   it when it is done with the packet.\r
 \r
-  @param  IpInstance             The IP4 child to receive the packet\r
-  @param  Packet                 The packet to deliver up.\r
+  @param[in]  IpInstance             The IP4 child to receive the packet\r
+  @param[in]  Packet                 The packet to deliver up.\r
 \r
-  @return NULL if failed to wrap the packet, otherwise the wrapper.\r
+  @retval Wrap              if warp the packet succeed.\r
+  @retval NULL              failed to wrap the packet .\r
 \r
 **/\r
 IP4_RXDATA_WRAP *\r
@@ -900,7 +879,7 @@ Ip4WrapRxData (
   duplicate it to a non-shared packet, release the shared packet, then\r
   deliver the non-shared packet up.\r
 \r
-  @param  IpInstance             The IP child to deliver the packet up.\r
+  @param[in]  IpInstance         The IP child to deliver the packet up.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resources to deliver the\r
                                  packets.\r
@@ -996,10 +975,10 @@ Ip4InstanceDeliverPacket (
   Enqueue a received packet to all the IP children that share\r
   the same interface.\r
 \r
-  @param  IpSb                   The IP4 service instance that receive the packet\r
-  @param  Head                   The header of the received packet\r
-  @param  Packet                 The data of the received packet\r
-  @param  IpIf                   The interface to enqueue the packet to\r
+  @param[in]  IpSb                   The IP4 service instance that receive the packet\r
+  @param[in]  Head                   The header of the received packet\r
+  @param[in]  Packet                 The data of the received packet\r
+  @param[in]  IpIf                   The interface to enqueue the packet to\r
 \r
   @return The number of the IP4 children that accepts the packet\r
 \r
@@ -1087,8 +1066,8 @@ Ip4InterfaceEnquePacket (
 /**\r
   Deliver the packet for each IP4 child on the interface.\r
 \r
-  @param  IpSb                   The IP4 service instance that received the packet\r
-  @param  IpIf                   The IP4 interface to deliver the packet.\r
+  @param[in]  IpSb               The IP4 service instance that received the packet\r
+  @param[in]  IpIf               The IP4 interface to deliver the packet.\r
 \r
   @retval EFI_SUCCESS            It always returns EFI_SUCCESS now\r
 \r
@@ -1120,9 +1099,9 @@ Ip4InterfaceDeliverPacket (
   child wants to consume the packet because each IP child needs\r
   its own copy of the packet to make changes.\r
 \r
-  @param  IpSb                   The IP4 service instance that received the packet\r
-  @param  Head                   The header of the received packet\r
-  @param  Packet                 The data of the received packet\r
+  @param[in]  IpSb                   The IP4 service instance that received the packet\r
+  @param[in]  Head                   The header of the received packet\r
+  @param[in]  Packet                 The data of the received packet\r
 \r
   @retval EFI_NOT_FOUND          No IP child accepts the packet\r
   @retval EFI_SUCCESS            The packet is enqueued or delivered to some IP\r
@@ -1180,9 +1159,7 @@ Ip4Demultiplex (
 /**\r
   Timeout the fragment and enqueued packets.\r
 \r
-  @param  IpSb                   The IP4 service instance to timeout\r
-\r
-  @return None\r
+  @param[in]  IpSb                   The IP4 service instance to timeout\r
 \r
 **/\r
 VOID\r
index 43833af8c4edc8efd9f0cc1f01ccaa97a2321b22..eea4d7e0cffe8c584eb2831eae04bbdc0fee039a 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Input.h\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_INPUT_H__\r
@@ -95,9 +88,7 @@ typedef struct {
   Initialize an already allocated assemble table. This is generally\r
   the assemble table embedded in the IP4 service instance.\r
 \r
-  @param  Table                  The assemble table to initialize.\r
-\r
-  @return NONE\r
+  @param[in, out]  Table                  The assemble table to initialize.\r
 \r
 **/\r
 VOID\r
@@ -109,9 +100,7 @@ Ip4InitAssembleTable (
   Clean up the assemble table: remove all the fragments\r
   and assemble entries.\r
 \r
-  @param  Table                  The assemble table to clean up\r
-\r
-  @return None\r
+  @param[in]  Table                  The assemble table to clean up\r
 \r
 **/\r
 VOID\r
@@ -123,15 +112,13 @@ Ip4CleanAssembleTable (
   The IP4 input routine. It is called by the IP4_INTERFACE when a\r
   IP4 fragment is received from MNP.\r
 \r
-  @param  Ip4Instance            The IP4 child that request the receive, most like\r
+  @param[in]  Ip4Instance        The IP4 child that request the receive, most like\r
                                  it is NULL.\r
-  @param  Packet                 The IP4 packet received.\r
-  @param  IoStatus               The return status of receive request.\r
-  @param  Flag                   The link layer flag for the packet received, such\r
+  @param[in]  Packet             The IP4 packet received.\r
+  @param[in]  IoStatus           The return status of receive request.\r
+  @param[in]  Flag               The link layer flag for the packet received, such\r
                                  as multicast.\r
-  @param  Context                The IP4 service instance that own the MNP.\r
-\r
-  @return None\r
+  @param[in]  Context            The IP4 service instance that own the MNP.\r
 \r
 **/\r
 VOID\r
@@ -152,9 +139,9 @@ Ip4AccpetFrame (
   child wants to consume the packet because each IP child needs\r
   its own copy of the packet to make changes.\r
 \r
-  @param  IpSb                   The IP4 service instance that received the packet\r
-  @param  Head                   The header of the received packet\r
-  @param  Packet                 The data of the received packet\r
+  @param[in]  IpSb                   The IP4 service instance that received the packet\r
+  @param[in]  Head                   The header of the received packet\r
+  @param[in]  Packet                 The data of the received packet\r
 \r
   @retval EFI_NOT_FOUND          No IP child accepts the packet\r
   @retval EFI_SUCCESS            The packet is enqueued or delivered to some IP\r
@@ -172,10 +159,10 @@ Ip4Demultiplex (
   Enqueue a received packet to all the IP children that share\r
   the same interface.\r
 \r
-  @param  IpSb                   The IP4 service instance that receive the packet\r
-  @param  Head                   The header of the received packet\r
-  @param  Packet                 The data of the received packet\r
-  @param  IpIf                   The interface to enqueue the packet to\r
+  @param[in]  IpSb                   The IP4 service instance that receive the packet\r
+  @param[in]  Head                   The header of the received packet\r
+  @param[in]  Packet                 The data of the received packet\r
+  @param[in]  IpIf                   The interface to enqueue the packet to\r
 \r
   @return The number of the IP4 children that accepts the packet\r
 \r
@@ -194,7 +181,7 @@ Ip4InterfaceEnquePacket (
   duplicate it to a non-shared packet, release the shared packet, then\r
   deliver the non-shared packet up.\r
 \r
-  @param  IpInstance             The IP child to deliver the packet up.\r
+  @param[in]  IpInstance         The IP child to deliver the packet up.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate resources to deliver the\r
                                  packets.\r
@@ -210,9 +197,7 @@ Ip4InstanceDeliverPacket (
 /**\r
   Timeout the fragment and enqueued packets.\r
 \r
-  @param  IpSb                   The IP4 service instance to timeout\r
-\r
-  @return None\r
+  @param[in]  IpSb                   The IP4 service instance to timeout\r
 \r
 **/\r
 VOID\r
index 334bb41112aa7dd0699e8b309da291dcef78d46d..72dbb8c1cd0d2a4f36b8f58b3a88bcd4f0f7d05f 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  IP4 option support functions.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Option.c\r
-\r
-Abstract:\r
-\r
-  IP4 option support functions\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -28,9 +20,9 @@ Abstract:
   and will transmit. It will compute the ICMP error message fields\r
   if the option is mal-formated. But this information isn't used.\r
 \r
-  @param  Option                The first byte of the option\r
-  @param  OptionLen             The length of the whole option\r
-  @param  Rcvd                  The option is from the packet we received if TRUE,\r
+  @param[in]  Option            The first byte of the option\r
+  @param[in]  OptionLen         The length of the whole option\r
+  @param[in]  Rcvd              The option is from the packet we received if TRUE,\r
                                 otherwise the option we wants to transmit.\r
 \r
   @retval TRUE     The option is properly formatted\r
@@ -127,11 +119,11 @@ Ip4OptionIsValid (
      fragments.\r
   2. Pad the options copied over to aligned to 4 bytes.\r
 \r
-  @param  Option                The original option to copy from\r
-  @param  OptionLen             The length of the original option\r
-  @param  FirstFragment         Whether it is the first fragment\r
-  @param  Buf                   The buffer to copy options to. NULL \r
-  @param  BufLen                The length of the buffer\r
+  @param[in]       Option            The original option to copy from\r
+  @param[in]       OptionLen         The length of the original option\r
+  @param[in]       FirstFragment     Whether it is the first fragment\r
+  @param[in, out]  Buf               The buffer to copy options to. NULL \r
+  @param[in, out]  BufLen            The length of the buffer\r
 \r
   @retval EFI_SUCCESS           The options are copied over\r
   @retval EFI_BUFFER_TOO_SMALL  Buf is NULL or BufLen provided is too small.\r
index 546bf8ca6d0c932ede9effcb11e931a5a40151b3..206c92031dfe6d0aeb210fabf1a81d713e4efc5f 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  IP4 option support routines.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Option.h\r
-\r
-Abstract:\r
-\r
-  IP4 option support routines.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_OPTION_H__\r
@@ -39,9 +30,9 @@ typedef enum {
   and will transmit. It will compute the ICMP error message fields\r
   if the option is mal-formated. But this information isn't used.\r
 \r
-  @param  Option                The first byte of the option\r
-  @param  OptionLen             The length of the whole option\r
-  @param  Rcvd                  The option is from the packet we received if TRUE,\r
+  @param[in]  Option            The first byte of the option\r
+  @param[in]  OptionLen         The length of the whole option\r
+  @param[in]  Rcvd              The option is from the packet we received if TRUE,\r
                                 otherwise the option we wants to transmit.\r
 \r
   @retval TRUE     The option is properly formatted\r
@@ -62,11 +53,11 @@ Ip4OptionIsValid (
      fragments.\r
   2. Pad the options copied over to aligned to 4 bytes.\r
 \r
-  @param  Option                The original option to copy from\r
-  @param  OptionLen             The length of the original option\r
-  @param  FirstFragment         Whether it is the first fragment\r
-  @param  Buf                   The buffer to copy options to. NULL \r
-  @param  BufLen                The length of the buffer\r
+  @param[in]       Option            The original option to copy from\r
+  @param[in]       OptionLen         The length of the original option\r
+  @param[in]       FirstFragment     Whether it is the first fragment\r
+  @param[in, out]  Buf               The buffer to copy options to. NULL \r
+  @param[in, out]  BufLen            The length of the buffer\r
 \r
   @retval EFI_SUCCESS           The options are copied over\r
   @retval EFI_BUFFER_TOO_SMALL  Buf is NULL or BufLen provided is too small.\r
index 70bdba10d36ecb665c65faa72236cfbc9155b3df..af12c960c7f30fabd6ff074e51b8fff19b45e324 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  Transmit the IP4 packet.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Output.c\r
-\r
-Abstract:\r
-\r
-  Transmit the IP4 packet\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -29,14 +21,14 @@ UINT16  mIp4Id;
   Prepend an IP4 head to the Packet. It will copy the options and\r
   build the IP4 header fields. Used for IP4 fragmentation.\r
 \r
-  @param  Packet               The packet to prepend IP4 header to\r
-  @param  Head                 The caller supplied header. The caller should set\r
-                               the following header fields: Tos, TotalLen, Id,\r
-                               Fragment, Ttl, Protocol, Src and Dst. All the fields\r
-                               are in host byte order. This function will fill in\r
-                               the Ver, HeadLen, and checksum.\r
-  @param  Option               The orginal IP4 option to copy from\r
-  @param  OptLen               The length of the IP4 option\r
+  @param  Packet           The packet to prepend IP4 header to\r
+  @param  Head             The caller supplied header. The caller should set\r
+                           the following header fields: Tos, TotalLen, Id,\r
+                           Fragment, Ttl, Protocol, Src and Dst. All the fields\r
+                           are in host byte order. This function will fill in\r
+                           the Ver, HeadLen, and checksum.\r
+  @param  Option           The orginal IP4 option to copy from\r
+  @param  OptLen           The length of the IP4 option\r
 \r
   @retval EFI_BAD_BUFFER_SIZE  There is no enought room in the head space of\r
                                Packet.\r
@@ -101,9 +93,9 @@ Ip4PrependHead (
   itself, that is, not by the requests of IP4 child's consumer. Such\r
   packets include the ICMP echo replies, and other ICMP error packets.\r
 \r
-  @param  IpSb                 The IP4 service that wants to send the packets.\r
-  @param  Dst                  The destination of the packet\r
-  @param  Src                  The source of the packet\r
+  @param[in]  IpSb                 The IP4 service that wants to send the packets.\r
+  @param[in]  Dst                  The destination of the packet\r
+  @param[in]  Src                  The source of the packet\r
 \r
   @return NULL if no proper interface is found, otherwise the interface that\r
           can be used to send the system packet from.\r
@@ -170,8 +162,6 @@ Ip4SelectInterface (
                                for reference.\r
   @param  Context              The context provided by us\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4SysPacketSent (\r
@@ -192,24 +182,24 @@ Ip4SysPacketSent (
   (IpInstance == NULL). It will route the packet, fragment it,\r
   then transmit all the fragments through some interface.\r
 \r
-  @param  IpSb                 The IP4 service instance to transmit the packet\r
-  @param  IpInstance           The IP4 child that issues the transmission.  It is\r
+  @param[in]  IpSb             The IP4 service instance to transmit the packet\r
+  @param[in]  IpInstance       The IP4 child that issues the transmission.  It is\r
                                NULL if the packet is from the system.\r
-  @param  Packet               The user data to send, excluding the IP header.\r
-  @param  Head                 The caller supplied header. The caller should set\r
+  @param[in]  Packet           The user data to send, excluding the IP header.\r
+  @param[in]  Head             The caller supplied header. The caller should set\r
                                the following header fields: Tos, TotalLen, Id, tl,\r
                                Fragment, Protocol, Src and Dst. All the fields are\r
                                in host byte  order. This function will fill in the\r
                                Ver, HeadLen,  Fragment, and checksum. The Fragment\r
                                only need to include the DF flag. Ip4Output will\r
                                compute the MF and offset for  you.\r
-  @param  Option               The original option to append to the IP headers\r
-  @param  OptLen               The length of the option\r
-  @param  GateWay              The next hop address to transmit packet to.\r
+  @param[in]  Option           The original option to append to the IP headers\r
+  @param[in]  OptLen           The length of the option\r
+  @param[in]  GateWay          The next hop address to transmit packet to.\r
                                255.255.255.255 means broadcast.\r
-  @param  Callback             The callback function to issue when transmission\r
+  @param[in]  Callback         The callback function to issue when transmission\r
                                completed.\r
-  @param  Context              The opaque context for the callback\r
+  @param[in]  Context          The opaque context for the callback\r
 \r
   @retval EFI_NO_MAPPING       There is no interface to the destination.\r
   @retval EFI_NOT_FOUND        There is no route to the destination\r
@@ -414,8 +404,8 @@ ON_ERROR:
   The filter function to find a packet and all its fragments.\r
   The packet's fragments have their Context set to the packet.\r
 \r
-  @param  Frame                The frames hold by the low level interface\r
-  @param  Context              Context to the function, which is the packet.\r
+  @param[in]  Frame            The frames hold by the low level interface\r
+  @param[in]  Context          Context to the function, which is the packet.\r
 \r
   @retval TRUE                 This is the packet to cancel or its fragments.\r
   @retval FALSE                This is unrelated packet.\r
@@ -442,8 +432,6 @@ Ip4CancelPacketFragments (
   @param  Packet               The Packet to cancel\r
   @param  IoStatus             The status returns to the sender.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4CancelPacket (\r
index 8e644464616f63b4f7e9c6a30eab130098c45f30..da3d8029d67bf0254a6debd7873db0bd00ab922b 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Ip4Output.h\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_OUTPUT_H__\r
@@ -33,8 +26,6 @@ Abstract:
                                for reference.\r
   @param  Context              The context provided by us\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4SysPacketSent (\r
@@ -51,24 +42,24 @@ Ip4SysPacketSent (
   (IpInstance == NULL). It will route the packet, fragment it,\r
   then transmit all the fragments through some interface.\r
 \r
-  @param  IpSb                 The IP4 service instance to transmit the packet\r
-  @param  IpInstance           The IP4 child that issues the transmission.  It is\r
+  @param[in]  IpSb             The IP4 service instance to transmit the packet\r
+  @param[in]  IpInstance       The IP4 child that issues the transmission.  It is\r
                                NULL if the packet is from the system.\r
-  @param  Packet               The user data to send, excluding the IP header.\r
-  @param  Head                 The caller supplied header. The caller should set\r
+  @param[in]  Packet           The user data to send, excluding the IP header.\r
+  @param[in]  Head             The caller supplied header. The caller should set\r
                                the following header fields: Tos, TotalLen, Id, tl,\r
                                Fragment, Protocol, Src and Dst. All the fields are\r
                                in host byte  order. This function will fill in the\r
                                Ver, HeadLen,  Fragment, and checksum. The Fragment\r
                                only need to include the DF flag. Ip4Output will\r
                                compute the MF and offset for  you.\r
-  @param  Option               The original option to append to the IP headers\r
-  @param  OptLen               The length of the option\r
-  @param  GateWay              The next hop address to transmit packet to.\r
+  @param[in]  Option           The original option to append to the IP headers\r
+  @param[in]  OptLen           The length of the option\r
+  @param[in]  GateWay          The next hop address to transmit packet to.\r
                                255.255.255.255 means broadcast.\r
-  @param  Callback             The callback function to issue when transmission\r
+  @param[in]  Callback         The callback function to issue when transmission\r
                                completed.\r
-  @param  Context              The opaque context for the callback\r
+  @param[in]  Context          The opaque context for the callback\r
 \r
   @retval EFI_NO_MAPPING       There is no interface to the destination.\r
   @retval EFI_NOT_FOUND        There is no route to the destination\r
@@ -96,8 +87,6 @@ Ip4Output (
   @param  Packet               The Packet to cancel\r
   @param  IoStatus             The status returns to the sender.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4CancelPacket (\r
index 5bec33e5987a7658258b3a767d9c066b186d26e3..4c238a6e0279042160f78a8b307cdfdca4fea964 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,14 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Route.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Ip4Impl.h"\r
@@ -26,9 +18,9 @@ Abstract:
   Allocate a route entry then initialize it with the Dest/Netmaks\r
   and Gateway.\r
 \r
-  @param  Dest                  The destination network\r
-  @param  Netmask               The destination network mask\r
-  @param  GateWay               The nexthop address\r
+  @param[in]  Dest                  The destination network\r
+  @param[in]  Netmask               The destination network mask\r
+  @param[in]  GateWay               The nexthop address\r
 \r
   @return NULL if failed to allocate memeory, otherwise the newly created\r
           route entry.\r
@@ -66,8 +58,6 @@ Ip4CreateRouteEntry (
 \r
   @param  RtEntry               The route entry to free.\r
 \r
-  @return NONE\r
-\r
 **/\r
 VOID\r
 Ip4FreeRouteEntry (\r
@@ -85,11 +75,11 @@ Ip4FreeRouteEntry (
 /**\r
   Allocate and initialize an IP4 route cache entry.\r
 \r
-  @param  Dst                   The destination address\r
-  @param  Src                   The source address\r
-  @param  GateWay               The next hop address\r
-  @param  Tag                   The tag from the caller. This marks all the cache\r
-                                entries spawned from one route table entry.\r
+  @param[in]  Dst                   The destination address\r
+  @param[in]  Src                   The source address\r
+  @param[in]  GateWay               The next hop address\r
+  @param[in]  Tag                   The tag from the caller. This marks all the cache\r
+                                    entries spawned from one route table entry.\r
 \r
   @return NULL if failed to allocate memory for the cache, other point\r
           to the created route cache entry.\r
@@ -128,8 +118,6 @@ Ip4CreateRouteCacheEntry (
 \r
   @param  RtCacheEntry          The route cache entry to free.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4FreeRouteCacheEntry (\r
@@ -147,9 +135,7 @@ Ip4FreeRouteCacheEntry (
 /**\r
   Initialize an empty route cache table.\r
 \r
-  @param  RtCache               The rotue cache table to initialize.\r
-\r
-  @return NONE\r
+  @param[in, out]  RtCache               The rotue cache table to initialize.\r
 \r
 **/\r
 VOID\r
@@ -169,9 +155,7 @@ Ip4InitRouteCache (
   Clean up a route cache, that is free all the route cache\r
   entries enqueued in the cache.\r
 \r
-  @param  RtCache               The route cache table to clean up\r
-\r
-  @return None\r
+  @param[in]  RtCache               The route cache table to clean up\r
 \r
 **/\r
 VOID\r
@@ -235,9 +219,7 @@ Ip4CreateRouteTable (
   Free the route table and its associated route cache. Route\r
   table is reference counted.\r
 \r
-  @param  RtTable               The route table to free.\r
-\r
-  @return None\r
+  @param[in]  RtTable               The route table to free.\r
 \r
 **/\r
 VOID\r
@@ -284,8 +266,6 @@ Ip4FreeRouteTable (
   @param  RtCache               Route cache to remove the entries from\r
   @param  Tag                   The Tag of the entries to remove\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4PurgeRouteCache (\r
@@ -316,10 +296,10 @@ Ip4PurgeRouteCache (
   Add a route entry to the route table. All the IP4_ADDRs are in\r
   host byte order.\r
 \r
-  @param  RtTable               Route table to add route to\r
-  @param  Dest                  The destination of the network\r
-  @param  Netmask               The netmask of the destination\r
-  @param  Gateway               The next hop address\r
+  @param[in, out]  RtTable      Route table to add route to\r
+  @param[in]       Dest         The destination of the network\r
+  @param[in]       Netmask      The netmask of the destination\r
+  @param[in]       Gateway      The next hop address\r
 \r
   @retval EFI_ACCESS_DENIED     The same route already exists\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate memory for the entry\r
@@ -378,10 +358,10 @@ Ip4AddRoute (
 /**\r
   Remove a route entry and all the route caches spawn from it.\r
 \r
-  @param  RtTable               The route table to remove the route from\r
-  @param  Dest                  The destination network\r
-  @param  Netmask               The netmask of the Dest\r
-  @param  Gateway               The next hop address\r
+  @param  RtTable           The route table to remove the route from\r
+  @param  Dest              The destination network\r
+  @param  Netmask           The netmask of the Dest\r
+  @param  Gateway           The next hop address\r
 \r
   @retval EFI_SUCCESS           The route entry is successfully removed\r
   @retval EFI_NOT_FOUND         There is no route entry in the table with that\r
@@ -426,9 +406,9 @@ Ip4DelRoute (
   host redirect according to RFC1122. So, only route cache entries\r
   are modified according to the ICMP redirect message.\r
 \r
-  @param  RtTable               The route table to search the cache for\r
-  @param  Dest                  The destination address\r
-  @param  Src                   The source address\r
+  @param[in]  RtTable               The route table to search the cache for\r
+  @param[in]  Dest                  The destination address\r
+  @param[in]  Src                   The source address\r
 \r
   @return NULL if no route entry to the (Dest, Src). Otherwise the point\r
           to the correct route cache entry.\r
@@ -469,11 +449,11 @@ Ip4FindRouteCache (
   1. IP search the route table for a most specific match\r
   2. The local route entries have precedence over the default route entry.\r
 \r
-  @param  RtTable               The route table to search from\r
-  @param  Dst                   The destionation address to search\r
+  @param[in]  RtTable               The route table to search from\r
+  @param[in]  Dst                   The destionation address to search\r
 \r
   @return NULL if no route matches the Dst, otherwise the point to the\r
-  @return most specific route to the Dst.\r
+          most specific route to the Dst.\r
 \r
 **/\r
 IP4_ROUTE_ENTRY *\r
@@ -511,9 +491,9 @@ Ip4FindRouteEntry (
   Search the route table to route the packet. Return/create a route\r
   cache if there is a route to the destination.\r
 \r
-  @param  RtTable               The route table to search from\r
-  @param  Dest                  The destination address to search for\r
-  @param  Src                   The source address to search for\r
+  @param[in]  RtTable               The route table to search from\r
+  @param[in]  Dest                  The destination address to search for\r
+  @param[in]  Src                   The source address to search for\r
 \r
   @return NULL if failed to route packet, otherwise a route cache\r
           entry that can be used to route packet.\r
@@ -610,7 +590,7 @@ Ip4Route (
   GetModeData. The EFI_IP4_ROUTE_TABLE is clumsy to use in the\r
   internal operation of the IP4 driver.\r
 \r
-  @param  IpInstance            The IP4 child that requests the route table.\r
+  @param[in]  IpInstance        The IP4 child that requests the route table.\r
 \r
   @retval EFI_SUCCESS           The route table is successfully build\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate the memory for the rotue table.\r
index 5ba2b578efc5951dff92da67c5c1f4b7c8ec0e8d..ee1f6a907f9e263caa85918c15eba65dbece506e 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2006, Intel Corporation\r
+  EFI IP4 route table and route cache table defintions.\r
+  \r
+Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,16 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-\r
-Module Name:\r
-\r
-  Ip4Route.h\r
-\r
-Abstract:\r
-\r
-  EFI IP4 route table and route cache table defintions.\r
-\r
-\r
 **/\r
 \r
 #ifndef __EFI_IP4_ROUTE_H__\r
@@ -115,9 +106,7 @@ Ip4CreateRouteTable (
   Free the route table and its associated route cache. Route\r
   table is reference counted.\r
 \r
-  @param  RtTable               The route table to free.\r
-\r
-  @return None\r
+  @param[in]  RtTable               The route table to free.\r
 \r
 **/\r
 VOID\r
@@ -129,10 +118,10 @@ Ip4FreeRouteTable (
   Add a route entry to the route table. All the IP4_ADDRs are in\r
   host byte order.\r
 \r
-  @param  RtTable               Route table to add route to\r
-  @param  Dest                  The destination of the network\r
-  @param  Netmask               The netmask of the destination\r
-  @param  Gateway               The next hop address\r
+  @param[in, out]  RtTable      Route table to add route to\r
+  @param[in]       Dest         The destination of the network\r
+  @param[in]       Netmask      The netmask of the destination\r
+  @param[in]       Gateway      The next hop address\r
 \r
   @retval EFI_ACCESS_DENIED     The same route already exists\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate memory for the entry\r
@@ -150,10 +139,10 @@ Ip4AddRoute (
 /**\r
   Remove a route entry and all the route caches spawn from it.\r
 \r
-  @param  RtTable               The route table to remove the route from\r
-  @param  Dest                  The destination network\r
-  @param  Netmask               The netmask of the Dest\r
-  @param  Gateway               The next hop address\r
+  @param  RtTable           The route table to remove the route from\r
+  @param  Dest              The destination network\r
+  @param  Netmask           The netmask of the Dest\r
+  @param  Gateway           The next hop address\r
 \r
   @retval EFI_SUCCESS           The route entry is successfully removed\r
   @retval EFI_NOT_FOUND         There is no route entry in the table with that\r
@@ -174,9 +163,9 @@ Ip4DelRoute (
   host redirect according to RFC1122. So, only route cache entries\r
   are modified according to the ICMP redirect message.\r
 \r
-  @param  RtTable               The route table to search the cache for\r
-  @param  Dest                  The destination address\r
-  @param  Src                   The source address\r
+  @param[in]  RtTable               The route table to search the cache for\r
+  @param[in]  Dest                  The destination address\r
+  @param[in]  Src                   The source address\r
 \r
   @return NULL if no route entry to the (Dest, Src). Otherwise the point\r
           to the correct route cache entry.\r
@@ -194,8 +183,6 @@ Ip4FindRouteCache (
 \r
   @param  RtCacheEntry          The route cache entry to free.\r
 \r
-  @return None\r
-\r
 **/\r
 VOID\r
 Ip4FreeRouteCacheEntry (\r
@@ -206,9 +193,9 @@ Ip4FreeRouteCacheEntry (
   Search the route table to route the packet. Return/create a route\r
   cache if there is a route to the destination.\r
 \r
-  @param  RtTable               The route table to search from\r
-  @param  Dest                  The destination address to search for\r
-  @param  Src                   The source address to search for\r
+  @param[in]  RtTable               The route table to search from\r
+  @param[in]  Dest                  The destination address to search for\r
+  @param[in]  Src                   The source address to search for\r
 \r
   @return NULL if failed to route packet, otherwise a route cache\r
           entry that can be used to route packet.\r
@@ -226,7 +213,7 @@ Ip4Route (
   GetModeData. The EFI_IP4_ROUTE_TABLE is clumsy to use in the\r
   internal operation of the IP4 driver.\r
 \r
-  @param  IpInstance            The IP4 child that requests the route table.\r
+  @param[in]  IpInstance        The IP4 child that requests the route table.\r
 \r
   @retval EFI_SUCCESS           The route table is successfully build\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate the memory for the rotue table.\r
index 0283179065ca464cf070ac99d7c01c2dfda794a6..4c47f75e5f82ac32facc59f954a302a5e1267c5f 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
     UEFI Component Name(2) protocol implementation for MnpDxe driver.\r
 \r
-Copyright (c) 2005 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
-and made available under the terms and conditions of the BSD License which \r
-accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -28,10 +28,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -40,7 +40,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -79,15 +79,15 @@ MnpComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -96,7 +96,7 @@ MnpComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -105,7 +105,7 @@ MnpComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
@@ -185,10 +185,10 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mMnpDriverNameTable[] = {
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -197,7 +197,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mMnpDriverNameTable[] = {
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -244,15 +244,15 @@ MnpComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -261,7 +261,7 @@ MnpComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -270,7 +270,7 @@ MnpComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
index 94bbe18847e37fb3e484bc646ba0152147cdd5d8..9ed0f3ffd7bb4cd1306213041dd54583981ed969 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   Implementation of Managed Network Protocol private services.\r
-\r
-Copyright (c) 2005 - 2008, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
-and made available under the terms and conditions of the BSD License which \r
-accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
+  \r
+Copyright (c) 2005 - 2008, Intel Corporation.<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -48,7 +48,7 @@ EFI_MANAGED_NETWORK_CONFIG_DATA mMnpDefaultConfigData = {
   Configure the Snp receive filters according to the instances' receive filter\r
   settings.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
 \r
   @retval EFI_SUCCESS           The receive filters is configured.\r
   @retval EFI_OUT_OF_RESOURCES  The receive filters can't be configured due to \r
@@ -205,8 +205,8 @@ MnpConfigReceiveFilters (
   Add Count of net buffers to MnpServiceData->FreeNbufQue. The length of the net\r
   buffer is specified by MnpServiceData->BufferLength. \r
 \r
-  @param  MnpServiceData        Pointer to the MNP_SERVICE_DATA.\r
-  @param  Count                 Number of NET_BUFFERs to add.\r
+  @param[in]  MnpServiceData    Pointer to the MNP_SERVICE_DATA.\r
+  @param[in]  Count             Number of NET_BUFFERs to add.\r
 \r
   @retval EFI_SUCCESS           The specified amount of NET_BUFs are allocated \r
                                 and added to MnpServiceData->FreeNbufQue.\r
@@ -260,7 +260,7 @@ MnpAddFreeNbuf (
   in the queue, first try to allocate some and add them into the queue, then\r
   fetch the NET_BUF from the updated FreeNbufQue.\r
 \r
-  @param  MnpServiceData        Pointer to the MNP_SERVICE_DATA.\r
+  @param[in]  MnpServiceData        Pointer to the MNP_SERVICE_DATA.\r
 \r
   @return     Pointer to the allocated free NET_BUF structure, if NULL the \r
               operation is failed.\r
@@ -335,7 +335,7 @@ ON_EXIT:
 \r
   @param  MnpServiceData        Pointer to the mnp service context data.\r
   @param  Nbuf                  Pointer to the NET_BUF to free.\r
-\r
+  \r
 **/\r
 VOID\r
 MnpFreeNbuf (\r
@@ -367,9 +367,9 @@ MnpFreeNbuf (
 /**\r
   Initialize the mnp service context data.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  ImageHandle           The driver image handle.\r
-  @param  ControllerHandle      Handle of device to bind driver to.\r
+  @param[in]  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  ImageHandle           The driver image handle.\r
+  @param[in]  ControllerHandle      Handle of device to bind driver to.\r
 \r
   @retval EFI_SUCCESS           The mnp service context is initialized.\r
   @retval Other                 Some error occurs.\r
@@ -555,7 +555,7 @@ ERROR:
 \r
   @param  MnpServiceData        Pointer to the mnp service context data.\r
   @param  ImageHandle           The driver image handle.\r
-\r
+  \r
 **/\r
 VOID\r
 MnpFlushServiceData (\r
@@ -616,8 +616,8 @@ MnpFlushServiceData (
 /**\r
   Initialize the mnp instance context data.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  Instance              Pointer to the mnp instance context data to\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
+  @param[in]  Instance          Pointer to the mnp instance context data to\r
                                 initialize.\r
 \r
 **/\r
@@ -667,9 +667,9 @@ MnpInitializeInstanceData (
 /**\r
   Check whether the token specified by Arg maches the token in Item.\r
 \r
-  @param  Map                   Pointer to the NET_MAP.\r
-  @param  Item                  Pointer to the NET_MAP_ITEM\r
-  @param  Arg                   Pointer to the Arg, it's a pointer to the token to\r
+  @param[in]  Map               Pointer to the NET_MAP.\r
+  @param[in]  Item              Pointer to the NET_MAP_ITEM\r
+  @param[in]  Arg               Pointer to the Arg, it's a pointer to the token to\r
                                 check.\r
 \r
   @retval EFI_SUCCESS           The token specified by Arg is different from the\r
@@ -705,10 +705,10 @@ MnpTokenExist (
 /**\r
   Cancel the token specified by Arg if it matches the token in Item.\r
 \r
-  @param  Map               Pointer to the NET_MAP.\r
-  @param  Item              Pointer to the NET_MAP_ITEM\r
-  @param  Arg               Pointer to the Arg, it's a pointer to the token to \r
-                            cancel.\r
+  @param[in, out]  Map          Pointer to the NET_MAP.\r
+  @param[in]       Item         Pointer to the NET_MAP_ITEM\r
+  @param[in]       Arg          Pointer to the Arg, it's a pointer to the token to\r
+                                cancel.\r
 \r
   @retval EFI_SUCCESS       The Arg is NULL, and the token in Item is cancelled, \r
                             or the Arg isn't NULL, and the token in Item is\r
@@ -760,7 +760,7 @@ MnpCancelTokens (
 /**\r
   Start and initialize the simple network.\r
 \r
-  @param  Snp                   Pointer to the simple network protocol.\r
+  @param[in]  Snp               Pointer to the simple network protocol.\r
 \r
   @retval EFI_SUCCESS           The simple network protocol is started.\r
   @retval Other                 Some error occurs.\r
@@ -794,7 +794,7 @@ MnpStartSnp (
 /**\r
   Stop the simple network.\r
 \r
-  @param  Snp                   Pointer to the simple network protocol.\r
+  @param[in]  Snp               Pointer to the simple network protocol.\r
 \r
   @retval EFI_SUCCESS           The simple network is stopped.\r
   @retval Other                 Some error occurs.\r
@@ -829,10 +829,10 @@ MnpStopSnp (
   Start the managed network, this function is called when one instance is configured\r
   or reconfigured.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  IsConfigUpdate        The instance is reconfigured or it's the first time\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
+  @param[in]  IsConfigUpdate    The instance is reconfigured or it's the first time\r
                                 the instanced is configured.\r
-  @param  EnableSystemPoll      Enable the system polling or not.\r
+  @param[in]  EnableSystemPoll  Enable the system polling or not.\r
 \r
   @retval EFI_SUCCESS           The managed network is started and some\r
                                 configuration is updated.\r
@@ -921,7 +921,7 @@ ErrorExit:
 /**\r
   Stop the managed network.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
 \r
   @retval EFI_SUCCESS           The managed network is stopped.\r
   @retval Other                 Some error occurs.\r
@@ -1021,8 +1021,8 @@ MnpFlushRcvdDataQueue (
 /**\r
   Configure the Instance using ConfigData.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
-  @param  ConfigData            Pointer to the configuration data used to configure\r
+  @param[in]  Instance          Pointer to the mnp instance context data.\r
+  @param[in]  ConfigData        Pointer to the configuration data used to configure\r
                                 the isntance.\r
 \r
   @retval EFI_SUCCESS           The Instance is configured.\r
@@ -1162,11 +1162,11 @@ MnpConfigureInstance (
   Add a group address control block which controls the MacAddress for\r
   this instance.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
-  @param  CtrlBlk               Pointer to the group address control block.\r
-  @param  GroupAddress          Pointer to the group adress.\r
-  @param  MacAddress            Pointer to the mac address.\r
-  @param  HwAddressSize         The hardware address size.\r
+  @param[in]  Instance              Pointer to the mnp instance context data.\r
+  @param[in]  CtrlBlk               Pointer to the group address control block.\r
+  @param[in]  GroupAddress          Pointer to the group adress.\r
+  @param[in]  MacAddress            Pointer to the mac address.\r
+  @param[in]  HwAddressSize         The hardware address size.\r
 \r
   @retval EFI_SUCCESS           The group address control block is added.\r
   @retval EFI_OUT_OF_RESOURCE   Failed due to lack of memory resources.\r
@@ -1231,8 +1231,8 @@ MnpGroupOpAddCtrlBlk (
   Delete a group control block from the instance. If the controlled group address's\r
   reference count reaches zero, the group address is removed too.\r
 \r
-  @param  Instance              Pointer to the instance context data.\r
-  @param  CtrlBlk               Pointer to the group control block to delete.\r
+  @param[in]  Instance              Pointer to the instance context data.\r
+  @param[in]  CtrlBlk               Pointer to the group control block to delete.\r
 \r
   @return The group address controlled by the control block is no longer used or not.\r
 \r
@@ -1283,11 +1283,11 @@ MnpGroupOpDelCtrlBlk (
 /**\r
   Do the group operations for this instance.\r
 \r
-  @param  Instance              Pointer to the instance context data.\r
-  @param  JoinFlag              Set to TRUE to join a group. Set to TRUE to leave a\r
+  @param[in]  Instance          Pointer to the instance context data.\r
+  @param[in]  JoinFlag          Set to TRUE to join a group. Set to TRUE to leave a\r
                                 group/groups.\r
-  @param  MacAddress            Pointer to the group address to join or leave.\r
-  @param  CtrlBlk               Pointer to the group control block if JoinFlag if\r
+  @param[in]  MacAddress        Pointer to the group address to join or leave.\r
+  @param[in]  CtrlBlk           Pointer to the group control block if JoinFlag if\r
                                 FALSE.\r
 \r
   @retval EFI_SUCCESS           The group operation finished.\r
index d4aaac33bd716aa8bd1523ea188d3f4f4627a288..727dc3bf2c718bb43093e424409b9af02b7fc5f2 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
     Implementation of driver entry point and driver binding protocol.\r
 \r
-Copyright (c) 2005 - 2008, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
-and made available under the terms and conditions of the BSD License which \r
-accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
+Copyright (c) 2005 - 2008, Intel Corporation.<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -33,10 +33,10 @@ EFI_DRIVER_BINDING_PROTOCOL gMnpDriverBinding = {
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -107,10 +107,10 @@ MnpDriverBindingSupported (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to.\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to.\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -185,11 +185,11 @@ ErrorExit:
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                                children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
   @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
   @retval other             This driver was not removed from this device\r
@@ -270,19 +270,22 @@ MnpDriverBindingStop (
 \r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This                   Protocol instance pointer.\r
-  @param  ChildHandle            Pointer to the handle of the child to create. If\r
-                                 it is NULL, then a new handle is created. If it is\r
-                                 not NULL, then the I/O services are  added to the\r
-                                 existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES             The protocol was added to ChildHandle. \r
-  @retval EFI_INVALID_PARAMETER  ChildHandle is NULL. \r
-  @retval EFI_OUT_OF_RESOURCES   There are not enough resources availabe to \r
-                                 create the child.\r
-  @retval other                  The child handle was not created.\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
+  @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
+  @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
+                                the child\r
+  @retval other                 The child handle was not created\r
 \r
 **/\r
 EFI_STATUS\r
@@ -384,24 +387,21 @@ ErrorExit:
 \r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
-   \r
-  The DestroyChild() function does the opposite of CreateChild(). It removes a \r
-  protocol that was installed by CreateChild() from ChildHandle. If the removed \r
-  protocol is the last protocol on ChildHandle, then ChildHandle is destroyed. \r
-   \r
-  @param  This                   Pointer to the EFI_SERVICE_BINDING_PROTOCOL \r
-                                 instance.\r
-  @param  ChildHandle            Handle of the child to destroy.\r
-\r
-  @retval EFI_SUCCES             The protocol was removed from ChildHandle. \r
-  @retval EFI_UNSUPPORTED        ChildHandle does not support the protocol that\r
-                                 is being removed.\r
-  @retval EFI_INVALID_PARAMETER  ChildHandle is not a valid UEFI handle.\r
-  @retval EFI_ACCESS_DENIED      The protocol could not be removed from the\r
-                                 ChildHandle because its services are being\r
-                                 used.\r
-  @retval other                  The child handle was not destroyed.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
+\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Handle of the child to destroy\r
+\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
+  @retval other                 The child handle was not destroyed\r
 \r
 **/\r
 EFI_STATUS\r
@@ -520,8 +520,8 @@ MnpServiceBindingDestroyChild (
   The entry point for Mnp driver which installs the driver binding and component\r
   name protocol on its ImageHandle.\r
 \r
-  @param  ImageHandle   The image handle of the driver.\r
-  @param  SystemTable   The system table.\r
+  @param[in]  ImageHandle   The image handle of the driver.\r
+  @param[in]  SystemTable   The system table.\r
 \r
   @retval EFI_SUCCES       The driver binding and component name protocols are \r
                            successfully installed.\r
index 03aee05bc4f751557c05ea656b67d3f9c6f30c6b..fb140127ad2e5b18d64e1dc4b3ac7690a4452b5b 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
     Declaration of strctures and functions for MnpDxe driver.\r
     \r
-Copyright (c) 2005 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
-and made available under the terms and conditions of the BSD License which \r
-accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -96,10 +96,10 @@ typedef struct _MNP_SERVICE_DATA {
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -122,10 +122,10 @@ MnpDriverBindingSupported (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to.\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to.\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -149,11 +149,11 @@ MnpDriverBindingStart (
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                                children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
   @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
   @retval other             This driver was not removed from this device\r
@@ -169,19 +169,22 @@ MnpDriverBindingStop (
   );\r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This                   Protocol instance pointer.\r
-  @param  ChildHandle            Pointer to the handle of the child to create. If\r
-                                 it is NULL, then a new handle is created. If it is\r
-                                 not NULL, then the I/O services are  added to the\r
-                                 existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES             The child handle was created with the I/O\r
-                                 services.\r
-  @retval EFI_OUT_OF_RESOURCES   There are not enough resources availabe to create\r
-                                 the child.\r
-  @retval other                  The child handle was not created.\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
+  @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
+  @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
+                                the child\r
+  @retval other                 The child handle was not created\r
 \r
 **/\r
 EFI_STATUS\r
@@ -192,19 +195,21 @@ MnpServiceBindingCreateChild (
   );\r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
-\r
-  @param  This                   Protocol instance pointer.\r
-  @param  ChildHandle            Handle of the child to destroy.\r
-\r
-  @retval EFI_SUCCES             The I/O services were removed from the child\r
-                                 handle.\r
-  @retval EFI_UNSUPPORTED        The child handle does not support the I/O services\r
-                                  that are being removed.\r
-  @retval EFI_INVALID_PARAMETER  Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED      The child handle could not be destroyed because\r
-                                 its  I/O services are being used.\r
-  @retval other                  The child handle was not destroyed.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
+\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Handle of the child to destroy\r
+\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
+  @retval other                 The child handle was not destroyed\r
 \r
 **/\r
 EFI_STATUS\r
index 1bad9608936b2aa7fb5ce19841e1a2c0a8e416da..2498a58fcb8b3a7cee0f377d7d01e23c369382c4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
     Declaration of structures and functions of MnpDxe driver.\r
     \r
-Copyright (c) 2005 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2005 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -93,9 +93,9 @@ typedef struct _MNP_RXDATA_WRAP {
 /**\r
   Initialize the mnp service context data.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  ImageHandle           The driver image handle.\r
-  @param  ControllerHandle      Handle of device to bind driver to.\r
+  @param[in]  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  ImageHandle           The driver image handle.\r
+  @param[in]  ControllerHandle      Handle of device to bind driver to.\r
 \r
   @retval EFI_SUCCESS           The mnp service context is initialized.\r
   @retval Other                 Some error occurs.\r
@@ -113,7 +113,7 @@ MnpInitializeServiceData (
 \r
   @param  MnpServiceData        Pointer to the mnp service context data.\r
   @param  ImageHandle           The driver image handle.\r
-\r
+  \r
 **/\r
 VOID\r
 MnpFlushServiceData (\r
@@ -124,8 +124,8 @@ MnpFlushServiceData (
 /**\r
   Initialize the mnp instance context data.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  Instance              Pointer to the mnp instance context data to\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
+  @param[in]  Instance          Pointer to the mnp instance context data to\r
                                 initialize.\r
 \r
 **/\r
@@ -138,9 +138,9 @@ MnpInitializeInstanceData (
 /**\r
   Check whether the token specified by Arg maches the token in Item.\r
 \r
-  @param  Map                   Pointer to the NET_MAP.\r
-  @param  Item                  Pointer to the NET_MAP_ITEM\r
-  @param  Arg                   Pointer to the Arg, it's a pointer to the token to\r
+  @param[in]  Map               Pointer to the NET_MAP.\r
+  @param[in]  Item              Pointer to the NET_MAP_ITEM\r
+  @param[in]  Arg               Pointer to the Arg, it's a pointer to the token to\r
                                 check.\r
 \r
   @retval EFI_SUCCESS           The token specified by Arg is different from the\r
@@ -159,16 +159,16 @@ MnpTokenExist (
 /**\r
   Cancel the token specified by Arg if it matches the token in Item.\r
 \r
-  @param  Map                   Pointer to the NET_MAP.\r
-  @param  Item                  Pointer to the NET_MAP_ITEM\r
-  @param  Arg                   Pointer to the Arg, it's a pointer to the token to\r
+  @param[in, out]  Map          Pointer to the NET_MAP.\r
+  @param[in]       Item         Pointer to the NET_MAP_ITEM\r
+  @param[in]       Arg          Pointer to the Arg, it's a pointer to the token to\r
                                 cancel.\r
 \r
-  @retval EFI_SUCCESS           The Arg is NULL, and the token in Item is\r
-                                cancelled, or the Arg isn't NULL, and the token in\r
-                                Item is different from the Arg.\r
-  @retval EFI_ABORTED           The Arg isn't NULL, the token in Item mathces the\r
-                                Arg, and the token is cancelled.\r
+  @retval EFI_SUCCESS       The Arg is NULL, and the token in Item is cancelled, \r
+                            or the Arg isn't NULL, and the token in Item is\r
+                            different from the Arg.\r
+  @retval EFI_ABORTED       The Arg isn't NULL, the token in Item mathces the\r
+                            Arg, and the token is cancelled.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -192,8 +192,8 @@ MnpFlushRcvdDataQueue (
 /**\r
   Configure the Instance using ConfigData.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
-  @param  ConfigData            Pointer to the configuration data used to configure\r
+  @param[in]  Instance          Pointer to the mnp instance context data.\r
+  @param[in]  ConfigData        Pointer to the configuration data used to configure\r
                                 the isntance.\r
 \r
   @retval EFI_SUCCESS           The Instance is configured.\r
@@ -211,11 +211,11 @@ MnpConfigureInstance (
 /**\r
   Do the group operations for this instance.\r
 \r
-  @param  Instance              Pointer to the instance context data.\r
-  @param  JoinFlag              Set to TRUE to join a group. Set to TRUE to leave a\r
+  @param[in]  Instance          Pointer to the instance context data.\r
+  @param[in]  JoinFlag          Set to TRUE to join a group. Set to TRUE to leave a\r
                                 group/groups.\r
-  @param  MacAddress            Pointer to the group address to join or leave.\r
-  @param  CtrlBlk               Pointer to the group control block if JoinFlag if\r
+  @param[in]  MacAddress        Pointer to the group address to join or leave.\r
+  @param[in]  CtrlBlk           Pointer to the group control block if JoinFlag if\r
                                 FALSE.\r
 \r
   @retval EFI_SUCCESS           The group operation finished.\r
@@ -226,15 +226,15 @@ EFI_STATUS
 MnpGroupOp (\r
   IN MNP_INSTANCE_DATA        *Instance,\r
   IN BOOLEAN                  JoinFlag,\r
-  IN EFI_MAC_ADDRESS          *MacAddr OPTIONAL,\r
+  IN EFI_MAC_ADDRESS          *MacAddress OPTIONAL,\r
   IN MNP_GROUP_CONTROL_BLOCK  *CtrlBlk OPTIONAL\r
   );\r
 \r
 /**\r
   Validates the Mnp transmit token.\r
 \r
-  @param  Instance              Pointer to the Mnp instance context data.\r
-  @param  Token                 Pointer to the transmit token to check.\r
+  @param[in]  Instance              Pointer to the Mnp instance context data.\r
+  @param[in]  Token                 Pointer to the transmit token to check.\r
 \r
   @return The Token is valid or not.\r
 \r
@@ -254,7 +254,7 @@ MnpIsValidTxToken (
   @param  PktBuf                Pointer to record the address of the packet.\r
   @param  PktLen                Pointer to a UINT32 variable used to record the\r
                                 packet's length.\r
-\r
+   \r
 **/\r
 VOID\r
 MnpBuildTxPacket (\r
@@ -267,10 +267,10 @@ MnpBuildTxPacket (
 /**\r
   Synchronously send out the packet.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  Packet                Pointer to the pakcet buffer.\r
-  @param  Length                The length of the packet.\r
-  @param  Token                 Pointer to the token the packet generated from.\r
+  @param[in]  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  Packet                Pointer to the pakcet buffer.\r
+  @param[in]  Length                The length of the packet.\r
+  @param[in]  Token                 Pointer to the token the packet generated from.\r
 \r
   @retval EFI_SUCCESS           The packet is sent out.\r
   @retval EFI_TIMEOUT           Time out occurs, the packet isn't sent.\r
@@ -288,7 +288,7 @@ MnpSyncSendPacket (
 /**\r
   Try to deliver the received packet to the instance.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
+  @param[in]  Instance          Pointer to the mnp instance context data.\r
 \r
   @retval EFI_SUCCESS           The received packet is delivered, or there is no\r
                                 packet to deliver, or there is no available receive\r
@@ -305,9 +305,9 @@ MnpInstanceDeliverPacket (
   Recycle the RxData and other resources used to hold and deliver the received\r
   packet.\r
 \r
-  @param  Event                 The event this notify function registered to.\r
-  @param  Context               Pointer to the context data registerd to the Event.\r
-\r
+  @param  Event             The event this notify function registered to.\r
+  @param  Context           Pointer to the context data registerd to the Event.\r
+  \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -319,7 +319,7 @@ MnpRecycleRxData (
 /**\r
   Try to receive a packet and deliver it.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
 \r
   @retval EFI_SUCCESS           add return value to function comment\r
   @retval EFI_NOT_STARTED       The simple network protocol is not started.\r
@@ -337,9 +337,10 @@ MnpReceivePacket (
   in the queue, first try to allocate some and add them into the queue, then\r
   fetch the NET_BUF from the updated FreeNbufQue.\r
 \r
-  @param  MnpServiceData        Pointer to the MNP_SERVICE_DATA.\r
+  @param[in]  MnpServiceData        Pointer to the MNP_SERVICE_DATA.\r
 \r
-  @return Pointer to the allocated free NET_BUF structure, if NULL the operation is failed.\r
+  @return     Pointer to the allocated free NET_BUF structure, if NULL the \r
+              operation is failed.\r
 \r
 **/\r
 NET_BUF *\r
@@ -352,7 +353,7 @@ MnpAllocNbuf (
 \r
   @param  MnpServiceData        Pointer to the mnp service context data.\r
   @param  Nbuf                  Pointer to the NET_BUF to free.\r
-\r
+  \r
 **/\r
 VOID\r
 MnpFreeNbuf (\r
@@ -363,10 +364,10 @@ MnpFreeNbuf (
 /**\r
   Remove the received packets if timeout occurs.\r
 \r
-  @param  Event                 The event this notify function registered to.\r
-  @param  Context               Pointer to the context data registered to the\r
-                                event.\r
-   \r
+  @param  Event             The event this notify function registered to.\r
+  @param  Context           Pointer to the context data registered to the\r
+                            event.\r
+  \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -379,9 +380,9 @@ MnpCheckPacketTimeout (
   Poll to receive the packets from Snp. This function is either called by upperlayer\r
   protocols/applications or the system poll timer notify mechanism.\r
 \r
-  @param  Event                 The event this notify function registered to.\r
-  @param  Context               Pointer to the context data registered to the\r
-                                event.\r
+  @param  Event             The event this notify function registered to.\r
+  @param  Context           Pointer to the context data registered to the\r
+                            event.\r
 \r
 **/\r
 VOID\r
@@ -398,13 +399,13 @@ MnpSystemPoll (
   The GetModeData() function is used to read the current mode data (operational\r
   parameters) from the MNP or the underlying SNP. \r
 \r
-  @param This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param MnpConfigData Pointer to storage for MNP operational parameters. Type\r
-                       EFI_MANAGED_NETWORK_CONFIG_DATA is defined in "Related\r
-                       Definitions" below.\r
-  @param SnpModeData   Pointer to storage for SNP operational parameters. This\r
-                       feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE\r
-                       is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.\r
+  @param[in]  This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[out] MnpConfigData Pointer to storage for MNP operational parameters. Type\r
+                            EFI_MANAGED_NETWORK_CONFIG_DATA is defined in "Related\r
+                            Definitions" below.\r
+  @param[out] SnpModeData   Pointer to storage for SNP operational parameters. This\r
+                            feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE\r
+                            is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.\r
  \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -446,14 +447,13 @@ MnpGetModeData (
   Note: Warning: Receive filter settings that overlap will consume extra\r
   processor and/or DMA resources and degrade system and network performance.\r
 \r
-  @param  This             Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  MnpConfigData    Pointer to configuration data that will be assigned\r
-                           to the MNP child driver instance. If NULL, the MNP\r
-                           child driver instance is reset to startup defaults\r
-                           and all pending transmit and receive requests are\r
-                           flushed. Type EFI_MANAGED_NETWORK_CONFIG_DATA is\r
-                           defined in\r
-                           EFI_MANAGED_NETWORK_PROTOCOL.GetModeData().\r
+  @param[in]  This             Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  MnpConfigData    Pointer to configuration data that will be assigned\r
+                               to the MNP child driver instance. If NULL, the MNP\r
+                               child driver instance is reset to startup defaults\r
+                               and all pending transmit and receive requests are\r
+                               flushed. Type EFI_MANAGED_NETWORK_CONFIG_DATA is\r
+                               defined in EFI_MANAGED_NETWORK_PROTOCOL.GetModeData().\r
 \r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following conditions is\r
@@ -493,12 +493,12 @@ MnpConfigure (
   underlying EFI_SIMPLE_NETWORK.MCastIpToMac() function, which may also be\r
   unsupported in some MNP implementations.\r
 \r
-  @param This       Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param Ipv6Flag   Set to TRUE to if IpAddress is an IPv6 multicast address.\r
-                    Set to FALSE if IpAddress is an IPv4 multicast address.\r
-  @param IpAddress  Pointer to the multicast IP address (in network byte order)\r
-                    to convert.\r
-  @param MacAddress Pointer to the resulting multicast MAC address. \r
+  @param[in]  This       Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Ipv6Flag   Set to TRUE to if IpAddress is an IPv6 multicast address.\r
+                         Set to FALSE if IpAddress is an IPv4 multicast address.\r
+  @param[in]  IpAddress  Pointer to the multicast IP address (in network byte order)\r
+                         to convert.\r
+  @param[out] MacAddress Pointer to the resulting multicast MAC address. \r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER One of the following conditions is TRUE:\r
@@ -532,11 +532,11 @@ MnpMcastIpToMac (
   Management Protocol (IGMP) packets. If JoinFlag is FALSE and MacAddress is\r
   NULL, then all joined groups are left.\r
    \r
-  @param  This        Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  JoinFlag    Set to TRUE to join this multicast group.\r
-                      Set to FALSE to leave this multicast group.\r
-  @param  MacAddress  Pointer to the multicast MAC group (address) to join or\r
-                      leave.\r
+  @param[in]  This        Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  JoinFlag    Set to TRUE to join this multicast group.\r
+                          Set to FALSE to leave this multicast group.\r
+  @param[in]  MacAddress  Pointer to the multicast MAC group (address) to join or\r
+                          leave.\r
 \r
   @retval EFI_SUCCESS           The requested operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
@@ -582,10 +582,10 @@ MnpGroups (
   the underlying communications device and drivers.\r
  \r
  \r
-  @param  This    Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  Token   Pointer to a token associated with the transmit data\r
-                  descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN is\r
-                  defined in "Related Definitions" below.\r
+  @param[in]  This    Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Token   Pointer to a token associated with the transmit data\r
+                      descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN is\r
+                      defined in "Related Definitions" below.\r
 \r
   @retval EFI_SUCCESS            The transmit completion token was cached.\r
   @retval EFI_NOT_STARTED        This MNP child driver instance has not been\r
@@ -639,11 +639,11 @@ MnpTransmit (
   the asynchronous operation has completed, this function will not signal the\r
   token and EFI_NOT_FOUND is returned.\r
 \r
-  @param  This     Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  Token    Pointer to a token that has been issued by\r
-                   EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or\r
-                   EFI_MANAGED_NETWORK_PROTOCOL.Receive(). If NULL, all pending\r
-                   tokens are aborted.\r
+  @param[in]  This     Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Token    Pointer to a token that has been issued by\r
+                       EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or\r
+                       EFI_MANAGED_NETWORK_PROTOCOL.Receive(). If NULL, all pending\r
+                       tokens are aborted.\r
 \r
   @retval EFI_SUCCESS            The asynchronous I/O request was aborted and\r
                                  Token.Event was signaled. When Token is NULL,\r
@@ -675,11 +675,11 @@ MnpCancel (
   updates the Token.Status and Token.RxData fields and the Token.Event is\r
   signaled.\r
    \r
-  @param  This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  Token         Pointer to a token associated with the receive\r
-                        data descriptor. Type\r
-                        EFI_MANAGED_NETWORK_COMPLETION_TOKEN is defined in\r
-                        EFI_MANAGED_NETWORK_PROTOCOL.Transmit().\r
+  @param[in]  This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Token         Pointer to a token associated with the receive\r
+                            data descriptor. Type\r
+                            EFI_MANAGED_NETWORK_COMPLETION_TOKEN is defined in\r
+                            EFI_MANAGED_NETWORK_PROTOCOL.Transmit().\r
 \r
   @retval EFI_SUCCESS            The receive completion token was cached.\r
   @retval EFI_NOT_STARTED        This MNP child driver instance has not been\r
@@ -719,7 +719,7 @@ MnpReceive (
   applications that are experiencing packet loss should try calling the Poll()\r
   function more often.\r
 \r
-  @param  This            Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  This            Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS      Incoming or outgoing data was processed.\r
   @retval EFI_NOT_STARTED  This MNP child driver instance has not been\r
index d63bad00b88c8c4accfe9eb34721959b2e9a4385..b5d1785cb1fe5f6547333b567d34703983917885 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
-    Implementation of Managed Network Protocol I/O functions.\r
-    \r
-Copyright (c) 2005 - 2007, Intel Corporation. <BR>\r
+  Implementation of Managed Network Protocol I/O functions.\r
+  \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
+\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -22,8 +23,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 /**\r
   Validates the Mnp transmit token.\r
 \r
-  @param  Instance              Pointer to the Mnp instance context data.\r
-  @param  Token                 Pointer to the transmit token to check.\r
+  @param[in]  Instance              Pointer to the Mnp instance context data.\r
+  @param[in]  Token                 Pointer to the transmit token to check.\r
 \r
   @return The Token is valid or not.\r
 \r
@@ -115,7 +116,7 @@ MnpIsValidTxToken (
   @param  PktBuf                Pointer to record the address of the packet.\r
   @param  PktLen                Pointer to a UINT32 variable used to record the\r
                                 packet's length.\r
-\r
+   \r
 **/\r
 VOID\r
 MnpBuildTxPacket (\r
@@ -179,10 +180,10 @@ MnpBuildTxPacket (
 /**\r
   Synchronously send out the packet.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  Packet                Pointer to the pakcet buffer.\r
-  @param  Length                The length of the packet.\r
-  @param  Token                 Pointer to the token the packet generated from.\r
+  @param[in]  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  Packet                Pointer to the pakcet buffer.\r
+  @param[in]  Length                The length of the packet.\r
+  @param[in]  Token                 Pointer to the token the packet generated from.\r
 \r
   @retval EFI_SUCCESS           The packet is sent out.\r
   @retval EFI_TIMEOUT           Time out occurs, the packet isn't sent.\r
@@ -296,7 +297,7 @@ SIGNAL_TOKEN:
 /**\r
   Try to deliver the received packet to the instance.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
+  @param[in]  Instance          Pointer to the mnp instance context data.\r
 \r
   @retval EFI_SUCCESS           The received packet is delivered, or there is no\r
                                 packet to deliver, or there is no available receive\r
@@ -392,8 +393,6 @@ MnpInstanceDeliverPacket (
 \r
   @param  MnpServiceData        Pointer to the mnp service context data.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 MnpDeliverPacket (\r
@@ -421,9 +420,9 @@ MnpDeliverPacket (
   Recycle the RxData and other resources used to hold and deliver the received\r
   packet.\r
 \r
-  @param  Event                 The event this notify function registered to.\r
-  @param  Context               Pointer to the context data registerd to the Event.\r
-\r
+  @param  Event             The event this notify function registered to.\r
+  @param  Context           Pointer to the context data registerd to the Event.\r
+  \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -468,12 +467,10 @@ MnpRecycleRxData (
 /**\r
   Queue the received packet into instance's receive queue.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
-  @param  RxDataWrap            Pointer to the Wrap structure containing the\r
+  @param  Instance          Pointer to the mnp instance context data.\r
+  @param  RxDataWrap        Pointer to the Wrap structure containing the\r
                                 received data and other information.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 MnpQueueRcvdPacket (\r
@@ -525,13 +522,13 @@ MnpQueueRcvdPacket (
 /**\r
   Match the received packet with the instance receive filters.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
-  @param  RxData                Pointer to the EFI_MANAGED_NETWORK_RECEIVE_DATA.\r
-  @param  GroupAddress          Pointer to the GroupAddress, the GroupAddress is\r
+  @param[in]  Instance          Pointer to the mnp instance context data.\r
+  @param[in]  RxData            Pointer to the EFI_MANAGED_NETWORK_RECEIVE_DATA.\r
+  @param[in]  GroupAddress      Pointer to the GroupAddress, the GroupAddress is\r
                                 non-NULL and it contains the destination multicast\r
                                 mac address of the received packet if the packet\r
                                 destinated to a multicast mac address.\r
-  @param  PktAttr               The received packets attribute.\r
+  @param[in]  PktAttr           The received packets attribute.\r
 \r
   @return The received packet matches the instance's receive filters or not.\r
 \r
@@ -603,18 +600,16 @@ MnpMatchPacket (
 /**\r
   Analyse the received packets.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  Nbuf                  Pointer to the net buffer holding the received\r
-                                packet.\r
-  @param  RxData                Pointer to the buffer used to save the analysed\r
-                                result in EFI_MANAGED_NETWORK_RECEIVE_DATA.\r
-  @param  GroupAddress          Pointer to pointer to a MNP_GROUP_ADDRESS used to\r
-                                pass out the address of the multicast address the\r
-                                received packet destinated to.\r
-  @param  PktAttr               Pointer to the buffer used to save the analysed\r
-                                packet attribute.\r
-\r
-  @return None.\r
+  @param  MnpServiceData    Pointer to the mnp service context data.\r
+  @param  Nbuf              Pointer to the net buffer holding the received\r
+                            packet.\r
+  @param  RxData            Pointer to the buffer used to save the analysed\r
+                            result in EFI_MANAGED_NETWORK_RECEIVE_DATA.\r
+  @param  GroupAddress      Pointer to pointer to a MNP_GROUP_ADDRESS used to\r
+                            pass out the address of the multicast address the\r
+                            received packet destinated to.\r
+  @param  PktAttr           Pointer to the buffer used to save the analysed\r
+                            packet attribute.\r
 \r
 **/\r
 VOID\r
@@ -707,8 +702,8 @@ MnpAnalysePacket (
 /**\r
   Wrap the RxData.\r
 \r
-  @param  Instance              Pointer to the mnp instance context data.\r
-  @param  RxData                Pointer to the receive data to wrap.\r
+  @param[in]  Instance              Pointer to the mnp instance context data.\r
+  @param[in]  RxData                Pointer to the receive data to wrap.\r
 \r
   @return Pointer to a MNP_RXDATA_WRAP which wraps the RxData.\r
 \r
@@ -763,11 +758,9 @@ MnpWrapRxData (
   Enqueue the received the packets to the instances belonging to the\r
   MnpServiceData.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
-  @param  Nbuf                  Pointer to the net buffer representing the received\r
-                                packet.\r
-\r
-  @return None.\r
+  @param  MnpServiceData    Pointer to the mnp service context data.\r
+  @param  Nbuf              Pointer to the net buffer representing the received\r
+                            packet.\r
 \r
 **/\r
 VOID\r
@@ -840,7 +833,7 @@ MnpEnqueuePacket (
 /**\r
   Try to receive a packet and deliver it.\r
 \r
-  @param  MnpServiceData        Pointer to the mnp service context data.\r
+  @param[in]  MnpServiceData    Pointer to the mnp service context data.\r
 \r
   @retval EFI_SUCCESS           add return value to function comment\r
   @retval EFI_NOT_STARTED       The simple network protocol is not started.\r
@@ -992,10 +985,10 @@ EXIT:
 /**\r
   Remove the received packets if timeout occurs.\r
 \r
-  @param  Event                 The event this notify function registered to.\r
-  @param  Context               Pointer to the context data registered to the\r
-                                event.\r
-   \r
+  @param  Event             The event this notify function registered to.\r
+  @param  Context           Pointer to the context data registered to the\r
+                            event.\r
+  \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -1059,9 +1052,9 @@ MnpCheckPacketTimeout (
   Poll to receive the packets from Snp. This function is either called by upperlayer\r
   protocols/applications or the system poll timer notify mechanism.\r
 \r
-  @param  Event                 The event this notify function registered to.\r
-  @param  Context               Pointer to the context data registered to the\r
-                                event.\r
+  @param  Event             The event this notify function registered to.\r
+  @param  Context           Pointer to the context data registered to the\r
+                            event.\r
 \r
 **/\r
 VOID\r
index a30eb12a29bbbbc9a9d3f5899e2bf1cbfeb94e2f..71f0a3cc5a4a905f97b13ce8978faa6dada167bd 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
-    Implementation of Managed Network Protocol public services.\r
+  Implementation of Managed Network Protocol public services.\r
+  \r
+Copyright (c) 2005 - 2007, Intel Corporation.<BR>\r
 \r
-Copyright (c) 2005 - 2007, Intel Corporation. <BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -24,13 +25,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   The GetModeData() function is used to read the current mode data (operational\r
   parameters) from the MNP or the underlying SNP. \r
 \r
-  @param This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param MnpConfigData Pointer to storage for MNP operational parameters. Type\r
-                       EFI_MANAGED_NETWORK_CONFIG_DATA is defined in "Related\r
-                       Definitions" below.\r
-  @param SnpModeData   Pointer to storage for SNP operational parameters. This\r
-                       feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE\r
-                       is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.\r
+  @param[in]  This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[out] MnpConfigData Pointer to storage for MNP operational parameters. Type\r
+                            EFI_MANAGED_NETWORK_CONFIG_DATA is defined in "Related\r
+                            Definitions" below.\r
+  @param[out] SnpModeData   Pointer to storage for SNP operational parameters. This\r
+                            feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE\r
+                            is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.\r
  \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -113,14 +114,13 @@ MnpGetModeData (
   Note: Warning: Receive filter settings that overlap will consume extra\r
   processor and/or DMA resources and degrade system and network performance.\r
 \r
-  @param  This             Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  MnpConfigData    Pointer to configuration data that will be assigned\r
-                           to the MNP child driver instance. If NULL, the MNP\r
-                           child driver instance is reset to startup defaults\r
-                           and all pending transmit and receive requests are\r
-                           flushed. Type EFI_MANAGED_NETWORK_CONFIG_DATA is\r
-                           defined in\r
-                           EFI_MANAGED_NETWORK_PROTOCOL.GetModeData().\r
+  @param[in]  This             Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  MnpConfigData    Pointer to configuration data that will be assigned\r
+                               to the MNP child driver instance. If NULL, the MNP\r
+                               child driver instance is reset to startup defaults\r
+                               and all pending transmit and receive requests are\r
+                               flushed. Type EFI_MANAGED_NETWORK_CONFIG_DATA is\r
+                               defined in EFI_MANAGED_NETWORK_PROTOCOL.GetModeData().\r
 \r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following conditions is\r
@@ -196,12 +196,12 @@ ON_EXIT:
   underlying EFI_SIMPLE_NETWORK.MCastIpToMac() function, which may also be\r
   unsupported in some MNP implementations.\r
 \r
-  @param This       Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param Ipv6Flag   Set to TRUE to if IpAddress is an IPv6 multicast address.\r
-                    Set to FALSE if IpAddress is an IPv4 multicast address.\r
-  @param IpAddress  Pointer to the multicast IP address (in network byte order)\r
-                    to convert.\r
-  @param MacAddress Pointer to the resulting multicast MAC address. \r
+  @param[in]  This       Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Ipv6Flag   Set to TRUE to if IpAddress is an IPv6 multicast address.\r
+                         Set to FALSE if IpAddress is an IPv4 multicast address.\r
+  @param[in]  IpAddress  Pointer to the multicast IP address (in network byte order)\r
+                         to convert.\r
+  @param[out] MacAddress Pointer to the resulting multicast MAC address. \r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER One of the following conditions is TRUE:\r
@@ -303,11 +303,11 @@ ON_EXIT:
   Management Protocol (IGMP) packets. If JoinFlag is FALSE and MacAddress is\r
   NULL, then all joined groups are left.\r
    \r
-  @param  This        Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  JoinFlag    Set to TRUE to join this multicast group.\r
-                      Set to FALSE to leave this multicast group.\r
-  @param  MacAddress  Pointer to the multicast MAC group (address) to join or\r
-                      leave.\r
+  @param[in]  This        Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  JoinFlag    Set to TRUE to join this multicast group.\r
+                          Set to FALSE to leave this multicast group.\r
+  @param[in]  MacAddress  Pointer to the multicast MAC group (address) to join or\r
+                          leave.\r
 \r
   @retval EFI_SUCCESS           The requested operation completed successfully.\r
   @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
@@ -455,10 +455,10 @@ ON_EXIT:
   the underlying communications device and drivers.\r
  \r
  \r
-  @param  This    Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  Token   Pointer to a token associated with the transmit data\r
-                  descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN is\r
-                  defined in "Related Definitions" below.\r
+  @param[in]  This    Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Token   Pointer to a token associated with the transmit data\r
+                      descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN is\r
+                      defined in "Related Definitions" below.\r
 \r
   @retval EFI_SUCCESS            The transmit completion token was cached.\r
   @retval EFI_NOT_STARTED        This MNP child driver instance has not been\r
@@ -562,11 +562,11 @@ ON_EXIT:
   updates the Token.Status and Token.RxData fields and the Token.Event is\r
   signaled.\r
    \r
-  @param  This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  Token         Pointer to a token associated with the receive\r
-                        data descriptor. Type\r
-                        EFI_MANAGED_NETWORK_COMPLETION_TOKEN is defined in\r
-                        EFI_MANAGED_NETWORK_PROTOCOL.Transmit().\r
+  @param[in]  This          Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Token         Pointer to a token associated with the receive\r
+                            data descriptor. Type\r
+                            EFI_MANAGED_NETWORK_COMPLETION_TOKEN is defined in\r
+                            EFI_MANAGED_NETWORK_PROTOCOL.Transmit().\r
 \r
   @retval EFI_SUCCESS            The receive completion token was cached.\r
   @retval EFI_NOT_STARTED        This MNP child driver instance has not been\r
@@ -655,11 +655,11 @@ ON_EXIT:
   the asynchronous operation has completed, this function will not signal the\r
   token and EFI_NOT_FOUND is returned.\r
 \r
-  @param  This     Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
-  @param  Token    Pointer to a token that has been issued by\r
-                   EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or\r
-                   EFI_MANAGED_NETWORK_PROTOCOL.Receive(). If NULL, all pending\r
-                   tokens are aborted.\r
+  @param[in]  This     Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  Token    Pointer to a token that has been issued by\r
+                       EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or\r
+                       EFI_MANAGED_NETWORK_PROTOCOL.Receive(). If NULL, all pending\r
+                       tokens are aborted.\r
 \r
   @retval EFI_SUCCESS            The asynchronous I/O request was aborted and\r
                                  Token.Event was signaled. When Token is NULL,\r
@@ -733,7 +733,7 @@ ON_EXIT:
   applications that are experiencing packet loss should try calling the Poll()\r
   function more often.\r
 \r
-  @param  This            Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
+  @param[in]  This            Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS      Incoming or outgoing data was processed.\r
   @retval EFI_NOT_STARTED  This MNP child driver instance has not been\r
index b5176559b009811f003fae8fecd8fbccc41db69d..27c3d0b299834767ebfdb0064ace885a273cd489 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  ComponentName.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 \r
@@ -34,10 +27,10 @@ Abstract:
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -46,7 +39,7 @@ Abstract:
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -85,15 +78,15 @@ UdpComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -102,7 +95,7 @@ UdpComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -111,7 +104,7 @@ UdpComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
@@ -191,10 +184,10 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUdpDriverNameTable[] = {
   by This does not support the language specified by Language,\r
   then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language. This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -203,7 +196,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUdpDriverNameTable[] = {
                                 to the driver writer. Language is specified\r
                                 in RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  DriverName[out]       A pointer to the Unicode string to return.\r
+  @param[out]  DriverName       A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 driver specified by This in the language\r
                                 specified by Language.\r
@@ -250,15 +243,15 @@ UdpComponentNameGetDriverName (
   then EFI_UNSUPPORTED is returned.  If the driver specified by This does not\r
   support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
 \r
-  @param  This[in]              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
+  @param[in]  This              A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
                                 EFI_COMPONENT_NAME_PROTOCOL instance.\r
 \r
-  @param  ControllerHandle[in]  The handle of a controller that the driver\r
+  @param[in]  ControllerHandle  The handle of a controller that the driver\r
                                 specified by This is managing.  This handle\r
                                 specifies the controller whose name is to be\r
                                 returned.\r
 \r
-  @param  ChildHandle[in]       The handle of the child controller to retrieve\r
+  @param[in]  ChildHandle       The handle of the child controller to retrieve\r
                                 the name of.  This is an optional parameter that\r
                                 may be NULL.  It will be NULL for device\r
                                 drivers.  It will also be NULL for a bus drivers\r
@@ -267,7 +260,7 @@ UdpComponentNameGetDriverName (
                                 driver that wishes to retrieve the name of a\r
                                 child controller.\r
 \r
-  @param  Language[in]          A pointer to a Null-terminated ASCII string\r
+  @param[in]  Language          A pointer to a Null-terminated ASCII string\r
                                 array indicating the language.  This is the\r
                                 language of the driver name that the caller is\r
                                 requesting, and it must match one of the\r
@@ -276,7 +269,7 @@ UdpComponentNameGetDriverName (
                                 to the driver writer. Language is specified in\r
                                 RFC 3066 or ISO 639-2 language code format.\r
 \r
-  @param  ControllerName[out]   A pointer to the Unicode string to return.\r
+  @param[out]  ControllerName   A pointer to the Unicode string to return.\r
                                 This Unicode string is the name of the\r
                                 controller specified by ControllerHandle and\r
                                 ChildHandle in the language specified by\r
index 50959671e8904f94bd76c680563a323177b87259..c063d41b4236641413f17dfec3a8184256751098 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Udp4Driver.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 \r
@@ -44,10 +37,10 @@ EFI_SERVICE_BINDING_PROTOCOL mUdp4ServiceBinding = {
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -103,10 +96,10 @@ Udp4DriverBindingSupported (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -166,11 +159,11 @@ Udp4DriverBindingStart (
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                                children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
   @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
   @retval other             This driver was not removed from this device\r
@@ -244,14 +237,18 @@ Udp4DriverBindingStop (
 \r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This        Protocol instance pointer.\r
-  @param  ChildHandle Pointer to the handle of the child to create.  If it is NULL,\r
-                      then a new handle is created.  If it is not NULL, then the\r
-                      I/O services are added to the existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The child handle was created with the I/O services\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
                                 the child\r
@@ -362,17 +359,20 @@ ON_ERROR:
 \r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
 \r
-  @param  This        Protocol instance pointer.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The I/O services were removed from the child handle\r
-  @retval EFI_UNSUPPORTED       The child handle does not support the I/O services\r
-                                that are being removed.\r
-  @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED     The child handle could not be destroyed because its\r
-                                I/O services are being used.\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
   @retval other                 The child handle was not destroyed\r
 \r
 **/\r
@@ -483,8 +483,8 @@ Udp4ServiceBindingDestroyChild (
   The entry point for Udp4 driver which installs the driver binding\r
   and component name protocol on its ImageHandle.\r
 \r
-  @param  ImageHandle           The firmware allocated handle for the UEFI image.\r
-  @param  SystemTable           A pointer to the EFI System Table.\r
+  @param[in] ImageHandle           The firmware allocated handle for the UEFI image.\r
+  @param[in] SystemTable           A pointer to the EFI System Table.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.\r
index 371216574af40bdd14360d8a28ab6c16dc63c08c..94b3b9c165e33da6cb27e786b5c45b7c1cfae6e4 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Udp4Driver.h\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #ifndef _UDP4_DRIVER_H_\r
@@ -35,10 +28,10 @@ Abstract:
   follow these calling restrictions. If any other agent wishes to call\r
   Supported() it must also follow these calling restrictions.\r
 \r
-  @param  This                Protocol instance pointer.\r
-  @param  ControllerHandle    Handle of device to test\r
-  @param  RemainingDevicePath Optional parameter use to pick a specific child\r
-                              device to start.\r
+  @param[in]  This                Protocol instance pointer.\r
+  @param[in]  ControllerHandle    Handle of device to test\r
+  @param[in]  RemainingDevicePath Optional parameter use to pick a specific child\r
+                                  device to start.\r
 \r
   @retval EFI_SUCCESS         This driver supports this device\r
   @retval EFI_ALREADY_STARTED This driver is already running on this device\r
@@ -61,10 +54,10 @@ Udp4DriverBindingSupported (
   calling restrictions. If any other agent wishes to call Start() it\r
   must also follow these calling restrictions.\r
 \r
-  @param  This                 Protocol instance pointer.\r
-  @param  ControllerHandle     Handle of device to bind driver to\r
-  @param  RemainingDevicePath  Optional parameter use to pick a specific child\r
-                               device to start.\r
+  @param[in]  This                 Protocol instance pointer.\r
+  @param[in]  ControllerHandle     Handle of device to bind driver to\r
+  @param[in]  RemainingDevicePath  Optional parameter use to pick a specific child\r
+                                   device to start.\r
 \r
   @retval EFI_SUCCESS          This driver is added to ControllerHandle\r
   @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle\r
@@ -87,11 +80,11 @@ Udp4DriverBindingStart (
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
   \r
-  @param  This              Protocol instance pointer.\r
-  @param  ControllerHandle  Handle of device to stop driver on\r
-  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
-                            children is zero stop the entire bus driver.\r
-  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+  @param[in]  This              Protocol instance pointer.\r
+  @param[in]  ControllerHandle  Handle of device to stop driver on\r
+  @param[in]  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                                children is zero stop the entire bus driver.\r
+  @param[in]  ChildHandleBuffer List of Child Handles to Stop.\r
 \r
   @retval EFI_SUCCESS       This driver is removed ControllerHandle\r
   @retval other             This driver was not removed from this device\r
@@ -107,14 +100,18 @@ Udp4DriverBindingStop (
   );\r
 \r
 /**\r
-  Creates a child handle with a set of I/O services.\r
+  Creates a child handle and installs a protocol.\r
+  \r
+  The CreateChild() function installs a protocol on ChildHandle. \r
+  If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle. \r
+  If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
 \r
-  @param  This        Protocol instance pointer.\r
-  @param  ChildHandle Pointer to the handle of the child to create.  If it is NULL,\r
-                      then a new handle is created.  If it is not NULL, then the\r
-                      I/O services are added to the existing child handle.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
+  @param  ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
+                      then a new handle is created. If it is a pointer to an existing UEFI handle, \r
+                      then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The child handle was created with the I/O services\r
+  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources availabe to create\r
                                 the child\r
@@ -129,17 +126,20 @@ Udp4ServiceBindingCreateChild (
   );\r
 \r
 /**\r
-  Destroys a child handle with a set of I/O services.\r
+  Destroys a child handle with a protocol installed on it.\r
+  \r
+  The DestroyChild() function does the opposite of CreateChild(). It removes a protocol \r
+  that was installed by CreateChild() from ChildHandle. If the removed protocol is the \r
+  last protocol on ChildHandle, then ChildHandle is destroyed.\r
 \r
-  @param  This        Protocol instance pointer.\r
+  @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The I/O services were removed from the child handle\r
-  @retval EFI_UNSUPPORTED       The child handle does not support the I/O services\r
-                                that are being removed.\r
-  @retval EFI_INVALID_PARAMETER Child handle is not a valid EFI Handle.\r
-  @retval EFI_ACCESS_DENIED     The child handle could not be destroyed because its\r
-                                I/O services are being used.\r
+  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
+  @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r
+  @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
+                                because its services are being used.\r
   @retval other                 The child handle was not destroyed\r
 \r
 **/\r
index bda2b36c31f3dab96f2c459f1aa3d056834d531c..0440f1558d8eb67ec26764236a62869d0385e2ab 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
+  The implementation of the Udp4 protocol.\r
+  \r
+Copyright (c) 2006 - 2008, Intel Corporation.<BR>                                                         \r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Udp4Impl.c\r
-\r
-Abstract:\r
-\r
-  The implementation of the Udp4 protocol.\r
-\r
-\r
 **/\r
 \r
 \r
@@ -29,11 +21,9 @@ UINT16  mUdp4RandomPort;
   This function checks and timeouts the I/O datagrams holding by the corresponding\r
   service context.\r
 \r
-  @param  Event                  The event this function registered to.\r
-  @param  Context                The context data registered during the creation of\r
-                                 the Event.\r
-\r
-  @return None.\r
+  @param[in]  Event                  The event this function registered to.\r
+  @param[in]  Context                The context data registered during the creation of\r
+                                     the Event.\r
 \r
 **/\r
 VOID\r
@@ -46,10 +36,10 @@ Udp4CheckTimeout (
 /**\r
   This function finds the udp instance by the specified <Address, Port> pair.\r
 \r
-  @param  InstanceList           Pointer to the head of the list linking the udp\r
-                                 instances.\r
-  @param  Address                Pointer to the specified IPv4 address.\r
-  @param  Port                   The udp port number.\r
+  @param[in]  InstanceList           Pointer to the head of the list linking the udp\r
+                                     instances.\r
+  @param[in]  Address                Pointer to the specified IPv4 address.\r
+  @param[in]  Port                   The udp port number.\r
 \r
   @retval TRUE     The specified <Address, Port> pair is found.\r
   @retval FALSE    Otherwise.\r
@@ -67,12 +57,10 @@ Udp4FindInstanceByPort (
   interface. It's called to signal the udp TxToken when IpIo layer completes the\r
   transmitting of the udp datagram.\r
 \r
-  @param  Status                 The completion status of the output udp datagram.\r
-  @param  Context                Pointer to the context data.\r
-  @param  Sender                 Pointer to the Ip sender of the udp datagram.\r
-  @param  NotifyData             Pointer to the notify data.\r
-\r
-  @return None.\r
+  @param[in]  Status                 The completion status of the output udp datagram.\r
+  @param[in]  Context                Pointer to the context data.\r
+  @param[in]  Sender                 Pointer to the Ip sender of the udp datagram.\r
+  @param[in]  NotifyData             Pointer to the notify data.\r
 \r
 **/\r
 VOID\r
@@ -86,15 +74,13 @@ Udp4DgramSent (
 /**\r
   This function processes the received datagram passed up by the IpIo layer.\r
 \r
-  @param  Status                 The status of this udp datagram.\r
-  @param  IcmpError              The IcmpError code, only available when Status is\r
+  @param[in]  Status             The status of this udp datagram.\r
+  @param[in]  IcmpError          The IcmpError code, only available when Status is\r
                                  EFI_ICMP_ERROR.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA.\r
-  @param  Packet                 Pointer to the NET_BUF containing the received udp\r
+  @param[in]  NetSession         Pointer to the EFI_NET_SESSION_DATA.\r
+  @param[in]  Packet             Pointer to the NET_BUF containing the received udp\r
                                  datagram.\r
-  @param  Context                Pointer to the context data.\r
-\r
-  @return None.\r
+  @param[in]  Context            Pointer to the context data.\r
 \r
 **/\r
 VOID\r
@@ -110,9 +96,9 @@ Udp4DgramRcvd (
   This function cancels the token specified by Arg in the Map. This is a callback\r
   used by Udp4InstanceCancelToken().\r
 \r
-  @param  Map                    Pointer to the NET_MAP.\r
-  @param  Item                   Pointer to the NET_MAP_ITEM.\r
-  @param  Arg                    Pointer to the token to be cancelled, if NULL,\r
+  @param[in]  Map                Pointer to the NET_MAP.\r
+  @param[in]  Item               Pointer to the NET_MAP_ITEM.\r
+  @param[in]  Arg                Pointer to the token to be cancelled, if NULL,\r
                                  the token specified by Item is cancelled.\r
 \r
   @retval EFI_SUCCESS            The token is cancelled if Arg is NULL or the token\r
@@ -132,8 +118,8 @@ Udp4CancelTokens (
 /**\r
   This function matches the received udp datagram with the Instance.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-  @param  Udp4Session            Pointer to the EFI_UDP4_SESSION_DATA abstracted\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
+  @param[in]  Udp4Session        Pointer to the EFI_UDP4_SESSION_DATA abstracted\r
                                  from the received udp datagram.\r
 \r
   @retval TRUE       The udp datagram matches the receiving requirments of the\r
@@ -150,10 +136,8 @@ Udp4MatchDgram (
 /**\r
   This function removes the Wrap specified by Context and release relevant resources.\r
 \r
-  @param  Event                  The Event this notify function registered to.\r
-  @param  Context                Pointer to the context data.\r
-\r
-  @return None.\r
+  @param[in]  Event              The Event this notify function registered to.\r
+  @param[in]  Context            Pointer to the context data.\r
 \r
 **/\r
 VOID\r
@@ -166,11 +150,11 @@ Udp4RecycleRxDataWrap (
 /**\r
   This function wraps the Packet and the RxData.\r
 \r
-  @param  Instance               Pointer to the instance context data.\r
-  @param  Packet                 Pointer to the buffer containing the received\r
-                                 datagram.\r
-  @param  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
-                                 datagram.\r
+  @param[in]  Instance               Pointer to the instance context data.\r
+  @param[in]  Packet                 Pointer to the buffer containing the received\r
+                                     datagram.\r
+  @param[in]  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
+                                     datagram.\r
 \r
   @return Pointer to the structure wrapping the RxData and the Packet.\r
 \r
@@ -185,11 +169,11 @@ Udp4WrapRxData (
 /**\r
   This function enqueues the received datagram into the instances' receiving queues.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-  @param  Packet                 Pointer to the buffer containing the received\r
-                                 datagram.\r
-  @param  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
-                                 datagram.\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
+  @param[in]  Packet                 Pointer to the buffer containing the received\r
+                                     datagram.\r
+  @param[in]  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
+                                     datagram.\r
 \r
   @return The times this datagram is enqueued.\r
 \r
@@ -204,9 +188,7 @@ Udp4EnqueueDgram (
 /**\r
   This function delivers the datagrams enqueued in the instances.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-\r
-  @return None.\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
 \r
 **/\r
 VOID\r
@@ -217,13 +199,11 @@ Udp4DeliverDgram (
 /**\r
   This function demultiplexes the received udp datagram to the apropriate instances.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA abstrated from\r
-                                 the received datagram.\r
-  @param  Packet                 Pointer to the buffer containing the received udp\r
-                                 datagram.\r
-\r
-  @return None.\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
+  @param[in]  NetSession             Pointer to the EFI_NET_SESSION_DATA abstrated from\r
+                                     the received datagram.\r
+  @param[in]  Packet                 Pointer to the buffer containing the received udp\r
+                                     datagram.\r
 \r
 **/\r
 VOID\r
@@ -237,13 +217,11 @@ Udp4Demultiplex (
   This function handles the received Icmp Error message and demultiplexes it to the\r
   instance.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-  @param  IcmpError              The icmp error code.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA abstracted\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
+  @param[in]  IcmpError              The icmp error code.\r
+  @param[in]  NetSession             Pointer to the EFI_NET_SESSION_DATA abstracted\r
                                  from the received Icmp Error packet.\r
-  @param  Packet                 Pointer to the Icmp Error packet.\r
-\r
-  @return None.\r
+  @param[in]  Packet                 Pointer to the Icmp Error packet.\r
 \r
 **/\r
 VOID\r
@@ -257,13 +235,11 @@ Udp4IcmpHandler (
 /**\r
   This function builds and sends out a icmp port unreachable message.\r
 \r
-  @param  IpIo                   Pointer to the IP_IO instance.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA of the packet\r
-                                 causes this icmp error message.\r
-  @param  Udp4Header             Pointer to the udp header of the datagram causes\r
-                                 this icmp error message.\r
-\r
-  @return None.\r
+  @param[in]  IpIo                   Pointer to the IP_IO instance.\r
+  @param[in]  NetSession             Pointer to the EFI_NET_SESSION_DATA of the packet\r
+                                     causes this icmp error message.\r
+  @param[in]  Udp4Header             Pointer to the udp header of the datagram causes\r
+                                     this icmp error message.\r
 \r
 **/\r
 VOID\r
@@ -376,9 +352,7 @@ ON_ERROR:
 /**\r
   Clean the Udp service context data.\r
 \r
-  @param  Udp4Service            Pointer to the UDP4_SERVICE_DATA.\r
-\r
-  @return None.\r
+  @param[in]  Udp4Service            Pointer to the UDP4_SERVICE_DATA.\r
 \r
 **/\r
 VOID\r
@@ -407,11 +381,9 @@ Udp4CleanService (
   This function checks and timeouts the I/O datagrams holding by the corresponding\r
   service context.\r
 \r
-  @param  Event                  The event this function registered to.\r
-  @param  Context                The context data registered during the creation of\r
-                                 the Event.\r
-\r
-  @return None.\r
+  @param[in]  Event                  The event this function registered to.\r
+  @param[in]  Context                The context data registered during the creation of\r
+                                     the Event.\r
 \r
 **/\r
 VOID\r
@@ -473,8 +445,6 @@ Udp4CheckTimeout (
   @param  Udp4Service            Pointer to the UDP4_SERVICE_DATA.\r
   @param  Instance               Pointer to the un-initialized UDP4_INSTANCE_DATA.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 Udp4InitInstance (\r
@@ -516,9 +486,7 @@ Udp4InitInstance (
 /**\r
   This function cleans the udp instance.\r
 \r
-  @param  Instance               Pointer to the UDP4_INSTANCE_DATA to clean.\r
-\r
-  @return None.\r
+  @param[in]  Instance               Pointer to the UDP4_INSTANCE_DATA to clean.\r
 \r
 **/\r
 VOID\r
@@ -535,10 +503,10 @@ Udp4CleanInstance (
 /**\r
   This function finds the udp instance by the specified <Address, Port> pair.\r
 \r
-  @param  InstanceList           Pointer to the head of the list linking the udp\r
-                                 instances.\r
-  @param  Address                Pointer to the specified IPv4 address.\r
-  @param  Port                   The udp port number.\r
+  @param[in]  InstanceList           Pointer to the head of the list linking the udp\r
+                                     instances.\r
+  @param[in]  Address                Pointer to the specified IPv4 address.\r
+  @param[in]  Port                   The udp port number.\r
 \r
   @retval TRUE     The specified <Address, Port> pair is found.\r
   @retval FALSE    Otherwise.\r
@@ -672,9 +640,9 @@ Udp4Bind (
   This function is used to check whether the NewConfigData has any un-reconfigurable\r
   parameters changed compared to the OldConfigData.\r
 \r
-  @param  OldConfigData          Pointer to the current ConfigData the udp instance\r
+  @param[in]  OldConfigData      Pointer to the current ConfigData the udp instance\r
                                  uses.\r
-  @param  NewConfigData          Pointer to the new ConfigData.\r
+  @param[in]  NewConfigData      Pointer to the new ConfigData.\r
 \r
   @retval TRUE     The instance is reconfigurable.\r
   @retval FALSE    Otherwise.\r
@@ -753,10 +721,8 @@ Udp4IsReconfigurable (
 /**\r
   This function builds the Ip4 configdata from the Udp4ConfigData.\r
 \r
-  @param  Udp4ConfigData         Pointer to the EFI_UDP4_CONFIG_DATA.\r
-  @param  Ip4ConfigData          Pointer to the EFI_IP4_CONFIG_DATA.\r
-\r
-  @return None.\r
+  @param[in]       Udp4ConfigData    Pointer to the EFI_UDP4_CONFIG_DATA.\r
+  @param[in, out]  Ip4ConfigData     Pointer to the EFI_IP4_CONFIG_DATA.\r
 \r
 **/\r
 VOID\r
@@ -784,8 +750,8 @@ Udp4BuildIp4ConfigData (
 /**\r
   This function validates the TxToken, it returns the error code according to the spec.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-  @param  TxToken                Pointer to the token to be checked.\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
+  @param[in]  TxToken            Pointer to the token to be checked.\r
 \r
   @retval EFI_SUCCESS            The TxToken is valid.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following are TRUE: This is\r
@@ -911,10 +877,10 @@ Udp4ValidateTxToken (
 /**\r
   This function checks whether the specified Token duplicates with the one in the Map.\r
 \r
-  @param  Map                    Pointer to the NET_MAP.\r
-  @param  Item                   Pointer to the NET_MAP_ITEM contain the pointer to\r
+  @param[in]  Map                Pointer to the NET_MAP.\r
+  @param[in]  Item               Pointer to the NET_MAP_ITEM contain the pointer to\r
                                  the Token.\r
-  @param  Context                Pointer to the Token to be checked.\r
+  @param[in]  Context            Pointer to the Token to be checked.\r
 \r
   @retval EFI_SUCCESS            The Token specified by Context differs from the\r
                                  one in the Item.\r
@@ -950,11 +916,11 @@ Udp4TokenExist (
   This function calculates the checksum for the Packet, utilizing the pre-calculated\r
   pseudo HeadSum to reduce some overhead.\r
 \r
-  @param  Packet                 Pointer to the NET_BUF contains the udp datagram.\r
-  @param  HeadSum                Checksum of the pseudo header execpt the length\r
+  @param[in]  Packet             Pointer to the NET_BUF contains the udp datagram.\r
+  @param[in]  HeadSum            Checksum of the pseudo header execpt the length\r
                                  field.\r
 \r
-  @return The 16-bit checksum of this udp datagram.\r
+  @retval The 16-bit checksum of this udp datagram.\r
 \r
 **/\r
 UINT16\r
@@ -977,8 +943,8 @@ Udp4Checksum (
 /**\r
   This function removes the specified Token from the TokenMap.\r
 \r
-  @param  TokenMap               Pointer to the NET_MAP containing the tokens.\r
-  @param  Token                  Pointer to the Token to be removed.\r
+  @param  TokenMap           Pointer to the NET_MAP containing the tokens.\r
+  @param  Token              Pointer to the Token to be removed.\r
 \r
   @retval EFI_SUCCESS            The specified Token is removed from the TokenMap.\r
   @retval EFI_NOT_FOUND          The specified Token is not found in the TokenMap.\r
@@ -1015,12 +981,10 @@ Udp4RemoveToken (
   interface. It's called to signal the udp TxToken when IpIo layer completes the\r
   transmitting of the udp datagram.\r
 \r
-  @param  Status                 The completion status of the output udp datagram.\r
-  @param  Context                Pointer to the context data.\r
-  @param  Sender                 Pointer to the Ip sender of the udp datagram.\r
-  @param  NotifyData             Pointer to the notify data.\r
-\r
-  @return None.\r
+  @param[in]  Status                 The completion status of the output udp datagram.\r
+  @param[in]  Context                Pointer to the context data.\r
+  @param[in]  Sender                 Pointer to the Ip sender of the udp datagram.\r
+  @param[in]  NotifyData             Pointer to the notify data.\r
 \r
 **/\r
 VOID\r
@@ -1051,15 +1015,13 @@ Udp4DgramSent (
 /**\r
   This function processes the received datagram passed up by the IpIo layer.\r
 \r
-  @param  Status                 The status of this udp datagram.\r
-  @param  IcmpError              The IcmpError code, only available when Status is\r
+  @param[in]  Status             The status of this udp datagram.\r
+  @param[in]  IcmpError          The IcmpError code, only available when Status is\r
                                  EFI_ICMP_ERROR.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA.\r
-  @param  Packet                 Pointer to the NET_BUF containing the received udp\r
+  @param[in]  NetSession         Pointer to the EFI_NET_SESSION_DATA.\r
+  @param[in]  Packet             Pointer to the NET_BUF containing the received udp\r
                                  datagram.\r
-  @param  Context                Pointer to the context data.\r
-\r
-  @return None.\r
+  @param[in]  Context            Pointer to the context data.\r
 \r
 **/\r
 VOID\r
@@ -1148,9 +1110,9 @@ Udp4LeaveGroup (
   This function cancels the token specified by Arg in the Map. This is a callback\r
   used by Udp4InstanceCancelToken().\r
 \r
-  @param  Map                    Pointer to the NET_MAP.\r
-  @param  Item                   Pointer to the NET_MAP_ITEM.\r
-  @param  Arg                    Pointer to the token to be cancelled, if NULL,\r
+  @param[in]  Map                Pointer to the NET_MAP.\r
+  @param[in]  Item               Pointer to the NET_MAP_ITEM.\r
+  @param[in]  Arg                Pointer to the token to be cancelled, if NULL,\r
                                  the token specified by Item is cancelled.\r
 \r
   @retval EFI_SUCCESS            The token is cancelled if Arg is NULL or the token\r
@@ -1208,9 +1170,7 @@ Udp4CancelTokens (
 /**\r
   This function removes all the Wrap datas in the RcvdDgramQue.\r
 \r
-  @param  Instance           Pointer to the udp instance context data.\r
-\r
-  @return None.\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
 \r
 **/\r
 VOID\r
@@ -1238,8 +1198,8 @@ Udp4FlushRcvdDgram (
 /**\r
   Cancel Udp4 tokens from the Udp4 instance.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-  @param  Token                  Pointer to the token to be canceled, if NULL, all\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
+  @param[in]  Token              Pointer to the token to be canceled, if NULL, all\r
                                  tokens in this instance will be cancelled.\r
 \r
   @retval EFI_SUCCESS            The Token is cancelled.\r
@@ -1291,8 +1251,8 @@ Udp4InstanceCancelToken (
 /**\r
   This function matches the received udp datagram with the Instance.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-  @param  Udp4Session            Pointer to the EFI_UDP4_SESSION_DATA abstracted\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
+  @param[in]  Udp4Session        Pointer to the EFI_UDP4_SESSION_DATA abstracted\r
                                  from the received udp datagram.\r
 \r
   @retval TRUE       The udp datagram matches the receiving requirments of the\r
@@ -1371,10 +1331,8 @@ Udp4MatchDgram (
 /**\r
   This function removes the Wrap specified by Context and release relevant resources.\r
 \r
-  @param  Event                  The Event this notify function registered to.\r
-  @param  Context                Pointer to the context data.\r
-\r
-  @return None.\r
+  @param[in]  Event              The Event this notify function registered to.\r
+  @param[in]  Context            Pointer to the context data.\r
 \r
 **/\r
 VOID\r
@@ -1410,11 +1368,11 @@ Udp4RecycleRxDataWrap (
 /**\r
   This function wraps the Packet and the RxData.\r
 \r
-  @param  Instance               Pointer to the instance context data.\r
-  @param  Packet                 Pointer to the buffer containing the received\r
-                                 datagram.\r
-  @param  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
-                                 datagram.\r
+  @param[in]  Instance               Pointer to the instance context data.\r
+  @param[in]  Packet                 Pointer to the buffer containing the received\r
+                                     datagram.\r
+  @param[in]  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
+                                     datagram.\r
 \r
   @return Pointer to the structure wrapping the RxData and the Packet.\r
 \r
@@ -1467,11 +1425,11 @@ Udp4WrapRxData (
 /**\r
   This function enqueues the received datagram into the instances' receiving queues.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-  @param  Packet                 Pointer to the buffer containing the received\r
-                                 datagram.\r
-  @param  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
-                                 datagram.\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
+  @param[in]  Packet                 Pointer to the buffer containing the received\r
+                                     datagram.\r
+  @param[in]  RxData                 Pointer to the EFI_UDP4_RECEIVE_DATA of this\r
+                                     datagram.\r
 \r
   @return The times this datagram is enqueued.\r
 \r
@@ -1524,9 +1482,7 @@ Udp4EnqueueDgram (
 /**\r
   This function delivers the received datagrams for the specified instance.\r
 \r
-  @param  Instance               Pointer to the instance context data.\r
-\r
-  @return None.\r
+  @param[in]  Instance               Pointer to the instance context data.\r
 \r
 **/\r
 VOID\r
@@ -1590,9 +1546,7 @@ Udp4InstanceDeliverDgram (
 /**\r
   This function delivers the datagrams enqueued in the instances.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-\r
-  @return None.\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
 \r
 **/\r
 VOID\r
@@ -1624,13 +1578,11 @@ Udp4DeliverDgram (
 /**\r
   This function demultiplexes the received udp datagram to the apropriate instances.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA abstrated from\r
-                                 the received datagram.\r
-  @param  Packet                 Pointer to the buffer containing the received udp\r
-                                 datagram.\r
-\r
-  @return None.\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
+  @param[in]  NetSession             Pointer to the EFI_NET_SESSION_DATA abstrated from\r
+                                     the received datagram.\r
+  @param[in]  Packet                 Pointer to the buffer containing the received udp\r
+                                     datagram.\r
 \r
 **/\r
 VOID\r
@@ -1715,13 +1667,11 @@ Udp4Demultiplex (
 /**\r
   This function builds and sends out a icmp port unreachable message.\r
 \r
-  @param  IpIo                   Pointer to the IP_IO instance.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA of the packet\r
-                                 causes this icmp error message.\r
-  @param  Udp4Header             Pointer to the udp header of the datagram causes\r
-                                 this icmp error message.\r
-\r
-  @return None.\r
+  @param[in]  IpIo                   Pointer to the IP_IO instance.\r
+  @param[in]  NetSession             Pointer to the EFI_NET_SESSION_DATA of the packet\r
+                                     causes this icmp error message.\r
+  @param[in]  Udp4Header             Pointer to the udp header of the datagram causes\r
+                                     this icmp error message.\r
 \r
 **/\r
 VOID\r
@@ -1817,13 +1767,11 @@ Udp4SendPortUnreach (
   This function handles the received Icmp Error message and demultiplexes it to the\r
   instance.\r
 \r
-  @param  Udp4Service            Pointer to the udp service context data.\r
-  @param  IcmpError              The icmp error code.\r
-  @param  NetSession             Pointer to the EFI_NET_SESSION_DATA abstracted\r
+  @param[in]  Udp4Service            Pointer to the udp service context data.\r
+  @param[in]  IcmpError              The icmp error code.\r
+  @param[in]  NetSession             Pointer to the EFI_NET_SESSION_DATA abstracted\r
                                  from the received Icmp Error packet.\r
-  @param  Packet                 Pointer to the Icmp Error packet.\r
-\r
-  @return None.\r
+  @param[in]  Packet                 Pointer to the Icmp Error packet.\r
 \r
 **/\r
 VOID\r
@@ -1892,9 +1840,7 @@ Udp4IcmpHandler (
 /**\r
   This function reports the received ICMP error.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-\r
-  @return None.\r
+  @param[in]  Instance               Pointer to the udp instance context data.\r
 \r
 **/\r
 VOID\r
@@ -1937,9 +1883,7 @@ Udp4ReportIcmpError (
   This function is a dummy ext-free function for the NET_BUF created for the output\r
   udp datagram.\r
 \r
-  @param  Context                Pointer to the context data.\r
-\r
-  @return None.\r
+  @param[in]  Context                Pointer to the context data.\r
 \r
 **/\r
 VOID\r
@@ -2089,9 +2033,7 @@ ON_ERROR:
 /**\r
   Clear the variable and free the resource.\r
 \r
-  @param  Udp4Service            Udp4 service data.\r
-\r
-  @return None.\r
+  @param[[in]  Udp4Service            Udp4 service data.\r
 \r
 **/\r
 VOID\r
index 23b07a6d35f3e03c9f8a4fbb6417cfea202d6acf..986768344cf23e6c60ccd9205ffa855591b8abdd 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+  EFI UDPv4 protocol implementation.\r
+   \r
+Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Udp4Impl.h\r
-\r
-Abstract:\r
-\r
-  EFI UDPv4 protocol implementation\r
-\r
-\r
 **/\r
 \r
 #ifndef _UDP4_IMPL_H_\r
@@ -171,8 +163,8 @@ Udp4GetModeData (
   With different parameters in UdpConfigData, Configure() can be used to bind\r
   this instance to specified port.\r
 \r
-  @param  This           Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  UdpConfigData  Pointer to the buffer to receive the current configuration data.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  UdpConfigData     Pointer to the buffer to receive the current configuration data.\r
 \r
   @retval EFI_SUCCESS           The configuration settings were set, changed, or reset successfully.\r
   @retval EFI_NO_MAPPING        When using a default address, configuration (DHCP, BOOTP,\r
@@ -203,10 +195,10 @@ Udp4Configure (
   filtering. If the JoinFlag is FALSE and the MulticastAddress is NULL, then all\r
   currently joined groups are left.\r
 \r
-  @param  This             Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  JoinFlag         Set to TRUE to join a multicast group. Set to FALSE to leave one\r
-                           or all multicast groups.\r
-  @param  MulticastAddress Pointer to multicast group address to join or leave.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  JoinFlag          Set to TRUE to join a multicast group. Set to FALSE to leave one\r
+                                or all multicast groups.\r
+  @param[in]  MulticastAddress  Pointer to multicast group address to join or leave.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_NOT_STARTED       The EFI UDPv4 Protocol instance has not been started.\r
@@ -254,12 +246,12 @@ Udp4Groups (
   copies will be updated automatically whenever the IP driver reconfigures its\r
   instances; as a result, the previous modification to these copies will be lost.\r
 \r
-  @param  This           Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  DeleteRoute    Set to TRUE to delete this route from the routing table.\r
-                         Set to FALSE to add this route to the routing table.\r
-  @param  SubnetAddress  The destination network address that needs to be routed.\r
-  @param  SubnetMask     The subnet mask of SubnetAddress.\r
-  @param  GatewayAddress The gateway IP address for this route.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  DeleteRoute       Set to TRUE to delete this route from the routing table.\r
+                                Set to FALSE to add this route to the routing table.\r
+  @param[in]  SubnetAddress     The destination network address that needs to be routed.\r
+  @param[in]  SubnetMask        The subnet mask of SubnetAddress.\r
+  @param[in]  GatewayAddress    The gateway IP address for this route.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_NOT_STARTED       The EFI UDPv4 Protocol instance has not been started.\r
@@ -291,9 +283,9 @@ Udp4Routes (
   and context for the event will enable the user to receive the notification and\r
   transmitting status.\r
 \r
-  @param  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  Token Pointer to the completion token that will be placed into the\r
-                transmit queue.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  Token             Pointer to the completion token that will be placed into the\r
+                                transmit queue.\r
 \r
   @retval EFI_SUCCESS           The data has been queued for transmission.\r
   @retval EFI_NOT_STARTED       This EFI UDPv4 Protocol instance has not been started.\r
@@ -330,9 +322,9 @@ Udp4Transmit (
   will enable the user to receive the notification and receiving status. That\r
   notification function is guaranteed to not be re-entered.\r
 \r
-  @param  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that is associated with the receive data\r
-                descriptor.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  Token             Pointer to a token that is associated with\r
+                                the receive data descriptor.\r
 \r
   @retval EFI_SUCCESS           The receive completion token was cached.\r
   @retval EFI_NOT_STARTED       This EFI UDPv4 Protocol instance has not been started.\r
@@ -364,11 +356,11 @@ Udp4Receive (
   the asynchronous operation has completed, this function will not signal the\r
   token and EFI_NOT_FOUND is returned.\r
 \r
-  @param  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that has been issued by\r
-                EFI_UDP4_PROTOCOL.Transmit() or\r
-                EFI_UDP4_PROTOCOL.Receive().If NULL, all pending\r
-                tokens are aborted.\r
+  @param[in]  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to a token that has been issued by\r
+                    EFI_UDP4_PROTOCOL.Transmit() or\r
+                    EFI_UDP4_PROTOCOL.Receive().If NULL, all pending\r
+                    tokens are aborted.\r
 \r
   @retval  EFI_SUCCESS           The asynchronous I/O request was aborted and Token.Event\r
                                  was signaled. When Token is NULL, all pending requests are\r
@@ -401,7 +393,7 @@ Udp4Cancel (
   Drivers and applications that are experiencing packet loss should try calling\r
   the Poll() function more often.\r
 \r
-  @param  This Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS           Incoming or outgoing data was processed.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -438,9 +430,7 @@ Udp4CreateService (
 /**\r
   Clean the Udp service context data.\r
 \r
-  @param  Udp4Service            Pointer to the UDP4_SERVICE_DATA.\r
-\r
-  @return None.\r
+  @param[in]  Udp4Service            Pointer to the UDP4_SERVICE_DATA.\r
 \r
 **/\r
 VOID\r
@@ -454,8 +444,6 @@ Udp4CleanService (
   @param  Udp4Service            Pointer to the UDP4_SERVICE_DATA.\r
   @param  Instance               Pointer to the un-initialized UDP4_INSTANCE_DATA.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 Udp4InitInstance (\r
@@ -466,9 +454,7 @@ Udp4InitInstance (
 /**\r
   This function cleans the udp instance.\r
 \r
-  @param  Instance               Pointer to the UDP4_INSTANCE_DATA to clean.\r
-\r
-  @return None.\r
+  @param[in]  Instance               Pointer to the UDP4_INSTANCE_DATA to clean.\r
 \r
 **/\r
 VOID\r
@@ -502,9 +488,9 @@ Udp4Bind (
   This function is used to check whether the NewConfigData has any un-reconfigurable\r
   parameters changed compared to the OldConfigData.\r
 \r
-  @param  OldConfigData          Pointer to the current ConfigData the udp instance\r
+  @param[in]  OldConfigData      Pointer to the current ConfigData the udp instance\r
                                  uses.\r
-  @param  NewConfigData          Pointer to the new ConfigData.\r
+  @param[in]  NewConfigData      Pointer to the new ConfigData.\r
 \r
   @retval TRUE     The instance is reconfigurable.\r
   @retval FALSE    Otherwise.\r
@@ -519,10 +505,8 @@ Udp4IsReconfigurable (
 /**\r
   This function builds the Ip4 configdata from the Udp4ConfigData.\r
 \r
-  @param  Udp4ConfigData         Pointer to the EFI_UDP4_CONFIG_DATA.\r
-  @param  Ip4ConfigData          Pointer to the EFI_IP4_CONFIG_DATA.\r
-\r
-  @return None.\r
+  @param[in]       Udp4ConfigData    Pointer to the EFI_UDP4_CONFIG_DATA.\r
+  @param[in, out]  Ip4ConfigData     Pointer to the EFI_IP4_CONFIG_DATA.\r
 \r
 **/\r
 VOID\r
@@ -534,8 +518,8 @@ Udp4BuildIp4ConfigData (
 /**\r
   This function validates the TxToken, it returns the error code according to the spec.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-  @param  TxToken                Pointer to the token to be checked.\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
+  @param[in]  TxToken            Pointer to the token to be checked.\r
 \r
   @retval EFI_SUCCESS            The TxToken is valid.\r
   @retval EFI_INVALID_PARAMETER  One or more of the following are TRUE: This is\r
@@ -566,10 +550,10 @@ Udp4ValidateTxToken (
 /**\r
   This function checks whether the specified Token duplicates with the one in the Map.\r
 \r
-  @param  Map                    Pointer to the NET_MAP.\r
-  @param  Item                   Pointer to the NET_MAP_ITEM contain the pointer to\r
+  @param[in]  Map                Pointer to the NET_MAP.\r
+  @param[in]  Item               Pointer to the NET_MAP_ITEM contain the pointer to\r
                                  the Token.\r
-  @param  Context                Pointer to the Token to be checked.\r
+  @param[in]  Context            Pointer to the Token to be checked.\r
 \r
   @retval EFI_SUCCESS            The Token specified by Context differs from the\r
                                  one in the Item.\r
@@ -587,11 +571,11 @@ Udp4TokenExist (
   This function calculates the checksum for the Packet, utilizing the pre-calculated\r
   pseudo HeadSum to reduce some overhead.\r
 \r
-  @param  Packet                 Pointer to the NET_BUF contains the udp datagram.\r
-  @param  HeadSum                Checksum of the pseudo header execpt the length\r
+  @param[in]  Packet             Pointer to the NET_BUF contains the udp datagram.\r
+  @param[in]  HeadSum            Checksum of the pseudo header execpt the length\r
                                  field.\r
 \r
-  @return The 16-bit checksum of this udp datagram.\r
+  @retval The 16-bit checksum of this udp datagram.\r
 \r
 **/\r
 UINT16\r
@@ -603,8 +587,8 @@ Udp4Checksum (
 /**\r
   This function removes the specified Token from the TokenMap.\r
 \r
-  @param  TokenMap               Pointer to the NET_MAP containing the tokens.\r
-  @param  Token                  Pointer to the Token to be removed.\r
+  @param  TokenMap           Pointer to the NET_MAP containing the tokens.\r
+  @param  Token              Pointer to the Token to be removed.\r
 \r
   @retval EFI_SUCCESS            The specified Token is removed from the TokenMap.\r
   @retval EFI_NOT_FOUND          The specified Token is not found in the TokenMap.\r
@@ -639,9 +623,7 @@ Udp4LeaveGroup (
 /**\r
   This function removes all the Wrap datas in the RcvdDgramQue.\r
 \r
-  @param  Instance           Pointer to the udp instance context data.\r
-\r
-  @return None.\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
 \r
 **/\r
 VOID\r
@@ -652,8 +634,8 @@ Udp4FlushRcvdDgram (
 /**\r
   Cancel Udp4 tokens from the Udp4 instance.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-  @param  Token                  Pointer to the token to be canceled, if NULL, all\r
+  @param[in]  Instance           Pointer to the udp instance context data.\r
+  @param[in]  Token              Pointer to the token to be canceled, if NULL, all\r
                                  tokens in this instance will be cancelled.\r
 \r
   @retval EFI_SUCCESS            The Token is cancelled.\r
@@ -669,9 +651,7 @@ Udp4InstanceCancelToken (
 /**\r
   This function delivers the received datagrams for the specified instance.\r
 \r
-  @param  Instance               Pointer to the instance context data.\r
-\r
-  @return None.\r
+  @param[in]  Instance               Pointer to the instance context data.\r
 \r
 **/\r
 VOID\r
@@ -682,9 +662,7 @@ Udp4InstanceDeliverDgram (
 /**\r
   This function reports the received ICMP error.\r
 \r
-  @param  Instance               Pointer to the udp instance context data.\r
-\r
-  @return None.\r
+  @param[in]  Instance               Pointer to the udp instance context data.\r
 \r
 **/\r
 VOID\r
@@ -696,9 +674,7 @@ Udp4ReportIcmpError (
   This function is a dummy ext-free function for the NET_BUF created for the output\r
   udp datagram.\r
 \r
-  @param  Context                Pointer to the context data.\r
-\r
-  @return None.\r
+  @param[in]  Context                Pointer to the context data.\r
 \r
 **/\r
 VOID\r
@@ -725,9 +701,7 @@ Udp4SetVariableData (
 /**\r
   Clear the variable and free the resource.\r
 \r
-  @param  Udp4Service            Udp4 service data.\r
-\r
-  @return None.\r
+  @param[[in]  Udp4Service            Udp4 service data.\r
 \r
 **/\r
 VOID\r
index d46a0de20e0bae1633f2d1a1400e04f51717da41..a787ec440fac48037ee2183a4abf174fe9764ca3 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -9,13 +9,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Udp4Main.c\r
-\r
-Abstract:\r
-\r
-\r
 **/\r
 \r
 #include "Udp4Impl.h"\r
@@ -114,8 +107,8 @@ Udp4GetModeData (
   With different parameters in UdpConfigData, Configure() can be used to bind\r
   this instance to specified port.\r
 \r
-  @param  This           Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  UdpConfigData  Pointer to the buffer to receive the current configuration data.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  UdpConfigData     Pointer to the buffer to receive the current configuration data.\r
 \r
   @retval EFI_SUCCESS           The configuration settings were set, changed, or reset successfully.\r
   @retval EFI_NO_MAPPING        When using a default address, configuration (DHCP, BOOTP,\r
@@ -305,10 +298,10 @@ ON_EXIT:
   filtering. If the JoinFlag is FALSE and the MulticastAddress is NULL, then all\r
   currently joined groups are left.\r
 \r
-  @param  This             Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  JoinFlag         Set to TRUE to join a multicast group. Set to FALSE to leave one\r
-                           or all multicast groups.\r
-  @param  MulticastAddress Pointer to multicast group address to join or leave.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  JoinFlag          Set to TRUE to join a multicast group. Set to FALSE to leave one\r
+                                or all multicast groups.\r
+  @param[in]  MulticastAddress  Pointer to multicast group address to join or leave.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_NOT_STARTED       The EFI UDPv4 Protocol instance has not been started.\r
@@ -420,12 +413,12 @@ ON_EXIT:
   copies will be updated automatically whenever the IP driver reconfigures its\r
   instances; as a result, the previous modification to these copies will be lost.\r
 \r
-  @param  This           Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  DeleteRoute    Set to TRUE to delete this route from the routing table.\r
-                         Set to FALSE to add this route to the routing table.\r
-  @param  SubnetAddress  The destination network address that needs to be routed.\r
-  @param  SubnetMask     The subnet mask of SubnetAddress.\r
-  @param  GatewayAddress The gateway IP address for this route.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  DeleteRoute       Set to TRUE to delete this route from the routing table.\r
+                                Set to FALSE to add this route to the routing table.\r
+  @param[in]  SubnetAddress     The destination network address that needs to be routed.\r
+  @param[in]  SubnetMask        The subnet mask of SubnetAddress.\r
+  @param[in]  GatewayAddress    The gateway IP address for this route.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_NOT_STARTED       The EFI UDPv4 Protocol instance has not been started.\r
@@ -483,9 +476,9 @@ Udp4Routes (
   and context for the event will enable the user to receive the notification and\r
   transmitting status.\r
 \r
-  @param  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  Token Pointer to the completion token that will be placed into the\r
-                transmit queue.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  Token             Pointer to the completion token that will be placed into the\r
+                                transmit queue.\r
 \r
   @retval EFI_SUCCESS           The data has been queued for transmission.\r
   @retval EFI_NOT_STARTED       This EFI UDPv4 Protocol instance has not been started.\r
@@ -710,9 +703,9 @@ ON_EXIT:
   will enable the user to receive the notification and receiving status. That\r
   notification function is guaranteed to not be re-entered.\r
 \r
-  @param  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that is associated with the receive data\r
-                descriptor.\r
+  @param[in]  This              Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  Token             Pointer to a token that is associated with\r
+                                the receive data descriptor.\r
 \r
   @retval EFI_SUCCESS           The receive completion token was cached.\r
   @retval EFI_NOT_STARTED       This EFI UDPv4 Protocol instance has not been started.\r
@@ -808,11 +801,11 @@ ON_EXIT:
   the asynchronous operation has completed, this function will not signal the\r
   token and EFI_NOT_FOUND is returned.\r
 \r
-  @param  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
-  @param  Token Pointer to a token that has been issued by\r
-                EFI_UDP4_PROTOCOL.Transmit() or\r
-                EFI_UDP4_PROTOCOL.Receive().If NULL, all pending\r
-                tokens are aborted.\r
+  @param[in]  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  Token Pointer to a token that has been issued by\r
+                    EFI_UDP4_PROTOCOL.Transmit() or\r
+                    EFI_UDP4_PROTOCOL.Receive().If NULL, all pending\r
+                    tokens are aborted.\r
 \r
   @retval  EFI_SUCCESS           The asynchronous I/O request was aborted and Token.Event\r
                                  was signaled. When Token is NULL, all pending requests are\r
@@ -881,7 +874,7 @@ Udp4Cancel (
   Drivers and applications that are experiencing packet loss should try calling\r
   the Poll() function more often.\r
 \r
-  @param  This Pointer to the EFI_UDP4_PROTOCOL instance.\r
+  @param[in]  This  Pointer to the EFI_UDP4_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS           Incoming or outgoing data was processed.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r