MOS Source Code
Loading...
Searching...
No Matches
dma.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
5#include <mos/types.h>
6
14pfn_t dmabuf_allocate(size_t n_pages, ptr_t *pages);
15
16bool dmabuf_free(ptr_t vaddr, ptr_t paddr);
17
18pfn_t dmabuf_share(void *buffer, size_t size);
19
20bool dmabuf_unshare(ptr_t phys, size_t size, void *virt);
bool dmabuf_free(ptr_t vaddr, ptr_t paddr)
Definition ksyscall.c:507
pfn_t dmabuf_share(void *buffer, size_t size)
Definition dma.c:53
bool dmabuf_unshare(ptr_t phys, size_t size, void *virt)
Definition ksyscall.c:523
pfn_t dmabuf_allocate(size_t n_pages, ptr_t *pages)
Allocate DMA pages.
Definition dma.c:24
size_t size
Definition slab.c:30
static char buffer[2048]
Definition test_printf.c:7
unsigned long long pfn_t
Definition types.h:41
unsigned long ptr_t
Definition types.h:25