root/drivers/staging/comedi/drivers/ni_labpc_isadma.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. labpc_init_dma_chan
  2. labpc_free_dma_chan
  3. labpc_setup_dma
  4. labpc_drain_dma
  5. labpc_handle_dma_status

   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 
  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 /* _NI_LABPC_ISADMA_H */

/* [<][>][^][v][top][bottom][index][help] */