]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Framework/Ppi/LoadFile/LoadFile.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Ppi / LoadFile / LoadFile.h
1 /*++
2
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 LoadFile.h
15
16 Abstract:
17
18 Load image file from fv to memory.
19
20 --*/
21
22 #ifndef _PEI_FV_FILE_LOADER_PPI_H
23 #define _PEI_FV_FILE_LOADER_PPI_H
24
25 #define EFI_PEI_FV_FILE_LOADER_GUID \
26 { \
27 0x7e1f0d85, 0x4ff, 0x4bb2, 0x86, 0x6a, 0x31, 0xa2, 0x99, 0x6a, 0x48, 0xa8 \
28 }
29
30 EFI_FORWARD_DECLARATION (EFI_PEI_FV_FILE_LOADER_PPI);
31
32 typedef
33 EFI_STATUS
34 (EFIAPI *EFI_PEI_FV_LOAD_FILE) (
35 IN EFI_PEI_FV_FILE_LOADER_PPI * This,
36 IN EFI_FFS_FILE_HEADER * FfsHeader,
37 OUT EFI_PHYSICAL_ADDRESS * ImageAddress,
38 OUT UINT64 *ImageSize,
39 OUT EFI_PHYSICAL_ADDRESS * EntryPoint
40 );
41
42 typedef struct _EFI_PEI_FV_FILE_LOADER_PPI {
43 EFI_PEI_FV_LOAD_FILE FvLoadFile;
44 } EFI_PEI_FV_FILE_LOADER_PPI;
45
46 extern EFI_GUID gPeiFvFileLoaderPpiGuid;
47
48 #endif