1 /* 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 <assert.h> 11 12 #include <lib/fconf/fconf.h> 13 14 /* TBBR related getter */ 15 #define tbbr__cot_getter(id) __extension__ ({ \ 16 assert((id) < cot_desc_size); \ 17 cot_desc_ptr[id]; \ 18 }) 19 20 #define tbbr__dyn_config_getter(id) tbbr_dyn_config.id 21 22 struct tbbr_dyn_config_t { 23 uint32_t disable_auth; 24 void *mbedtls_heap_addr; 25 size_t mbedtls_heap_size; 26 }; 27 28 extern struct tbbr_dyn_config_t tbbr_dyn_config; 29 30 int fconf_populate_tbbr_dyn_config(uintptr_t config); 31 32 #endif /* FCONF_TBBR_GETTER_H */ 33