#include <linux/module.h>
#include <linux/comedi/comedi_pci.h>
#define APCI16XX_IN_REG(x) …
#define APCI16XX_OUT_REG(x) …
#define APCI16XX_DIR_REG(x) …
enum apci16xx_boardid { … };
struct apci16xx_boardinfo { … };
static const struct apci16xx_boardinfo apci16xx_boardtypes[] = …;
static int apci16xx_insn_config(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{ … }
static int apci16xx_dio_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{ … }
static int apci16xx_auto_attach(struct comedi_device *dev,
unsigned long context)
{ … }
static struct comedi_driver apci16xx_driver = …;
static int apci16xx_pci_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{ … }
static const struct pci_device_id apci16xx_pci_table[] = …;
MODULE_DEVICE_TABLE(pci, apci16xx_pci_table);
static struct pci_driver apci16xx_pci_driver = …;
module_comedi_pci_driver(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;