#include <linux/module.h>
#include <linux/comedi/comedi_pci.h>
#define PIO1616L_DI_REG …
#define PIO1616L_DO_REG …
static int contec_do_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{ … }
static int contec_di_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{ … }
static int contec_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{ … }
static struct comedi_driver contec_pci_dio_driver = …;
static int contec_pci_dio_pci_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{ … }
static const struct pci_device_id contec_pci_dio_pci_table[] = …;
MODULE_DEVICE_TABLE(pci, contec_pci_dio_pci_table);
static struct pci_driver contec_pci_dio_pci_driver = …;
module_comedi_pci_driver(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;