TianoCore EDK2 master
|
#include "DebugAgent.h"
Go to the source code of this file.
Functions | |
UINT32 | InitializeDebugTimer (OUT UINT32 *TimerFrequency, IN BOOLEAN DumpFlag) |
BOOLEAN EFIAPI | SaveAndSetDebugTimerInterrupt (IN BOOLEAN EnableStatus) |
BOOLEAN | IsDebugTimerTimeout (IN UINT32 TimerCycle, IN UINT32 Timer, IN UINT32 TimeoutTicker) |
Code for debug timer to support debug agent library implementation.
Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DebugTimer.c.
Initialize CPU local APIC timer.
[out] | TimerFrequency | Local APIC timer frequency returned. |
[in] | DumpFlag | If TRUE, dump Local APIC timer's parameter. |
Definition at line 20 of file DebugTimer.c.
Check if the timer is time out.
[in] | TimerCycle | Timer initial count. |
[in] | Timer | The start timer from the begin. |
[in] | TimeoutTicker | Ticker number need time out. |
FALSE | Timer does not time out. |
Definition at line 119 of file DebugTimer.c.
BOOLEAN EFIAPI SaveAndSetDebugTimerInterrupt | ( | IN BOOLEAN | EnableStatus | ) |
Enable/Disable the interrupt of debug timer and return the interrupt state prior to the operation.
If EnableStatus is TRUE, enable the interrupt of debug timer. If EnableStatus is FALSE, disable the interrupt of debug timer.
[in] | EnableStatus | Enable/Disable. |
TRUE | Debug timer interrupt were enabled on entry to this call. |
FALSE | Debug timer interrupt were disabled on entry to this call. |
Definition at line 79 of file DebugTimer.c.