Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 1 | /* |
Tejas Patel | 6940996 | 2018-12-14 00:55:29 -0800 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Tejas Patel | 6940996 | 2018-12-14 00:55:29 -0800 | [diff] [blame] | 7 | #ifndef PLAT_PRIVATE_H |
| 8 | #define PLAT_PRIVATE_H |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <lib/xlat_tables/xlat_tables.h> |
Shubhrajyoti Datta | abf6122 | 2021-03-17 23:01:17 +0530 | [diff] [blame] | 11 | #include <bl31/interrupt_mgmt.h> |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 12 | |
| 13 | void versal_config_setup(void); |
| 14 | |
| 15 | const mmap_region_t *plat_versal_get_mmap(void); |
| 16 | |
| 17 | void plat_versal_gic_driver_init(void); |
| 18 | void plat_versal_gic_init(void); |
| 19 | void plat_versal_gic_cpuif_enable(void); |
| 20 | void plat_versal_gic_cpuif_disable(void); |
| 21 | void plat_versal_gic_pcpu_init(void); |
Tejas Patel | 54d1319 | 2019-02-27 18:44:55 +0530 | [diff] [blame] | 22 | void plat_versal_gic_save(void); |
| 23 | void plat_versal_gic_resume(void); |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 24 | |
| 25 | unsigned int versal_calc_core_pos(u_register_t mpidr); |
Shubhrajyoti Datta | abf6122 | 2021-03-17 23:01:17 +0530 | [diff] [blame] | 26 | /* |
| 27 | * Register handler to specific GIC entrance |
| 28 | * for INTR_TYPE_EL3 type of interrupt |
| 29 | */ |
| 30 | int request_intr_type_el3(uint32_t irq, interrupt_type_handler_t fiq_handler); |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 31 | |
Tejas Patel | 6940996 | 2018-12-14 00:55:29 -0800 | [diff] [blame] | 32 | #endif /* PLAT_PRIVATE_H */ |