![]() |
MOS Source Code
|
#include "mos/lib/sync/spinlock.hpp"#include "mos/mm/dma.hpp"#include "mos/mm/mm.hpp"#include "mos/mm/paging/paging.hpp"#include "mos/mm/physical/pmm.hpp"#include "mos/platform/platform.hpp"#include "mos/syslog/printk.hpp"#include <mos_string.hpp>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.cpp.
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.cpp.
Referenced by dmabuf_alloc().
Definition at line 38 of file dma.cpp.
Referenced by dmabuf_free().
Definition at line 52 of file dma.cpp.
Referenced by dmabuf_share().