]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c
Change the file headers and some function comments.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / MnpDxe / MnpIo.c
index fc53f0e8daf03452eeb7102e3ff0af11c85ea6fb..d63bad00b88c8c4accfe9eb34721959b2e9a4385 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
-\r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+    Implementation of Managed Network Protocol I/O functions.\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
-  MnpIo.c\r
-\r
-Abstract:\r
-\r
-  Implementation of Managed Network Protocol I/O functions.\r
-\r
-\r
 **/\r
 \r
 #include "MnpImpl.h"\r
@@ -124,8 +116,6 @@ MnpIsValidTxToken (
   @param  PktLen                Pointer to a UINT32 variable used to record the\r
                                 packet's length.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 MnpBuildTxPacket (\r
@@ -405,7 +395,6 @@ MnpInstanceDeliverPacket (
   @return None.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 MnpDeliverPacket (\r
   IN MNP_SERVICE_DATA  *MnpServiceData\r
@@ -435,8 +424,6 @@ MnpDeliverPacket (
   @param  Event                 The event this notify function registered to.\r
   @param  Context               Pointer to the context data registerd to the Event.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -488,7 +475,6 @@ MnpRecycleRxData (
   @return None.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 MnpQueueRcvdPacket (\r
   IN MNP_INSTANCE_DATA  *Instance,\r
@@ -550,7 +536,6 @@ MnpQueueRcvdPacket (
   @return The received packet matches the instance's receive filters or not.\r
 \r
 **/\r
-STATIC\r
 BOOLEAN\r
 MnpMatchPacket (\r
   IN MNP_INSTANCE_DATA                 *Instance,\r
@@ -632,7 +617,6 @@ MnpMatchPacket (
   @return None.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 MnpAnalysePacket (\r
   IN  MNP_SERVICE_DATA                  *MnpServiceData,\r
@@ -729,7 +713,6 @@ MnpAnalysePacket (
   @return Pointer to a MNP_RXDATA_WRAP which wraps the RxData.\r
 \r
 **/\r
-STATIC\r
 MNP_RXDATA_WRAP *\r
 MnpWrapRxData (\r
   IN MNP_INSTANCE_DATA                 *Instance,\r
@@ -787,7 +770,6 @@ MnpWrapRxData (
   @return None.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 MnpEnqueuePacket (\r
   IN MNP_SERVICE_DATA   *MnpServiceData,\r
@@ -1013,9 +995,7 @@ EXIT:
   @param  Event                 The event this notify function registered to.\r
   @param  Context               Pointer to the context data registered to the\r
                                 event.\r
-\r
-  @return None.\r
-\r
+   \r
 **/\r
 VOID\r
 EFIAPI\r
@@ -1054,9 +1034,12 @@ MnpCheckPacketTimeout (
 \r
       RxDataWrap = NET_LIST_USER_STRUCT (RxEntry, MNP_RXDATA_WRAP, WrapEntry);\r
 \r
-      if (RxDataWrap->TimeoutTick >= MNP_TIMEOUT_CHECK_INTERVAL) {\r
+      //\r
+      // TimeoutTick unit is ms, MNP_TIMEOUT_CHECK_INTERVAL unit is 100ns.\r
+      //\r
+      if (RxDataWrap->TimeoutTick >= (MNP_TIMEOUT_CHECK_INTERVAL / 10)) {\r
 \r
-        RxDataWrap->TimeoutTick -= MNP_TIMEOUT_CHECK_INTERVAL;\r
+        RxDataWrap->TimeoutTick -= (MNP_TIMEOUT_CHECK_INTERVAL / 10);\r
       } else {\r
         //\r
         // Drop the timeout packet.\r
@@ -1080,8 +1063,6 @@ MnpCheckPacketTimeout (
   @param  Context               Pointer to the context data registered to the\r
                                 event.\r
 \r
-  @return None.\r
-\r
 **/\r
 VOID\r
 EFIAPI\r