aboutsummaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2020-01-02 13:43:06 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2020-01-02 13:43:06 +0100
commit7da46d099e1d1909bf5d09ecedfea21481a7a3b9 (patch)
tree7d8fcb4b15274023d2e5234fda87f8805749f0ea /global.h
parent1d7ff3bda9b6cbd15deadc1b440d9c02113beec6 (diff)
downloadrpi-MMU-example-7da46d099e1d1909bf5d09ecedfea21481a7a3b9.tar.gz
rpi-MMU-example-7da46d099e1d1909bf5d09ecedfea21481a7a3b9.zip
move general irq register definitions to global.h
Diffstat (limited to 'global.h')
-rw-r--r--global.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/global.h b/global.h
index 34867a1..f5fe9a6 100644
--- a/global.h
+++ b/global.h
@@ -27,4 +27,15 @@
// called "base address for the ARM interrupt register" elsewhere
#define ARM_BASE (PERIF_BASE + 0xB000)
+#define ARM_IRQ_BASIC_PENDING (ARM_BASE + 0x200)
+#define ARM_IRQ_PENDING_1 (ARM_BASE + 0x204)
+#define ARM_IRQ_PENDING_2 (ARM_BASE + 0x208)
+#define ARM_FIQ_CONTROL (ARM_BASE + 0x20C)
+#define ARM_ENABLE_IRQS_1 (ARM_BASE + 0x210)
+#define ARM_ENABLE_IRQS_2 (ARM_BASE + 0x214)
+#define ARM_ENABLE_BASIC_IRQS (ARM_BASE + 0x218)
+#define ARM_DISABLE_IRQS_1 (ARM_BASE + 0x21C)
+#define ARM_DISABLE_IRQS_2 (ARM_BASE + 0x220)
+#define ARM_DISABLE_BASIC_IRQS (ARM_BASE + 0x224)
+
#endif // GLOBAL_H