]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/PeCoffLoaderEx.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ipf / PeCoffLoaderEx.h
1 /*++
2
3 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
4 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 PeCoffLoaderEx.h
15
16 Abstract:
17
18 Fixes Intel Itanium(TM) specific relocation types
19
20
21 Revision History
22
23 --*/
24
25 #ifndef _PE_COFF_LOADER_EX_H_
26 #define _PE_COFF_LOADER_EX_H_
27
28
29 EFI_STATUS
30 PeCoffLoaderRelocateImageEx (
31 IN UINT16 *Reloc,
32 IN OUT CHAR8 *Fixup,
33 IN OUT CHAR8 **FixupData,
34 IN UINT64 Adjust
35 )
36 /*++
37
38 Routine Description:
39
40 Performs an Itanium-based specific relocation fixup
41
42 Arguments:
43
44 Reloc - Pointer to the relocation record
45
46 Fixup - Pointer to the address to fix up
47
48 FixupData - Pointer to a buffer to log the fixups
49
50 Adjust - The offset to adjust the fixup
51
52 Returns:
53
54 Status code
55
56 --*/
57 ;
58
59 BOOLEAN
60 PeCoffLoaderImageFormatSupported (
61 IN UINT16 Machine
62 )
63 /*++
64 Routine Description:
65
66 Returns TRUE if the machine type of PE/COFF image is supported. Supported
67 does not mean the image can be executed it means the PE/COFF loader supports
68 loading and relocating of the image type. It's up to the caller to support
69 the entry point.
70
71 This function implies the basic PE/COFF loader/relocator supports IPF, EBC,
72 images. Calling the entry point in a correct mannor is up to the
73 consumer of this library.
74
75 Arguments:
76
77 Machine - Machine type from the PE Header.
78
79 Returns:
80
81 TRUE - if this PE/COFF loader can load the image
82 FALSE - if this PE/COFF loader cannot load the image
83
84 --*/
85 ;
86
87 #endif