878ddf1f |
1 | /*++\r |
2 | \r |
3 | Copyright (c) 2006, Intel Corporation \r |
4 | All rights reserved. This program and the accompanying materials \r |
5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r |
7 | http://opensource.org/licenses/bsd-license.php \r |
8 | \r |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r |
11 | \r |
12 | Module Name:\r |
13 | \r |
14 | Performance.h\r |
15 | \r |
16 | Abstract:\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 |
29 | typedef struct {\r |
30 | CHAR8 Token[PERF_TOKEN_LENGTH];\r |
31 | UINT32 Duration;\r |
32 | } PERF_DATA;\r |
33 | \r |
34 | typedef 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 |
45 | VOID\r |
46 | WriteBootToOsPerformanceData (\r |
47 | VOID\r |
48 | );\r |
49 | \r |
50 | VOID\r |
51 | ClearDebugRegisters (\r |
52 | VOID\r |
53 | );\r |
54 | \r |
55 | #endif\r |