summaryrefslogtreecommitdiff
path: root/sys/inc/vm/phys.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/inc/vm/phys.h')
-rw-r--r--sys/inc/vm/phys.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/inc/vm/phys.h b/sys/inc/vm/phys.h
index 805759a..93bbf39 100644
--- a/sys/inc/vm/phys.h
+++ b/sys/inc/vm/phys.h
@@ -32,6 +32,21 @@
#include <sys/types.h>
+/*
+ * Initialize the physical memory manager
+ */
void vm_phys_init(void);
+/*
+ * Allocate a number of contigious physical memory
+ * frames
+ */
+uintptr_t vm_phys_alloc(size_t count);
+
+/*
+ * Free a contigious region of physical memory
+ * frames
+ */
+void vm_phys_free(uintptr_t base, size_t count);
+
#endif /* !_VM_PHYS_H_ */