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
This commit is contained in:
mdkinney
2009-07-11 22:51:51 +00:00
parent e9880e2539
commit d8d26fb207
33 changed files with 53 additions and 174 deletions

View File

@@ -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

View File

@@ -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;
}

View File

@@ -30,6 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DpcLib.h>
//
// Ethernet protocol type definitions.

View File

@@ -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);