]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/DebugAgentLib.h
Fix 64-bit bug in DxeIpl. You can't cast an & UINT64 to a UINT32 *, as the upper...
[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
cd5ebaa0 4Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
64a80549 5This program and the accompanying materials are licensed and made available under \r
6the terms and conditions of the BSD License that accompanies this distribution. \r
7The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php. \r
fe92ab29 9\r
64a80549 10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
fe92ab29 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
213fecef 20#define DEBUG_AGENT_INIT_DXE_CORE 3\r
fe92ab29 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
213fecef 24#define DEBUG_AGENT_INIT_S3 7\r
fe92ab29 25\r
26/**\r
27 Initialize debug agent.\r
28\r
29 This function is used to set up debug enviroment.\r
30\r
64a80549 31 @param[in] InitFlag Init flag is used to decide the initialize process.\r
32 @param[in] Context Context needed according to InitFlag; it was optional.\r
fe92ab29 33\r
34**/\r
35VOID\r
36EFIAPI\r
37InitializeDebugAgent (\r
38 IN UINT32 InitFlag,\r
39 IN VOID *Context OPTIONAL\r
40 );\r
41\r
42/**\r
e7af83ae 43 Enable/Disable the interrupt of debug timer and return the interrupt state\r
44 prior to the operation.\r
fe92ab29 45\r
46 If EnableStatus is TRUE, enable the interrupt of debug timer.\r
47 If EnableStatus is FALSE, disable the interrupt of debug timer.\r
48\r
49 @param[in] EnableStatus Enable/Disable.\r
50\r
e7af83ae 51 @retval TRUE Debug timer interrupt were enabled on entry to this call.\r
52 @retval FALSE Debug timer interrupt were disabled on entry to this call.\r
53\r
fe92ab29 54**/\r
e7af83ae 55BOOLEAN\r
fe92ab29 56EFIAPI\r
e7af83ae 57SaveAndSetDebugTimerInterrupt (\r
fe92ab29 58 IN BOOLEAN EnableStatus\r
59 );\r
60\r
61#endif\r