Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / comedi / drivers / ni_labpc_isadma.h
1 /*
2  * ni_labpc ISA DMA support.
3 */
4
5 #ifndef _NI_LABPC_ISADMA_H
6 #define _NI_LABPC_ISADMA_H
7
8 #if IS_ENABLED(CONFIG_COMEDI_NI_LABPC_ISADMA)
9
10 void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
11 void labpc_free_dma_chan(struct comedi_device *dev);
12 void labpc_setup_dma(struct comedi_device *dev, struct comedi_subdevice *s);
13 void labpc_drain_dma(struct comedi_device *dev);
14 void labpc_handle_dma_status(struct comedi_device *dev);
15
16 #else
17
18 static inline void labpc_init_dma_chan(struct comedi_device *dev,
19                                        unsigned int dma_chan)
20 {
21 }
22
23 static inline void labpc_free_dma_chan(struct comedi_device *dev)
24 {
25 }
26
27 static inline void labpc_setup_dma(struct comedi_device *dev,
28                                    struct comedi_subdevice *s)
29 {
30 }
31
32 static inline void labpc_drain_dma(struct comedi_device *dev)
33 {
34 }
35
36 static inline void labpc_handle_dma_status(struct comedi_device *dev)
37 {
38 }
39
40 #endif
41
42 #endif /* _NI_LABPC_ISADMA_H */