hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/irqchip/arm-gic-common.h
....@@ -1,17 +1,20 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * include/linux/irqchip/arm-gic-common.h
34 *
45 * Copyright (C) 2016 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_COMMON_H
118 #define __LINUX_IRQCHIP_ARM_GIC_COMMON_H
129
1310 #include <linux/types.h>
1411 #include <linux/ioport.h>
12
+
13
+#define GICD_INT_DEF_PRI 0xa0
14
+#define GICD_INT_DEF_PRI_X4 ((GICD_INT_DEF_PRI << 24) |\
15
+ (GICD_INT_DEF_PRI << 16) |\
16
+ (GICD_INT_DEF_PRI << 8) |\
17
+ GICD_INT_DEF_PRI)
1518
1619 enum gic_type {
1720 GIC_V2,
....@@ -29,8 +32,15 @@
2932 struct resource vctrl;
3033 /* vlpi support */
3134 bool has_v4;
35
+ /* rvpeid support */
36
+ bool has_v4_1;
3237 };
3338
3439 const struct gic_kvm_info *gic_get_kvm_info(void);
3540
41
+struct irq_domain;
42
+struct fwnode_handle;
43
+int gicv2m_init(struct fwnode_handle *parent_handle,
44
+ struct irq_domain *parent);
45
+
3646 #endif /* __LINUX_IRQCHIP_ARM_GIC_COMMON_H */