]> git.proxmox.com Git - mirror_edk2.git/blame - SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / SecPeiDebugAgent / SecPeiDebugAgentLib.h
CommitLineData
18b144ea 1/** @file\r
2 Header file for Sec Core Debug Agent Library instance.\r
3\r
b422b62c 4 Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
85f7e110 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
18b144ea 6\r
7**/\r
8\r
9#ifndef _SEC_CORE_DEBUG_AGENT_LIB_H_\r
10#define _SEC_CORE_DEBUG_AGENT_LIB_H_\r
11\r
12#include <PiPei.h>\r
b422b62c 13#include <Ppi/MemoryDiscovered.h>\r
14#include <Library/PeiServicesLib.h>\r
15#include <Library/MemoryAllocationLib.h>\r
18b144ea 16#include "DebugAgent.h"\r
17\r
18typedef struct {\r
5ab7f883 19 UINT32 InitFlag;\r
18b144ea 20 VOID *Context;\r
21 DEBUG_AGENT_CONTINUE Function;\r
22} DEBUG_AGENT_PHASE2_CONTEXT;\r
23\r
b422b62c 24/**\r
25 Caller provided function to be invoked at the end of DebugPortInitialize().\r
26\r
74cdb367 27 Refer to the description for DebugPortInitialize() for more details.\r
b422b62c 28\r
29 @param[in] Context The first input argument of DebugPortInitialize().\r
74cdb367 30 @param[in] DebugPortHandle Debug port handle created by Debug Communication Library.\r
b422b62c 31\r
32**/\r
33VOID\r
34EFIAPI\r
35InitializeDebugAgentPhase2 (\r
c1e126b1
MK
36 IN VOID *Context,\r
37 IN DEBUG_PORT_HANDLE DebugPortHandle\r
b422b62c 38 );\r
39\r
40/**\r
41 Debug Agent provided notify callback function on Memory Discovered PPI.\r
42\r
43 @param[in] PeiServices Indirect reference to the PEI Services Table.\r
44 @param[in] NotifyDescriptor Address of the notification descriptor data structure.\r
45 @param[in] Ppi Address of the PPI that was installed.\r
46\r
47 @retval EFI_SUCCESS If the function completed successfully.\r
48\r
49**/\r
50EFI_STATUS\r
51EFIAPI\r
52DebugAgentCallbackMemoryDiscoveredPpi (\r
c1e126b1
MK
53 IN EFI_PEI_SERVICES **PeiServices,\r
54 IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r
55 IN VOID *Ppi\r
b422b62c 56 );\r
57\r
18b144ea 58#endif\r