2 EFI 1.0 Loaded image protocol definition.
4 Every EFI driver and application is passed an image handle when it is loaded.
5 This image handle will contain a Loaded Image Protocol.
7 Copyright (c) 2006, Intel Corporation
8 All rights reserved. This program and the accompanying materials
9 are licensed and made available under the terms and conditions of the BSD License
10 which accompanies this distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 Module Name: LoadedImage.h
20 #ifndef __LOADED_IMAGE_PROTOCOL_H__
21 #define __LOADED_IMAGE_PROTOCOL_H__
23 #include <Protocol/DevicePath.h>
25 #define EFI_LOADED_IMAGE_PROTOCOL_GUID \
27 0x5B1B31A1, 0x9562, 0x11d2, {0x8E, 0x3F, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B } \
31 // Protocol GUID defined in EFI1.1.
33 #define LOADED_IMAGE_PROTOCOL EFI_LOADED_IMAGE_PROTOCOL_GUID
36 // EFI_SYSTEM_TABLE & EFI_IMAGE_UNLOAD are defined in EfiApi.h
38 #define EFI_LOADED_IMAGE_PROTOCOL_REVISION 0x1000
41 // Revision defined in EFI1.1.
43 #define EFI_LOADED_IMAGE_INFORMATION_REVISION EFI_LOADED_IMAGE_PROTOCOL_REVISION
48 EFI_HANDLE ParentHandle
;
49 EFI_SYSTEM_TABLE
*SystemTable
;
52 // Source location of image
54 EFI_HANDLE DeviceHandle
;
55 EFI_DEVICE_PATH_PROTOCOL
*FilePath
;
59 // Images load options
61 UINT32 LoadOptionsSize
;
65 // Location of where image was loaded
69 EFI_MEMORY_TYPE ImageCodeType
;
70 EFI_MEMORY_TYPE ImageDataType
;
73 // If the driver image supports a dynamic unload request
75 EFI_IMAGE_UNLOAD Unload
;
77 } EFI_LOADED_IMAGE_PROTOCOL
;
80 // For backward-compatible with EFI1.1.
82 typedef EFI_LOADED_IMAGE_PROTOCOL EFI_LOADED_IMAGE
;
84 extern EFI_GUID gEfiLoadedImageProtocolGuid
;