]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Universal / Network / MnpDxe / MnpDriver.h
index f0968624852ba6b44dc658c926d24856d8ecf3c7..150d21e9ec16b1c7f8bf8d792a140a62bebed853 100644 (file)
@@ -1,15 +1,8 @@
 /** @file\r
   Declaration of strctures and functions for MnpDxe driver.\r
 \r
-Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
-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
@@ -33,11 +26,17 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #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
@@ -61,7 +60,9 @@ typedef struct {
   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
@@ -84,7 +85,6 @@ typedef struct {
   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
@@ -225,7 +225,7 @@ MnpDriverBindingStop (
 \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