]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/GenFw/GenFw.h
Sync BaseTools Branch (version r2321) to EDKII main trunk.
[mirror_edk2.git] / BaseTools / Source / C / GenFw / GenFw.h
CommitLineData
40d841f6
LG
1/** @file
2
da92f276 3Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
40d841f6
LG
4
5This program and the accompanying materials are licensed and made available
6under the terms and conditions of the BSD License which accompanies this
7distribution. The full text of the license may be found at
8http://opensource.org/licenses/bsd-license.php
9
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13**/
14
15#ifndef _GEN_FW_H_
16#define _GEN_FW_H_
17
da92f276
LG
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
40d841f6
LG
38VOID
39SetHiiResourceHeader (
40 UINT8 *HiiBinData,
41 UINT32 OffsetToFile
42 );
43
44INTN
45IsElfHeader (
46 UINT8 *FileBuffer
47 );
48
49BOOLEAN
50ConvertElf (
51 UINT8 **FileBuffer,
52 UINT32 *FileLength
53 );
54
55#endif