]> git.proxmox.com Git - mirror_edk2.git/blame - Nt32Pkg/Library/EdkGenericBdsLib/Performance.h
Success to build first Nt32 module.
[mirror_edk2.git] / Nt32Pkg / Library / EdkGenericBdsLib / Performance.h
CommitLineData
869f8e34 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//\r
27// Include common header file for this module.\r
28//\r
29#include "CommonHeader.h"\r
30\r
31#define PERF_TOKEN_LENGTH 28\r
32#define PERF_PEI_ENTRY_MAX_NUM 50\r
33\r
34typedef struct {\r
35 CHAR8 Token[PERF_TOKEN_LENGTH];\r
36 UINT32 Duration;\r
37} PERF_DATA;\r
38\r
39typedef struct {\r
40 UINT64 BootToOs;\r
41 UINT64 S3Resume;\r
42 UINT32 S3EntryNum;\r
43 PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM];\r
44 UINT64 CpuFreq;\r
45 UINT64 BDSRaw;\r
46 UINT32 Count;\r
47 UINT32 Signiture;\r
48} PERF_HEADER;\r
49\r
50VOID\r
51WriteBootToOsPerformanceData (\r
52 VOID\r
53 );\r
54\r
55VOID\r
56ClearDebugRegisters (\r
57 VOID\r
58 );\r
59\r
60#endif\r