]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.h
This revision can only work with Intel(c) UDK Debugger Tool version 1.3 or greater...
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / SecPeiDebugAgent / SecPeiDebugAgentLib.h
index 9ca5e87fb3f4d14edad3fa24040b854f0be2977f..68bfbf7cab12f4f38354acd3c7c1c061f7ef1a10 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Header file for Sec Core Debug Agent Library instance.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -16,7 +16,9 @@
 #define _SEC_CORE_DEBUG_AGENT_LIB_H_\r
 \r
 #include <PiPei.h>\r
-\r
+#include <Ppi/MemoryDiscovered.h>\r
+#include <Library/PeiServicesLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
 #include "DebugAgent.h"\r
 \r
 typedef struct {\r
@@ -24,5 +26,39 @@ typedef struct {
   DEBUG_AGENT_CONTINUE    Function;\r
 } DEBUG_AGENT_PHASE2_CONTEXT;\r
 \r
+/**\r
+  Caller provided function to be invoked at the end of DebugPortInitialize().\r
+\r
+  Refer to the descrption for DebugPortInitialize() for more details.\r
+\r
+  @param[in] Context           The first input argument of DebugPortInitialize().\r
+  @param[in] DebugPortHandle   Debug port handle created by Debug Communication Libary.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+InitializeDebugAgentPhase2 (\r
+  IN VOID                  *Context,\r
+  IN DEBUG_PORT_HANDLE     DebugPortHandle\r
+  );\r
+\r
+/**\r
+  Debug Agent provided notify callback function on Memory Discovered PPI.\r
+\r
+  @param[in] PeiServices      Indirect reference to the PEI Services Table.\r
+  @param[in] NotifyDescriptor Address of the notification descriptor data structure.\r
+  @param[in] Ppi              Address of the PPI that was installed.\r
+\r
+  @retval EFI_SUCCESS If the function completed successfully.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+DebugAgentCallbackMemoryDiscoveredPpi (\r
+  IN EFI_PEI_SERVICES                     **PeiServices,\r
+  IN EFI_PEI_NOTIFY_DESCRIPTOR            *NotifyDescriptor,\r
+  IN VOID                                 *Ppi\r
+  );\r
+\r
 #endif\r
 \r