diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-27 14:58:04 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-12-11 13:45:41 +0000 |
commit | 26010da11629f27ddf013ba6127198b33edcd574 (patch) | |
tree | 5cf72a0399464d6c8134b1d2d659c999f800fd74 /include/tools_share | |
parent | 09d413a158f884dafbf171723c60914cd41383d3 (diff) |
SPM: sptool: Introduce tool to package SP and RD
This tool packages Secure Partitions and Resource Descriptor blobs into
a simple file that can be loaded by SPM.
Change-Id: If3800064f30bdc3d7fc6a15ffbb3007ef632bcaa
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/tools_share')
-rw-r--r-- | include/tools_share/sptool.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/tools_share/sptool.h b/include/tools_share/sptool.h new file mode 100644 index 00000000..67a2cf09 --- /dev/null +++ b/include/tools_share/sptool.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2018, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef SPTOOL_H +#define SPTOOL_H + +#include <stdint.h> + +/* Header for a secure partition package. There is one per package. */ +struct sp_pkg_header { + uint64_t version; + uint64_t number_of_sp; +}; + +/* + * Entry descriptor in a secure partition package. Each entry comprises a + * secure partition and its resource description. + */ +struct sp_pkg_entry { + uint64_t sp_offset; + uint64_t sp_size; + uint64_t rd_offset; + uint64_t rd_size; +}; + +#endif /* SPTOOL_H */ |