MOS Source Code
Loading...
Searching...
No Matches
dma.h File Reference
#include <mos/types.h>
+ Include dependency graph for dma.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

pfn_t dmabuf_allocate (size_t n_pages, ptr_t *pages)
 Allocate DMA pages.
 
bool dmabuf_free (ptr_t vaddr, ptr_t paddr)
 
pfn_t dmabuf_share (void *buffer, size_t size)
 
bool dmabuf_unshare (ptr_t phys, size_t size, void *virt)
 

Function Documentation

◆ dmabuf_allocate()

pfn_t dmabuf_allocate ( size_t n_pages,
ptr_t * pages )

Allocate DMA pages.

Parameters
n_pagesNumber of pages to allocate
pagesPointer to store the virtual address of the pages
Returns
physical frame number of the starting page

Definition at line 24 of file dma.c.

Referenced by dmabuf_alloc().

+ Here is the call graph for this function:

◆ dmabuf_free()

bool dmabuf_free ( ptr_t vaddr,
ptr_t paddr )

Definition at line 507 of file ksyscall.c.

Referenced by dmabuf_free().

+ Here is the call graph for this function:

◆ dmabuf_share()

pfn_t dmabuf_share ( void * buffer,
size_t size )

Definition at line 53 of file dma.c.

+ Here is the call graph for this function:

◆ dmabuf_unshare()

bool dmabuf_unshare ( ptr_t phys,
size_t size,
void * virt )

Definition at line 523 of file ksyscall.c.

Referenced by dmabuf_unshare().

+ Here is the call graph for this function: