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/ArpDxe/ArpDxe.inf | 3 +-- MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c | 6 +++--- MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.h | 1 + MdeModulePkg/Universal/Network/ArpDxe/ArpMain.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'MdeModulePkg/Universal/Network/ArpDxe') diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf b/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf index 21ad6e16e4..a3b2427463 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf @@ -52,11 +52,10 @@ UefiDriverEntryPoint DebugLib NetLib - + DpcLib [Protocols] gEfiManagedNetworkServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiArpServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiManagedNetworkProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiArpProtocolGuid # PROTOCOL ALWAYS_CONSUMED - diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c index a3923d95bd..9704f2139c 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c @@ -325,7 +325,7 @@ ArpOnFrameRcvd ( // // Request ArpOnFrameRcvdDpc as a DPC at TPL_CALLBACK // - NetLibQueueDpc (TPL_CALLBACK, ArpOnFrameRcvdDpc, Context); + QueueDpc (TPL_CALLBACK, ArpOnFrameRcvdDpc, Context); } /** @@ -386,7 +386,7 @@ ArpOnFrameSent ( // // Request ArpOnFrameSentDpc as a DPC at TPL_CALLBACK // - NetLibQueueDpc (TPL_CALLBACK, ArpOnFrameSentDpc, Context); + QueueDpc (TPL_CALLBACK, ArpOnFrameSentDpc, Context); } @@ -812,7 +812,7 @@ ArpAddressResolved ( // // Dispatch the DPCs queued by the NotifyFunction of the Context->UserRequestEvent. // - NetLibDispatchDpc (); + DispatchDpc (); return Count; } diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.h b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.h index 77873dc674..bc9128d33b 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.h +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.h @@ -30,6 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include // // Ethernet protocol type definitions. diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpMain.c b/MdeModulePkg/Universal/Network/ArpDxe/ArpMain.c index ac76fcd632..0f66580bec 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpMain.c +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpMain.c @@ -668,7 +668,7 @@ SIGNAL_USER: // // Dispatch the DPC queued by the NotifyFunction of ResolvedEvent. // - NetLibDispatchDpc (); + DispatchDpc (); } return Status; @@ -737,7 +737,7 @@ ArpCancel ( // Dispatch the DPCs queued by the NotifyFunction of the events signaled // by ArpCancleRequest. // - NetLibDispatchDpc (); + DispatchDpc (); gBS->RestoreTPL (OldTpl); -- cgit v1.2.3