Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
ef639a11
Commit
ef639a11
authored
Nov 21, 2018
by
Vikram Narayanan
Browse files
liblcd: Add missing header
parent
9bd62ce8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lcd-domains/include/liblcd/dma-mapping.h
0 → 100644
View file @
ef639a11
#define _dma_map_single(d, a, s, r) _dma_map_single_attrs(d, a, s, r, 0)
static
inline
dma_addr_t
_dma_map_single_attrs
(
struct
device
*
dev
,
void
*
ptr
,
size_t
size
,
enum
dma_data_direction
dir
,
unsigned
long
attrs
)
{
struct
dma_map_ops
*
ops
=
get_dma_ops
(
dev
);
dma_addr_t
addr
;
kmemcheck_mark_initialized
(
ptr
,
size
);
BUG_ON
(
!
valid_dma_direction
(
dir
));
addr
=
ops
->
map_page
(
dev
,
virt_to_page
(
ptr
),
offset_in_page
(
ptr
),
size
,
dir
,
attrs
);
debug_dma_map_page
(
dev
,
virt_to_page
(
ptr
),
offset_in_page
(
ptr
),
size
,
dir
,
addr
,
true
);
return
addr
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment