]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Guid/PeiPerformanceHob.h
sync comments, fix function header, rename variable name to follow coding style.
[mirror_edk2.git] / MdeModulePkg / Include / Guid / PeiPerformanceHob.h
CommitLineData
1e354c03 1/** @file\r
5f597758
LG
2 This file defines performance guid for the performance entry in the HOB list, \r
3 and define the PEI Performance HOB data structures.\r
88f20127 4\r
1e354c03 5Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
88f20127 10\r
1e354c03 11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
88f20127 13\r
1e354c03 14**/\r
88f20127 15\r
16#ifndef __PEI_PERFORMANCE_HOB_H__\r
17#define __PEI_PERFORMANCE_HOB_H__\r
18\r
19//\r
20// This is the GUID of PEI performance HOB\r
21//\r
22#define PEI_PERFORMANCE_HOB_GUID \\r
23 { 0xec4df5af, 0x4395, 0x4cc9, { 0x94, 0xde, 0x77, 0x50, 0x6d, 0x12, 0xc7, 0xb8 } }\r
24\r
25//\r
26// PEI_PERFORMANCE_STRING_SIZE must be a multiple of 8.\r
27//\r
28#define PEI_PERFORMANCE_STRING_SIZE 8\r
29#define PEI_PERFORMANCE_STRING_LENGTH (PEI_PERFORMANCE_STRING_SIZE - 1)\r
30\r
31typedef struct {\r
32 EFI_PHYSICAL_ADDRESS Handle;\r
33 CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE];\r
34 CHAR8 Module[PEI_PERFORMANCE_STRING_SIZE];\r
35 UINT64 StartTimeStamp;\r
36 UINT64 EndTimeStamp;\r
37} PEI_PERFORMANCE_LOG_ENTRY;\r
38\r
39//\r
40// The header must be aligned at 8 bytes.\r
41// \r
42typedef struct {\r
43 UINT32 NumberOfEntries;\r
44 UINT32 Reserved;\r
45} PEI_PERFORMANCE_LOG_HEADER;\r
46\r
47\r
48extern EFI_GUID gPeiPerformanceHobGuid;\r
49\r
50#endif\r