]>
Commit | Line | Data |
---|---|---|
ce2f13a3 | 1 | /** @file\r |
2 | Defines the interface to convey performance information from SEC phase to PEI.\r | |
3 | \r | |
4 | Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r | |
5 | \r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions\r | |
8 | of the BSD License which accompanies this distribution. The\r | |
9 | full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef _PEI_SEC_PERFORMANCE_PPI_H_\r | |
18 | #define _PEI_SEC_PERFORMANCE_PPI_H_\r | |
19 | \r | |
20 | #define PEI_SEC_PERFORMANCE_PPI_GUID \\r | |
21 | { \\r | |
22 | 0x0ecc666b, 0x4662, 0x47f9, {0x9d, 0xd5, 0xd0, 0x96, 0xff, 0x7d, 0xa4, 0x9e } \\r | |
23 | }\r | |
24 | \r | |
25 | typedef struct _PEI_SEC_PERFORMANCE_PPI PEI_SEC_PERFORMANCE_PPI;\r | |
26 | \r | |
27 | ///\r | |
28 | /// Performance data collected in SEC phase.\r | |
29 | ///\r | |
30 | typedef struct {\r | |
31 | UINT64 ResetEnd; ///< Timer value logged at the beginning of firmware image execution, in unit of nanosecond.\r | |
32 | } FIRMWARE_SEC_PERFORMANCE;\r | |
33 | \r | |
34 | /**\r | |
35 | This interface conveys performance information out of the Security (SEC) phase into PEI.\r | |
36 | \r | |
37 | This service is published by the SEC phase. The SEC phase handoff has an optional\r | |
38 | EFI_PEI_PPI_DESCRIPTOR list as its final argument when control is passed from SEC into the\r | |
39 | PEI Foundation. As such, if the platform supports collecting performance data in SEC,\r | |
40 | this information is encapsulated into the data structure abstracted by this service.\r | |
41 | This information is collected for the boot-strap processor (BSP) on IA-32.\r | |
42 | \r | |
43 | @param[in] PeiServices The pointer to the PEI Services Table.\r | |
44 | @param[in] This The pointer to this instance of the PEI_SEC_PERFORMANCE_PPI.\r | |
45 | @param[out] Performance The pointer to performance data collected in SEC phase.\r | |
46 | \r | |
47 | @retval EFI_SUCCESS The performance data was successfully returned.\r | |
48 | \r | |
49 | **/\r | |
50 | typedef\r | |
51 | EFI_STATUS\r | |
52 | (EFIAPI *GET_SEC_PERFORMANCE) (\r | |
53 | IN CONST EFI_PEI_SERVICES **PeiServices,\r | |
54 | IN PEI_SEC_PERFORMANCE_PPI *This,\r | |
55 | OUT FIRMWARE_SEC_PERFORMANCE *Performance\r | |
56 | );\r | |
57 | \r | |
58 | ///\r | |
59 | /// This PPI provides function to get performance data collected in SEC phase.\r | |
60 | ///\r | |
61 | struct _PEI_SEC_PERFORMANCE_PPI {\r | |
62 | GET_SEC_PERFORMANCE GetPerformance;\r | |
63 | };\r | |
64 | \r | |
65 | extern EFI_GUID gPeiSecPerformancePpiGuid;\r | |
66 | \r | |
67 | #endif\r |