diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-29 11:43:47 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-08-01 21:49:34 +0800 |
commit | 8ba794abd43d672eb28cd4edc5778b87a3ad268e (patch) | |
tree | 49062ad0c2376a5d5da7ed5ddf1d84f5143ffea5 /arch/arm/include/asm/mmu.h | |
parent | d77ef333479fd7e051b8de25c3b393708813202f (diff) | |
download | barebox-8ba794abd43d672eb28cd4edc5778b87a3ad268e.tar.gz barebox-8ba794abd43d672eb28cd4edc5778b87a3ad268e.tar.xz |
ARM: pass size to dma_free_coherent
We'll need it later once we remap dma memory.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include/asm/mmu.h')
-rw-r--r-- | arch/arm/include/asm/mmu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h index d96c7289a9..9ebc2cd4c1 100644 --- a/arch/arm/include/asm/mmu.h +++ b/arch/arm/include/asm/mmu.h @@ -17,7 +17,7 @@ void setup_dma_coherent(unsigned long offset); #ifdef CONFIG_MMU void *dma_alloc_coherent(size_t size); -void dma_free_coherent(void *mem); +void dma_free_coherent(void *mem, size_t size); void dma_clean_range(unsigned long, unsigned long); void dma_flush_range(unsigned long, unsigned long); @@ -26,12 +26,17 @@ unsigned long virt_to_phys(void *virt); void *phys_to_virt(unsigned long phys); #else +static inline int mmu_init(void) +{ + return -EINVAL; +} + static inline void *dma_alloc_coherent(size_t size) { return xmemalign(4096, size); } -static inline void dma_free_coherent(void *mem) +static inline void dma_free_coherent(void *mem, size_t size) { free(mem); } |