sparc: add sync_single_for_device and sync_sg_for_device to struct dma_ops
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 14 May 2009 16:23:09 +0000 (16:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2009 11:56:42 +0000 (04:56 -0700)
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.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/dma-mapping_64.h

index 017ae70..0c4fb1f 100644 (file)
@@ -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;