MOS Source Code
Toggle main menu visibility
Main Page
Topics
Classes
Class List
Class Index
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions
_
b
d
e
f
g
h
i
l
m
n
o
p
r
s
v
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
f
g
h
i
k
l
m
o
p
r
s
t
u
v
x
Enumerations
c
e
f
g
h
i
l
m
o
p
r
s
t
v
x
Enumerator
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Examples
▼
MOS Source Code
►
Topics
►
Classes
▼
Files
▼
File List
►
build
▼
kernel
►
arch
►
device
►
filesystem
▼
include
▼
private
▼
mos
►
device
►
filesystem
►
interrupt
►
io
►
ipc
►
lib
►
locks
►
misc
▼
mm
►
paging
►
physical
►
cow.h
►
dma.h
►
mm.h
►
mmap.h
►
mmstat.h
►
slab.h
►
slab_autoinit.h
►
platform
►
syslog
►
tasks
►
assert.h
►
ksyscall_entry.h
►
public
►
interrupt
►
io
►
ipc
►
lib
►
misc
►
mm
►
syslog
►
tasks
►
tests
►
kmain.c
►
ksyscall.c
►
ksyscall_entry.c
►
libs
►
File Members
►
Examples
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
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