1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * ni_labpc ISA DMA support. 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 labpc_init_dma_chan(struct comedi_device * dev,unsigned int dma_chan)19static inline void labpc_init_dma_chan(struct comedi_device *dev, 20 unsigned int dma_chan) 21 { 22 } 23 labpc_free_dma_chan(struct comedi_device * dev)24static inline void labpc_free_dma_chan(struct comedi_device *dev) 25 { 26 } 27 labpc_setup_dma(struct comedi_device * dev,struct comedi_subdevice * s)28static inline void labpc_setup_dma(struct comedi_device *dev, 29 struct comedi_subdevice *s) 30 { 31 } 32 labpc_drain_dma(struct comedi_device * dev)33static inline void labpc_drain_dma(struct comedi_device *dev) 34 { 35 } 36 labpc_handle_dma_status(struct comedi_device * dev)37static inline void labpc_handle_dma_status(struct comedi_device *dev) 38 { 39 } 40 41 #endif 42 43 #endif /* _NI_LABPC_ISADMA_H */ 44