1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ni_labpc ISA DMA support.
6 #ifndef _NI_LABPC_ISADMA_H
7 #define _NI_LABPC_ISADMA_H
9 #if IS_ENABLED(CONFIG_COMEDI_NI_LABPC_ISADMA)
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);
19 static inline void labpc_init_dma_chan(struct comedi_device *dev,
20 unsigned int dma_chan)
24 static inline void labpc_free_dma_chan(struct comedi_device *dev)
28 static inline void labpc_setup_dma(struct comedi_device *dev,
29 struct comedi_subdevice *s)
33 static inline void labpc_drain_dma(struct comedi_device *dev)
37 static inline void labpc_handle_dma_status(struct comedi_device *dev)
43 #endif /* _NI_LABPC_ISADMA_H */