Subrata Banik | 20fe24b | 2021-12-09 02:46:38 +0530 | [diff] [blame] | 1 | /** @file |
| 2 | The file describes the PPI which notifies other drivers |
| 3 | of the PEIM being initialized by the PEI Dispatcher. |
| 4 | |
| 5 | Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> |
| 6 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 7 | |
| 8 | @par Revision Reference: |
| 9 | This PPI is introduced in PI Version 1.0. |
| 10 | |
| 11 | **/ |
| 12 | |
| 13 | #ifndef __LOADED_IMAGE_PPI_H__ |
| 14 | #define __LOADED_IMAGE_PPI_H__ |
| 15 | |
| 16 | #define EFI_PEI_LOADED_IMAGE_PPI_GUID \ |
| 17 | { 0xc1fcd448, 0x6300, 0x4458, { 0xb8, 0x64, 0x28, 0xdf, 0x1, 0x53, 0x64, 0xbc } } |
| 18 | |
| 19 | |
| 20 | typedef struct _EFI_PEI_LOADED_IMAGE_PPI EFI_PEI_LOADED_IMAGE_PPI; |
| 21 | |
| 22 | /// |
| 23 | /// This interface is installed by the PEI Dispatcher after the image has been |
| 24 | /// loaded and after all security checks have been performed, |
| 25 | /// to notify other PEIMs of the files which are being loaded. |
| 26 | /// |
| 27 | struct _EFI_PEI_LOADED_IMAGE_PPI { |
| 28 | /// |
| 29 | /// Address of the image at the address where it will be executed. |
| 30 | /// |
| 31 | EFI_PHYSICAL_ADDRESS ImageAddress; |
| 32 | /// |
| 33 | /// Size of the image as it will be executed. |
| 34 | /// |
| 35 | UINT64 ImageSize; |
| 36 | /// |
| 37 | /// File handle from which the image was loaded. |
| 38 | /// Can be NULL, indicating the image was not loaded from a handle. |
| 39 | /// |
| 40 | EFI_PEI_FILE_HANDLE FileHandle; |
| 41 | }; |
| 42 | |
| 43 | |
| 44 | extern EFI_GUID gEfiPeiLoadedImagePpiGuid; |
| 45 | |
| 46 | #endif |