hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/irqchip/arm-gic.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * include/linux/irqchip/arm-gic.h
34 *
45 * 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.
96 */
107 #ifndef __LINUX_IRQCHIP_ARM_GIC_H
118 #define __LINUX_IRQCHIP_ARM_GIC_H
....@@ -18,6 +15,7 @@
1815 #define GIC_CPU_RUNNINGPRI 0x14
1916 #define GIC_CPU_HIGHPRI 0x18
2017 #define GIC_CPU_ALIAS_BINPOINT 0x1c
18
+#define GIC_CPU_ALIAS_INTACK 0x20
2119 #define GIC_CPU_ACTIVEPRIO 0xd0
2220 #define GIC_CPU_IDENT 0xfc
2321 #define GIC_CPU_DEACTIVATE 0x1000
....@@ -65,11 +63,6 @@
6563 #define GICD_INT_EN_CLR_X32 0xffffffff
6664 #define GICD_INT_EN_SET_SGI 0x0000ffff
6765 #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)
7366
7467 #define GICD_IIDR_IMPLEMENTER_SHIFT 0
7568 #define GICD_IIDR_IMPLEMENTER_MASK (0xfff << GICD_IIDR_IMPLEMENTER_SHIFT)
....@@ -163,11 +156,7 @@
163156 * Legacy platforms not converted to DT yet must use this to init
164157 * their GIC
165158 */
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);
171160
172161 void gic_send_sgi(unsigned int cpu_id, unsigned int irq);
173162 int gic_get_cpu_id(unsigned int cpu);