]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Platform/Nt32/Ppi/NtPeiLoadFile/NtPeiLoadFile.h
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Nt32 / Ppi / NtPeiLoadFile / NtPeiLoadFile.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 NtPeiLoadFile.h
15
16 Abstract:
17
18 WinNt Load File PPI.
19
20 When the PEI core is done it calls the DXE IPL via PPI
21
22 --*/
23
24 #ifndef _NT_PEI_LOAD_FILE_H_
25 #define _NT_PEI_LOAD_FILE_H_
26
27 #include "Tiano.h"
28 #include "PeiHob.h"
29
30 #define NT_PEI_LOAD_FILE_GUID \
31 { \
32 0xfd0c65eb, 0x405, 0x4cd2, 0x8a, 0xee, 0xf4, 0x0, 0xef, 0x13, 0xba, 0xc2 \
33 }
34
35 typedef
36 EFI_STATUS
37 (EFIAPI *NT_PEI_LOAD_FILE) (
38 VOID *Pe32Data,
39 EFI_PHYSICAL_ADDRESS *ImageAddress,
40 UINT64 *ImageSize,
41 EFI_PHYSICAL_ADDRESS *EntryPoint
42 );
43
44 /*++
45
46 Routine Description:
47 Loads and relocates a PE/COFF image into memory.
48
49 Arguments:
50 Pe32Data - The base address of the PE/COFF file that is to be loaded and relocated
51 ImageAddress - The base address of the relocated PE/COFF image
52 ImageSize - The size of the relocated PE/COFF image
53 EntryPoint - The entry point of the relocated PE/COFF image
54
55 Returns:
56 EFI_SUCCESS - The file was loaded and relocated
57 EFI_OUT_OF_RESOURCES - There was not enough memory to load and relocate the PE/COFF file
58
59 --*/
60 typedef struct {
61 NT_PEI_LOAD_FILE PeiLoadFileService;
62 } NT_PEI_LOAD_FILE_PPI;
63
64 extern EFI_GUID gNtPeiLoadFileGuid;
65
66 #endif