]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Efi/Protocol/LoadedImage/LoadedImage.h
Maintainers.txt: Remove EdkCompatibilityPkg information
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Efi / Protocol / LoadedImage / LoadedImage.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 LoadedImage.h\r
15\r
16Abstract:\r
17\r
18 EFI 1.0 Loaded image protocol definition.\r
19\r
20 Every EFI driver and application is passed an image handle when it is loaded.\r
21 This image handle will contain a Loaded Image Protocol.\r
22\r
23--*/\r
24\r
25#ifndef _LOADED_IMAGE_H_\r
26#define _LOADED_IMAGE_H_\r
27\r
28#define EFI_LOADED_IMAGE_PROTOCOL_GUID \\r
29 { \\r
7ccf38a3 30 0x5B1B31A1, 0x9562, 0x11d2, {0x8E, 0x3F, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B} \\r
3eb9473e 31 }\r
32\r
33//\r
34// EFI_SYSTEM_TABLE & EFI_IMAGE_UNLOAD are defined in EfiApi.h\r
35//\r
36#define EFI_LOADED_IMAGE_INFORMATION_REVISION 0x1000\r
37\r
38typedef struct {\r
39 UINT32 Revision;\r
40 EFI_HANDLE ParentHandle;\r
41 EFI_SYSTEM_TABLE *SystemTable;\r
42\r
43 //\r
44 // Source location of image\r
45 //\r
46 EFI_HANDLE DeviceHandle;\r
47 EFI_DEVICE_PATH_PROTOCOL *FilePath;\r
48 VOID *Reserved;\r
49\r
50 //\r
51 // Images load options\r
52 //\r
53 UINT32 LoadOptionsSize;\r
54 VOID *LoadOptions;\r
55\r
56 //\r
57 // Location of where image was loaded\r
58 //\r
59 VOID *ImageBase;\r
60 UINT64 ImageSize;\r
61 EFI_MEMORY_TYPE ImageCodeType;\r
62 EFI_MEMORY_TYPE ImageDataType;\r
63\r
64 //\r
65 // If the driver image supports a dynamic unload request\r
66 //\r
67 EFI_IMAGE_UNLOAD Unload;\r
68\r
69} EFI_LOADED_IMAGE_PROTOCOL;\r
70\r
71extern EFI_GUID gEfiLoadedImageProtocolGuid;\r
72\r
73#endif\r