]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Include/Library/DebugAgentTimerLib.h
EmbeddedPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmbeddedPkg / Include / Library / DebugAgentTimerLib.h
CommitLineData
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
15\r
16\r
17/**\r
18 Setup all the hardware needed for the debug agents timer.\r
19\r
20 This function is used to set up debug enviroment. It may enable interrupts.\r
21\r
22**/\r
23VOID\r
24EFIAPI\r
25DebugAgentTimerIntialize (\r
26 VOID\r
27 );\r
3402aac7 28\r
969eba7b 29\r
30/**\r
31 Set the period for the debug agent timer. Zero means disable the timer.\r
32\r
33 @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer.\r
34\r
3402aac7 35**/\r
969eba7b 36VOID\r
37EFIAPI\r
38DebugAgentTimerSetPeriod (\r
39 IN UINT32 TimerPeriodMilliseconds\r
40 );\r
3402aac7 41\r
969eba7b 42\r
43/**\r
3402aac7
RC
44 Perform End Of Interrupt for the debug agent timer. This is called in the\r
45 interrupt handler after the interrupt has been processed.\r
969eba7b 46\r
3402aac7 47**/\r
969eba7b 48VOID\r
49EFIAPI\r
50DebugAgentTimerEndOfInterrupt (\r
51 VOID\r
52 );\r
3402aac7 53\r
969eba7b 54#endif\r
31e4a57f 55\r
56\r