diff options
Diffstat (limited to 'include/linux/iio/buffer.h')
| -rw-r--r-- | include/linux/iio/buffer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h index 4d99a53d1fe7..2ec3ad58e8a0 100644 --- a/include/linux/iio/buffer.h +++ b/include/linux/iio/buffer.h | |||
| @@ -33,6 +33,11 @@ struct iio_buffer; | |||
| 33 | * storage. | 33 | * storage. |
| 34 | * @set_bytes_per_datum:set number of bytes per datum | 34 | * @set_bytes_per_datum:set number of bytes per datum |
| 35 | * @set_length: set number of datums in buffer | 35 | * @set_length: set number of datums in buffer |
| 36 | * @enable: called if the buffer is attached to a device and the | ||
| 37 | * device starts sampling. Calls are balanced with | ||
| 38 | * @disable. | ||
| 39 | * @disable: called if the buffer is attached to a device and the | ||
| 40 | * device stops sampling. Calles are balanced with @enable. | ||
| 36 | * @release: called when the last reference to the buffer is dropped, | 41 | * @release: called when the last reference to the buffer is dropped, |
| 37 | * should free all resources allocated by the buffer. | 42 | * should free all resources allocated by the buffer. |
| 38 | * @modes: Supported operating modes by this buffer type | 43 | * @modes: Supported operating modes by this buffer type |
| @@ -58,6 +63,9 @@ struct iio_buffer_access_funcs { | |||
| 58 | int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd); | 63 | int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd); |
| 59 | int (*set_length)(struct iio_buffer *buffer, int length); | 64 | int (*set_length)(struct iio_buffer *buffer, int length); |
| 60 | 65 | ||
| 66 | int (*enable)(struct iio_buffer *buffer, struct iio_dev *indio_dev); | ||
| 67 | int (*disable)(struct iio_buffer *buffer, struct iio_dev *indio_dev); | ||
| 68 | |||
| 61 | void (*release)(struct iio_buffer *buffer); | 69 | void (*release)(struct iio_buffer *buffer); |
| 62 | 70 | ||
| 63 | unsigned int modes; | 71 | unsigned int modes; |
