2018-06-15 13:42:15 -05:00
/* SPDX-License-Identifier: GPL-2.0+ */
2015-01-30 09:57:17 +00:00
/*
* comedi_pcmcia . h
* header file for Comedi PCMCIA drivers
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright ( C ) 1997 - 2000 David A . Schleef < ds @ schleef . org >
*/
# ifndef _COMEDI_PCMCIA_H
# define _COMEDI_PCMCIA_H
# include <pcmcia/cistpl.h>
# include <pcmcia/ds.h>
# include "comedidev.h"
2016-12-15 13:19:49 +00:00
struct pcmcia_device * comedi_to_pcmcia_dev ( struct comedi_device * dev ) ;
2015-01-30 09:57:26 +00:00
2016-12-15 13:19:49 +00:00
int comedi_pcmcia_enable ( struct comedi_device * dev ,
int ( * conf_check ) ( struct pcmcia_device * p_dev ,
void * priv_data ) ) ;
void comedi_pcmcia_disable ( struct comedi_device * dev ) ;
2015-01-30 09:57:26 +00:00
2016-12-15 13:19:49 +00:00
int comedi_pcmcia_auto_config ( struct pcmcia_device * link ,
struct comedi_driver * driver ) ;
void comedi_pcmcia_auto_unconfig ( struct pcmcia_device * link ) ;
2015-01-30 09:57:26 +00:00
2016-12-15 13:19:49 +00:00
int comedi_pcmcia_driver_register ( struct comedi_driver * comedi_driver ,
struct pcmcia_driver * pcmcia_driver ) ;
void comedi_pcmcia_driver_unregister ( struct comedi_driver * comedi_driver ,
struct pcmcia_driver * pcmcia_driver ) ;
2015-01-30 09:57:26 +00:00
/**
2016-02-04 21:43:14 -02:00
* module_comedi_pcmcia_driver ( ) - Helper macro for registering a comedi
* PCMCIA driver
2015-01-30 09:57:26 +00:00
* @ __comedi_driver : comedi_driver struct
* @ __pcmcia_driver : pcmcia_driver struct
*
* Helper macro for comedi PCMCIA drivers which do not do anything special
* in module init / exit . This eliminates a lot of boilerplate . Each
* module may only use this macro once , and calling it replaces
* module_init ( ) and module_exit ( )
2015-01-30 09:57:17 +00:00
*/
2015-01-30 09:57:26 +00:00
# define module_comedi_pcmcia_driver(__comedi_driver, __pcmcia_driver) \
module_driver ( __comedi_driver , comedi_pcmcia_driver_register , \
comedi_pcmcia_driver_unregister , & ( __pcmcia_driver ) )
2015-01-30 09:57:17 +00:00
# endif /* _COMEDI_PCMCIA_H */