| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * include/linux/irqchip/arm-gic.h |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2002 ARM Limited, All Rights Reserved. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | #ifndef __LINUX_IRQCHIP_ARM_GIC_H |
|---|
| 11 | 8 | #define __LINUX_IRQCHIP_ARM_GIC_H |
|---|
| .. | .. |
|---|
| 18 | 15 | #define GIC_CPU_RUNNINGPRI 0x14 |
|---|
| 19 | 16 | #define GIC_CPU_HIGHPRI 0x18 |
|---|
| 20 | 17 | #define GIC_CPU_ALIAS_BINPOINT 0x1c |
|---|
| 18 | +#define GIC_CPU_ALIAS_INTACK 0x20 |
|---|
| 21 | 19 | #define GIC_CPU_ACTIVEPRIO 0xd0 |
|---|
| 22 | 20 | #define GIC_CPU_IDENT 0xfc |
|---|
| 23 | 21 | #define GIC_CPU_DEACTIVATE 0x1000 |
|---|
| .. | .. |
|---|
| 65 | 63 | #define GICD_INT_EN_CLR_X32 0xffffffff |
|---|
| 66 | 64 | #define GICD_INT_EN_SET_SGI 0x0000ffff |
|---|
| 67 | 65 | #define GICD_INT_EN_CLR_PPI 0xffff0000 |
|---|
| 68 | | -#define GICD_INT_DEF_PRI 0xa0 |
|---|
| 69 | | -#define GICD_INT_DEF_PRI_X4 ((GICD_INT_DEF_PRI << 24) |\ |
|---|
| 70 | | - (GICD_INT_DEF_PRI << 16) |\ |
|---|
| 71 | | - (GICD_INT_DEF_PRI << 8) |\ |
|---|
| 72 | | - GICD_INT_DEF_PRI) |
|---|
| 73 | 66 | |
|---|
| 74 | 67 | #define GICD_IIDR_IMPLEMENTER_SHIFT 0 |
|---|
| 75 | 68 | #define GICD_IIDR_IMPLEMENTER_MASK (0xfff << GICD_IIDR_IMPLEMENTER_SHIFT) |
|---|
| .. | .. |
|---|
| 163 | 156 | * Legacy platforms not converted to DT yet must use this to init |
|---|
| 164 | 157 | * their GIC |
|---|
| 165 | 158 | */ |
|---|
| 166 | | -void gic_init(unsigned int nr, int start, |
|---|
| 167 | | - void __iomem *dist , void __iomem *cpu); |
|---|
| 168 | | - |
|---|
| 169 | | -int gicv2m_init(struct fwnode_handle *parent_handle, |
|---|
| 170 | | - struct irq_domain *parent); |
|---|
| 159 | +void gic_init(void __iomem *dist , void __iomem *cpu); |
|---|
| 171 | 160 | |
|---|
| 172 | 161 | void gic_send_sgi(unsigned int cpu_id, unsigned int irq); |
|---|
| 173 | 162 | int gic_get_cpu_id(unsigned int cpu); |
|---|