]> git.proxmox.com Git - mirror_edk2.git/blame - SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.h
SourceLevelDebugPkg: Avoid to re-init IDT table again at SMI entry
[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
18b144ea 5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. 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 _SEC_CORE_DEBUG_AGENT_LIB_H_\r
16#define _SEC_CORE_DEBUG_AGENT_LIB_H_\r
17\r
18#include <PiPei.h>\r
b422b62c 19#include <Ppi/MemoryDiscovered.h>\r
20#include <Library/PeiServicesLib.h>\r
21#include <Library/MemoryAllocationLib.h>\r
18b144ea 22#include "DebugAgent.h"\r
23\r
24typedef struct {\r
5ab7f883 25 UINT32 InitFlag;\r
18b144ea 26 VOID *Context;\r
27 DEBUG_AGENT_CONTINUE Function;\r
28} DEBUG_AGENT_PHASE2_CONTEXT;\r
29\r
b422b62c 30/**\r
31 Caller provided function to be invoked at the end of DebugPortInitialize().\r
32\r
74cdb367 33 Refer to the description for DebugPortInitialize() for more details.\r
b422b62c 34\r
35 @param[in] Context The first input argument of DebugPortInitialize().\r
74cdb367 36 @param[in] DebugPortHandle Debug port handle created by Debug Communication Library.\r
b422b62c 37\r
38**/\r
39VOID\r
40EFIAPI\r
41InitializeDebugAgentPhase2 (\r
42 IN VOID *Context,\r
43 IN DEBUG_PORT_HANDLE DebugPortHandle\r
44 );\r
45\r
46/**\r
47 Debug Agent provided notify callback function on Memory Discovered PPI.\r
48\r
49 @param[in] PeiServices Indirect reference to the PEI Services Table.\r
50 @param[in] NotifyDescriptor Address of the notification descriptor data structure.\r
51 @param[in] Ppi Address of the PPI that was installed.\r
52\r
53 @retval EFI_SUCCESS If the function completed successfully.\r
54\r
55**/\r
56EFI_STATUS\r
57EFIAPI\r
58DebugAgentCallbackMemoryDiscoveredPpi (\r
59 IN EFI_PEI_SERVICES **PeiServices,\r
60 IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,\r
61 IN VOID *Ppi\r
62 );\r
63\r
18b144ea 64#endif\r
65\r