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