fconf_sdei_getter.h 866 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2019-2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef FCONF_SDEI_GETTER_H
  7. #define FCONF_SDEI_GETTER_H
  8. #include <lib/fconf/fconf.h>
  9. #include <platform_def.h>
  10. #define sdei__dyn_config_getter(id) sdei_dyn_config.id
  11. struct sdei_dyn_config_t {
  12. uint32_t private_ev_cnt;
  13. int32_t private_ev_nums[PLAT_SDEI_DP_EVENT_MAX_CNT];
  14. unsigned int private_ev_intrs[PLAT_SDEI_DP_EVENT_MAX_CNT];
  15. unsigned int private_ev_flags[PLAT_SDEI_DP_EVENT_MAX_CNT];
  16. uint32_t shared_ev_cnt;
  17. int32_t shared_ev_nums[PLAT_SDEI_DS_EVENT_MAX_CNT];
  18. unsigned int shared_ev_intrs[PLAT_SDEI_DS_EVENT_MAX_CNT];
  19. unsigned int shared_ev_flags[PLAT_SDEI_DS_EVENT_MAX_CNT];
  20. };
  21. int fconf_populate_sdei_dyn_config(uintptr_t config);
  22. extern struct sdei_dyn_config_t sdei_dyn_config;
  23. #endif /* FCONF_SDEI_GETTER_H */