]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/GenFdImage/GenFdImage.h
Adding Additional Tools that are needed for Platform Image creation.
[mirror_edk2.git] / Tools / Source / TianoTools / GenFdImage / GenFdImage.h
diff --git a/Tools/Source/TianoTools/GenFdImage/GenFdImage.h b/Tools/Source/TianoTools/GenFdImage/GenFdImage.h
new file mode 100644 (file)
index 0000000..68cfa8c
--- /dev/null
@@ -0,0 +1,89 @@
+/*++\r
+\r
+Copyright (c)  1999 - 2002 Intel Corporation. All rights reserved\r
+This software and associated documentation (if any) is furnished\r
+under a license and may only be used or copied in accordance\r
+with the terms of the license. Except as permitted by such\r
+license, no part of this software or documentation may be\r
+reproduced, stored in a retrieval system, or transmitted in any\r
+form or by any means without the express written consent of\r
+Intel Corporation.\r
+\r
+\r
+Module Name:\r
+  \r
+  GenFdImage.h\r
+\r
+Abstract:\r
+\r
+  This file contains the relevant declarations required\r
+  to generate the Firmware Device\r
+\r
+--*/\r
+\r
+//\r
+// Coded to EFI 2.0 Coding Standard\r
+//\r
+#ifndef _EFI_GEN_FD_IMAGE_H\r
+#define _EFI_GEN_FD_IMAGE_H\r
+\r
+//\r
+// Included Header files\r
+//\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+#include <string.h>\r
+#include <io.h>\r
+#include <assert.h>\r
+#include "TianoCommon.h"\r
+#include "ParseInf.h"\r
+#include "GenFvImage.h"\r
+\r
+//\r
+// Defines\r
+//\r
+#define FILE_NAME_SIZE  256\r
+\r
+//\r
+// Type Definition\r
+//\r
+typedef struct {\r
+  UINT64  FdSize;\r
+  UINT64  FdBaseAddress;\r
+  UINT8   PadValue;\r
+  CHAR8   OutFileName[FILE_NAME_SIZE];\r
+} FDINFO;\r
+\r
+//\r
+// Exported Function Prototype\r
+//\r
+EFI_STATUS\r
+GenerateFdImage (\r
+  IN UINT64  BaseAddress,\r
+  IN UINT64  Size,\r
+  IN UINT8   PadByte,\r
+  IN CHAR8   *OutFile,\r
+  IN CHAR8   **FileList\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  GC_TODO: Add function description\r
+\r
+Arguments:\r
+\r
+  BaseAddress - GC_TODO: add argument description\r
+  Size        - GC_TODO: add argument description\r
+  PadByte     - GC_TODO: add argument description\r
+  OutFile     - GC_TODO: add argument description\r
+  FileList    - GC_TODO: add argument description\r
+\r
+Returns:\r
+\r
+  GC_TODO: add return values\r
+\r
+--*/\r
+;\r
+\r
+#endif\r