From d8d26fb207e02aa5ef57e2bcb213f9dda16166cc Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sat, 11 Jul 2009 22:51:51 +0000 Subject: Retire NetLibQueueDpc() and NetLibDispatchDpc() and use QueueDpc() and DispatchDpc() from the DpcLib instead. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8897 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h | 1 + MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf | 3 +-- MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c | 4 ++-- MdeModulePkg/Universal/Network/MnpDxe/MnpMain.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'MdeModulePkg/Universal/Network/MnpDxe') diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h b/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h index 3fc7da1920..b015304061 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.h @@ -27,6 +27,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include #include "ComponentName.h" diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf b/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf index 058a9c4562..a03592bfb8 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf @@ -54,10 +54,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. UefiDriverEntryPoint DebugLib NetLib - + DpcLib [Protocols] gEfiManagedNetworkServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiSimpleNetworkProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiManagedNetworkProtocolGuid # PROTOCOL ALWAYS_CONSUMED - diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c index 57b1f7b5bc..0c8196a768 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c @@ -282,7 +282,7 @@ SIGNAL_TOKEN: // // Dispatch the DPC queued by the NotifyFunction of Token->Event. // - NetLibDispatchDpc (); + DispatchDpc (); return EFI_SUCCESS; } @@ -1064,5 +1064,5 @@ MnpSystemPoll ( // // Dispatch the DPC queued by the NotifyFunction of rx token's events. // - NetLibDispatchDpc (); + DispatchDpc (); } diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpMain.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpMain.c index f93ee6ab77..79ea478914 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpMain.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpMain.c @@ -632,7 +632,7 @@ MnpReceive ( // // Dispatch the DPC queued by the NotifyFunction of Token->Event. // - NetLibDispatchDpc (); + DispatchDpc (); } ON_EXIT: @@ -709,7 +709,7 @@ MnpCancel ( // // Dispatch the DPC queued by the NotifyFunction of the cancled token's events. // - NetLibDispatchDpc (); + DispatchDpc (); ON_EXIT: gBS->RestoreTPL (OldTpl); @@ -774,7 +774,7 @@ MnpPoll ( // // Dispatch the DPC queued by the NotifyFunction of rx token's events. // - NetLibDispatchDpc (); + DispatchDpc (); ON_EXIT: gBS->RestoreTPL (OldTpl); -- cgit v1.2.3