]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkModulePkg / Library / EdkUefiRuntimeLib / Common / RuntimeLib.c
index ce4efffbd73626b1734b0db707605d85b5343668..3cb11d89243864ee13124d57f1eaca1d0a8b7814 100644 (file)
@@ -1,14 +1,14 @@
 /**@file\r
   Library utility functions for Runtime driver.\r
-  \r
+\r
 Copyright (c) 2006 Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \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
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\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
 \r
 **/\r
 \r
@@ -25,7 +25,7 @@ EFI_RUNTIME_SERVICES          *mRT;
 \r
 /**\r
   Set AtRuntime flag as TRUE after ExitBootServices\r
-  \r
+\r
   @param[in]  Event   The Event that is being processed\r
   @param[in]  Context Event Context\r
 **/\r
@@ -46,9 +46,9 @@ RuntimeDriverExitBootServices (
 \r
 /**\r
   Fixup internal data so that EFI can be call in virtual mode.\r
-  Call the passed in Child Notify event and convert any pointers in \r
+  Call the passed in Child Notify event and convert any pointers in\r
   lib to virtual mode.\r
-  \r
+\r
   @param[in]    Event   The Event that is being processed\r
   @param[in]    Context Event Context\r
 **/\r
@@ -63,7 +63,7 @@ RuntimeLibVirtualNotifyEvent (
   UINTN Index;\r
   EFI_EVENT_NOTIFY  ChildNotifyEventHandler;\r
 \r
-  for (Index = 0; \r
+  for (Index = 0;\r
        _gDriverSetVirtualAddressMapEvent[Index] != NULL;\r
        Index++) {\r
     ChildNotifyEventHandler = _gDriverSetVirtualAddressMapEvent[Index];\r
@@ -79,11 +79,11 @@ RuntimeLibVirtualNotifyEvent (
 }\r
 \r
 /**\r
-  Intialize runtime Driver Lib if it has not yet been initialized. \r
-  \r
+  Intialize runtime Driver Lib if it has not yet been initialized.\r
+\r
   @param[in]  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param[in]  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @return     EFI_STATUS    always returns EFI_SUCCESS except EFI_ALREADY_STARTED if already started.\r
 **/\r
 EFI_STATUS\r
@@ -101,11 +101,11 @@ RuntimeDriverLibConstruct (
   \r
   //\r
   // Register SetVirtualAddressMap () notify function\r
-  // \r
+  //\r
   ASSERT (gBS != NULL);\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+                  TPL_NOTIFY,\r
                   RuntimeLibVirtualNotifyEvent,\r
                   NULL,\r
                   &mEfiVirtualNotifyEvent\r
@@ -118,7 +118,7 @@ RuntimeDriverLibConstruct (
 \r
 /**\r
   This routine will free some resources which have been allocated in\r
-  EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error, \r
+  EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,\r
   it must call this routine to free the allocated resource before the exiting.\r
 \r
   @retval     EFI_SUCCESS       Shutdown the Runtime Driver Lib successfully\r
@@ -139,13 +139,13 @@ RuntimeDriverLibDeconstruct (
   ASSERT (gBS != NULL);\r
   Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   return Status;\r
 }\r
 \r
 /**\r
   Return TRUE if ExitBootServices () has been called\r
-  \r
+\r
   @retval TRUE If ExitBootServices () has been called\r
 **/\r
 BOOLEAN\r
@@ -159,7 +159,7 @@ EfiAtRuntime (
 \r
 /**\r
   Return TRUE if SetVirtualAddressMap () has been called\r
-  \r
+\r
   @retval TRUE  If SetVirtualAddressMap () has been called\r
 **/\r
 BOOLEAN\r