144f4bafdbd1b61e3b369fe6fc50b6da1956867d
[platform/adaptation/renesas_rcar/renesas_kernel.git] / 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 #define NI_LABPC_HAVE_ISA_DMA   IS_ENABLED(CONFIG_COMEDI_NI_LABPC_ISADMA)
9
10 #if NI_LABPC_HAVE_ISA_DMA
11
12 int labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
13 void labpc_free_dma_chan(struct comedi_device *dev);
14
15 #else
16
17 static inline int labpc_init_dma_chan(struct comedi_device *dev,
18                                       unsigned int dma_chan)
19 {
20         return -ENOTSUPP;
21 }
22
23 static inline void labpc_free_dma_chan(struct comedi_device *dev)
24 {
25 }
26
27 #endif
28
29 #endif /* _NI_LABPC_ISADMA_H */