162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci# 362306a36Sopenharmony_ci# Industrial I/O subsystem Dummy Driver configuration 462306a36Sopenharmony_ci# 562306a36Sopenharmony_cimenu "IIO dummy driver" 662306a36Sopenharmony_ci depends on IIO 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciconfig IIO_DUMMY_EVGEN 962306a36Sopenharmony_ci select IRQ_SIM 1062306a36Sopenharmony_ci tristate 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciconfig IIO_SIMPLE_DUMMY 1362306a36Sopenharmony_ci tristate "An example driver with no hardware requirements" 1462306a36Sopenharmony_ci depends on IIO_SW_DEVICE 1562306a36Sopenharmony_ci help 1662306a36Sopenharmony_ci Driver intended mainly as documentation for how to write 1762306a36Sopenharmony_ci a driver. May also be useful for testing userspace code 1862306a36Sopenharmony_ci without hardware. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciif IIO_SIMPLE_DUMMY 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciconfig IIO_SIMPLE_DUMMY_EVENTS 2362306a36Sopenharmony_ci bool "Event generation support" 2462306a36Sopenharmony_ci select IIO_DUMMY_EVGEN 2562306a36Sopenharmony_ci help 2662306a36Sopenharmony_ci Add some dummy events to the simple dummy driver. 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci The purpose of this is to generate 'fake' event interrupts thus 2962306a36Sopenharmony_ci allowing that driver's code to be as close as possible to that 3062306a36Sopenharmony_ci a normal driver talking to hardware. 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ciconfig IIO_SIMPLE_DUMMY_BUFFER 3362306a36Sopenharmony_ci bool "Buffered capture support" 3462306a36Sopenharmony_ci select IIO_BUFFER 3562306a36Sopenharmony_ci select IIO_TRIGGER 3662306a36Sopenharmony_ci select IIO_KFIFO_BUF 3762306a36Sopenharmony_ci select IIO_TRIGGERED_BUFFER 3862306a36Sopenharmony_ci help 3962306a36Sopenharmony_ci Add buffered data capture to the simple dummy driver. 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci Buffer handling elements of industrial I/O reference driver. 4262306a36Sopenharmony_ci Uses the kfifo buffer. 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ciendif # IIO_SIMPLE_DUMMY 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ciendmenu 47