-
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: 158062 b: refs/heads/master c: 451d740 h: refs/heads/master v: v3
- Loading branch information
FUJITA Tomonori
authored and
Ingo Molnar
committed
Aug 10, 2009
1 parent
5e829d3
commit d07421d
Showing
6 changed files
with
40 additions
and
35 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: ee664a9252d24ef10317d1bba8fc8f4c6495b36c | ||
| refs/heads/master: 451d7400a34cb679369e337d67f0238ed410f484 |
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
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,40 +1,13 @@ | ||
| /* dma.c: PCI and SBUS DMA accessors for 32-bit sparc. | ||
| * | ||
| * Copyright (C) 2008 David S. Miller <davem@davemloft.net> | ||
| */ | ||
|
|
||
| #include <linux/kernel.h> | ||
| #include <linux/module.h> | ||
| #include <linux/dma-mapping.h> | ||
| #include <linux/scatterlist.h> | ||
| #include <linux/mm.h> | ||
| #include <linux/dma-debug.h> | ||
|
|
||
| #ifdef CONFIG_PCI | ||
| #include <linux/pci.h> | ||
| #endif | ||
| #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 15) | ||
|
|
||
| /* | ||
| * Return whether the given PCI device DMA address mask can be | ||
| * supported properly. For example, if your device can only drive the | ||
| * low 24-bits during PCI bus mastering, then you would pass | ||
| * 0x00ffffff as the mask to this function. | ||
| */ | ||
| int dma_supported(struct device *dev, u64 mask) | ||
| static int __init dma_init(void) | ||
| { | ||
| #ifdef CONFIG_PCI | ||
| if (dev->bus == &pci_bus_type) | ||
| return 1; | ||
| #endif | ||
| dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); | ||
| return 0; | ||
| } | ||
| EXPORT_SYMBOL(dma_supported); | ||
|
|
||
| int dma_set_mask(struct device *dev, u64 dma_mask) | ||
| { | ||
| #ifdef CONFIG_PCI | ||
| if (dev->bus == &pci_bus_type) | ||
| return pci_set_dma_mask(to_pci_dev(dev), dma_mask); | ||
| #endif | ||
| return -EOPNOTSUPP; | ||
| } | ||
| EXPORT_SYMBOL(dma_set_mask); | ||
| fs_initcall(dma_init); |
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