]> git.proxmox.com Git - mirror_edk2.git/blob - SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugTimer.h
7ff0661d461474db4d0bda083d6312ad37658319
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DebugAgentCommon / DebugTimer.h
1 /** @file
2 Header file for debug timer to support debug agent library implementation.
3
4 Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _DEBUG_TIMER_H_
16 #define _DEBUG_TIMER_H_
17
18 /**
19 Initialize CPU local APIC timer.
20
21 @param[out] Local APIC timer frequency returned.
22
23 @return 32-bit Local APIC timer init count.
24 **/
25 UINT32
26 InitializeDebugTimer (
27 OUT UINT32 *TimerFrequency
28 );
29
30 /**
31 Check if the timer is time out.
32
33 @param[in] TimerCycle Timer total count.
34 @param[in] Timer The start timer from the begin.
35 @param[in] TimeoutTicker Ticker number need time out.
36
37 @return TRUE Timer time out occurs.
38 @retval FALSE Timer does not time out.
39
40 **/
41 BOOLEAN
42 IsDebugTimerTimeout (
43 IN UINT32 TimerCycle,
44 IN UINT32 Timer,
45 IN UINT32 TimeoutTicker
46 );
47
48 #endif
49