]> git.proxmox.com Git - mirror_edk2.git/blob - EdkNt32Pkg/Library/EdkGenericBdsLib/Performance.h
Initial import.
[mirror_edk2.git] / EdkNt32Pkg / 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 #define PERF_TOKEN_LENGTH 28
27 #define PERF_PEI_ENTRY_MAX_NUM 50
28
29 typedef struct {
30 CHAR8 Token[PERF_TOKEN_LENGTH];
31 UINT32 Duration;
32 } PERF_DATA;
33
34 typedef struct {
35 UINT64 BootToOs;
36 UINT64 S3Resume;
37 UINT32 S3EntryNum;
38 PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM];
39 UINT64 CpuFreq;
40 UINT64 BDSRaw;
41 UINT32 Count;
42 UINT32 Signiture;
43 } PERF_HEADER;
44
45 VOID
46 WriteBootToOsPerformanceData (
47 VOID
48 );
49
50 VOID
51 ClearDebugRegisters (
52 VOID
53 );
54
55 #endif