plat_private.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved.
  3. * Copyright (c) 2021-2022, Xilinx, Inc. All rights reserved.
  4. * Copyright (c) 2022-2023, Advanced Micro Devices, Inc. All rights reserved.
  5. *
  6. * SPDX-License-Identifier: BSD-3-Clause
  7. */
  8. #ifndef PLAT_PRIVATE_H
  9. #define PLAT_PRIVATE_H
  10. #include <bl31/interrupt_mgmt.h>
  11. #include <lib/xlat_tables/xlat_tables_v2.h>
  12. typedef struct versal_intr_info_type_el3 {
  13. uint32_t id;
  14. interrupt_type_handler_t handler;
  15. } versal_intr_info_type_el3_t;
  16. void versal_net_config_setup(void);
  17. void syscnt_freq_config_setup(void);
  18. uint32_t get_uart_clk(void);
  19. const mmap_region_t *plat_get_mmap(void);
  20. void plat_versal_net_gic_driver_init(void);
  21. void plat_versal_net_gic_init(void);
  22. void plat_versal_net_gic_cpuif_enable(void);
  23. void plat_versal_net_gic_cpuif_disable(void);
  24. void plat_versal_net_gic_pcpu_init(void);
  25. void plat_versal_net_gic_save(void);
  26. void plat_versal_net_gic_resume(void);
  27. void plat_versal_net_gic_redistif_on(void);
  28. void plat_versal_net_gic_redistif_off(void);
  29. extern uint32_t cpu_clock, platform_id, platform_version;
  30. void board_detection(void);
  31. char *board_name_decode(void);
  32. uint64_t smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3,
  33. uint64_t x4, void *cookie, void *handle, uint64_t flags);
  34. int32_t sip_svc_setup_init(void);
  35. /*
  36. * Register handler to specific GIC entrance
  37. * for INTR_TYPE_EL3 type of interrupt
  38. */
  39. int request_intr_type_el3(uint32_t irq, interrupt_type_handler_t fiq_handler);
  40. #endif /* PLAT_PRIVATE_H */