]>
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 |
08021523 JF |
21 | @param[out] Local APIC timer frequency returned.\r |
22 | \r | |
4fe43eb3 | 23 | @return 32-bit Local APIC timer init count.\r |
18b144ea | 24 | **/\r |
4fe43eb3 | 25 | UINT32\r |
18b144ea | 26 | InitializeDebugTimer (\r |
08021523 JF |
27 | OUT UINT32 *TimerFrequency\r |
28 | );\r | |
29 | \r | |
30 | /**\r | |
31 | Check if the timer is time out.\r | |
32 | \r | |
33 | @param[in] TimerCycle Timer total count.\r | |
34 | @param[in] Timer The start timer from the begin.\r | |
35 | @param[in] TimeoutTicker Ticker number need time out.\r | |
36 | \r | |
37 | @return TRUE Timer time out occurs.\r | |
38 | @retval FALSE Timer does not time out.\r | |
39 | \r | |
40 | **/\r | |
41 | BOOLEAN\r | |
42 | IsDebugTimerTimeout (\r | |
43 | IN UINT32 TimerCycle,\r | |
44 | IN UINT32 Timer,\r | |
45 | IN UINT32 TimeoutTicker\r | |
18b144ea | 46 | );\r |
47 | \r | |
48 | #endif\r | |
49 | \r |