blob: 818797d2d2bc855bd4c72efeeea828b07c42b1c0 [file] [log] [blame]
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +05301/*
Tejas Patel69409962018-12-14 00:55:29 -08002 * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
Tanmay Shahfdae9e82022-08-26 15:06:00 -07003 * Copyright (c) 2018-2022, Xilinx, Inc. All rights reserved.
4 * Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved.
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +05305 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
Tejas Patel69409962018-12-14 00:55:29 -08009#ifndef PLAT_PRIVATE_H
10#define PLAT_PRIVATE_H
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053011
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000012#include <lib/xlat_tables/xlat_tables.h>
Shubhrajyoti Dattaabf61222021-03-17 23:01:17 +053013#include <bl31/interrupt_mgmt.h>
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053014
Tanmay Shahfdae9e82022-08-26 15:06:00 -070015typedef struct versal_intr_info_type_el3 {
16 uint32_t id;
17 interrupt_type_handler_t handler;
18} versal_intr_info_type_el3_t;
19
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053020void versal_config_setup(void);
21
22const mmap_region_t *plat_versal_get_mmap(void);
23
24void plat_versal_gic_driver_init(void);
25void plat_versal_gic_init(void);
26void plat_versal_gic_cpuif_enable(void);
27void plat_versal_gic_cpuif_disable(void);
28void plat_versal_gic_pcpu_init(void);
Tejas Patel54d13192019-02-27 18:44:55 +053029void plat_versal_gic_save(void);
30void plat_versal_gic_resume(void);
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053031
Venkatesh Yadav Abbarapubde87592022-05-24 11:11:12 +053032uint32_t versal_calc_core_pos(u_register_t mpidr);
Shubhrajyoti Dattaabf61222021-03-17 23:01:17 +053033/*
34 * Register handler to specific GIC entrance
35 * for INTR_TYPE_EL3 type of interrupt
36 */
Venkatesh Yadav Abbarapubde87592022-05-24 11:11:12 +053037int32_t request_intr_type_el3(uint32_t irq, interrupt_type_handler_t fiq_handler);
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053038
Tejas Patel69409962018-12-14 00:55:29 -080039#endif /* PLAT_PRIVATE_H */