]>
Commit | Line | Data |
---|---|---|
1 | /**@file\r | |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r | |
4 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
5 | \r | |
6 | Module Name:\r | |
7 | \r | |
8 | NtPeiLoadFile.h\r | |
9 | \r | |
10 | Abstract:\r | |
11 | \r | |
12 | WinNt Load File PPI.\r | |
13 | \r | |
14 | When the PEI core is done it calls the DXE IPL via PPI\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | #ifndef __NT_PEI_LOAD_FILE_H__\r | |
19 | #define __NT_PEI_LOAD_FILE_H__\r | |
20 | \r | |
21 | #include <WinNtDxe.h>\r | |
22 | \r | |
23 | #define NT_PEI_LOAD_FILE_GUID \\r | |
24 | { \\r | |
25 | 0xfd0c65eb, 0x405, 0x4cd2, {0x8a, 0xee, 0xf4, 0x0, 0xef, 0x13, 0xba, 0xc2 } \\r | |
26 | }\r | |
27 | \r | |
28 | typedef\r | |
29 | EFI_STATUS\r | |
30 | (EFIAPI *NT_PEI_LOAD_FILE) (\r | |
31 | VOID *Pe32Data,\r | |
32 | EFI_PHYSICAL_ADDRESS *ImageAddress,\r | |
33 | UINT64 *ImageSize,\r | |
34 | EFI_PHYSICAL_ADDRESS *EntryPoint\r | |
35 | );\r | |
36 | \r | |
37 | /*++\r | |
38 | \r | |
39 | Routine Description:\r | |
40 | Loads and relocates a PE/COFF image into memory.\r | |
41 | \r | |
42 | Arguments:\r | |
43 | Pe32Data - The base address of the PE/COFF file that is to be loaded and relocated\r | |
44 | ImageAddress - The base address of the relocated PE/COFF image\r | |
45 | ImageSize - The size of the relocated PE/COFF image\r | |
46 | EntryPoint - The entry point of the relocated PE/COFF image\r | |
47 | \r | |
48 | Returns:\r | |
49 | EFI_SUCCESS - The file was loaded and relocated\r | |
50 | EFI_OUT_OF_RESOURCES - There was not enough memory to load and relocate the PE/COFF file\r | |
51 | \r | |
52 | --*/\r | |
53 | typedef struct {\r | |
54 | NT_PEI_LOAD_FILE PeiLoadFileService;\r | |
55 | } NT_PEI_LOAD_FILE_PPI;\r | |
56 | \r | |
57 | extern EFI_GUID gNtPeiLoadFilePpiGuid;\r | |
58 | \r | |
59 | #endif\r |