developer | f9b5684 | 2020-06-09 13:38:35 +0800 | [diff] [blame] | 1 | /* |
developer | fe14b9f | 2022-09-05 11:18:04 +0800 | [diff] [blame] | 2 | * Copyright (c) 2020-2022, MediaTek Inc. All rights reserved. |
developer | f9b5684 | 2020-06-09 13:38:35 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef MT_GIC_V3_H |
| 8 | #define MT_GIC_V3_H |
| 9 | |
| 10 | #include <drivers/arm/gicv3.h> |
| 11 | #include <lib/mmio.h> |
| 12 | |
| 13 | void mt_gic_driver_init(void); |
| 14 | void mt_gic_init(void); |
| 15 | void mt_gic_set_pending(uint32_t irq); |
| 16 | void mt_gic_distif_save(void); |
| 17 | void mt_gic_distif_restore(void); |
| 18 | void mt_gic_rdistif_init(void); |
| 19 | void mt_gic_rdistif_save(void); |
| 20 | void mt_gic_rdistif_restore(void); |
| 21 | void mt_gic_rdistif_restore_all(void); |
| 22 | void gic_sgi_save_all(void); |
| 23 | void gic_sgi_restore_all(void); |
developer | 28d7038 | 2019-12-19 15:58:20 +0800 | [diff] [blame] | 24 | uint32_t mt_irq_get_pending(uint32_t irq); |
| 25 | void mt_irq_set_pending(uint32_t irq); |
developer | 6600255 | 2022-07-08 13:58:33 +0800 | [diff] [blame] | 26 | int mt_gic_one_init(void); |
developer | 28d7038 | 2019-12-19 15:58:20 +0800 | [diff] [blame] | 27 | |
developer | f9b5684 | 2020-06-09 13:38:35 +0800 | [diff] [blame] | 28 | #endif /* MT_GIC_V3_H */ |