/** @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
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
@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
@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
@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
\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
@param Context Pointer to the context data registered to the\r
event.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
EFIAPI\r