1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com>
4 * Copyright (C) 2015 Texas Instruments Incorporated <www.ti.com>
5 * Written by Mugunthan V N <mugunthanvnm@ti.com>
12 /* See dma.h for background documentation. */
17 * struct dma_ops - Driver model DMA operations
19 * The uclass interface is implemented by all DMA devices which use
24 * transfer() - Issue a DMA transfer. The implementation must
25 * wait until the transfer is done.
27 * @dev: The DMA device
28 * @direction: direction of data transfer (should be one from
30 * @dst: The destination pointer.
31 * @src: The source pointer.
32 * @len: Length of the data to be copied (number of bytes).
33 * @return zero on success, or -ve error code.
35 int (*transfer)(struct udevice *dev, int direction, void *dst,
36 void *src, size_t len);
39 #endif /* _DMA_UCLASS_H */