Skip to contentSkip to conversation

sparc: add sync_single_for_device and sync_sg_for_device to struct dma_ops

PATCH Applied [email protected] 1 participant 1 message Jun 10, 2009 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 sparc: add sync_single_for_device and sync_sg_for_device to struct dma_ops

From: FUJITA Tomonori <[email protected]>

This adds sync_single_for_device() and sync_sg_for_device() to struct dma_ops in order to unify dma-mpping_{32|64}.h. dma-mpping_32.h needs them though dma-mpping_64.h doesn't.

---

 arch/sparc/include/asm/dma-mapping_64.h |    6 ++++++
 1 file changed, 6 insertions(+)
arch/sparc/include/asm/dma-mapping_64.h renamed from arch/sparc/include/asm/dma-mapping_64.h~sparc-add-sync_single_for_device-and-sync_sg_for_device-to-struct-dma_ops +6 -0
diff -puN arch/sparc/include/asm/dma-mapping_64.h~sparc-add-sync_single_for_device-and-sync_sg_for_device-to-struct-dma_ops arch/sparc/include/asm/dma-mapping_64.h
@@ -23,9 +23,15 @@ struct dma_ops {
 	void (*sync_single_for_cpu)(struct device *dev,
 				    dma_addr_t dma_handle, size_t size,
 				    enum dma_data_direction direction);
+	void (*sync_single_for_device)(struct device *dev,
+				       dma_addr_t dma_handle, size_t size,
+				       enum dma_data_direction direction);
 	void (*sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg,
 				int nelems,
 				enum dma_data_direction direction);
+	void (*sync_sg_for_device)(struct device *dev,
+				   struct scatterlist *sg, int nents,
+				   enum dma_data_direction dir);
 };
 extern const struct dma_ops *dma_ops;
 

_