]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/DebugAgentLib.h
1. Refine debug agent library.
[mirror_edk2.git] / MdeModulePkg / Include / Library / DebugAgentLib.h
CommitLineData
fe92ab29 1/** @file\r
2 Debug Agent Library provide source-level debug capability.\r
3\r
4 Copyright (c) 2010, Intel Corporation\r
5 All rights reserved. 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_AGENT_LIB_H__\r
16#define __DEBUG_AGENT_LIB_H__\r
17\r
18#define DEBUG_AGENT_INIT_PREMEM_SEC 1\r
19#define DEBUG_AGENT_INIT_POSTMEM_SEC 2\r
20#define DEBUG_AGENT_INIT_DXE 3\r
21#define DEBUG_AGENT_INIT_SMM 4\r
e7af83ae 22#define DEBUG_AGENT_INIT_ENTER_SMI 5\r
23#define DEBUG_AGENT_INIT_EXIT_SMI 6\r
fe92ab29 24\r
25/**\r
26 Initialize debug agent.\r
27\r
28 This function is used to set up debug enviroment.\r
29\r
30 @param[in] InitFlag Init flag is used to decide initialize process.\r
31 @param[in] Context Context needed according to InitFlag, it was optional.\r
32\r
33**/\r
34VOID\r
35EFIAPI\r
36InitializeDebugAgent (\r
37 IN UINT32 InitFlag,\r
38 IN VOID *Context OPTIONAL\r
39 );\r
40\r
41/**\r
e7af83ae 42 Enable/Disable the interrupt of debug timer and return the interrupt state\r
43 prior to the operation.\r
fe92ab29 44\r
45 If EnableStatus is TRUE, enable the interrupt of debug timer.\r
46 If EnableStatus is FALSE, disable the interrupt of debug timer.\r
47\r
48 @param[in] EnableStatus Enable/Disable.\r
49\r
e7af83ae 50 @retval TRUE Debug timer interrupt were enabled on entry to this call.\r
51 @retval FALSE Debug timer interrupt were disabled on entry to this call.\r
52\r
fe92ab29 53**/\r
e7af83ae 54BOOLEAN\r
fe92ab29 55EFIAPI\r
e7af83ae 56SaveAndSetDebugTimerInterrupt (\r
fe92ab29 57 IN BOOLEAN EnableStatus\r
58 );\r
59\r
60#endif\r