]>
Commit | Line | Data |
---|---|---|
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 |
8a079ef2 | 23 | \r |
4fe43eb3 | 24 | @return 32-bit Local APIC timer init count.\r |
18b144ea | 25 | **/\r |
4fe43eb3 | 26 | UINT32\r |
18b144ea | 27 | InitializeDebugTimer (\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 | |
8a079ef2 JF |
34 | \r |
35 | @param[in] TimerCycle Timer initial count.\r | |
08021523 JF |
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 | |
43 | BOOLEAN\r | |
44 | IsDebugTimerTimeout (\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 |