/** @file\r
Declaration of strctures and functions for MnpDxe driver.\r
\r
-Copyright (c) 2005 - 2009, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions\r
-of the BSD License which accompanies this distribution. The full\r
-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
+Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#include <Library/DpcLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
#include <Library/DevicePathLib.h>\r
+#include <Library/PrintLib.h>\r
\r
#include "ComponentName.h"\r
\r
#define MNP_DEVICE_DATA_SIGNATURE SIGNATURE_32 ('M', 'n', 'p', 'D')\r
\r
+//\r
+// Global Variables\r
+//\r
+extern EFI_DRIVER_BINDING_PROTOCOL gMnpDriverBinding;\r
+\r
typedef struct {\r
UINT32 Signature;\r
\r
LIST_ENTRY GroupAddressList;\r
UINT32 GroupAddressCount;\r
\r
- EFI_EVENT TxTimeoutEvent;\r
+ LIST_ENTRY FreeTxBufList;\r
+ LIST_ENTRY AllTxBufList;\r
+ UINT32 TxBufCount;\r
\r
NET_BUF_QUEUE FreeNbufQue;\r
INTN NbufCnt;\r
BOOLEAN EnableSystemPoll;\r
\r
EFI_EVENT TimeoutCheckTimer;\r
+ EFI_EVENT MediaDetectTimer;\r
\r
UINT32 UnicastCount;\r
UINT32 BroadcastCount;\r
UINT32 BufferLength;\r
UINT32 PaddingSize;\r
NET_BUF *RxNbufCache;\r
- UINT8 *TxBuf;\r
} MNP_DEVICE_DATA;\r
\r
#define MNP_DEVICE_DATA_FROM_THIS(a) \\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
+ @retval EFI_OUT_OF_RESOURCES There are not enough resources available to\r
create the child.\r
@retval Others The child handle was not created.\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_INVALID_PARAMETER ChildHandle is NULL.\r
@retval EFI_ACCESS_DENIED The protocol could not be removed from the\r
ChildHandle because its services are being\r
used.\r