xref: /rk3399_ARM-atf/plat/xilinx/versal_net/include/plat_private.h (revision d57362bd92c2e5c8a1222fd763e24163c1234938)
1 /*
2  * Copyright (c) 2018-2025, 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 
9 #ifndef PLAT_PRIVATE_H
10 #define PLAT_PRIVATE_H
11 
12 #include <bl31/interrupt_mgmt.h>
13 #include <lib/xlat_tables/xlat_tables_v2.h>
14 
15 typedef struct versal_intr_info_type_el3 {
16 	uint32_t id;
17 	interrupt_type_handler_t handler;
18 } versal_intr_info_type_el3_t;
19 
20 void versal_net_config_setup(void);
21 void syscnt_freq_config_setup(void);
22 uint32_t get_uart_clk(void);
23 
24 const mmap_region_t *plat_get_mmap(void);
25 
26 extern uint32_t cpu_clock, platform_id, platform_version;
27 void board_detection(void);
28 const char *board_name_decode(void);
29 uint64_t smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3,
30 		       uint64_t x4, void *cookie, void *handle, uint64_t flags);
31 int32_t sip_svc_setup_init(void);
32 /*
33  * Register handler to specific GIC entrance
34  * for INTR_TYPE_EL3 type of interrupt
35  */
36 int request_intr_type_el3(uint32_t irq, interrupt_type_handler_t fiq_handler);
37 
38 #endif /* PLAT_PRIVATE_H */
39