]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.h
code scrub fix
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4If.h
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