diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-28 21:00:52 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-06-25 14:28:06 +0200 |
commit | b1acd4b8a8942f614053e516c56c88e1716562d6 (patch) | |
tree | b8951a3c62f573aa7445bf695a19f66a282fd578 /arch/nios2/include | |
parent | nds32: use the generic remapping allocator for coherent DMA allocations (diff) | |
download | linux-b1acd4b8a8942f614053e516c56c88e1716562d6.tar.xz linux-b1acd4b8a8942f614053e516c56c88e1716562d6.zip |
nios2: use the generic uncached segment support in dma-direct
Stop providing our own arch alloc/free hooks and just expose the segment
offset and use the generic dma-direct allocator.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2/include')
-rw-r--r-- | arch/nios2/include/asm/page.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/nios2/include/asm/page.h b/arch/nios2/include/asm/page.h index f1fbdc47bdaf..79fcac61f6ef 100644 --- a/arch/nios2/include/asm/page.h +++ b/arch/nios2/include/asm/page.h @@ -101,12 +101,6 @@ static inline bool pfn_valid(unsigned long pfn) # define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | \ VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) -# define UNCAC_ADDR(addr) \ - ((void *)((unsigned)(addr) | CONFIG_NIOS2_IO_REGION_BASE)) -# define CAC_ADDR(addr) \ - ((void *)(((unsigned)(addr) & ~CONFIG_NIOS2_IO_REGION_BASE) | \ - CONFIG_NIOS2_KERNEL_REGION_BASE)) - #include <asm-generic/memory_model.h> #include <asm-generic/getorder.h> |