diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2007-11-11 03:07:06 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:44 -0500 |
| commit | 8a7bcf0dd0d49fe8b0071adef0dfe8610abdffaa (patch) | |
| tree | e8f0875c391fa2c2d96746112d841c8ca48d1307 /include/asm-sh | |
| parent | b613881ead41c8fc2e1413aeb6ef8f021f00c1e7 (diff) | |
sh: Add SH-5 support to the consistent DMA impl.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
| -rw-r--r-- | include/asm-sh/dma-mapping.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sh/dma-mapping.h b/include/asm-sh/dma-mapping.h index fcea067f7a9c..20ae762e5258 100644 --- a/include/asm-sh/dma-mapping.h +++ b/include/asm-sh/dma-mapping.h | |||
| @@ -10,7 +10,7 @@ extern struct bus_type pci_bus_type; | |||
| 10 | 10 | ||
| 11 | /* arch/sh/mm/consistent.c */ | 11 | /* arch/sh/mm/consistent.c */ |
| 12 | extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *handle); | 12 | extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *handle); |
| 13 | extern void consistent_free(void *vaddr, size_t size); | 13 | extern void consistent_free(void *vaddr, size_t size, dma_addr_t handle); |
| 14 | extern void consistent_sync(void *vaddr, size_t size, int direction); | 14 | extern void consistent_sync(void *vaddr, size_t size, int direction); |
| 15 | 15 | ||
| 16 | #define dma_supported(dev, mask) (1) | 16 | #define dma_supported(dev, mask) (1) |
| @@ -50,7 +50,7 @@ static inline void dma_free_coherent(struct device *dev, size_t size, | |||
| 50 | return; | 50 | return; |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | consistent_free(vaddr, size); | 53 | consistent_free(vaddr, size, dma_handle); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) | 56 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) |
