]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Arp.h
Fix doxygen comment for structure and macro
[mirror_edk2.git] / MdePkg / Include / Protocol / Arp.h
index 662fd9de2529af66ca4630eec5bcef1fa296af01..21d815668907abe47ffe17c6a9f0be4bdd9acc27 100644 (file)
@@ -10,7 +10,7 @@
   address to hardware address used by a data link protocol.\r
   \r
   \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2008, Intel Corporation                                                         \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
@@ -59,8 +59,8 @@ typedef struct {
 /**\r
   Assigns a station address (protocol type and network address) to this instance of the ARP cache.\r
 \r
-  @param  This                   A pointer to the EFI_ARP_PROTOCOL instance.\r
-  @param  ConfigData             A pointer to the EFI_ARP_CONFIG_DATA structure.Buffer\r
+  @param  This                  A pointer to the EFI_ARP_PROTOCOL instance.\r
+  @param  ConfigData            A pointer to the EFI_ARP_CONFIG_DATA structure.Buffer\r
 \r
   @retval EFI_SUCCESS           The new station address was successfully registered.\r
   @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
@@ -72,11 +72,10 @@ typedef struct {
 **/\r
 typedef \r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_CONFIGURE) (\r
+(EFIAPI *EFI_ARP_CONFIGURE)(\r
   IN EFI_ARP_PROTOCOL       *This,\r
   IN EFI_ARP_CONFIG_DATA    *ConfigData   OPTIONAL\r
-  )\r
-;  \r
+  );  \r
 \r
 /**\r
   Inserts an entry to the ARP cache.\r
@@ -93,10 +92,14 @@ EFI_STATUS
                           nonzero value will override the one given by Configure() if\r
                           the entry to be added is dynamic entry.\r
   @param  Overwrite       If TRUE, the matching cache entry will be overwritten with the\r
-                          supplied parameters. If FALSE, EFI_ACCESS_DENIED\r
+                          supplied parameters. If FALSE, EFI_ACCESS_DENIED is returned \r
+                          if the corresponding cache entry already exists.\r
 \r
   @retval EFI_SUCCESS           The entry has been added or updated.\r
   @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
+                                This is NULL. DenyFlag is FALSE and TargetHwAddress is NULL.\r
+                                DenyFlag is FALSE and TargetSwAddress is NULL. TargetHwAddress is NULL and TargetSwAddress is NULL. \r
+                                Both TargetSwAddress and TargetHwAddress are not NULL when DenyFlag is TRUE.\r
   @retval EFI_OUT_OF_RESOURCES  The new ARP cache entry could not be allocated.\r
   @retval EFI_ACCESS_DENIED     The ARP cache entry already exists and Overwrite is not true.\r
   @retval EFI_NOT_STARTED       The ARP driver instance has not been configured.\r
@@ -104,15 +107,14 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_ADD) (\r
+(EFIAPI *EFI_ARP_ADD)(\r
   IN EFI_ARP_PROTOCOL       *This,\r
   IN BOOLEAN                DenyFlag,\r
   IN VOID                   *TargetSwAddress  OPTIONAL,\r
   IN VOID                   *TargetHwAddress  OPTIONAL,\r
   IN UINT32                 TimeoutValue,\r
   IN BOOLEAN                Overwrite\r
-  )\r
-;  \r
+  );  \r
 \r
 /**\r
   Locates one or more entries in the ARP cache.\r
@@ -132,13 +134,15 @@ EFI_STATUS
 \r
   @retval EFI_SUCCESS           The requested ARP cache entries were copied into the buffer.\r
   @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
+                                This is NULL. Both EntryCount and EntryLength are NULL, \r
+                                when Refresh is FALSE.\r
   @retval EFI_NOT_FOUND         No matching entries were found.\r
   @retval EFI_NOT_STARTED       The ARP driver instance has not been configured.\r
 \r
 **/\r
 typedef \r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_FIND) (\r
+(EFIAPI *EFI_ARP_FIND)(\r
   IN EFI_ARP_PROTOCOL       *This,\r
   IN BOOLEAN                BySwAddress,\r
   IN VOID                   *AddressBuffer    OPTIONAL,\r
@@ -146,8 +150,7 @@ EFI_STATUS
   OUT UINT32                *EntryCount       OPTIONAL,\r
   OUT EFI_ARP_FIND_DATA     **Entries         OPTIONAL,\r
   IN BOOLEAN                Refresh\r
-  )\r
-;  \r
+  );  \r
 \r
 \r
 /**\r
@@ -167,17 +170,16 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_DELETE) (\r
+(EFIAPI *EFI_ARP_DELETE)(\r
   IN EFI_ARP_PROTOCOL       *This,\r
   IN BOOLEAN                BySwAddress,\r
   IN VOID                   *AddressBuffer   OPTIONAL\r
-  )\r
-;  \r
+  );  \r
 \r
 /**\r
   Removes all dynamic ARP cache entries that were added by this interface.\r
 \r
-  @param  This                   A pointer to the EFI_ARP_PROTOCOL instance.\r
+  @param  This                  A pointer to the EFI_ARP_PROTOCOL instance.\r
                                  \r
   @retval EFI_SUCCESS           The cache has been flushed.\r
   @retval EFI_INVALID_PARAMETER This is NULL.\r
@@ -187,10 +189,9 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_FLUSH) (\r
+(EFIAPI *EFI_ARP_FLUSH)(\r
   IN EFI_ARP_PROTOCOL       *This\r
-  )\r
-;  \r
+  );  \r
 \r
 /**\r
   Starts an ARP request session.\r
@@ -218,13 +219,12 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_REQUEST) (\r
+(EFIAPI *EFI_ARP_REQUEST)(\r
   IN EFI_ARP_PROTOCOL       *This, \r
   IN VOID                   *TargetSwAddress  OPTIONAL,\r
   IN EFI_EVENT              ResolvedEvent     OPTIONAL,\r
   OUT VOID                  *TargetHwAddress  \r
-  )\r
-;  \r
+  );  \r
 \r
 /**\r
   Cancels an ARP request session.\r
@@ -244,13 +244,39 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_ARP_CANCEL) (\r
+(EFIAPI *EFI_ARP_CANCEL)(\r
   IN EFI_ARP_PROTOCOL       *This, \r
   IN VOID                   *TargetSwAddress  OPTIONAL,\r
   IN EFI_EVENT              ResolvedEvent     OPTIONAL\r
-  )\r
-;  \r
+  );  \r
 \r
+/**\r
+  @par Protocol Description:\r
+  ARP is used to resolve local network protocol addresses into \r
+  network hardware addresses.\r
+\r
+  @param Configure\r
+  Adds a new station address (protocol type and network address) to the ARP cache.\r
+  \r
+  @param Add\r
+  Manually inserts an entry to the ARP cache for administrative purpose.\r
+\r
+  @param Find\r
+  Locates one or more entries in the ARP cache.\r
+\r
+  @param Delete\r
+  Removes an entry from the ARP cache.\r
+  \r
+  @param Flush\r
+  Removes all dynamic ARP cache entries of a specified protocol type.\r
+  \r
+  @param Request\r
+  Starts an ARP request session.\r
+  \r
+  @param Cancel\r
+  Abort previous ARP request session.\r
+\r
+**/\r
 struct _EFI_ARP_PROTOCOL {\r
   EFI_ARP_CONFIGURE         Configure;\r
   EFI_ARP_ADD               Add;\r