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