// SPDX-License-Identifier: GPL-2.0+ /* * Driver for National Instruments daqcard-1200 boards * Copyright (C) 2001, 2002, 2003 Frank Mori Hess <[email protected]> * * PCMCIA crap is adapted from dummy_cs.c 1.31 2001/08/24 12:13:13 * from the pcmcia package. * The initial developer of the pcmcia dummy_cs.c code is David A. Hinds * <[email protected]>. Portions created by David A. Hinds * are Copyright (C) 1999 David A. Hinds. */ /* * Driver: ni_labpc_cs * Description: National Instruments Lab-PC (& compatibles) * Author: Frank Mori Hess <[email protected]> * Devices: [National Instruments] DAQCard-1200 (daqcard-1200) * Status: works * * Thanks go to Fredrik Lingvall for much testing and perseverance in * helping to debug daqcard-1200 support. * * The 1200 series boards have onboard calibration dacs for correcting * analog input/output offsets and gains. The proper settings for these * caldacs are stored on the board's eeprom. To read the caldac values * from the eeprom and store them into a file that can be then be used by * comedilib, use the comedi_calibrate program. * * Configuration options: none * * The daqcard-1200 has quirky chanlist requirements when scanning multiple * channels. Multiple channel scan sequence must start at highest channel, * then decrement down to channel 0. Chanlists consisting of all one channel * are also legal, and allow you to pace conversions in bursts. * * NI manuals: * 340988a (daqcard-1200) */ #include <linux/module.h> #include <linux/comedi/comedi_pcmcia.h> #include "ni_labpc.h" static const struct labpc_boardinfo labpc_cs_boards[] = …; static int labpc_cs_auto_attach(struct comedi_device *dev, unsigned long context) { … } static void labpc_cs_detach(struct comedi_device *dev) { … } static struct comedi_driver driver_labpc_cs = …; static int labpc_cs_attach(struct pcmcia_device *link) { … } static const struct pcmcia_device_id labpc_cs_ids[] = …; MODULE_DEVICE_TABLE(pcmcia, labpc_cs_ids); static struct pcmcia_driver labpc_cs_driver = …; module_comedi_pcmcia_driver(…); MODULE_DESCRIPTION(…) …; MODULE_AUTHOR(…) …; MODULE_LICENSE(…) …;