Initial import.
[mirror_edk2.git] / EdkModulePkg / Include / Guid / PeiPeCoffLoader.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 PeiPeCoffLoader.h\r
14 \r
15Abstract:\r
16 GUID for the PE/COFF Loader APIs shared between PEI and DXE\r
17\r
18--*/\r
19\r
20#ifndef __PEI_PE_COFF_LOADER_H__\r
21#define __PEI_PE_COFF_LOADER_H__\r
22\r
23\r
24#define EFI_PEI_PE_COFF_LOADER_GUID \\r
25 { 0xd8117cff, 0x94a6, 0x11d4, {0x9a, 0x3a, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } }\r
26\r
27typedef struct _EFI_PEI_PE_COFF_LOADER_PROTOCOL EFI_PEI_PE_COFF_LOADER_PROTOCOL;\r
28\r
29\r
30typedef \r
31EFI_STATUS\r
32(EFIAPI *EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO) (\r
33 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
34 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
35 );\r
36\r
37typedef \r
38EFI_STATUS\r
39(EFIAPI *EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE) (\r
40 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
41 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
42 );\r
43\r
44typedef \r
45EFI_STATUS\r
46(EFIAPI *EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE) (\r
47 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
48 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
49 );\r
50\r
51typedef \r
52EFI_STATUS\r
53(EFIAPI *EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE) (\r
54 IN EFI_PEI_PE_COFF_LOADER_PROTOCOL *This,\r
55 IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
56 );\r
57\r
58struct _EFI_PEI_PE_COFF_LOADER_PROTOCOL {\r
59 EFI_PEI_PE_COFF_LOADER_GET_IMAGE_INFO GetImageInfo;\r
60 EFI_PEI_PE_COFF_LOADER_LOAD_IMAGE LoadImage;\r
61 EFI_PEI_PE_COFF_LOADER_RELOCATE_IMAGE RelocateImage;\r
62 EFI_PEI_PE_COFF_LOADER_UNLOAD_IMAGE UnloadImage;\r
63};\r
64\r
65extern EFI_GUID gEfiPeiPeCoffLoaderGuid;\r
66\r
67#endif\r