diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-24 02:54:45 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-24 02:54:45 +0000 |
commit | 022c6d45ef78605c173023f53984e4dfaf7b11f4 (patch) | |
tree | b0e51fb630da1ded7af48ba85a60c643037da22e /MdeModulePkg/Core/Dxe/Event | |
parent | 11c11e4ecf4c3bb41ede73fe88ac29dc67195aa9 (diff) | |
download | edk2-022c6d45ef78605c173023f53984e4dfaf7b11f4.zip edk2-022c6d45ef78605c173023f53984e4dfaf7b11f4.tar.gz edk2-022c6d45ef78605c173023f53984e4dfaf7b11f4.tar.bz2 |
Code Scrub for Dxe Core.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5560 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Event')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Event/Event.c | 80 | ||||
-rw-r--r-- | MdeModulePkg/Core/Dxe/Event/Timer.c | 28 | ||||
-rw-r--r-- | MdeModulePkg/Core/Dxe/Event/Tpl.c | 8 |
3 files changed, 58 insertions, 58 deletions
diff --git a/MdeModulePkg/Core/Dxe/Event/Event.c b/MdeModulePkg/Core/Dxe/Event/Event.c index 1f458a4..e8d20c1 100644 --- a/MdeModulePkg/Core/Dxe/Event/Event.c +++ b/MdeModulePkg/Core/Dxe/Event/Event.c @@ -116,7 +116,7 @@ CoreInitializeEventServices ( /**
Dispatches all pending events.
- @param Priority The task priority level of event notifications
+ @param Priority The task priority level of event notifications
to dispatch
**/
@@ -239,18 +239,18 @@ CoreNotifySignalList ( /**
Creates a general-purpose event structure.
- @param Type The type of event to create and its mode and
- attributes
- @param NotifyTpl The task priority level of event notifications
- @param NotifyFunction Pointer to the events notification function
- @param NotifyContext Pointer to the notification functions context;
- corresponds to parameter "Context" in the
- notification function
- @param Event Pointer to the newly created event if the call
- succeeds; undefined otherwise
-
- @retval EFI_SUCCESS The event structure was created
- @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
+ @param Type The type of event to create and its mode and
+ attributes
+ @param NotifyTpl The task priority level of event notifications
+ @param NotifyFunction Pointer to the events notification function
+ @param NotifyContext Pointer to the notification functions context;
+ corresponds to parameter "Context" in the
+ notification function
+ @param Event Pointer to the newly created event if the call
+ succeeds; undefined otherwise
+
+ @retval EFI_SUCCESS The event structure was created
+ @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
@retval EFI_OUT_OF_RESOURCES The event could not be allocated
**/
@@ -272,20 +272,20 @@ CoreCreateEvent ( /**
Creates a general-purpose event structure
- @param Type The type of event to create and its mode and
- attributes
- @param NotifyTpl The task priority level of event notifications
- @param NotifyFunction Pointer to the events notification function
- @param NotifyContext Pointer to the notification functions context;
- corresponds to parameter "Context" in the
- notification function
- @param EventGroup GUID for EventGroup if NULL act the same as
- gBS->CreateEvent().
- @param Event Pointer to the newly created event if the call
- succeeds; undefined otherwise
-
- @retval EFI_SUCCESS The event structure was created
- @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
+ @param Type The type of event to create and its mode and
+ attributes
+ @param NotifyTpl The task priority level of event notifications
+ @param NotifyFunction Pointer to the events notification function
+ @param NotifyContext Pointer to the notification functions context;
+ corresponds to parameter "Context" in the
+ notification function
+ @param EventGroup GUID for EventGroup if NULL act the same as
+ gBS->CreateEvent().
+ @param Event Pointer to the newly created event if the call
+ succeeds; undefined otherwise
+
+ @retval EFI_SUCCESS The event structure was created
+ @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
@retval EFI_OUT_OF_RESOURCES The event could not be allocated
**/
@@ -436,7 +436,7 @@ CoreCreateEventEx ( @param UserEvent The event to signal .
- @retval EFI_INVALID_PARAMETER Parameters are not valid.
+ @retval EFI_INVALID_PARAMETER Parameters are not valid.
@retval EFI_SUCCESS The event was signaled.
**/
@@ -494,10 +494,10 @@ CoreSignalEvent ( /**
Check the status of an event.
- @param UserEvent The event to check
+ @param UserEvent The event to check
- @retval EFI_SUCCESS The event is in the signaled state
- @retval EFI_NOT_READY The event is not in the signaled state
+ @retval EFI_SUCCESS The event is in the signaled state
+ @retval EFI_NOT_READY The event is not in the signaled state
@retval EFI_INVALID_PARAMETER Event is of type EVT_NOTIFY_SIGNAL
**/
@@ -561,14 +561,14 @@ CoreCheckEvent ( /**
Stops execution until an event is signaled.
- @param NumberOfEvents The number of events in the UserEvents array
- @param UserEvents An array of EFI_EVENT
- @param UserIndex Pointer to the index of the event which
- satisfied the wait condition
+ @param NumberOfEvents The number of events in the UserEvents array
+ @param UserEvents An array of EFI_EVENT
+ @param UserIndex Pointer to the index of the event which
+ satisfied the wait condition
- @retval EFI_SUCCESS The event indicated by Index was signaled.
- @retval EFI_INVALID_PARAMETER The event indicated by Index has a notification
- function or Event was not a valid type
+ @retval EFI_SUCCESS The event indicated by Index was signaled.
+ @retval EFI_INVALID_PARAMETER The event indicated by Index has a notification
+ function or Event was not a valid type
@retval EFI_UNSUPPORTED The current TPL is not TPL_APPLICATION
**/
@@ -616,9 +616,9 @@ CoreWaitForEvent ( /**
Closes an event and frees the event structure.
- @param UserEvent Event to close
+ @param UserEvent Event to close
- @retval EFI_INVALID_PARAMETER Parameters are not valid.
+ @retval EFI_INVALID_PARAMETER Parameters are not valid.
@retval EFI_SUCCESS The event has been closed
**/
diff --git a/MdeModulePkg/Core/Dxe/Event/Timer.c b/MdeModulePkg/Core/Dxe/Event/Timer.c index 924499e..3eabbaa 100644 --- a/MdeModulePkg/Core/Dxe/Event/Timer.c +++ b/MdeModulePkg/Core/Dxe/Event/Timer.c @@ -33,7 +33,7 @@ CoreCurrentSystemTime ( Checks the sorted timer list against the current system time.
Signals any expired event timer.
- @param CheckEvent Not used
+ @param CheckEvent Not used
@param Context Not used
**/
@@ -47,7 +47,7 @@ CoreCheckTimers ( /**
Inserts the timer event.
- @param Event Points to the internal structure of timer event
+ @param Event Points to the internal structure of timer event
to be installed
**/
@@ -108,7 +108,7 @@ CoreCurrentSystemTime ( CoreAcquireLock (&mEfiSystemTimeLock);
SystemTime = mEfiSystemTime;
CoreReleaseLock (&mEfiSystemTimeLock);
-
+
return SystemTime;
}
@@ -116,7 +116,7 @@ CoreCurrentSystemTime ( /**
Called by the platform code to process a tick.
- @param Duration The number of 100ns elasped since the last call
+ @param Duration The number of 100ns elasped since the last call
to TimerTick
**/
@@ -158,7 +158,7 @@ CoreTimerTick ( Checks the sorted timer list against the current system time.
Signals any expired event timer.
- @param CheckEvent Not used
+ @param CheckEvent Not used
@param Context Not used
**/
@@ -231,7 +231,7 @@ CoreCheckTimers ( /**
Inserts the timer event.
- @param Event Points to the internal structure of timer event
+ @param Event Points to the internal structure of timer event
to be installed
**/
@@ -270,15 +270,15 @@ CoreInsertEventTimer ( /**
Sets the type of timer and the trigger time for a timer event.
- @param UserEvent The timer event that is to be signaled at the
- specified time
- @param Type The type of time that is specified in
- TriggerTime
- @param TriggerTime The number of 100ns units until the timer
- expires
+ @param UserEvent The timer event that is to be signaled at the
+ specified time
+ @param Type The type of time that is specified in
+ TriggerTime
+ @param TriggerTime The number of 100ns units until the timer
+ expires
- @retval EFI_SUCCESS The event has been set to be signaled at the
- requested time
+ @retval EFI_SUCCESS The event has been set to be signaled at the
+ requested time
@retval EFI_INVALID_PARAMETER Event or Type is not valid
**/
diff --git a/MdeModulePkg/Core/Dxe/Event/Tpl.c b/MdeModulePkg/Core/Dxe/Event/Tpl.c index 4f63889..e99cb73 100644 --- a/MdeModulePkg/Core/Dxe/Event/Tpl.c +++ b/MdeModulePkg/Core/Dxe/Event/Tpl.c @@ -42,7 +42,7 @@ CoreSetInterruptState ( /**
Return the highest set bit.
- @param Number The value to check
+ @param Number The value to check
@return Bit position of the highest set bit
@@ -53,7 +53,7 @@ CoreHighestSetBit ( )
{
UINTN Msb;
-
+
Msb = 31;
while ((Msb > 0) && ((Number & (UINTN)(1 << Msb)) == 0)) {
Msb--;
@@ -69,7 +69,7 @@ CoreHighestSetBit ( Raise the task priority level to the new level.
High level is implemented by disabling processor interrupts.
- @param NewTpl New task priority level
+ @param NewTpl New task priority level
@return The previous task priority level
@@ -129,7 +129,7 @@ CoreRestoreTpl ( //
if (OldTpl >= TPL_HIGH_LEVEL && NewTpl < TPL_HIGH_LEVEL) {
- gEfiCurrentTpl = TPL_HIGH_LEVEL;
+ gEfiCurrentTpl = TPL_HIGH_LEVEL;
}
//
|