mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dma: move dma_ops to dma-uclass.h
Move dma_ops to a separate header file, following other uclass implementations. While doing so, this patch also improves dma_ops documentation. Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
This commit is contained in:
committed by
Tom Rini
parent
205b010caf
commit
10b4dc5208
@@ -26,28 +26,6 @@ enum dma_direction {
|
||||
#define DMA_SUPPORTS_DEV_TO_MEM BIT(2)
|
||||
#define DMA_SUPPORTS_DEV_TO_DEV BIT(3)
|
||||
|
||||
/*
|
||||
* struct dma_ops - Driver model DMA operations
|
||||
*
|
||||
* The uclass interface is implemented by all DMA devices which use
|
||||
* driver model.
|
||||
*/
|
||||
struct dma_ops {
|
||||
/*
|
||||
* Get the current timer count
|
||||
*
|
||||
* @dev: The DMA device
|
||||
* @direction: direction of data transfer should be one from
|
||||
enum dma_direction
|
||||
* @dst: Destination pointer
|
||||
* @src: Source pointer
|
||||
* @len: Length of the data to be copied.
|
||||
* @return: 0 if OK, -ve on error
|
||||
*/
|
||||
int (*transfer)(struct udevice *dev, int direction, void *dst,
|
||||
void *src, size_t len);
|
||||
};
|
||||
|
||||
/*
|
||||
* struct dma_dev_priv - information about a device used by the uclass
|
||||
*
|
||||
|
Reference in New Issue
Block a user