aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/asm
diff options
context:
space:
mode:
authorGreentime Hu <greentime@andestech.com>2017-10-24 16:22:35 +0800
committerGreentime Hu <greentime@andestech.com>2018-02-22 10:44:32 +0800
commit80081b33910f417310921430dbfb5c8bf20e86aa (patch)
tree42d8174ee9aa751821a074bddb5b7fff8201de04 /arch/nds32/include/asm
parentnds32: Device specific operations (diff)
downloadlinux-dev-80081b33910f417310921430dbfb5c8bf20e86aa.tar.xz
linux-dev-80081b33910f417310921430dbfb5c8bf20e86aa.zip
nds32: DMA mapping API
This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen <vincentc@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/nds32/include/asm')
-rw-r--r--arch/nds32/include/asm/dma-mapping.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/dma-mapping.h b/arch/nds32/include/asm/dma-mapping.h
new file mode 100644
index 000000000000..2dd47d245c25
--- /dev/null
+++ b/arch/nds32/include/asm/dma-mapping.h
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+#ifndef ASMNDS32_DMA_MAPPING_H
+#define ASMNDS32_DMA_MAPPING_H
+
+extern struct dma_map_ops nds32_dma_ops;
+
+static inline struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
+{
+ return &nds32_dma_ops;
+}
+
+#endif