sptool.h 565 Bytes
Newer Older
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
26
27
28
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 */