]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/EdkGenericBdsLib/EdkGenericBdsLibInternal.h
Update following library class/Protocol for puting 'Framework' as prefix
[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/FrameworkFormBrowser.h>
32 #include <Protocol/LegacyBios.h>
33 #include <Protocol/DriverBinding.h>
34 #include <Protocol/LoadFile.h>
35 #include <Protocol/DevicePath.h>
36 #include <Protocol/FirmwareVolume2.h>
37 #include <Protocol/Performance.h>
38 #include <Protocol/WinNtIo.h>
39 #include <Guid/PcAnsi.h>
40 #include <Guid/GlobalVariable.h>
41 #include <Guid/GenericPlatformVariable.h>
42 #include <Guid/ShellFile.h>
43 #include <Library/EdkGenericBdsLib.h>
44 #include <Library/BaseLib.h>
45 #include <Library/UefiLib.h>
46 #include <Library/DxeServicesTableLib.h>
47 #include <Library/DebugLib.h>
48 #include <Library/PrintLib.h>
49 #include <Library/HobLib.h>
50 #include <Library/BaseMemoryLib.h>
51 #include <Library/MemoryAllocationLib.h>
52 #include <Library/UefiBootServicesTableLib.h>
53 #include <Library/UefiRuntimeServicesTableLib.h>
54 #include <Library/DevicePathLib.h>
55 #include <Library/PerformanceLib.h>
56 #include <Library/PeCoffLib.h>
57 #include <Library/PcdLib.h>
58
59
60 #define PERF_TOKEN_LENGTH 28
61 #define PERF_PEI_ENTRY_MAX_NUM 50
62
63 typedef struct {
64 CHAR8 Token[PERF_TOKEN_LENGTH];
65 UINT32 Duration;
66 } PERF_DATA;
67
68 typedef struct {
69 UINT64 BootToOs;
70 UINT64 S3Resume;
71 UINT32 S3EntryNum;
72 PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM];
73 UINT64 CpuFreq;
74 UINT64 BDSRaw;
75 UINT32 Count;
76 UINT32 Signiture;
77 } PERF_HEADER;
78
79 VOID
80 WriteBootToOsPerformanceData (
81 VOID
82 );
83
84 VOID
85 ClearDebugRegisters (
86 VOID
87 );
88
89 EFI_STATUS
90 EFIAPI
91 UpdateFvFileDevicePath (
92 IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath,
93 IN EFI_GUID *FileGuid
94 );
95
96 #endif