This source file includes following definitions.
- labpc_init_dma_chan
- labpc_free_dma_chan
- labpc_setup_dma
- labpc_drain_dma
- labpc_handle_dma_status
1
2
3
4
5
6 #ifndef _NI_LABPC_ISADMA_H
7 #define _NI_LABPC_ISADMA_H
8
9 #if IS_ENABLED(CONFIG_COMEDI_NI_LABPC_ISADMA)
10
11 void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
12 void labpc_free_dma_chan(struct comedi_device *dev);
13 void labpc_setup_dma(struct comedi_device *dev, struct comedi_subdevice *s);
14 void labpc_drain_dma(struct comedi_device *dev);
15 void labpc_handle_dma_status(struct comedi_device *dev);
16
17 #else
18
19 static inline void labpc_init_dma_chan(struct comedi_device *dev,
20 unsigned int dma_chan)
21 {
22 }
23
24 static inline void labpc_free_dma_chan(struct comedi_device *dev)
25 {
26 }
27
28 static inline void labpc_setup_dma(struct comedi_device *dev,
29 struct comedi_subdevice *s)
30 {
31 }
32
33 static inline void labpc_drain_dma(struct comedi_device *dev)
34 {
35 }
36
37 static inline void labpc_handle_dma_status(struct comedi_device *dev)
38 {
39 }
40
41 #endif
42
43 #endif