#include <linux/module.h>
#include <linux/comedi/comedi_pci.h>
#include "addi_watchdog.h"
#define APCI2200_DI_REG …
#define APCI2200_DO_REG …
#define APCI2200_WDOG_REG …
static int apci2200_di_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{ … }
static int apci2200_do_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{ … }
static int apci2200_reset(struct comedi_device *dev)
{ … }
static int apci2200_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{ … }
static void apci2200_detach(struct comedi_device *dev)
{ … }
static struct comedi_driver apci2200_driver = …;
static int apci2200_pci_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{ … }
static const struct pci_device_id apci2200_pci_table[] = …;
MODULE_DEVICE_TABLE(pci, apci2200_pci_table);
static struct pci_driver apci2200_pci_driver = …;
module_comedi_pci_driver(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;