blob: 53668e09c77f9a4d776ca613c1e442b0c9551679 [file] [log] [blame]
Antonio Nino Diaza830a4d2018-11-27 14:58:04 +00001/*
Manish Pandey7ace7842020-01-07 17:05:28 +00002 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Antonio Nino Diaza830a4d2018-11-27 14:58:04 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef SPTOOL_H
8#define SPTOOL_H
9
10#include <stdint.h>
11
Manish Pandey7ace7842020-01-07 17:05:28 +000012/* 4 Byte magic name "SPKG" */
13#define SECURE_PARTITION_MAGIC 0x474B5053
Antonio Nino Diaza830a4d2018-11-27 14:58:04 +000014
Manish Pandey7ace7842020-01-07 17:05:28 +000015/* Header for a secure partition package. */
16struct 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 Diaza830a4d2018-11-27 14:58:04 +000023};
24
25#endif /* SPTOOL_H */