sptool.h 457 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
3
4
5
6
7
8
9
10
11
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef SPTOOL_H
#define SPTOOL_H

#include <stdint.h>

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

15
16
17
18
19
20
21
22
/* 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;
23
24
25
};

#endif /* SPTOOL_H */