]> git.proxmox.com Git - mirror_edk2.git/blame - SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugTimer.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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
85f7e110 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
18b144ea 6\r
7**/\r
8\r
9#ifndef _DEBUG_TIMER_H_\r
10#define _DEBUG_TIMER_H_\r
11\r
12/**\r
4fe43eb3 13 Initialize CPU local APIC timer.\r
18b144ea 14\r
99b98734 15 @param[out] TimerFrequency Local APIC timer frequency returned.\r
86d13652 16 @param[in] DumpFlag If TRUE, dump Local APIC timer's parameter.\r
8a079ef2 17\r
4fe43eb3 18 @return 32-bit Local APIC timer init count.\r
18b144ea 19**/\r
4fe43eb3 20UINT32\r
18b144ea 21InitializeDebugTimer (\r
c1e126b1
MK
22 OUT UINT32 *TimerFrequency,\r
23 IN BOOLEAN DumpFlag\r
08021523
JF
24 );\r
25\r
26/**\r
27 Check if the timer is time out.\r
8a079ef2
JF
28\r
29 @param[in] TimerCycle Timer initial count.\r
08021523
JF
30 @param[in] Timer The start timer from the begin.\r
31 @param[in] TimeoutTicker Ticker number need time out.\r
32\r
33 @return TRUE Timer time out occurs.\r
34 @retval FALSE Timer does not time out.\r
35\r
36**/\r
37BOOLEAN\r
38IsDebugTimerTimeout (\r
c1e126b1
MK
39 IN UINT32 TimerCycle,\r
40 IN UINT32 Timer,\r
41 IN UINT32 TimeoutTicker\r
18b144ea 42 );\r
43\r
44#endif\r