Antonio Nino Diaz | a830a4d | 2018-11-27 14:58:04 +0000 | [diff] [blame] | 1 | /* |
Manish Pandey | 7ace784 | 2020-01-07 17:05:28 +0000 | [diff] [blame] | 2 | * Copyright (c) 2018-2020, Arm Limited. All rights reserved. |
Antonio Nino Diaz | a830a4d | 2018-11-27 14:58:04 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef SPTOOL_H |
| 8 | #define SPTOOL_H |
| 9 | |
| 10 | #include <stdint.h> |
| 11 | |
Manish Pandey | 7ace784 | 2020-01-07 17:05:28 +0000 | [diff] [blame] | 12 | /* 4 Byte magic name "SPKG" */ |
| 13 | #define SECURE_PARTITION_MAGIC 0x474B5053 |
Antonio Nino Diaz | a830a4d | 2018-11-27 14:58:04 +0000 | [diff] [blame] | 14 | |
Manish Pandey | 7ace784 | 2020-01-07 17:05:28 +0000 | [diff] [blame] | 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; |
Antonio Nino Diaz | a830a4d | 2018-11-27 14:58:04 +0000 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | #endif /* SPTOOL_H */ |