blob: 8d2a23228cee70af95aeb1b76e3a3b6bb4406674 [file] [log] [blame]
Dan Handleyfb42b122014-06-20 09:43:15 +01001/*
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +01002 * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
Dan Handleyfb42b122014-06-20 09:43:15 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Dan Handleyfb42b122014-06-20 09:43:15 +01005 */
6
7#ifndef __ARM_GIC_H__
8#define __ARM_GIC_H__
9
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010010#include <cdefs.h>
Dan Handleyfb42b122014-06-20 09:43:15 +010011#include <stdint.h>
12
13/*******************************************************************************
14 * Function declarations
15 ******************************************************************************/
Juan Castillo7f1f0622014-09-09 09:49:23 +010016void arm_gic_init(uintptr_t gicc_base,
17 uintptr_t gicd_base,
18 uintptr_t gicr_base,
19 const unsigned int *irq_sec_ptr,
Soren Brinkmanna581bd52016-01-14 10:02:33 -080020 unsigned int num_irqs) __deprecated;
21void arm_gic_setup(void) __deprecated;
22void arm_gic_cpuif_deactivate(void) __deprecated;
23void arm_gic_cpuif_setup(void) __deprecated;
24void arm_gic_pcpu_distif_setup(void) __deprecated;
Dan Handleyfb42b122014-06-20 09:43:15 +010025
26uint32_t arm_gic_interrupt_type_to_line(uint32_t type,
Soren Brinkmanna581bd52016-01-14 10:02:33 -080027 uint32_t security_state) __deprecated;
28uint32_t arm_gic_get_pending_interrupt_type(void) __deprecated;
29uint32_t arm_gic_get_pending_interrupt_id(void) __deprecated;
30uint32_t arm_gic_acknowledge_interrupt(void) __deprecated;
31void arm_gic_end_of_interrupt(uint32_t id) __deprecated;
32uint32_t arm_gic_get_interrupt_type(uint32_t id) __deprecated;
Dan Handleyfb42b122014-06-20 09:43:15 +010033
34#endif /* __GIC_H__ */