blob: eddc0c4b561f280f41231e08d9dee8b193f62fcb [file] [log] [blame]
Louis Mayencourt944ade82019-08-08 12:03:26 +01001/*
2 * Copyright (c) 2019-2020, ARM Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef FCONF_TBBR_GETTER_H
8#define FCONF_TBBR_GETTER_H
9
10#include <lib/fconf/fconf.h>
11
12/* TBBR related getter */
13#define tbbr__cot_getter(id) cot_desc_ptr[id]
14
Louis Mayencourt4da9b312019-09-30 10:57:24 +010015#define tbbr__dyn_config_getter(id) tbbr_dyn_config.id
16
17struct tbbr_dyn_config_t {
18 uint32_t disable_auth;
Louis Mayencourt5b9055f2019-10-01 10:45:14 +010019 void *mbedtls_heap_addr;
20 size_t mbedtls_heap_size;
Louis Mayencourt4da9b312019-09-30 10:57:24 +010021};
22
23extern struct tbbr_dyn_config_t tbbr_dyn_config;
24
25int fconf_populate_tbbr_dyn_config(uintptr_t config);
26
Louis Mayencourt944ade82019-08-08 12:03:26 +010027#endif /* FCONF_TBBR_GETTER_H */