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