]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/GenericBdsLib/InternalBdsLib.h
Retire description string macro for boot device type which are not defined in UEFI...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / InternalBdsLib.h
1 /** @file
2 BDS library definition, include the file and data structure
3
4 Copyright (c) 2004 - 2009, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _INTERNAL_BDS_LIB_H_
16 #define _INTERNAL_BDS_LIB_H_
17
18 #include <FrameworkDxe.h>
19
20 #include <IndustryStandard/Pci22.h>
21 #include <IndustryStandard/PeImage.h>
22
23 #include <Protocol/BlockIo.h>
24 #include <Protocol/LoadedImage.h>
25 #include <Protocol/Cpu.h>
26 #include <Protocol/SimpleFileSystem.h>
27 #include <Protocol/DebugPort.h>
28 #include <Protocol/DevicePath.h>
29 #include <Protocol/SimpleTextIn.h>
30 #include <Protocol/LegacyBios.h>
31 #include <Protocol/SimpleTextOut.h>
32 #include <Protocol/SimpleNetwork.h>
33 #include <Protocol/DevicePathToText.h>
34 #include <Protocol/FirmwareVolume2.h>
35 #include <Protocol/PciIo.h>
36 #include <Protocol/AcpiS3Save.h>
37 #include <Protocol/OEMBadging.h>
38 #include <Protocol/GraphicsOutput.h>
39 #include <Protocol/UgaDraw.h>
40 #include <Protocol/HiiFont.h>
41 #include <Protocol/HiiImage.h>
42 #include <Protocol/Security.h>
43
44 #include <Guid/MemoryTypeInformation.h>
45 #include <Guid/FileInfo.h>
46 #include <Guid/GlobalVariable.h>
47 #include <Guid/PcAnsi.h>
48 #include <Guid/Performance.h>
49
50 #include <Library/PrintLib.h>
51 #include <Library/DebugLib.h>
52 #include <Library/BaseMemoryLib.h>
53 #include <Library/UefiBootServicesTableLib.h>
54 #include <Library/UefiLib.h>
55 #include <Library/MemoryAllocationLib.h>
56 #include <Library/DxeServicesTableLib.h>
57 #include <Library/UefiRuntimeServicesTableLib.h>
58 #include <Library/HobLib.h>
59 #include <Library/BaseLib.h>
60 #include <Library/DevicePathLib.h>
61 #include <Library/PerformanceLib.h>
62 #include <Library/PcdLib.h>
63 #include <Library/PeCoffGetEntryPointLib.h>
64 #include <Library/GenericBdsLib.h>
65 #include <Library/TimerLib.h>
66 #include <Library/PcdLib.h>
67 #include <Library/DxeServicesLib.h>
68
69 #if !defined (EFI_REMOVABLE_MEDIA_FILE_NAME)
70 #if defined (MDE_CPU_EBC)
71 //
72 // Uefi specification only defines the default boot file name for IA32, X64
73 // and IPF processor, so need define boot file name for EBC architecture here.
74 //
75 #define EFI_REMOVABLE_MEDIA_FILE_NAME L"\\EFI\\BOOT\\BOOTEBC.EFI"
76 #else
77 #error "Can not determine the default boot file name for unknown processor type!"
78 #endif
79 #endif
80
81 /**
82
83 Allocates a block of memory and writes performance data of booting into it.
84 OS can processing these record.
85
86 **/
87 VOID
88 WriteBootToOsPerformanceData (
89 VOID
90 );
91
92 /**
93 Get the headers (dos, image, optional header) from an image
94
95 @param Device SimpleFileSystem device handle
96 @param FileName File name for the image
97 @param DosHeader Pointer to dos header
98 @param Hdr The buffer in which to return the PE32, PE32+, or TE header.
99
100 @retval EFI_SUCCESS Successfully get the machine type.
101 @retval EFI_NOT_FOUND The file is not found.
102 @retval EFI_LOAD_ERROR File is not a valid image file.
103
104 **/
105 EFI_STATUS
106 EFIAPI
107 BdsLibGetImageHeader (
108 IN EFI_HANDLE Device,
109 IN CHAR16 *FileName,
110 OUT EFI_IMAGE_DOS_HEADER *DosHeader,
111 OUT EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr
112 );
113
114 #endif // _BDS_LIB_H_