Boris BREZILLON | b1479eb | 2014-07-10 19:14:18 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Atmel AT91 common AIC (Advanced Interrupt Controller) header file |
| 3 | * |
| 4 | * Copyright (C) 2004 SAN People |
| 5 | * Copyright (C) 2004 ATMEL |
| 6 | * Copyright (C) Rick Bronson |
| 7 | * Copyright (C) 2014 Free Electrons |
| 8 | * |
| 9 | * Author: Boris BREZILLON <boris.brezillon@free-electrons.com> |
| 10 | * |
| 11 | * This file is licensed under the terms of the GNU General Public |
| 12 | * License version 2. This program is licensed "as is" without any |
| 13 | * warranty of any kind, whether express or implied. |
| 14 | */ |
| 15 | |
| 16 | #ifndef __IRQ_ATMEL_AIC_COMMON_H |
| 17 | #define __IRQ_ATMEL_AIC_COMMON_H |
| 18 | |
| 19 | |
| 20 | int aic_common_set_type(struct irq_data *d, unsigned type, unsigned *val); |
| 21 | |
Milo Kim | 5fd26a0 | 2016-01-13 16:19:51 +0900 | [diff] [blame] | 22 | void aic_common_set_priority(int priority, unsigned *val); |
Boris BREZILLON | b1479eb | 2014-07-10 19:14:18 +0200 | [diff] [blame] | 23 | |
| 24 | int aic_common_irq_domain_xlate(struct irq_domain *d, |
| 25 | struct device_node *ctrlr, |
| 26 | const u32 *intspec, |
| 27 | unsigned int intsize, |
| 28 | irq_hw_number_t *out_hwirq, |
| 29 | unsigned int *out_type); |
| 30 | |
| 31 | struct irq_domain *__init aic_common_of_init(struct device_node *node, |
| 32 | const struct irq_domain_ops *ops, |
Milo Kim | dd85c79 | 2016-01-13 16:19:49 +0900 | [diff] [blame] | 33 | const char *name, int nirqs, |
| 34 | const struct of_device_id *matches); |
Boris BREZILLON | b1479eb | 2014-07-10 19:14:18 +0200 | [diff] [blame] | 35 | |
Boris Brezillon | 0a46230 | 2017-07-04 11:10:41 +0200 | [diff] [blame] | 36 | void __init aic_common_rtc_irq_fixup(void); |
Boris BREZILLON | 3d61467 | 2014-07-10 20:25:40 +0200 | [diff] [blame] | 37 | |
Boris Brezillon | 0a46230 | 2017-07-04 11:10:41 +0200 | [diff] [blame] | 38 | void __init aic_common_rtt_irq_fixup(void); |
Boris BREZILLON | 4185315 | 2014-11-03 09:31:00 +0100 | [diff] [blame] | 39 | |
Boris BREZILLON | b1479eb | 2014-07-10 19:14:18 +0200 | [diff] [blame] | 40 | #endif /* __IRQ_ATMEL_AIC_COMMON_H */ |