]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Platform specific Debug Agent abstraction for timer used by the agent.\r | |
3 | \r | |
4 | The timer is used by the debugger to break into a running program.\r | |
5 | \r | |
6 | Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r | |
7 | \r | |
8 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
9 | \r | |
10 | **/\r | |
11 | \r | |
12 | #ifndef __GDB_TIMER_LIB__\r | |
13 | #define __GDB_TIMER_LIB__\r | |
14 | \r | |
15 | /**\r | |
16 | Setup all the hardware needed for the debug agents timer.\r | |
17 | \r | |
18 | This function is used to set up debug environment. It may enable interrupts.\r | |
19 | \r | |
20 | **/\r | |
21 | VOID\r | |
22 | EFIAPI\r | |
23 | DebugAgentTimerIntialize (\r | |
24 | VOID\r | |
25 | );\r | |
26 | \r | |
27 | /**\r | |
28 | Set the period for the debug agent timer. Zero means disable the timer.\r | |
29 | \r | |
30 | @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer.\r | |
31 | \r | |
32 | **/\r | |
33 | VOID\r | |
34 | EFIAPI\r | |
35 | DebugAgentTimerSetPeriod (\r | |
36 | IN UINT32 TimerPeriodMilliseconds\r | |
37 | );\r | |
38 | \r | |
39 | /**\r | |
40 | Perform End Of Interrupt for the debug agent timer. This is called in the\r | |
41 | interrupt handler after the interrupt has been processed.\r | |
42 | \r | |
43 | **/\r | |
44 | VOID\r | |
45 | EFIAPI\r | |
46 | DebugAgentTimerEndOfInterrupt (\r | |
47 | VOID\r | |
48 | );\r | |
49 | \r | |
50 | #endif\r |