blob: 019159f929196a72cdfc7a22be23a27ca87807da [file] [log] [blame]
Dan Handleyfb42b122014-06-20 09:43:15 +01001/*
2 * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
3 *
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
10#include <stdint.h>
11
12/*******************************************************************************
13 * Function declarations
14 ******************************************************************************/
Juan Castillo7f1f0622014-09-09 09:49:23 +010015void arm_gic_init(uintptr_t gicc_base,
16 uintptr_t gicd_base,
17 uintptr_t gicr_base,
18 const unsigned int *irq_sec_ptr,
Soren Brinkmanna581bd52016-01-14 10:02:33 -080019 unsigned int num_irqs) __deprecated;
20void arm_gic_setup(void) __deprecated;
21void arm_gic_cpuif_deactivate(void) __deprecated;
22void arm_gic_cpuif_setup(void) __deprecated;
23void arm_gic_pcpu_distif_setup(void) __deprecated;
Dan Handleyfb42b122014-06-20 09:43:15 +010024
25uint32_t arm_gic_interrupt_type_to_line(uint32_t type,
Soren Brinkmanna581bd52016-01-14 10:02:33 -080026 uint32_t security_state) __deprecated;
27uint32_t arm_gic_get_pending_interrupt_type(void) __deprecated;
28uint32_t arm_gic_get_pending_interrupt_id(void) __deprecated;
29uint32_t arm_gic_acknowledge_interrupt(void) __deprecated;
30void arm_gic_end_of_interrupt(uint32_t id) __deprecated;
31uint32_t arm_gic_get_interrupt_type(uint32_t id) __deprecated;
Dan Handleyfb42b122014-06-20 09:43:15 +010032
33#endif /* __GIC_H__ */