]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - drivers/staging/comedi/drivers/ni_labpc_isadma.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / drivers / staging / comedi / drivers / ni_labpc_isadma.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
9a638662
IA
2/*
3 * ni_labpc ISA DMA support.
97b30bad 4 */
9a638662
IA
5
6#ifndef _NI_LABPC_ISADMA_H
7#define _NI_LABPC_ISADMA_H
8
cf0438c9 9#if IS_ENABLED(CONFIG_COMEDI_NI_LABPC_ISADMA)
c6208c2f 10
9ff24fd5 11void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
86aff4bb 12void labpc_free_dma_chan(struct comedi_device *dev);
88dd0c0a 13void labpc_setup_dma(struct comedi_device *dev, struct comedi_subdevice *s);
f88e8e09 14void labpc_drain_dma(struct comedi_device *dev);
9bd53e03 15void labpc_handle_dma_status(struct comedi_device *dev);
86aff4bb 16
9a638662
IA
17#else
18
9ff24fd5
HS
19static inline void labpc_init_dma_chan(struct comedi_device *dev,
20 unsigned int dma_chan)
86aff4bb 21{
86aff4bb
IA
22}
23
24static inline void labpc_free_dma_chan(struct comedi_device *dev)
25{
26}
27
88dd0c0a
IA
28static inline void labpc_setup_dma(struct comedi_device *dev,
29 struct comedi_subdevice *s)
30{
31}
32
f88e8e09
IA
33static inline void labpc_drain_dma(struct comedi_device *dev)
34{
35}
36
9bd53e03
IA
37static inline void labpc_handle_dma_status(struct comedi_device *dev)
38{
39}
40
9a638662
IA
41#endif
42
43#endif /* _NI_LABPC_ISADMA_H */