TianoCore EDK2 master
Loading...
Searching...
No Matches
PeCoffLoader.h
Go to the documentation of this file.
1
9#ifndef __PE_COFF_LOADER_H__
10#define __PE_COFF_LOADER_H__
11
12// Needed for PE_COFF_LOADER_IMAGE_CONTEXT
13#include <Library/PeCoffLib.h>
14
15// B323179B-97FB-477E-B0FE-D88591FA11AB
16#define PE_COFF_LOADER_PROTOCOL_GUID \
17 { 0xB323179B, 0x97FB, 0x477E, { 0xB0, 0xFE, 0xD8, 0x85, 0x91, 0xFA, 0x11, 0xAB } }
18
20
44typedef
45RETURN_STATUS
48 );
49
80typedef
81RETURN_STATUS
84 );
85
117typedef
118RETURN_STATUS
121 );
122
146typedef
147RETURN_STATUS
149 IN VOID *FileHandle,
150 IN UINTN FileOffset,
151 IN OUT UINTN *ReadSize,
152 OUT VOID *Buffer
153 );
154
178typedef
179VOID
181 IN PHYSICAL_ADDRESS ImageBase,
182 IN PHYSICAL_ADDRESS VirtImageBase,
183 IN UINTN ImageSize,
184 IN VOID *RelocationData
185 );
186
203typedef
204RETURN_STATUS
207 );
208
212 PE_COFF_LOADER_RELOCATE_IMAGE RelocateImage;
213 PE_COFF_LOADER_READ_FROM_MEMORY ReadFromMemory;
214 PE_COFF_LOADER_RELOCATE_IMAGE_FOR_RUNTIME RelocateImageForRuntime;
215 PE_COFF_LOADER_UNLOAD_IMAGE UnloadImage;
216};
217
218extern EFI_GUID gPeCoffLoaderProtocolGuid;
219
220#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS(EFIAPI * PE_COFF_LOADER_LOAD_IMAGE)(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
Definition: PeCoffLoader.h:119
RETURN_STATUS(EFIAPI * PE_COFF_LOADER_READ_FROM_MEMORY)(IN VOID *FileHandle, IN UINTN FileOffset, IN OUT UINTN *ReadSize, OUT VOID *Buffer)
Definition: PeCoffLoader.h:148
VOID(EFIAPI * PE_COFF_LOADER_RELOCATE_IMAGE_FOR_RUNTIME)(IN PHYSICAL_ADDRESS ImageBase, IN PHYSICAL_ADDRESS VirtImageBase, IN UINTN ImageSize, IN VOID *RelocationData)
Definition: PeCoffLoader.h:180
RETURN_STATUS(EFIAPI * PE_COFF_LOADER_UNLOAD_IMAGE)(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
Definition: PeCoffLoader.h:205
RETURN_STATUS(EFIAPI * PE_COFF_LOADER_GET_IMAGE_INFO)(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
Definition: PeCoffLoader.h:46
RETURN_STATUS(EFIAPI * PE_COFF_LOADER_RELOCATE_IMAGE)(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
Definition: PeCoffLoader.h:82
Definition: Base.h:213