18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# Industrial I/O subsystem Dummy Driver configuration 48c2ecf20Sopenharmony_ci# 58c2ecf20Sopenharmony_cimenu "IIO dummy driver" 68c2ecf20Sopenharmony_ci depends on IIO 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciconfig IIO_DUMMY_EVGEN 98c2ecf20Sopenharmony_ci select IRQ_SIM 108c2ecf20Sopenharmony_ci tristate 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciconfig IIO_SIMPLE_DUMMY 138c2ecf20Sopenharmony_ci tristate "An example driver with no hardware requirements" 148c2ecf20Sopenharmony_ci depends on IIO_SW_DEVICE 158c2ecf20Sopenharmony_ci help 168c2ecf20Sopenharmony_ci Driver intended mainly as documentation for how to write 178c2ecf20Sopenharmony_ci a driver. May also be useful for testing userspace code 188c2ecf20Sopenharmony_ci without hardware. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciif IIO_SIMPLE_DUMMY 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciconfig IIO_SIMPLE_DUMMY_EVENTS 238c2ecf20Sopenharmony_ci bool "Event generation support" 248c2ecf20Sopenharmony_ci select IIO_DUMMY_EVGEN 258c2ecf20Sopenharmony_ci help 268c2ecf20Sopenharmony_ci Add some dummy events to the simple dummy driver. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci The purpose of this is to generate 'fake' event interrupts thus 298c2ecf20Sopenharmony_ci allowing that driver's code to be as close as possible to that 308c2ecf20Sopenharmony_ci a normal driver talking to hardware. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciconfig IIO_SIMPLE_DUMMY_BUFFER 338c2ecf20Sopenharmony_ci bool "Buffered capture support" 348c2ecf20Sopenharmony_ci select IIO_BUFFER 358c2ecf20Sopenharmony_ci select IIO_TRIGGER 368c2ecf20Sopenharmony_ci select IIO_KFIFO_BUF 378c2ecf20Sopenharmony_ci help 388c2ecf20Sopenharmony_ci Add buffered data capture to the simple dummy driver. 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci Buffer handling elements of industrial I/O reference driver. 418c2ecf20Sopenharmony_ci Uses the kfifo buffer. 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciendif # IIO_SIMPLE_DUMMY 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciendmenu 46