fconf_tbbr_getter.h 659 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef FCONF_TBBR_GETTER_H
  7. #define FCONF_TBBR_GETTER_H
  8. #include <assert.h>
  9. #include <lib/fconf/fconf.h>
  10. /* TBBR related getter */
  11. #define tbbr__cot_getter(id) __extension__ ({ \
  12. assert((id) < cot_desc_size); \
  13. cot_desc_ptr[id]; \
  14. })
  15. #define tbbr__dyn_config_getter(id) tbbr_dyn_config.id
  16. struct tbbr_dyn_config_t {
  17. uint32_t disable_auth;
  18. void *mbedtls_heap_addr;
  19. size_t mbedtls_heap_size;
  20. };
  21. extern struct tbbr_dyn_config_t tbbr_dyn_config;
  22. int fconf_populate_tbbr_dyn_config(uintptr_t config);
  23. #endif /* FCONF_TBBR_GETTER_H */