summaryrefslogtreecommitdiff
path: root/arm9/lib/include/consts.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-05-03 14:33:48 -0400
committerGitHub <noreply@github.com>2020-05-03 14:33:48 -0400
commitc82690dca094b624944b155e5119631c185bca5c (patch)
tree422d68b44548901dba0dfa4f238ddd071b446c70 /arm9/lib/include/consts.h
parentaf8f18b496b6fafb8253e17f3a0f0743a05d442d (diff)
parent9691f79d2e0c2b8442f1b669990cd9a939a0253b (diff)
Merge pull request #58 from red031000/temp
OS_GetLowEntropyData
Diffstat (limited to 'arm9/lib/include/consts.h')
-rw-r--r--arm9/lib/include/consts.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arm9/lib/include/consts.h b/arm9/lib/include/consts.h
index 930f9af5..e07fe323 100644
--- a/arm9/lib/include/consts.h
+++ b/arm9/lib/include/consts.h
@@ -13,6 +13,19 @@
#define HW_PSR_DISABLE_IRQ 0x80 // Disable IRQ
#define HW_PSR_DISABLE_IRQ_FIQ 0xc0 // Disable FIQ and IRQ
+#define HW_REG_BASE 0x04000000
+#define REG_VCOUNT_OFFSET 0x006
+#define REG_VCOUNT_ADDR (HW_REG_BASE + REG_VCOUNT_OFFSET)
+#define reg_GX_VCOUNT (*(REGType16v *)REG_VCOUNT_ADDR)
+
+#define REG_KEYINPUT_OFFSET 0x130
+#define REG_KEYINPUT_ADDR (HW_REG_BASE + REG_KEYINPUT_OFFSET)
+#define reg_PAD_KEYINPUT (*(REGType16v *)REG_KEYINPUT_ADDR)
+
+#define REG_GXSTAT_OFFSET 0x600
+#define REG_GXSTAT_ADDR (HW_REG_BASE + REG_GXSTAT_OFFSET)
+#define reg_G3X_GXSTAT (*(REGType32v *)REG_GXSTAT_ADDR)
+
#define HW_C6_PR_4KB 0x16
#define HW_C6_PR_8KB 0x18
#define HW_C6_PR_16KB 0x1a