Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / iio / trigger / iio-trig-bfin-timer.h
1 #ifndef __IIO_BFIN_TIMER_TRIGGER_H__
2 #define __IIO_BFIN_TIMER_TRIGGER_H__
3
4 /**
5  * struct iio_bfin_timer_trigger_pdata - timer trigger platform data
6  * @output_enable: Enable external trigger pulse generation.
7  * @active_low: Whether the trigger pulse is active low.
8  * @duty_ns: Length of the trigger pulse in nanoseconds.
9  *
10  * This struct is used to configure the output pulse generation of the blackfin
11  * timer trigger. If output_enable is set to true an external trigger signal
12  * will generated on the pin corresponding to the timer. This is useful for
13  * converters which needs an external signal to start conversion. active_low and
14  * duty_ns are used to configure the type of the trigger pulse. If output_enable
15  * is set to false no external trigger pulse will be generated and active_low
16  * and duty_ns are ignored.
17  **/
18 struct iio_bfin_timer_trigger_pdata {
19         bool output_enable;
20         bool active_low;
21         unsigned int duty_ns;
22 };
23
24 #endif