]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Ppi/SecPerformance.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Include / Ppi / SecPerformance.h
CommitLineData
ce2f13a3 1/** @file\r
2 Defines the interface to convey performance information from SEC phase to PEI.\r
3\r
4Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
5\r
9d510e61 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
ce2f13a3 7\r
8**/\r
9\r
10#ifndef _PEI_SEC_PERFORMANCE_PPI_H_\r
11#define _PEI_SEC_PERFORMANCE_PPI_H_\r
12\r
13#define PEI_SEC_PERFORMANCE_PPI_GUID \\r
14 { \\r
15 0x0ecc666b, 0x4662, 0x47f9, {0x9d, 0xd5, 0xd0, 0x96, 0xff, 0x7d, 0xa4, 0x9e } \\r
16 }\r
17\r
18typedef struct _PEI_SEC_PERFORMANCE_PPI PEI_SEC_PERFORMANCE_PPI;\r
19\r
20///\r
21/// Performance data collected in SEC phase.\r
22///\r
23typedef struct {\r
1436aea4 24 UINT64 ResetEnd; ///< Timer value logged at the beginning of firmware image execution, in unit of nanosecond.\r
ce2f13a3 25} FIRMWARE_SEC_PERFORMANCE;\r
26\r
27/**\r
28 This interface conveys performance information out of the Security (SEC) phase into PEI.\r
29\r
30 This service is published by the SEC phase. The SEC phase handoff has an optional\r
31 EFI_PEI_PPI_DESCRIPTOR list as its final argument when control is passed from SEC into the\r
32 PEI Foundation. As such, if the platform supports collecting performance data in SEC,\r
33 this information is encapsulated into the data structure abstracted by this service.\r
34 This information is collected for the boot-strap processor (BSP) on IA-32.\r
35\r
36 @param[in] PeiServices The pointer to the PEI Services Table.\r
37 @param[in] This The pointer to this instance of the PEI_SEC_PERFORMANCE_PPI.\r
38 @param[out] Performance The pointer to performance data collected in SEC phase.\r
39\r
40 @retval EFI_SUCCESS The performance data was successfully returned.\r
41\r
42**/\r
43typedef\r
44EFI_STATUS\r
1436aea4 45(EFIAPI *GET_SEC_PERFORMANCE)(\r
ce2f13a3 46 IN CONST EFI_PEI_SERVICES **PeiServices,\r
47 IN PEI_SEC_PERFORMANCE_PPI *This,\r
48 OUT FIRMWARE_SEC_PERFORMANCE *Performance\r
49 );\r
50\r
51///\r
52/// This PPI provides function to get performance data collected in SEC phase.\r
53///\r
54struct _PEI_SEC_PERFORMANCE_PPI {\r
1436aea4 55 GET_SEC_PERFORMANCE GetPerformance;\r
ce2f13a3 56};\r
57\r
1436aea4 58extern EFI_GUID gPeiSecPerformancePpiGuid;\r
ce2f13a3 59\r
60#endif\r