summaryrefslogtreecommitdiff
path: root/include/nitro/consts.h
diff options
context:
space:
mode:
authorMartmists <mail@martmists.com>2020-04-26 08:54:18 +0200
committerGitHub <noreply@github.com>2020-04-26 08:54:18 +0200
commit08b8520c12dcbd6fa0d19770c512122df2303ed9 (patch)
tree74960adfb31cddcf30675a6b08e33443c9cbc98f /include/nitro/consts.h
parentbbd690eb994cb95f6b9c2235996278fe586f8de2 (diff)
parente028229b82c0e20aa9a8c0a88eece2a41f4a0fd4 (diff)
Merge pull request #24 from red031000/os_lib
few cleanups to os_alloc.c
Diffstat (limited to 'include/nitro/consts.h')
-rw-r--r--include/nitro/consts.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/nitro/consts.h b/include/nitro/consts.h
index 3592500a..6fc71be2 100644
--- a/include/nitro/consts.h
+++ b/include/nitro/consts.h
@@ -13,6 +13,31 @@
#define HW_PSR_IRQ_DISABLE 0x80 // Disable IRQ
#define HW_PSR_IRQ_FIQ_DISABLE 0xc0 // Disable FIQ and IRQ
+#define HW_C6_PR_4KB 0x16
+#define HW_C6_PR_8KB 0x18
+#define HW_C6_PR_16KB 0x1a
+#define HW_C6_PR_32KB 0x1c
+#define HW_C6_PR_64KB 0x1e
+#define HW_C6_PR_128KB 0x20
+#define HW_C6_PR_256KB 0x22
+#define HW_C6_PR_512KB 0x24
+#define HW_C6_PR_1MB 0x26
+#define HW_C6_PR_2MB 0x28
+#define HW_C6_PR_4MB 0x2a
+#define HW_C6_PR_8MB 0x2c
+#define HW_C6_PR_16MB 0x2e
+#define HW_C6_PR_32MB 0x30
+#define HW_C6_PR_64MB 0x32
+#define HW_C6_PR_128MB 0x34
+#define HW_C6_PR_256MB 0x36
+#define HW_C6_PR_512MB 0x38
+#define HW_C6_PR_1GB 0x3a
+#define HW_C6_PR_2GB 0x3c
+#define HW_C6_PR_4GB 0x3e
+
+#define OS_CONSOLE_SIZE_MASK 0x00000003
+#define OS_CONSOLE_SIZE_4MB 0x00000001
+
#define OSi_GetArenaInfo() (*(OSArenaInfo*)HW_ARENA_INFO_BUF)
#define OSi_TRUNC(n, a) (((u32) (n)) & ~((a) - 1))
#define OSi_ROUND(n, a) (((u32) (n) + (a) - 1) & ~((a) - 1))