Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1bc3de94
Commit
1bc3de94
authored
Jan 12, 2003
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update x86 DMA API implementation to take GFP_ flags
parent
dcff5c66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
arch/i386/kernel/pci-dma.c
arch/i386/kernel/pci-dma.c
+3
-2
include/asm-i386/dma-mapping.h
include/asm-i386/dma-mapping.h
+2
-2
No files found.
arch/i386/kernel/pci-dma.c
View file @
1bc3de94
...
@@ -14,10 +14,11 @@
...
@@ -14,10 +14,11 @@
#include <asm/io.h>
#include <asm/io.h>
void
*
dma_alloc_coherent
(
struct
device
*
dev
,
size_t
size
,
void
*
dma_alloc_coherent
(
struct
device
*
dev
,
size_t
size
,
dma_addr_t
*
dma_handle
)
dma_addr_t
*
dma_handle
,
int
gfp
)
{
{
void
*
ret
;
void
*
ret
;
int
gfp
=
GFP_ATOMIC
;
/* ignore region specifiers */
gfp
&=
~
(
__GFP_DMA
|
__GFP_HIGHMEM
);
if
(
dev
==
NULL
||
(
*
dev
->
dma_mask
<
0xffffffff
))
if
(
dev
==
NULL
||
(
*
dev
->
dma_mask
<
0xffffffff
))
gfp
|=
GFP_DMA
;
gfp
|=
GFP_DMA
;
...
...
include/asm-i386/dma-mapping.h
View file @
1bc3de94
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
#include <asm/cache.h>
#include <asm/cache.h>
#define dma_alloc_noncoherent(d, s, h
) dma_alloc_coherent(d, s, h
)
#define dma_alloc_noncoherent(d, s, h
, f) dma_alloc_coherent(d, s, h, f
)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
void
*
dma_alloc_coherent
(
struct
device
*
dev
,
size_t
size
,
void
*
dma_alloc_coherent
(
struct
device
*
dev
,
size_t
size
,
dma_addr_t
*
dma_handle
);
dma_addr_t
*
dma_handle
,
int
flag
);
void
dma_free_coherent
(
struct
device
*
dev
,
size_t
size
,
void
dma_free_coherent
(
struct
device
*
dev
,
size_t
size
,
void
*
vaddr
,
dma_addr_t
dma_handle
);
void
*
vaddr
,
dma_addr_t
dma_handle
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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