summaryrefslogtreecommitdiffstats
path: root/bsps/m68k/mvme162/include/page_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/m68k/mvme162/include/page_table.h')
-rw-r--r--bsps/m68k/mvme162/include/page_table.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/bsps/m68k/mvme162/include/page_table.h b/bsps/m68k/mvme162/include/page_table.h
new file mode 100644
index 0000000000..09b93a49bd
--- /dev/null
+++ b/bsps/m68k/mvme162/include/page_table.h
@@ -0,0 +1,27 @@
+/*
+ * This file was submitted by Eric Vaitl <vaitl@viasat.com> and
+ * supports page table initialization.
+ */
+
+#ifndef PAGE_TABLE_H
+#define PAGE_TABLE_H
+
+extern void page_table_teardown(void);
+extern void page_table_init(void);
+extern int page_table_map(void *addr, unsigned long size, int cache_type);
+
+enum {
+ CACHE_WRITE_THROUGH,
+ CACHE_COPYBACK,
+ CACHE_NONE_SERIALIZED,
+ CACHE_NONE
+};
+enum {
+ PTM_SUCCESS,
+ PTM_BAD_ADDR,
+ PTM_BAD_SIZE,
+ PTM_BAD_CACHE,
+ PTM_NO_TABLE_SPACE
+};
+
+#endif