![Jonathan Cameron](/assets/img/avatar_default.png)
Please note this ring buffer implementation is very much a work in progress (and hence RFC). In it's current form it is stable and reasonably efficient. There are a couple of unlikely cases that will lead to more data being lost that is strictly necessary. The target was for the case of requiring regular sampling even during user space reads. All comments welcome. The intention is to make this only one of several implementations with run time selection. For now there is only one, so it is hard coded into the drivers using it. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
#
|
|
# Industrial I/O subsytem configuration
|
|
#
|
|
|
|
menuconfig IIO
|
|
tristate "Industrial I/O support"
|
|
---help---
|
|
The industrial I/O subsystem provides a unified framework for
|
|
drivers for many different types of embedded sensors using a
|
|
number of different physical interfaces (i2c, spi etc). See
|
|
Documentation/industrialio for more information.
|
|
if IIO
|
|
|
|
config IIO_RING_BUFFER
|
|
bool "Enable ring buffer support within IIO"
|
|
help
|
|
Provide core support for various ring buffer based data
|
|
acquisition methods.
|
|
|
|
if IIO_RING_BUFFER
|
|
|
|
config IIO_SW_RING
|
|
tristate "Industrial I/O lock free software ring"
|
|
help
|
|
example software ring buffer implementation. The design aim
|
|
of this particular realization was to minize write locking
|
|
with the intention that some devices would be able to write
|
|
in interrupt context.
|
|
|
|
endif # IIO_RINGBUFFER
|
|
|
|
config IIO_TRIGGER
|
|
boolean "Enable triggered sampling support"
|
|
help
|
|
Provides IIO core support for triggers. Currently these
|
|
are used to initialize capture of samples to push into
|
|
ring buffers. The triggers are effectively a 'capture
|
|
data now' interrupt.
|
|
|
|
source "drivers/staging/iio/accel/Kconfig"
|
|
source "drivers/staging/iio/adc/Kconfig"
|
|
source "drivers/staging/iio/light/Kconfig"
|
|
|
|
endif # IIO
|