diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-05-14 12:23:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-16 07:56:42 -0400 |
commit | 2e8fcfe2e51b2ee0fef3313e3c9ec25b9d6ed255 (patch) | |
tree | 78654088a7ec408dc46ff1a92b97614a269e24cd /arch/sparc | |
parent | b9f69f4f4a953b2b5299fff7fc98e69221e29514 (diff) |
sparc: add sync_single_for_device and sync_sg_for_device to struct dma_ops
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/dma-mapping_64.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/dma-mapping_64.h b/arch/sparc/include/asm/dma-mapping_64.h index 017ae706ac64..0c4fb1f81caf 100644 --- a/arch/sparc/include/asm/dma-mapping_64.h +++ b/arch/sparc/include/asm/dma-mapping_64.h | |||
@@ -23,9 +23,15 @@ struct dma_ops { | |||
23 | void (*sync_single_for_cpu)(struct device *dev, | 23 | void (*sync_single_for_cpu)(struct device *dev, |
24 | dma_addr_t dma_handle, size_t size, | 24 | dma_addr_t dma_handle, size_t size, |
25 | enum dma_data_direction direction); | 25 | enum dma_data_direction direction); |
26 | void (*sync_single_for_device)(struct device *dev, | ||
27 | dma_addr_t dma_handle, size_t size, | ||
28 | enum dma_data_direction direction); | ||
26 | void (*sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg, | 29 | void (*sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg, |
27 | int nelems, | 30 | int nelems, |
28 | enum dma_data_direction direction); | 31 | enum dma_data_direction direction); |
32 | void (*sync_sg_for_device)(struct device *dev, | ||
33 | struct scatterlist *sg, int nents, | ||
34 | enum dma_data_direction dir); | ||
29 | }; | 35 | }; |
30 | extern const struct dma_ops *dma_ops; | 36 | extern const struct dma_ops *dma_ops; |
31 | 37 | ||