]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkPkg/Include/Ppi/FvLoadFile.h
IntelFrameworkPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFrameworkPkg / Include / Ppi / FvLoadFile.h
CommitLineData
baced228 1/** @file\r
2 Load image file from fv to memory.\r
3\r
1c2f052d 4Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
22a69a5e 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
baced228 6\r
baced228 7 @par Revision Reference:\r
8 This PPI is defined in PEI CIS spec Version 0.91.\r
9\r
10**/\r
11\r
12#ifndef _FV_FILE_LOADER_PPI_H_\r
13#define _FV_FILE_LOADER_PPI_H_\r
14\r
15#define EFI_PEI_FV_FILE_LOADER_GUID \\r
16 { \\r
17 0x7e1f0d85, 0x4ff, 0x4bb2, {0x86, 0x6a, 0x31, 0xa2, 0x99, 0x6a, 0x48, 0xa8 } \\r
18 }\r
19\r
20typedef struct _EFI_PEI_FV_FILE_LOADER_PPI EFI_PEI_FV_FILE_LOADER_PPI;\r
21\r
22/**\r
23 Loads a PEIM into memory for subsequent execution.\r
24\r
25 @param This Interface pointer that implements the Load File PPI instance.\r
f22f941e 26 @param FfsHeader The pointer to the FFS header of the file to load.\r
27 @param ImageAddress The pointer to the address of the loaded Image\r
28 @param ImageSize The pointer to the size of the loaded image.\r
29 @param EntryPoint The pointer to the entry point of the image.\r
baced228 30\r
31 @retval EFI_SUCCESS The image was loaded successfully.\r
32 @retval EFI_OUT_OF_RESOURCES There was not enough memory.\r
33 @retval EFI_INVALID_PARAMETER The contents of the FFS file did not\r
34 contain a valid PE/COFF image that could be loaded.\r
35\r
36**/\r
37typedef\r
38EFI_STATUS\r
69686d56 39(EFIAPI *EFI_PEI_FV_LOAD_FILE)(\r
470d0b27 40 IN EFI_PEI_FV_FILE_LOADER_PPI *This,\r
baced228 41 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
42 OUT EFI_PHYSICAL_ADDRESS *ImageAddress,\r
43 OUT UINT64 *ImageSize,\r
44 OUT EFI_PHYSICAL_ADDRESS *EntryPoint\r
45 );\r
46\r
47/**\r
baced228 48 This PPI is a pointer to the Load File service. This service will be\r
f22f941e 49 published by a PEIM. The PEI Foundation will use this service to\r
2bbaeb0d 50 launch the known non-XIP PE/COFF PEIM images. This service may\r
baced228 51 depend upon the presence of the EFI_PEI_PERMANENT_MEMORY_INSTALLED_PPI.\r
baced228 52**/\r
53struct _EFI_PEI_FV_FILE_LOADER_PPI {\r
2bbaeb0d 54 ///\r
f22f941e 55 /// Loads a PEIM into memory for subsequent execution.\r
2bbaeb0d 56 ///\r
baced228 57 EFI_PEI_FV_LOAD_FILE FvLoadFile;\r
58};\r
59\r
60extern EFI_GUID gEfiPeiFvFileLoaderPpiGuid;\r
61\r
62#endif\r