]>
Commit | Line | Data |
---|---|---|
bcb53c42 HL |
1 | /** @file\r |
2 | *\r | |
3 | * Copyright (c) 2014, ARM Ltd. All rights reserved.\r | |
4 | *\r | |
5 | * This program and the accompanying materials are licensed and made available\r | |
6 | * under the terms and conditions of the BSD License which accompanies this\r | |
7 | * distribution. The full text of the license may be found at\r | |
8 | * http://opensource.org/licenses/bsd-license.php\r | |
9 | *\r | |
10 | * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r | |
11 | * WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | *\r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __BOOTMON_FS_FILE_INFO_H__\r | |
16 | #define __BOOTMON_FS_FILE_INFO_H__\r | |
17 | \r | |
18 | #define BOOTMON_FS_FILE_INFO_ID \\r | |
19 | { \\r | |
20 | 0x41e26b9c, 0xada6, 0x45b3, {0x80, 0x8e, 0x23, 0x57, 0xa3, 0x5b, 0x60, 0xd6 } \\r | |
21 | }\r | |
22 | \r | |
23 | // From BootMonFS header file\r | |
24 | #define BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX 4\r | |
25 | \r | |
26 | typedef struct {\r | |
27 | // The size of the structure.\r | |
28 | UINT64 Size;\r | |
29 | \r | |
30 | // Subset of properties stored in the file meta-data.\r | |
31 | UINT32 EntryPoint;\r | |
32 | UINT32 RegionCount;\r | |
33 | struct {\r | |
34 | UINT32 LoadAddress;\r | |
35 | UINT32 Size;\r | |
36 | UINT32 Offset;\r | |
37 | UINT32 Checksum;\r | |
38 | } Region[BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX];\r | |
39 | \r | |
40 | } BOOTMON_FS_FILE_INFO;\r | |
41 | \r | |
42 | #define SIZE_OF_BOOTMON_FS_FILE_INFO \\r | |
43 | OFFSET_OF (BOOTMON_FS_FILE_INFO, Region[BOOTMONFS_IMAGE_DESCRIPTION_REGION_MAX - 1].Checksum)\r | |
44 | \r | |
45 | extern EFI_GUID gArmBootMonFsFileInfoGuid;\r | |
46 | \r | |
47 | #endif // __BOOTMON_FS_FILE_INFO_H__\r |