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