]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Include/Guid/PeiPerformanceHob.h
Change pcd name form MaxSizePopulateCapsule to PcdMaxSizePopulateCapsule.
[mirror_edk2.git] / EdkModulePkg / Include / Guid / PeiPerformanceHob.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 PeiPerformanceHob.h
15
16 Abstract:
17
18 GUIDs used for PEI Performance HOB data structures
19
20 --*/
21
22 #ifndef __PEI_PERFORMANCE_HOB_H__
23 #define __PEI_PERFORMANCE_HOB_H__
24
25 //
26 // This is the GUID of PEI performance HOB
27 //
28 #define PEI_PERFORMANCE_HOB_GUID \
29 { 0xec4df5af, 0x4395, 0x4cc9, { 0x94, 0xde, 0x77, 0x50, 0x6d, 0x12, 0xc7, 0xb8 } }
30
31 //
32 // PEI_PERFORMANCE_STRING_SIZE must be a multiple of 8.
33 //
34 #define PEI_PERFORMANCE_STRING_SIZE 8
35 #define PEI_PERFORMANCE_STRING_LENGTH (PEI_PERFORMANCE_STRING_SIZE - 1)
36 //
37 // Bugbug: This macro will be replaced by a binary patchable PCD entry in EdkModulePkg
38 //
39 #define MAX_PEI_PERFORMANCE_LOG_ENTRIES 28
40
41 typedef struct {
42 EFI_PHYSICAL_ADDRESS Handle;
43 CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE];
44 CHAR8 Module[PEI_PERFORMANCE_STRING_SIZE];
45 UINT64 StartTimeStamp;
46 UINT64 EndTimeStamp;
47 } PEI_PERFORMANCE_LOG_ENTRY;
48
49 //
50 // The header must be aligned at 8 bytes.
51 //
52 typedef struct {
53 UINT32 NumberOfEntries;
54 UINT32 Reserved;
55 } PEI_PERFORMANCE_LOG_HEADER;
56
57
58 extern EFI_GUID gPeiPerformanceHobGuid;
59
60 #endif