aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2022-10-07 12:11:13 -0500
committerTom Rini <trini@konsulko.com>2022-10-18 13:40:40 -0400
commitb9add6413d2bcbec281d1a1edeec5c729a576a1b (patch)
treeb1eabcf9922944ccff2f79b9b948eb6b84b917e1 /include
parentb8392650462094ed15e123f836daccd7617946a5 (diff)
downloadu-boot-b9add6413d2bcbec281d1a1edeec5c729a576a1b.zip
u-boot-b9add6413d2bcbec281d1a1edeec5c729a576a1b.tar.gz
u-boot-b9add6413d2bcbec281d1a1edeec5c729a576a1b.tar.bz2
dma: Transfer dma_ops should use DMA address types
DMA operations should function on DMA addresses, not virtual addresses. Although these are usually the same in U-Boot, it is more correct to be explicit with our types here. Signed-off-by: Andrew Davis <afd@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/dma-uclass.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dma-uclass.h b/include/dma-uclass.h
index 340437a..ea721ba 100644
--- a/include/dma-uclass.h
+++ b/include/dma-uclass.h
@@ -132,8 +132,8 @@ struct dma_ops {
* @len: Length of the data to be copied (number of bytes).
* @return zero on success, or -ve error code.
*/
- int (*transfer)(struct udevice *dev, int direction, void *dst,
- void *src, size_t len);
+ int (*transfer)(struct udevice *dev, int direction, dma_addr_t dst,
+ dma_addr_t src, size_t len);
};
#endif /* _DMA_UCLASS_H */