summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/device.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2015-05-25 03:55:05 (GMT)
committerMax Filippov <jcmvbkbc@gmail.com>2015-08-17 04:31:00 (GMT)
commitc75959a6da19df2700556dc76861442e9716317d (patch)
tree81ad55a5431fd510c25d518983c5ffb388ca2864 /arch/xtensa/include/asm/device.h
parent4229fb12a03e5da5882b420b0aa4a02e77447b86 (diff)
downloadlinux-c75959a6da19df2700556dc76861442e9716317d.tar.xz
xtensa: reimplement DMA API using common helpers
- keep existing functionality: don't handle attributes, don't support high memory; - implement scatterlist primitives (map/unmap/sync); - enable DMA API debug. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/device.h')
-rw-r--r--arch/xtensa/include/asm/device.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/device.h b/arch/xtensa/include/asm/device.h
new file mode 100644
index 0000000..fe1f5c8
--- /dev/null
+++ b/arch/xtensa/include/asm/device.h
@@ -0,0 +1,19 @@
+/*
+ * Arch specific extensions to struct device
+ *
+ * This file is released under the GPLv2
+ */
+#ifndef _ASM_XTENSA_DEVICE_H
+#define _ASM_XTENSA_DEVICE_H
+
+struct dma_map_ops;
+
+struct dev_archdata {
+ /* DMA operations on that device */
+ struct dma_map_ops *dma_ops;
+};
+
+struct pdev_archdata {
+};
+
+#endif /* _ASM_XTENSA_DEVICE_H */