]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/GenFw/GenFw.h
Sync BaseTools Branch (version r2149) to EDKII main trunk.
[mirror_edk2.git] / BaseTools / Source / C / GenFw / GenFw.h
1 /** @file
2
3 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials are licensed and made available
6 under the terms and conditions of the BSD License which accompanies this
7 distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _GEN_FW_H_
16 #define _GEN_FW_H_
17
18 //
19 // Action for this tool.
20 //
21 #define FW_DUMMY_IMAGE 0
22 #define FW_EFI_IMAGE 1
23 #define FW_TE_IMAGE 2
24 #define FW_ACPI_IMAGE 3
25 #define FW_BIN_IMAGE 4
26 #define FW_ZERO_DEBUG_IMAGE 5
27 #define FW_SET_STAMP_IMAGE 6
28 #define FW_MCI_IMAGE 7
29 #define FW_MERGE_IMAGE 8
30 #define FW_RELOC_STRIPEED_IMAGE 9
31 #define FW_HII_PACKAGE_LIST_RCIMAGE 10
32 #define FW_HII_PACKAGE_LIST_BINIMAGE 11
33 #define FW_REBASE_IMAGE 12
34 #define FW_SET_ADDRESS_IMAGE 13
35
36 #define DUMP_TE_HEADER 0x11
37
38 VOID
39 SetHiiResourceHeader (
40 UINT8 *HiiBinData,
41 UINT32 OffsetToFile
42 );
43
44 INTN
45 IsElfHeader (
46 UINT8 *FileBuffer
47 );
48
49 BOOLEAN
50 ConvertElf (
51 UINT8 **FileBuffer,
52 UINT32 *FileLength
53 );
54
55 #endif