]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg: Provide mechanism to get BootMonFS file information (cont.)
authorHarry Liebel <Harry.Liebel@arm.com>
Tue, 26 Aug 2014 10:19:52 +0000 (10:19 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Aug 2014 10:19:52 +0000 (10:19 +0000)
Add additional structure to get file meta-data information from BootMonFS
based files. AXF files are processed by the Flash loader and the ELF header
stripped. The relevant information is stored in the file-system.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Harry Liebel <Harry.Liebel@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15906 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/Include/Guid/BootMonFsFileInfo.h [new file with mode: 0644]

diff --git a/ArmPlatformPkg/Include/Guid/BootMonFsFileInfo.h b/ArmPlatformPkg/Include/Guid/BootMonFsFileInfo.h
new file mode 100644 (file)
index 0000000..c4d805c
--- /dev/null
@@ -0,0 +1,47 @@
+/** @file\r
+*\r
+*  Copyright (c) 2014, ARM Ltd. All rights reserved.\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, WITHOUT\r
+*  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*\r
+**/\r
+\r
+#ifndef __BOOTMON_FS_FILE_INFO_H__\r
+#define __BOOTMON_FS_FILE_INFO_H__\r
+\r
+#define BOOTMON_FS_FILE_INFO_ID \\r
+  { \\r
+    0x41e26b9c, 0xada6, 0x45b3, {0x80, 0x8e, 0x23, 0x57, 0xa3, 0x5b, 0x60, 0xd6 } \\r
+  }\r
+\r
+// From BootMonFS header file\r
+#define BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX 4\r
+\r
+typedef struct {\r
+  // The size of the structure.\r
+  UINT64    Size;\r
+\r
+  // Subset of properties stored in the file meta-data.\r
+  UINT32  EntryPoint;\r
+  UINT32  RegionCount;\r
+  struct {\r
+    UINT32 LoadAddress;\r
+    UINT32 Size;\r
+    UINT32 Offset;\r
+    UINT32 Checksum;\r
+  } Region[BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX];\r
+\r
+} BOOTMON_FS_FILE_INFO;\r
+\r
+#define SIZE_OF_BOOTMON_FS_FILE_INFO \\r
+  OFFSET_OF (BOOTMON_FS_FILE_INFO, Region[BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX - 1].Checksum)\r
+\r
+extern EFI_GUID gArmBootMonFsFileInfoGuid;\r
+\r
+#endif // __BOOTMON_FS_FILE_INFO_H__\r