summaryrefslogtreecommitdiff
path: root/include/linux/irqchip/gic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/irqchip/gic.h')
-rw-r--r--include/linux/irqchip/gic.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/irqchip/gic.h b/include/linux/irqchip/gic.h
new file mode 100644
index 000000000000..f7927d2db57b
--- /dev/null
+++ b/include/linux/irqchip/gic.h
@@ -0,0 +1,47 @@
+/*
+ * ARM GIC controller definitions.
+ *
+ * Copyright (C) 2012 ARM Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef __IRQCHIP_GIC_H
+#define __IRQCHIP_GIC_H
+
+#define GIC_CPU_CTRL 0x00
+#define GIC_CPU_PRIMASK 0x04
+#define GIC_CPU_BINPOINT 0x08
+#define GIC_CPU_INTACK 0x0c
+#define GIC_CPU_EOI 0x10
+#define GIC_CPU_RUNNINGPRI 0x14
+#define GIC_CPU_HIGHPRI 0x18
+
+#define GIC_DIST_CTRL 0x000
+#define GIC_DIST_CTR 0x004
+#define GIC_DIST_ENABLE_SET 0x100
+#define GIC_DIST_ENABLE_CLEAR 0x180
+#define GIC_DIST_PENDING_SET 0x200
+#define GIC_DIST_PENDING_CLEAR 0x280
+#define GIC_DIST_ACTIVE_BIT 0x300
+#define GIC_DIST_PRI 0x400
+#define GIC_DIST_TARGET 0x800
+#define GIC_DIST_CONFIG 0xc00
+#define GIC_DIST_SOFTINT 0xf00
+
+#ifndef __ASSEMBLY__
+struct device_node;
+
+int gic_of_init(struct device_node *node, struct device_node *parent);
+#endif
+
+#endif