]>
Commit | Line | Data |
---|---|---|
969eba7b | 1 | /** @file\r |
3402aac7 | 2 | Platform specific Debug Agent abstraction for timer used by the agent.\r |
969eba7b | 3 | \r |
4 | The timer is used by the debugger to break into a running program.\r | |
5 | \r | |
60274cca | 6 | Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r |
3402aac7 | 7 | \r |
878b807a | 8 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
969eba7b | 9 | \r |
10 | **/\r | |
11 | \r | |
12 | #ifndef __GDB_TIMER_LIB__\r | |
13 | #define __GDB_TIMER_LIB__\r | |
14 | \r | |
969eba7b | 15 | /**\r |
16 | Setup all the hardware needed for the debug agents timer.\r | |
17 | \r | |
c6a72cd7 | 18 | This function is used to set up debug environment. It may enable interrupts.\r |
969eba7b | 19 | \r |
20 | **/\r | |
21 | VOID\r | |
22 | EFIAPI\r | |
23 | DebugAgentTimerIntialize (\r | |
24 | VOID\r | |
25 | );\r | |
3402aac7 | 26 | \r |
969eba7b | 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 | |
3402aac7 | 32 | **/\r |
969eba7b | 33 | VOID\r |
34 | EFIAPI\r | |
35 | DebugAgentTimerSetPeriod (\r | |
36 | IN UINT32 TimerPeriodMilliseconds\r | |
37 | );\r | |
3402aac7 | 38 | \r |
969eba7b | 39 | /**\r |
3402aac7 RC |
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 | |
969eba7b | 42 | \r |
3402aac7 | 43 | **/\r |
969eba7b | 44 | VOID\r |
45 | EFIAPI\r | |
46 | DebugAgentTimerEndOfInterrupt (\r | |
47 | VOID\r | |
48 | );\r | |
3402aac7 | 49 | \r |
969eba7b | 50 | #endif\r |