Antonio Nino Diaz | a830a4d | 2018-11-27 14:58:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, 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 | /* Header for a secure partition package. There is one per package. */ |
| 13 | struct sp_pkg_header { |
| 14 | uint64_t version; |
| 15 | uint64_t number_of_sp; |
| 16 | }; |
| 17 | |
| 18 | /* |
| 19 | * Entry descriptor in a secure partition package. Each entry comprises a |
| 20 | * secure partition and its resource description. |
| 21 | */ |
| 22 | struct sp_pkg_entry { |
| 23 | uint64_t sp_offset; |
| 24 | uint64_t sp_size; |
| 25 | uint64_t rd_offset; |
| 26 | uint64_t rd_size; |
| 27 | }; |
| 28 | |
| 29 | #endif /* SPTOOL_H */ |