Files
linux/drivers/comedi/drivers/ni_labpc_isadma.h
Greg Kroah-Hartman 8ffdff6a8c staging: comedi: move out of staging directory
The comedi code came into the kernel back in 2008, but traces its
lifetime to much much earlier.  It's been polished and buffed and
there's really nothing preventing it from being part of the "real"
portion of the kernel.

So move it to drivers/comedi/ as it belongs there.

Many thanks to the hundreds of developers who did the work to make this
happen.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Link: https://lore.kernel.org/r/YHauop4u3sP6lz8j@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-15 09:26:25 +02:00

44 lines
958 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* ni_labpc ISA DMA support.
*/
#ifndef _NI_LABPC_ISADMA_H
#define _NI_LABPC_ISADMA_H
#if IS_ENABLED(CONFIG_COMEDI_NI_LABPC_ISADMA)
void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
void labpc_free_dma_chan(struct comedi_device *dev);
void labpc_setup_dma(struct comedi_device *dev, struct comedi_subdevice *s);
void labpc_drain_dma(struct comedi_device *dev);
void labpc_handle_dma_status(struct comedi_device *dev);
#else
static inline void labpc_init_dma_chan(struct comedi_device *dev,
unsigned int dma_chan)
{
}
static inline void labpc_free_dma_chan(struct comedi_device *dev)
{
}
static inline void labpc_setup_dma(struct comedi_device *dev,
struct comedi_subdevice *s)
{
}
static inline void labpc_drain_dma(struct comedi_device *dev)
{
}
static inline void labpc_handle_dma_status(struct comedi_device *dev)
{
}
#endif
#endif /* _NI_LABPC_ISADMA_H */