]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/Dxe/Event/timer.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkModulePkg / Core / Dxe / Event / timer.c
index a49701519e4cfe8ccc26c75f0c33e658640ccc08..0f886f96d377542421152452211110818d0110f1 100644 (file)
@@ -1,16 +1,16 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \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
+Copyright (c) 2006, Intel Corporation\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
 Module Name:\r
-  \r
+\r
   timer.c\r
 \r
 Abstract:\r
@@ -52,10 +52,10 @@ CoreInsertEventTimer (
 //\r
 \r
 static LIST_ENTRY       mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList);\r
-static EFI_LOCK         mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL - 1);\r
+static EFI_LOCK         mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL - 1);\r
 static EFI_EVENT        mEfiCheckTimerEvent;\r
 \r
-static EFI_LOCK         mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);\r
+static EFI_LOCK         mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);\r
 static UINT64           mEfiSystemTime = 0;\r
 \r
 //\r
@@ -75,7 +75,7 @@ Routine Description:
 Arguments:\r
 \r
   None\r
-    \r
+\r
 Returns:\r
 \r
   None\r
@@ -85,8 +85,8 @@ Returns:
   EFI_STATUS  Status;\r
 \r
   Status = CoreCreateEvent (\r
-              EFI_EVENT_NOTIFY_SIGNAL,\r
-              EFI_TPL_HIGH_LEVEL - 1,\r
+              EVT_NOTIFY_SIGNAL,\r
+              TPL_HIGH_LEVEL - 1,\r
               CoreCheckTimers,\r
               NULL,\r
               &mEfiCheckTimerEvent\r
@@ -108,7 +108,7 @@ Routine Description:
 Arguments:\r
 \r
   None\r
-    \r
+\r
 Returns:\r
 \r
   Returns the current system time\r
@@ -137,7 +137,7 @@ Routine Description:
 Arguments:\r
 \r
   Duration    - The number of 100ns elasped since the last call to TimerTick\r
-    \r
+\r
 Returns:\r
 \r
   None\r
@@ -331,16 +331,16 @@ Arguments:
   UserEvent   - The timer event that is to be signaled at the specified time\r
   Type        - The type of time that is specified in TriggerTime\r
   TriggerTime - The number of 100ns units until the timer expires\r
-  \r
+\r
 Returns:\r
 \r
   EFI_SUCCESS           - The event has been set to be signaled at the requested time\r
   EFI_INVALID_PARAMETER - Event or Type is not valid\r
 \r
---*/  \r
+--*/\r
 {\r
   IEVENT      *Event;\r
-  \r
+\r
   Event = UserEvent;\r
 \r
   if (Event == NULL) {\r
@@ -351,10 +351,10 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  if (Type < 0 || Type > TimerRelative  || !(Event->Type & EFI_EVENT_TIMER)) {\r
+  if (Type < 0 || Type > TimerRelative  || !(Event->Type & EVT_TIMER)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
\r
+\r
   CoreAcquireLock (&mEfiTimerLock);\r
 \r
   //\r