]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Library/DebugAgentLib.h
1. Refine debug agent library.
[mirror_edk2.git] / MdeModulePkg / Include / Library / DebugAgentLib.h
index 9a5c57e8deccf15e2039a1a37b86d8103cc53ecc..a5c311482d2f35e9aa179cc55e14e8768ee6b9ed 100644 (file)
@@ -19,7 +19,8 @@
 #define DEBUG_AGENT_INIT_POSTMEM_SEC     2\r
 #define DEBUG_AGENT_INIT_DXE             3\r
 #define DEBUG_AGENT_INIT_SMM             4\r
-#define DEBUG_AGENT_INIT_SMI             5\r
+#define DEBUG_AGENT_INIT_ENTER_SMI       5\r
+#define DEBUG_AGENT_INIT_EXIT_SMI        6\r
 \r
 /**\r
   Initialize debug agent.\r
@@ -38,17 +39,21 @@ InitializeDebugAgent (
   );\r
 \r
 /**\r
-  Enable/Disable the interrupt of debug timer.\r
+  Enable/Disable the interrupt of debug timer and return the interrupt state\r
+  prior to the operation.\r
 \r
   If EnableStatus is TRUE, enable the interrupt of debug timer.\r
   If EnableStatus is FALSE, disable the interrupt of debug timer.\r
 \r
   @param[in] EnableStatus    Enable/Disable.\r
 \r
+  @retval TRUE  Debug timer interrupt were enabled on entry to this call.\r
+  @retval FALSE Debug timer interrupt were disabled on entry to this call.\r
+\r
 **/\r
-VOID\r
+BOOLEAN\r
 EFIAPI\r
-SetDebugTimerInterrupt (\r
+SaveAndSetDebugTimerInterrupt (\r
   IN BOOLEAN                EnableStatus\r
   );\r
 \r