]> git.proxmox.com Git - mirror_edk2.git/blame - EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.h
Rename Protocol/FrameworkHii.h to Protocol/HiiFramework.h to follow the naming conven...
[mirror_edk2.git] / EdkNt32Pkg / Library / EdkGenericBdsLib / Performance.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 Performance.h\r
15\r
16Abstract:\r
17\r
18 This file included the performance relete function header and \r
19 definition.\r
20\r
21--*/\r
22\r
23#ifndef _PERF_H_\r
24#define _PERF_H_\r
25\r
26#define PERF_TOKEN_LENGTH 28\r
27#define PERF_PEI_ENTRY_MAX_NUM 50\r
28\r
29typedef struct {\r
30 CHAR8 Token[PERF_TOKEN_LENGTH];\r
31 UINT32 Duration;\r
32} PERF_DATA;\r
33\r
34typedef struct {\r
35 UINT64 BootToOs;\r
36 UINT64 S3Resume;\r
37 UINT32 S3EntryNum;\r
38 PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM];\r
39 UINT64 CpuFreq;\r
40 UINT64 BDSRaw;\r
41 UINT32 Count;\r
42 UINT32 Signiture;\r
43} PERF_HEADER;\r
44\r
45VOID\r
46WriteBootToOsPerformanceData (\r
47 VOID\r
48 );\r
49\r
50VOID\r
51ClearDebugRegisters (\r
52 VOID\r
53 );\r
54\r
55#endif\r