]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Include/Library/DebugAgentTimerLib.h
EmbeddedPkg: Rectify file modes
[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
60274cca 8 This program and the accompanying materials\r
969eba7b 9 are licensed and made available under the terms and conditions of the BSD License\r
10 which accompanies this distribution. The full text of the license may be found at\r
11 http://opensource.org/licenses/bsd-license.php\r
12\r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15\r
16**/\r
17\r
18#ifndef __GDB_TIMER_LIB__\r
19#define __GDB_TIMER_LIB__\r
20\r
21\r
22\r
23/**\r
24 Setup all the hardware needed for the debug agents timer.\r
25\r
26 This function is used to set up debug enviroment. It may enable interrupts.\r
27\r
28**/\r
29VOID\r
30EFIAPI\r
31DebugAgentTimerIntialize (\r
32 VOID\r
33 );\r
3402aac7 34\r
969eba7b 35\r
36/**\r
37 Set the period for the debug agent timer. Zero means disable the timer.\r
38\r
39 @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer.\r
40\r
3402aac7 41**/\r
969eba7b 42VOID\r
43EFIAPI\r
44DebugAgentTimerSetPeriod (\r
45 IN UINT32 TimerPeriodMilliseconds\r
46 );\r
3402aac7 47\r
969eba7b 48\r
49/**\r
3402aac7
RC
50 Perform End Of Interrupt for the debug agent timer. This is called in the\r
51 interrupt handler after the interrupt has been processed.\r
969eba7b 52\r
3402aac7 53**/\r
969eba7b 54VOID\r
55EFIAPI\r
56DebugAgentTimerEndOfInterrupt (\r
57 VOID\r
58 );\r
3402aac7 59\r
969eba7b 60#endif\r
31e4a57f 61\r
62\r