2b49ce4fe69c278d9ad9d2452e8f9f87377b998c
[mirror_edk2.git] / Nt32Pkg / Library / EdkGenericBdsLib / EdkGenericBdsLibInternal.h
1 /**@file
2 Common header file shared by all source files.
3
4 This file includes package header files, library classes and protocol, PPI & GUID definitions.
5
6 Copyright (c) 2006 - 2007, Intel Corporation.
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 **/
14
15 #ifndef __EDK_GENERIC_BDS_LIB_INTERNAL_H_
16 #define __EDK_GENERIC_BDS_LIB_INTERNAL_H_
17
18
19 //
20 // The package level header files this module uses
21 //
22 #include <PiDxe.h>
23 #include <WinNtDxe.h>
24 #include <Protocol/Cpu.h>
25 #include <Protocol/SimpleTextIn.h>
26 #include <Protocol/SimpleTextOut.h>
27 #include <Protocol/LoadedImage.h>
28 #include <Protocol/SimpleFileSystem.h>
29 #include <Protocol/BlockIo.h>
30 #include <Protocol/SimpleNetwork.h>
31 #include <Protocol/AcpiS3Save.h>
32 #include <Protocol/FormBrowserFramework.h>
33 #include <Protocol/LegacyBios.h>
34 #include <Protocol/DriverBinding.h>
35 #include <Protocol/LoadFile.h>
36 #include <Protocol/DevicePath.h>
37 #include <Protocol/FirmwareVolume.h>
38 #include <Protocol/Performance.h>
39 #include <Protocol/WinNtIo.h>
40 #include <Guid/PcAnsi.h>
41 #include <Guid/GlobalVariable.h>
42 #include <Guid/GenericPlatformVariable.h>
43 #include <Guid/ShellFile.h>
44 #include <Library/EdkGenericBdsLib.h>
45 #include <Library/BaseLib.h>
46 #include <Library/UefiLib.h>
47 #include <Library/DxeServicesTableLib.h>
48 #include <Library/DebugLib.h>
49 #include <Library/PrintLib.h>
50 #include <Library/HobLib.h>
51 #include <Library/BaseMemoryLib.h>
52 #include <Library/MemoryAllocationLib.h>
53 #include <Library/UefiBootServicesTableLib.h>
54 #include <Library/UefiRuntimeServicesTableLib.h>
55 #include <Library/DevicePathLib.h>
56 #include <Library/PerformanceLib.h>
57 #include <Library/PeCoffLib.h>
58 #include <Library/PcdLib.h>
59
60
61 #define PERF_TOKEN_LENGTH 28
62 #define PERF_PEI_ENTRY_MAX_NUM 50
63
64 typedef struct {
65 CHAR8 Token[PERF_TOKEN_LENGTH];
66 UINT32 Duration;
67 } PERF_DATA;
68
69 typedef struct {
70 UINT64 BootToOs;
71 UINT64 S3Resume;
72 UINT32 S3EntryNum;
73 PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM];
74 UINT64 CpuFreq;
75 UINT64 BDSRaw;
76 UINT32 Count;
77 UINT32 Signiture;
78 } PERF_HEADER;
79
80 VOID
81 WriteBootToOsPerformanceData (
82 VOID
83 );
84
85 VOID
86 ClearDebugRegisters (
87 VOID
88 );
89
90
91 #endif