#include <linux/module.h>
#include <linux/comedi/comedidev.h>
#include <linux/delay.h>
#define MPC624_MASTER_CONTROL …
#define MPC624_GNMUXCH …
#define MPC624_ADC …
#define MPC624_EE …
#define MPC624_LEDS …
#define MPC624_DIO …
#define MPC624_IRQ_MASK …
#define MPC624_ADBUSY …
#define MPC624_ADSDO …
#define MPC624_ADFO …
#define MPC624_ADCS …
#define MPC624_ADSCK …
#define MPC624_ADSDI …
#define MPC624_EOC_BIT …
#define MPC624_DMY_BIT …
#define MPC624_SGN_BIT …
#define MPC624_OSR(x) …
#define MPC624_SPEED_3_52_KHZ …
#define MPC624_SPEED_1_76_KHZ …
#define MPC624_SPEED_880_HZ …
#define MPC624_SPEED_440_HZ …
#define MPC624_SPEED_220_HZ …
#define MPC624_SPEED_110_HZ …
#define MPC624_SPEED_55_HZ …
#define MPC624_SPEED_27_5_HZ …
#define MPC624_SPEED_13_75_HZ …
#define MPC624_SPEED_6_875_HZ …
struct mpc624_private { … };
static const struct comedi_lrange range_mpc624_bipolar1 = …;
static const struct comedi_lrange range_mpc624_bipolar10 = …;
static unsigned int mpc624_ai_get_sample(struct comedi_device *dev,
struct comedi_subdevice *s)
{ … }
static int mpc624_ai_eoc(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned long context)
{ … }
static int mpc624_ai_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{ … }
static int mpc624_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{ … }
static struct comedi_driver mpc624_driver = …;
module_comedi_driver(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;