]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Library/Library.c
The file name Exec.h contains UEFI Event support functions and structure. But its...
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Library / Library.c
index 5ba89fdc21534b03d3a09413327254fbebcec179..19fa2ddcdf776f9af8b0dc45ec100b2275deae65 100644 (file)
@@ -103,66 +103,4 @@ CoreReleaseLock (
 }\r
 \r
 \r
-/**\r
-  Create a protocol notification event and return it.\r
-\r
-  @param  ProtocolGuid       Protocol to register notification event on.\r
-  @param  NotifyTpl          Maximum TPL to signal the NotifyFunction.\r
-  @param  NotifyFunction     EFI notification routine.\r
-  @param  NotifyContext      Context passed into Event when it is created.\r
-  @param  Registration       Registration key returned from\r
-                             RegisterProtocolNotify().\r
-  @param  SignalFlag         Boolean value to decide whether kick the event after\r
-                             register or not.\r
-\r
-  @return The EFI_EVENT that has been registered to be signaled when a ProtocolGuid\r
-          is added to the system.\r
-\r
-**/\r
-EFI_EVENT\r
-CoreCreateProtocolNotifyEvent (\r
-  IN EFI_GUID             *ProtocolGuid,\r
-  IN EFI_TPL              NotifyTpl,\r
-  IN EFI_EVENT_NOTIFY     NotifyFunction,\r
-  IN VOID                 *NotifyContext,\r
-  OUT VOID                **Registration,\r
-  IN  BOOLEAN             SignalFlag\r
-  )\r
-{\r
-  EFI_STATUS              Status;\r
-  EFI_EVENT               Event;\r
-\r
-  //\r
-  // Create the event\r
-  //\r
-  Status = CoreCreateEvent (\r
-            EVT_NOTIFY_SIGNAL,\r
-            NotifyTpl,\r
-            NotifyFunction,\r
-            NotifyContext,\r
-            &Event\r
-            );\r
-  ASSERT_EFI_ERROR (Status);\r
-\r
-  //\r
-  // Register for protocol notifactions on this event\r
-  //\r
-  Status = CoreRegisterProtocolNotify (\r
-             ProtocolGuid,\r
-             Event,\r
-             Registration\r
-             );\r
-  ASSERT_EFI_ERROR (Status);\r
-\r
-  if (SignalFlag) {\r
-    //\r
-    // Kick the event so we will perform an initial pass of\r
-    // current installed drivers\r
-    //\r
-    CoreSignalEvent (Event);\r
-  }\r
-\r
-  return Event;\r
-}\r
-\r
 \r