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