mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2d6ca60f32
Add a generic fully device independent DMA buffer implementation that uses the DMAegnine framework to perform the DMA transfers. This can be used by converter drivers that whish to provide a DMA buffer for converters that are connected to a DMA core that implements the DMAengine API. Apart from allocating the buffer using iio_dmaengine_buffer_alloc() and freeing it using iio_dmaengine_buffer_free() no additional converter driver specific code is required when using this DMA buffer implementation. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
19 lines
389 B
C
19 lines
389 B
C
/*
|
|
* Copyright 2014-2015 Analog Devices Inc.
|
|
* Author: Lars-Peter Clausen <lars@metafoo.de>
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef __IIO_DMAENGINE_H__
|
|
#define __IIO_DMAENGINE_H__
|
|
|
|
struct iio_buffer;
|
|
struct device;
|
|
|
|
struct iio_buffer *iio_dmaengine_buffer_alloc(struct device *dev,
|
|
const char *channel);
|
|
void iio_dmaengine_buffer_free(struct iio_buffer *buffer);
|
|
|
|
#endif
|