1 /* 2 * Copyright (c) 2018-2020, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef SPTOOL_H 8 #define SPTOOL_H 9 10 #include <stdint.h> 11 12 /* 4 Byte magic name "SPKG" */ 13 #define SECURE_PARTITION_MAGIC 0x474B5053 14 15 /* Header for a secure partition package. */ 16 struct sp_pkg_header { 17 uint32_t magic; 18 uint32_t version; 19 uint32_t pm_offset; 20 uint32_t pm_size; 21 uint32_t img_offset; 22 uint32_t img_size; 23 }; 24 25 #endif /* SPTOOL_H */ 26