MOS Source Code
|
#include "mos/mm/dma.h"
#include "mos/mm/mm.h"
#include "mos/mm/paging/paging.h"
#include "mos/mm/physical/pmm.h"
#include "mos/platform/platform.h"
#include "mos/syslog/printk.h"
#include <mos_string.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) |
Functions | |
static pfn_t | dmabuf_do_allocate (size_t n_pages, bool do_ref) |
pfn_t | dmabuf_allocate (size_t n_pages, ptr_t *vaddr) |
Allocate DMA pages. | |
bool | dmabuf_free (ptr_t vaddr, ptr_t paddr) |
pfn_t | dmabuf_share (void *buf, size_t size) |
bool | dmabuf_unshare (ptr_t phys, size_t size, void *buffer) |
Definition at line 15 of file dma.c.
Referenced by dmabuf_allocate(), and dmabuf_share().
Allocate DMA pages.
n_pages | Number of pages to allocate |
pages | Pointer to store the virtual address of the pages |
Definition at line 24 of file dma.c.
Referenced by dmabuf_alloc().