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
14
pfn_t
dmabuf_allocate
(
size_t
n_pages,
ptr_t
*pages);
15
16
bool
dmabuf_free
(
ptr_t
vaddr,
ptr_t
paddr);
17
18
pfn_t
dmabuf_share
(
void
*
buffer
,
size_t
size
);
19
20
bool
dmabuf_unshare
(
ptr_t
phys,
size_t
size
,
void
*virt);
dmabuf_free
bool dmabuf_free(ptr_t vaddr, ptr_t paddr)
Definition
ksyscall.c:507
dmabuf_share
pfn_t dmabuf_share(void *buffer, size_t size)
Definition
dma.c:53
dmabuf_unshare
bool dmabuf_unshare(ptr_t phys, size_t size, void *virt)
Definition
ksyscall.c:523
dmabuf_allocate
pfn_t dmabuf_allocate(size_t n_pages, ptr_t *pages)
Allocate DMA pages.
Definition
dma.c:24
size
size_t size
Definition
slab.c:30
buffer
static char buffer[2048]
Definition
test_printf.c:7
types.h
pfn_t
unsigned long long pfn_t
Definition
types.h:41
ptr_t
unsigned long ptr_t
Definition
types.h:25
kernel
include
private
mos
mm
dma.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0