-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 90994 b: refs/heads/master c: 22456b9 h: refs/heads/master v: v3
- Loading branch information
Glauber Costa
authored and
Ingo Molnar
committed
Apr 19, 2008
1 parent
885fff3
commit b34987b
Showing
6 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6f5366354bf86f8d2c1cf241c9bbf44b2d350e30 | ||
refs/heads/master: 22456b97148be300e25e9cb97244656775972475 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <linux/mm.h> | ||
#include <linux/kernel.h> | ||
#include <linux/module.h> | ||
#include <linux/dma-mapping.h> | ||
#include <asm/dma-mapping.h> | ||
|
||
static dma_addr_t pci32_map_single(struct device *dev, void *ptr, | ||
size_t size, int direction) | ||
{ | ||
WARN_ON(size == 0); | ||
flush_write_buffers(); | ||
return virt_to_phys(ptr); | ||
} | ||
|
||
static const struct dma_mapping_ops pci32_dma_ops = { | ||
.map_single = pci32_map_single, | ||
}; | ||
|
||
const struct dma_mapping_ops *dma_ops = &pci32_dma_ops; | ||
EXPORT_SYMBOL(dma_ops); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters