]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/EdkGenericBdsLib/Performance.h
Removed CommonHeader.h from MdePkg & MdeModulePkg
[mirror_edk2.git] / Nt32Pkg / Library / EdkGenericBdsLib / Performance.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 Performance.h
15
16 Abstract:
17
18 This file included the performance relete function header and
19 definition.
20
21 --*/
22
23 #ifndef _PERF_H_
24 #define _PERF_H_
25
26 //
27 // Include common header file for this module.
28 //
29 #include "CommonHeader.h"
30
31 #define PERF_TOKEN_LENGTH 28
32 #define PERF_PEI_ENTRY_MAX_NUM 50
33
34 typedef struct {
35 CHAR8 Token[PERF_TOKEN_LENGTH];
36 UINT32 Duration;
37 } PERF_DATA;
38
39 typedef struct {
40 UINT64 BootToOs;
41 UINT64 S3Resume;
42 UINT32 S3EntryNum;
43 PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM];
44 UINT64 CpuFreq;
45 UINT64 BDSRaw;
46 UINT32 Count;
47 UINT32 Signiture;
48 } PERF_HEADER;
49
50 VOID
51 WriteBootToOsPerformanceData (
52 VOID
53 );
54
55 VOID
56 ClearDebugRegisters (
57 VOID
58 );
59
60 #endif