aboutsummaryrefslogtreecommitdiff
path: root/include/tools_share/sptool.h
blob: 53668e09c77f9a4d776ca613c1e442b0c9551679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef SPTOOL_H
#define SPTOOL_H

#include <stdint.h>

/* 4 Byte magic name "SPKG" */
#define SECURE_PARTITION_MAGIC		0x474B5053

/* Header for a secure partition package. */
struct sp_pkg_header {
	uint32_t magic;
	uint32_t version;
	uint32_t pm_offset;
	uint32_t pm_size;
	uint32_t img_offset;
	uint32_t img_size;
};

#endif /* SPTOOL_H */