]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenFw/GenFw.h
BaseTools X64: fold PLT relocations into simple relative references
[mirror_edk2.git] / BaseTools / Source / C / GenFw / GenFw.h
index 11b3aa941ebbc6250bfd49ccb986373363e82a82..b56181d13e8693680b43f7045de42e71283fecb8 100644 (file)
@@ -1,35 +1,56 @@
-/** @file
-
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
-
-This program and the accompanying materials are licensed and made available 
-under the terms and conditions of the BSD License which accompanies this 
-distribution.  The full text of the license may be found at 
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef _GEN_FW_H_
-#define _GEN_FW_H_
-
-VOID
-SetHiiResourceHeader (
-  UINT8   *HiiBinData,
-  UINT32  OffsetToFile
-  );
-
-INTN
-IsElfHeader (
-  UINT8  *FileBuffer
-  );
-
-BOOLEAN
-ConvertElf (
-  UINT8  **FileBuffer,
-  UINT32 *FileLength
-  );
-
-#endif
+/** @file\r
+Header file for GenFw\r
+\r
+Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+\r
+This program and the accompanying materials are licensed and made available \r
+under the terms and conditions of the BSD License which accompanies this \r
+distribution.  The full text of the license may be found at \r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _GEN_FW_H_\r
+#define _GEN_FW_H_\r
+\r
+//\r
+// Action for this tool.\r
+//\r
+#define FW_DUMMY_IMAGE                0\r
+#define FW_EFI_IMAGE                  1\r
+#define FW_TE_IMAGE                   2\r
+#define FW_ACPI_IMAGE                 3\r
+#define FW_BIN_IMAGE                  4\r
+#define FW_ZERO_DEBUG_IMAGE           5\r
+#define FW_SET_STAMP_IMAGE            6\r
+#define FW_MCI_IMAGE                  7\r
+#define FW_MERGE_IMAGE                8\r
+#define FW_RELOC_STRIPEED_IMAGE       9\r
+#define FW_HII_PACKAGE_LIST_RCIMAGE   10\r
+#define FW_HII_PACKAGE_LIST_BINIMAGE  11\r
+#define FW_REBASE_IMAGE               12\r
+#define FW_SET_ADDRESS_IMAGE          13\r
+\r
+#define DUMP_TE_HEADER  0x11\r
+\r
+VOID\r
+SetHiiResourceHeader (\r
+  UINT8   *HiiBinData,\r
+  UINT32  OffsetToFile\r
+  );\r
+\r
+INTN\r
+IsElfHeader (\r
+  UINT8  *FileBuffer\r
+  );\r
+\r
+BOOLEAN\r
+ConvertElf (\r
+  UINT8  **FileBuffer,\r
+  UINT32 *FileLength\r
+  );\r
+\r
+#endif\r