TianoCore EDK2 master
Loading...
Searching...
No Matches
LoadedImage.h
Go to the documentation of this file.
1
12#ifndef __LOADED_IMAGE_PROTOCOL_H__
13#define __LOADED_IMAGE_PROTOCOL_H__
14
15#define EFI_LOADED_IMAGE_PROTOCOL_GUID \
16 { \
17 0x5B1B31A1, 0x9562, 0x11d2, {0x8E, 0x3F, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B } \
18 }
19
20#define EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL_GUID \
21 { \
22 0xbc62157e, 0x3e33, 0x4fec, {0x99, 0x20, 0x2d, 0x3b, 0x36, 0xd7, 0x50, 0xdf } \
23 }
24
28#define LOADED_IMAGE_PROTOCOL EFI_LOADED_IMAGE_PROTOCOL_GUID
29
33#define EFI_LOADED_IMAGE_PROTOCOL_REVISION 0x1000
34
38#define EFI_LOADED_IMAGE_INFORMATION_REVISION EFI_LOADED_IMAGE_PROTOCOL_REVISION
39
43typedef struct {
44 UINT32 Revision;
49
50 //
51 // Source location of image
52 //
56 VOID *Reserved;
57
58 //
59 // Images load options
60 //
63
64 //
65 // Location of where image was loaded
66 //
67 VOID *ImageBase;
68 UINT64 ImageSize;
71 EFI_IMAGE_UNLOAD Unload;
73
74//
75// For backward-compatible with EFI1.1.
76//
78
79extern EFI_GUID gEfiLoadedImageProtocolGuid;
80extern EFI_GUID gEfiLoadedImageDevicePathProtocolGuid;
81
82#endif
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_MEMORY_TYPE
EFI_STATUS(EFIAPI * EFI_IMAGE_UNLOAD)(IN EFI_HANDLE ImageHandle)
Definition: UefiSpec.h:1011
EFI_DEVICE_PATH_PROTOCOL * FilePath
Definition: LoadedImage.h:54
EFI_MEMORY_TYPE ImageDataType
The memory type that the data sections were loaded as.
Definition: LoadedImage.h:70
VOID * LoadOptions
A pointer to the image's binary load options.
Definition: LoadedImage.h:62
EFI_HANDLE DeviceHandle
The device handle that the EFI Image was loaded from.
Definition: LoadedImage.h:53
UINT32 LoadOptionsSize
The size in bytes of LoadOptions.
Definition: LoadedImage.h:61
EFI_MEMORY_TYPE ImageCodeType
The memory type that the code sections were loaded as.
Definition: LoadedImage.h:69
VOID * Reserved
Reserved. DO NOT USE.
Definition: LoadedImage.h:56
UINT64 ImageSize
The size in bytes of the loaded image.
Definition: LoadedImage.h:68
EFI_SYSTEM_TABLE * SystemTable
the image's EFI system table pointer.
Definition: LoadedImage.h:48
VOID * ImageBase
The base address at which the image was loaded.
Definition: LoadedImage.h:67
Definition: Base.h:213