MIPS: convert CONFIG_SYS_MIPS_TIMER_FREQ to Kconfig
[platform/kernel/u-boot.git] / include / dma-uclass.h
index a1d9d26..ea721ba 100644 (file)
@@ -58,14 +58,14 @@ struct dma_ops {
         */
        int (*request)(struct dma *dma);
        /**
-        * free - Free a previously requested dma.
+        * rfree - Free a previously requested dma.
         *
         * This is the implementation of the client dma_free() API.
         *
         * @dma: The DMA to free.
         * @return 0 if OK, or a negative error code.
         */
-       int (*free)(struct dma *dma);
+       int (*rfree)(struct dma *dma);
        /**
         * enable() - Enable a DMA Channel.
         *
@@ -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 */