3 * Copyright (c) 2012-2014, ARM Limited. All rights reserved.
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __BOOTMON_FS_HW_H__
16 #define __BOOTMON_FS_HW_H__
18 #define MAX_NAME_LENGTH 32
20 #define HW_IMAGE_FOOTER_SIGNATURE_1 0x464C5348
21 #define HW_IMAGE_FOOTER_SIGNATURE_2 0x464F4F54
23 #define HW_IMAGE_FOOTER_VERSION 1
24 #define HW_IMAGE_FOOTER_OFFSET 92
26 #define HW_IMAGE_FOOTER_VERSION2 2
27 #define HW_IMAGE_FOOTER_OFFSET2 96
30 CHAR8 Filename
[MAX_NAME_LENGTH
];
33 UINT32 FooterSignature1
;
34 UINT32 FooterSignature2
;
37 #define HW_IMAGE_DESCRIPTION_REGION_MAX 4
39 // This structure is located at the end of a block when a file is present
49 } Region
[HW_IMAGE_DESCRIPTION_REGION_MAX
];
52 UINT32 FooterChecksum
;
54 HW_IMAGE_FOOTER Footer
;
55 } HW_IMAGE_DESCRIPTION
;