diff options
Diffstat (limited to 'include/apos/dev.h')
| -rw-r--r-- | include/apos/dev.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/apos/dev.h b/include/apos/dev.h new file mode 100644 index 0000000..1e710a1 --- /dev/null +++ b/include/apos/dev.h @@ -0,0 +1,16 @@ +#ifndef APOS_DEV_H +#define APOS_DEV_H + +#include <apos/types.h> +#include <apos/vmem.h> + +extern pm_t __pre_base; +extern pm_t __pre_top; +extern pm_t __post_base; +extern pm_t __post_top; + +void init_devmem(pm_t ram_base, pm_t ram_top); +vm_t alloc_devmem(struct tcb *t, pm_t dev_start, size_t bytes, uint8_t flags); +void free_devmem(struct tcb *t, vm_t dev_start); + +#endif /* APOS_DEV_H */ |
