]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/GenFw/GenFw.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / C / GenFw / GenFw.h
1 /** @file
2 Header file for GenFw
3
4 Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _GEN_FW_H_
11 #define _GEN_FW_H_
12
13 //
14 // Action for this tool.
15 //
16 #define FW_DUMMY_IMAGE 0
17 #define FW_EFI_IMAGE 1
18 #define FW_TE_IMAGE 2
19 #define FW_ACPI_IMAGE 3
20 #define FW_BIN_IMAGE 4
21 #define FW_ZERO_DEBUG_IMAGE 5
22 #define FW_SET_STAMP_IMAGE 6
23 #define FW_MCI_IMAGE 7
24 #define FW_MERGE_IMAGE 8
25 #define FW_RELOC_STRIPEED_IMAGE 9
26 #define FW_HII_PACKAGE_LIST_RCIMAGE 10
27 #define FW_HII_PACKAGE_LIST_BINIMAGE 11
28 #define FW_REBASE_IMAGE 12
29 #define FW_SET_ADDRESS_IMAGE 13
30
31 #define DUMP_TE_HEADER 0x11
32
33 VOID
34 SetHiiResourceHeader (
35 UINT8 *HiiBinData,
36 UINT32 OffsetToFile
37 );
38
39 INTN
40 IsElfHeader (
41 UINT8 *FileBuffer
42 );
43
44 BOOLEAN
45 ConvertElf (
46 UINT8 **FileBuffer,
47 UINT32 *FileLength
48 );
49
50 #endif