/*++\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
//\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
Arguments:\r
\r
None\r
- \r
+\r
Returns:\r
\r
None\r
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
Arguments:\r
\r
None\r
- \r
+\r
Returns:\r
\r
Returns the current system time\r
Arguments:\r
\r
Duration - The number of 100ns elasped since the last call to TimerTick\r
- \r
+\r
Returns:\r
\r
None\r
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
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