blob: 0ae6cf9919c16dc9424be016b8fd1776f8f57e0d [file] [log] [blame]
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01001/*
Joel Hutton5cc3bc82018-03-21 11:40:57 +00002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef SECURE_PARTITION_H
8#define SECURE_PARTITION_H
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01009
Antonio Nino Diazd6cf9a22018-10-30 11:52:45 +000010#if SPM_DEPRECATED
11
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010012#include <stdint.h>
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010013#include <utils_def.h>
14
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010015/*
16 * Flags used by the secure_partition_mp_info structure to describe the
17 * characteristics of a cpu. Only a single flag is defined at the moment to
18 * indicate the primary cpu.
19 */
20#define MP_INFO_FLAG_PRIMARY_CPU U(0x00000001)
21
22/*
23 * This structure is used to provide information required to initialise a S-EL0
24 * partition.
25 */
26typedef struct secure_partition_mp_info {
Sughosh Ganu8539aa32017-12-11 19:03:19 +053027 uint64_t mpidr;
28 uint32_t linear_id;
29 uint32_t flags;
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010030} secure_partition_mp_info_t;
31
32typedef struct secure_partition_boot_info {
33 param_header_t h;
Sughosh Ganu8539aa32017-12-11 19:03:19 +053034 uint64_t sp_mem_base;
35 uint64_t sp_mem_limit;
36 uint64_t sp_image_base;
37 uint64_t sp_stack_base;
38 uint64_t sp_heap_base;
39 uint64_t sp_ns_comm_buf_base;
40 uint64_t sp_shared_buf_base;
41 uint64_t sp_image_size;
42 uint64_t sp_pcpu_stack_size;
43 uint64_t sp_heap_size;
44 uint64_t sp_ns_comm_buf_size;
45 uint64_t sp_shared_buf_size;
46 uint32_t num_sp_mem_regions;
47 uint32_t num_cpus;
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010048 secure_partition_mp_info_t *mp_info;
49} secure_partition_boot_info_t;
50
Antonio Nino Diazd6cf9a22018-10-30 11:52:45 +000051#endif /* SPM_DEPRECATED */
52
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000053#endif /* SECURE_PARTITION_H */