summaryrefslogtreecommitdiff
path: root/src/sys/include/vm/vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/vm/vm.h')
-rw-r--r--src/sys/include/vm/vm.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sys/include/vm/vm.h b/src/sys/include/vm/vm.h
index 790fe0b..f5f7b16 100644
--- a/src/sys/include/vm/vm.h
+++ b/src/sys/include/vm/vm.h
@@ -31,6 +31,7 @@
#define _VM_H_ 1
#include <sys/types.h>
+#include <sys/queue.h>
#include <sys/bootvars.h>
#define VM_HIGHER_HALF (get_kernel_base())
@@ -42,6 +43,21 @@
typedef uintptr_t vaddr_t;
typedef uintptr_t paddr_t;
+/*
+ * Describes a virtual memory range
+ *
+ * @pa_base: Physical memory base
+ * @va_base: Virtual memory base
+ * @len: Length of region
+ * @link: Queue link
+ */
+struct vm_range {
+ paddr_t pa_base;
+ vaddr_t va_base;
+ size_t len;
+ TAILQ_ENTRY(vm_range) link;
+};
+
void vm_init(void);
#endif /* !_VM_H_ */