]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Debug Agent Library provide source-level debug capability.\r | |
3 | \r | |
4 | Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials are licensed and made available under \r | |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r | |
7 | 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_CORE 3\r | |
21 | #define DEBUG_AGENT_INIT_SMM 4\r | |
22 | #define DEBUG_AGENT_INIT_ENTER_SMI 5\r | |
23 | #define DEBUG_AGENT_INIT_EXIT_SMI 6\r | |
24 | #define DEBUG_AGENT_INIT_S3 7\r | |
25 | \r | |
26 | /**\r | |
27 | Initialize debug agent.\r | |
28 | \r | |
29 | This function is used to set up debug enviroment.\r | |
30 | \r | |
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 | |
33 | \r | |
34 | **/\r | |
35 | VOID\r | |
36 | EFIAPI\r | |
37 | InitializeDebugAgent (\r | |
38 | IN UINT32 InitFlag,\r | |
39 | IN VOID *Context OPTIONAL\r | |
40 | );\r | |
41 | \r | |
42 | /**\r | |
43 | Enable/Disable the interrupt of debug timer and return the interrupt state\r | |
44 | prior to the operation.\r | |
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 | |
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 | |
54 | **/\r | |
55 | BOOLEAN\r | |
56 | EFIAPI\r | |
57 | SaveAndSetDebugTimerInterrupt (\r | |
58 | IN BOOLEAN EnableStatus\r | |
59 | );\r | |
60 | \r | |
61 | #endif\r |