summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/bits
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/bfin/bits')
-rw-r--r--libc/sysdeps/linux/bfin/bits/bfin_sram.h12
-rw-r--r--libc/sysdeps/linux/bfin/bits/mman.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/bfin/bits/bfin_sram.h b/libc/sysdeps/linux/bfin/bits/bfin_sram.h
new file mode 100644
index 000000000..1ac066a10
--- /dev/null
+++ b/libc/sysdeps/linux/bfin/bits/bfin_sram.h
@@ -0,0 +1,12 @@
+#ifndef BFIN_SRAM_H
+#define BFIN_SRAM_H
+
+#define L1_INST_SRAM 0x00000001
+#define L1_DATA_A_SRAM 0x00000002
+#define L1_DATA_B_SRAM 0x00000004
+#define L1_DATA_SRAM 0x00000006
+extern void *sram_alloc(size_t size, unsigned long flags);
+extern int sram_free(const void *addr);
+extern void *dma_memcpy(void *dest, const void *src, size_t len);
+
+#endif
diff --git a/libc/sysdeps/linux/bfin/bits/mman.h b/libc/sysdeps/linux/bfin/bits/mman.h
index 06767a9c0..c57238726 100644
--- a/libc/sysdeps/linux/bfin/bits/mman.h
+++ b/libc/sysdeps/linux/bfin/bits/mman.h
@@ -57,6 +57,8 @@
# define MAP_EXECUTABLE 0x1000 /* Mark it as an executable. */
# define MAP_LOCKED 0x2000 /* Lock the mapping. */
# define MAP_NORESERVE 0x4000 /* Don't check for reservations. */
+# define MAP_UNINITIALIZE 0x4000000 /* For anonymous mmap, memory could
+ be uninitialized. */
#endif
/* Flags to `msync'. */